snaps.git
6 years agoImplemented the ability to create Magnum Cluster Type objects. 73/47673/3
spisarski [Wed, 22 Nov 2017 21:55:43 +0000 (14:55 -0700)]
Implemented the ability to create Magnum Cluster Type objects.

This patch is the second of several necessary for the addition of
Magnum support. This one implements a create and delete function
to magnum_utils.py as well as the necessary config and domain classes
for sending and receiving Cluster Type data to OpenStack.

JIRA: SNAPS-233

Change-Id: Iad1959b98eaabc4ef5f41b70a23f6b1306259650
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of SecurityGroupSettings to extend SecurityGroupConfig 33/47533/2
spisarski [Mon, 20 Nov 2017 21:56:44 +0000 (14:56 -0700)]
Refactoring of SecurityGroupSettings to extend SecurityGroupConfig

SecurityGroupSettings, SecurityGroupSettings and neutron_utils have a
runtime cyclical dependency. This patch reduces this dependency and
deprecates the SecurityGroupSettings and SecurityGroupRuleSettings class with
snaps.config.security_group SecurityGroupConfig and SecurityGroupRuleConfg classes

JIRA: SNAPS-224

Change-Id: I6cd82ed5be31f4a24449be767b203e86489b1962
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of VmInstanceSettings to extend VmInstanceConfig 31/47531/1
spisarski [Mon, 20 Nov 2017 20:51:18 +0000 (13:51 -0700)]
Refactoring of VmInstanceSettings to extend VmInstanceConfig

VmInstanceSettings, FloatingIPSettings and nova_utils have a
runtime cyclical dependency. This patch reduces this dependency and
deprecates the VmInstanceSettings and FloatingIPSettings class with
snaps.config.vm_inst VmInstanceConfig and FloatingIpConfg classes

JIRA: SNAPS-218

Change-Id: I95688130256bca1df4a5c347bdb741019ae0937e
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Supporting the protocol string value of 'any' for security group rules."
Steven Pisarski [Mon, 20 Nov 2017 20:05:41 +0000 (20:05 +0000)]
Merge "Supporting the protocol string value of 'any' for security group rules."

6 years agoRefactoring of NetworkSettings to extend NetworkConfig 41/47441/4
spisarski [Fri, 17 Nov 2017 23:07:40 +0000 (16:07 -0700)]
Refactoring of NetworkSettings to extend NetworkConfig

This also includes SubnetSettings extending to SubnetConfig and
PortSettings extenting to Portconfig and neutron_utils have a runtime cyclical
dependency. This patch reduces this dependency and deprecates the NetworkSettings,
SubnetSettings, and PortSettings classes.

JIRA: SNAPS-220

Change-Id: I996d73d9b910c075a6511a423f01d966f5b6fb74
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of VolumeSettings to extend VolumeConfig 37/47437/2
spisarski [Fri, 17 Nov 2017 21:54:46 +0000 (14:54 -0700)]
Refactoring of VolumeSettings to extend VolumeConfig

VolumeSettings and cinder_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the VolumeSettings class.

JIRA: SNAPS-227

Change-Id: I3f93702ff836af365c811d44bfd0e59b76c3f1f5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of VolumeTypeSettings to extend VolumeTypeConfig 35/47435/2
spisarski [Fri, 17 Nov 2017 21:05:29 +0000 (14:05 -0700)]
Refactoring of VolumeTypeSettings to extend VolumeTypeConfig

This also includes VolumeTypeEncryptionSettings extending to
VolumeTypeEncryptionConfig which is a member of VolumeTypeConfig
VolumeTypeSettings and cinder_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the VolumeTypeSettings class.

JIRA: SNAPS-228

Change-Id: Iaa9c7a1cd810cf63d1badb00f71bcdcefb527e12
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of QoSSettings to extend QoSConfig 33/47433/3
spisarski [Fri, 17 Nov 2017 20:11:09 +0000 (13:11 -0700)]
Refactoring of QoSSettings to extend QoSConfig

QoSSettings and cinder_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the QoSSettings class.

JIRA: SNAPS-222

Change-Id: I6385717b78db413c496b15b8c4b76ffabe9797c1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of StackSettings to extend StackConfig 29/47429/2
spisarski [Fri, 17 Nov 2017 18:52:01 +0000 (11:52 -0700)]
Refactoring of StackSettings to extend StackConfig

StackSettings and heat_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the StackSettings class.

JIRA: SNAPS-225

Change-Id: I8dc7a4d80efce93452908563730babf14c17e615
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of RouterSettings to extend RouterConfig 25/47425/2
spisarski [Fri, 17 Nov 2017 16:49:52 +0000 (09:49 -0700)]
Refactoring of RouterSettings to extend RouterConfig

RouterSettings and neutron_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the RouterSettings class.

JIRA: SNAPS-223

Change-Id: I6a2a5e6e6e86204e62148a57e3525da5862841cf
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of UserSettings to extend UserConfig 23/47423/2
spisarski [Fri, 17 Nov 2017 16:25:33 +0000 (09:25 -0700)]
Refactoring of UserSettings to extend UserConfig

UserSettings and keystone_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the UserSettings class.

JIRA: SNAPS-226

Change-Id: Ifcc2a029463780e963b1afcf1de31baf9edded40
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of ProjectSettings to extend ProjectConfig 21/47421/2
spisarski [Fri, 17 Nov 2017 16:02:27 +0000 (09:02 -0700)]
Refactoring of ProjectSettings to extend ProjectConfig

ProjectSettings and keystone_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the ProjectSettings class.

JIRA: SNAPS-221

Change-Id: I9e39f09fb8bb03dbd725f44b7256bacb05f26afc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of KeypairSettings to extend KeypairConfig 19/47419/2
spisarski [Fri, 17 Nov 2017 15:35:45 +0000 (08:35 -0700)]
Refactoring of KeypairSettings to extend KeypairConfig

KeypairSettings and glance_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the KeypairSettings class.

JIRA: SNAPS-219

Change-Id: I92f51ecb77238444697e922c8f089e78d1c643aa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of FlavorSettings to extend FlavorConfig 83/47383/2
spisarski [Fri, 17 Nov 2017 01:26:13 +0000 (18:26 -0700)]
Refactoring of FlavorSettings to extend FlavorConfig

FlavorSettings and glance_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the FlavorSettings class.

JIRA: SNAPS-216

Change-Id: Ie9532fcbe16377d4ab608bdacd1982c3c6628fe9
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactoring of ImageSettings to extend ImageConfig 77/47377/1
spisarski [Thu, 16 Nov 2017 23:07:47 +0000 (16:07 -0700)]
Refactoring of ImageSettings to extend ImageConfig

ImageSettings and glance_utils have a runtime cyclical
dependency. This patch reduces this dependency and
deprecates the ImageSettings class.

JIRA: SNAPS-217

Change-Id: I09f34531366f2a5bd3202c9cbbdef878b2542abe
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoSupporting the protocol string value of 'any' for security group rules. 69/47369/1
spisarski [Thu, 16 Nov 2017 17:51:30 +0000 (10:51 -0700)]
Supporting the protocol string value of 'any' for security group rules.

This issue had been found by Stuart Mackie when using OpenContrail.

Change-Id: I5b57773e19c20028ac736521d461d49341c78cb0
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMinor copy/paste logging value fixes. 51/47351/1
spisarski [Thu, 16 Nov 2017 16:35:43 +0000 (09:35 -0700)]
Minor copy/paste logging value fixes.

Change-Id: I729265575583eec7fb7adc1fc49c6d91c06ad603
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoUpdated from global requirements 65/47265/2
Cédric Ollivier [Wed, 15 Nov 2017 17:28:39 +0000 (18:28 +0100)]
Updated from global requirements

Change-Id: I9fa229d0216b90f7619d1fe5e9f5c35be8899d19
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoDeleting files created when obtaining keypair settings from heat. 97/46997/1
spisarski [Thu, 9 Nov 2017 22:07:15 +0000 (15:07 -0700)]
Deleting files created when obtaining keypair settings from heat.

When Heat creates a keypair and SNAPS-OO attempts to generate a
KeypairSettings object, the private key is getting stored into
a file that was not getting cleaned up in some of the tests.

JIRA: SNAPS-177

Change-Id: I50759a74efbd1d0df4de0780da43b9e56432d28c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Initial patch to begin adding support for Magnum."
Steven Pisarski [Thu, 9 Nov 2017 17:46:41 +0000 (17:46 +0000)]
Merge "Initial patch to begin adding support for Magnum."

6 years agoInitial patch to begin adding support for Magnum. 91/46891/3
spisarski [Wed, 8 Nov 2017 19:53:14 +0000 (12:53 -0700)]
Initial patch to begin adding support for Magnum.

JIRA: SNAPS-212

Change-Id: I5f72fe9c28fe5cdd61546eee828becd034f8aff9
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Apply upper-constraints when testing SNAPS"
Steven Pisarski [Thu, 9 Nov 2017 15:55:58 +0000 (15:55 +0000)]
Merge "Apply upper-constraints when testing SNAPS"

6 years agoApply upper-constraints when testing SNAPS 25/46925/1
Cédric Ollivier [Thu, 9 Nov 2017 08:20:29 +0000 (09:20 +0100)]
Apply upper-constraints when testing SNAPS

It conforms with OpenStack rules [1] and enforces the same testing
env over the OPNFV projects [2].

[1] https://wiki.openstack.org/wiki/Requirements
[2] https://wiki.opnfv.org/display/functest/Requirements+management

Change-Id: Iad277b305dbb6c9e96894f5809edcb27a750e418
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdding tests for IPv6. 17/46817/2
spisarski [Tue, 7 Nov 2017 22:23:15 +0000 (15:23 -0700)]
Adding tests for IPv6.

Included in patch:
1. Refactor Network domain object to include Subnet objects
2. Removed subnet members from OpenStackNetwork
3. Added exhausive IPv6 tests to neutron_utils_tests.py
4. Added two IPv6 integration tests to create_network_tests.py
5. Added two tests where VM instances have ports with IPv6 addresses
6. Updated docs

JIRA: SNAPS-178

Change-Id: Id3e5448cb431d2acf47029244fe6773f3f29d368
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemoval of test from API check. 67/46867/1
spisarski [Wed, 8 Nov 2017 14:25:16 +0000 (07:25 -0700)]
Removal of test from API check.

Change-Id: Iaf99f0d397043233e9112b38f0cbb5008b5159d1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded method to OpenStackHeatStack to return OpenStackSecurityGroup objects. 85/46685/2
spisarski [Fri, 3 Nov 2017 16:39:24 +0000 (10:39 -0600)]
Added method to OpenStackHeatStack to return OpenStackSecurityGroup objects.

Continuation of the story SNAPS-153 for adding creator/state machine
instances for OpenStack objects deployed via Heat.

JIRA: SNAPS-207

Change-Id: Id479b69c2b166ab38724c3886096d8483998f819
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added logging when a heat stack fails."
Steven Pisarski [Mon, 6 Nov 2017 15:04:22 +0000 (15:04 +0000)]
Merge "Added logging when a heat stack fails."

6 years agoMerge "Added method to OpenStackHeatStack to return OpenStackRouter objects."
Steven Pisarski [Mon, 6 Nov 2017 14:43:50 +0000 (14:43 +0000)]
Merge "Added method to OpenStackHeatStack to return OpenStackRouter objects."

6 years agoQuick fix around static IPs and ports in launch.py application. 99/46699/1
spisarski [Fri, 3 Nov 2017 18:26:02 +0000 (12:26 -0600)]
Quick fix around static IPs and ports in launch.py application.

Change-Id: I81b74fb37aee37644f3092251ae5163d57392fdc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded logging when a heat stack fails. 93/46593/1
spisarski [Thu, 2 Nov 2017 20:52:58 +0000 (14:52 -0600)]
Added logging when a heat stack fails.

Added the stack resource reason to the error logs for each
resource who's status is 'CREATE_FAILED'. All resons will be
output to debug.

JIRA: SNAPS-190

Change-Id: Ieb1cdb2089eb6e1c1a7c96c143b82af1b7a9efb7
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded method to OpenStackHeatStack to return OpenStackRouter objects. 79/46579/1
spisarski [Thu, 2 Nov 2017 18:03:42 +0000 (12:03 -0600)]
Added method to OpenStackHeatStack to return OpenStackRouter objects.

Continuation of the story SNAPS-153 for adding creator/state machine
instances for OpenStack objects deployed via Heat.

JIRA: SNAPS-173

Change-Id: Iac9138ef7827c10db1637447d3a909e714a0301b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agodocs: Update installation methods 83/46483/4
Taseer Ahmed [Tue, 31 Oct 2017 15:16:48 +0000 (20:16 +0500)]
docs: Update installation methods

JIRA: SNAPS-193

Change-Id: Ibd42667023311ee2d61142063f4d301bad4ac5d7
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
6 years agoAdded method to OpenStackHeatStack to return OpenStackFlavor objects. 41/46441/2
spisarski [Mon, 30 Oct 2017 20:22:20 +0000 (14:22 -0600)]
Added method to OpenStackHeatStack to return OpenStackFlavor objects.

Continuation of the story SNAPS-153 for adding creator/state machine
instances for OpenStack objects deployed via Heat.

JIRA: SNAPS-174

Change-Id: I791e427efc487045c0f72cd836dabd9a66a4f60f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded method to OpenStackHeatStack to return OpenStackKeypair objects. 39/46439/1
spisarski [Mon, 30 Oct 2017 18:08:58 +0000 (12:08 -0600)]
Added method to OpenStackHeatStack to return OpenStackKeypair objects.

Continuation of the story SNAPS-153 for adding creator/state machine
instances for OpenStack objects deployed via Heat.

JIRA: SNAPS-175

Change-Id: I7196279086b1935b4ec4a01483d46921cc567b15
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Return OpenStackVolume and OpenStackVolumeType instances from heat."
Steven Pisarski [Mon, 30 Oct 2017 15:24:00 +0000 (15:24 +0000)]
Merge "Return OpenStackVolume and OpenStackVolumeType instances from heat."

6 years agoSync requirements with OpenStack Pike 19/46419/1
Cédric Ollivier [Mon, 30 Oct 2017 13:32:14 +0000 (14:32 +0100)]
Sync requirements with OpenStack Pike

OPNFV F-release is built on top of OpenStack Pike.
Functest depends on SNAPS and requires this update.

It conforms with the requirement management cleant for E-release [1].

[1] https://wiki.opnfv.org/display/functest/Requirements+management

Change-Id: Ifff3db55f8b2f03a91b43fb542328300c7b7b4a6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoReturn OpenStackVolume and OpenStackVolumeType instances from heat. 47/46347/2
spisarski [Fri, 27 Oct 2017 20:06:01 +0000 (14:06 -0600)]
Return OpenStackVolume and OpenStackVolumeType instances from heat.

Added a methods to OpenStackHeatStack to return any OpenStackVolume
and OpenStackVolumeType objects it was responsible for spawning.
Changes include all of the necessary changes to the heat and
settings utilities and associated tests.

JIRA: SNAPS-199, SNAPS-200

Change-Id: I6da4bce1e90f080e22c96ab1b46eca8b85991ebf
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoUpdated application to support volumes. 73/46273/2
spisarski [Thu, 26 Oct 2017 20:18:54 +0000 (14:18 -0600)]
Updated application to support volumes.

Updated VirEnvDeploy documents to reflect newly supported
object type.

JIRA: SNAPS-208

Change-Id: Icc0d435d9b2d780d31a15ebc9a1ebd539c58e407
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoUpdated documentation to reflect new block storage support. 69/46269/1
spisarski [Thu, 26 Oct 2017 18:19:42 +0000 (12:19 -0600)]
Updated documentation to reflect new block storage support.

1. Updated library usaged LibraryUsage.rst
2. Added new unit tests to UnitTests.rst
3. Added new component tests to APITests.rst
4. Added new integration tests to IntegrationTests.rst
5. Updated application usage docs in VirtEnvDeploy.rst
6. Updated pydocs where inaccurate

JIRA: SNAPS-203

Change-Id: I8bee2c6cdb5f54b86abf805bc930563028df3425
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoImplemented the ability to attach volumes to VM instances. 87/46187/1
spisarski [Tue, 24 Oct 2017 18:27:32 +0000 (12:27 -0600)]
Implemented the ability to attach volumes to VM instances.

JIRA: SNAPS-198

Change-Id: I30bb92dabab64e6a8918fa5ab0de1bed359a147e
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added ext_net_name into template substitution variable."
Steven Pisarski [Mon, 23 Oct 2017 16:44:31 +0000 (16:44 +0000)]
Merge "Added ext_net_name into template substitution variable."

6 years agoAdded ext_net_name into template substitution variable. 25/46125/2
spisarski [Mon, 23 Oct 2017 14:48:10 +0000 (08:48 -0600)]
Added ext_net_name into template substitution variable.

Without the change, the template would always leverage the
external network name of 'external'.
Also am now creating a security group for the VM with the
floating IP so the test will always be able to access.
Fixed another test that used the same heat template that
was changed to add in security groups.

JIRA: SNAPS-206

Change-Id: I19b09e91a844f88bd473ea25b2bba71ae19b0aa1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Third patch for volume support."
Steven Pisarski [Mon, 23 Oct 2017 14:55:20 +0000 (14:55 +0000)]
Merge "Third patch for volume support."

6 years agoMerge "Add reason for stack creation failure"
Steven Pisarski [Fri, 20 Oct 2017 15:09:38 +0000 (15:09 +0000)]
Merge "Add reason for stack creation failure"

6 years agoThird patch for volume support. 83/45883/1
spisarski [Thu, 19 Oct 2017 20:31:22 +0000 (14:31 -0600)]
Third patch for volume support.

* Added support for volumes integrated with QoS and encryption.
* Created tests for volumes at an API and state machine level.

JIRA: SNAPS-197

Change-Id: I07326875b9f1a30e50389531d0d2571ee648675f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdd reason for stack creation failure 79/44979/7
Taseer Ahmed [Fri, 13 Oct 2017 07:34:00 +0000 (12:34 +0500)]
Add reason for stack creation failure

JIRA: SNAPS-190

Change-Id: I59b7d416ef16cd1f301ccbdcdd8a7529527b3dd6
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
6 years agoSecond patch for volume support. 05/45605/1
spisarski [Wed, 18 Oct 2017 17:52:51 +0000 (11:52 -0600)]
Second patch for volume support.

* Added support for volume types
* Created tests for volume types, QoS Spec, and encryption

JIRA: SNAPS-196

Change-Id: I9154fc20772191cecf4f2f9feb7e8d8634167a9c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFirst of several patches for adding volume support. 71/45271/1
spisarski [Mon, 16 Oct 2017 21:54:51 +0000 (15:54 -0600)]
First of several patches for adding volume support.

* Added volume API version attribute to OSCreds
* Created utility for interfacing with the Cinder APIs
* Created QoS creator
* Added new tests to test_suite_builder.py

JIRA: SNAPS-195, SNAPS-194

Change-Id: I0c6a53b4cba6efea3e92d909b94b259fa07a35c3
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Improved creator/state machine classes class hierarchy."
Steven Pisarski [Mon, 16 Oct 2017 13:40:35 +0000 (13:40 +0000)]
Merge "Improved creator/state machine classes class hierarchy."

6 years agoMove CreateInstancePubPrivNetTests test to staging 03/45003/3
Cristina Pauna [Fri, 13 Oct 2017 08:54:09 +0000 (11:54 +0300)]
Move CreateInstancePubPrivNetTests test to staging

CreateInstancePubPrivNetTests is failing on Fuel and it seems that the
test is not behaving as expected on all pods. SNAPS-191 was created to
refactor the code so until that is fixed we should not run this test
in functest.

JIRA: SNAPS-184

Change-Id: I2286b9fab72e705092a521cd3611a63a8e12f855
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
6 years agoImproved creator/state machine classes class hierarchy. 51/44951/1
spisarski [Thu, 12 Oct 2017 20:17:59 +0000 (14:17 -0600)]
Improved creator/state machine classes class hierarchy.

Created abstract superclasses for all classes responsible
for deploying and maintaining the state of objects deployed
to OpenStack which should help developers better understand
the library.

JIRA: SNAPS-183

Change-Id: I7651bd338f0d4e4086abbc11755e6be4f19058bd
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRestricted Ansible version to >=2.1 && < 2.4 13/44713/1
spisarski [Tue, 10 Oct 2017 19:24:48 +0000 (13:24 -0600)]
Restricted Ansible version to >=2.1 && < 2.4

ansible_utils.py leverages the class ansible.vars.VariableManager
which no longer exists in Ansible 2.4.x

JIRA: SNAPS-187

Change-Id: I3e92e5addb7251554d6ec9befa61bfcc9e1376ef
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoIncrese ssh timeout in Ansible 87/44387/2
Jose Lausuch [Thu, 5 Oct 2017 16:20:08 +0000 (18:20 +0200)]
Increse ssh timeout in Ansible

The SNAPS smoke tests pass on Apex  when the timeout
is a bit higher than 10 (default)

JIRA: SNAPS-186

Change-Id: I2f42f0fc9a78bfad4ae3940813e87ba7572ad2f5
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
6 years agoReduce flavor resources of heat template 01/42501/1
Michael Polenchuk [Wed, 20 Sep 2017 09:46:12 +0000 (13:46 +0400)]
Reduce flavor resources of heat template

In order to pass the HeatUtilsCreateComplexStackTests
request an affordable amount of compute resources.

Change-Id: I7d99435ce9500cc96e2e25828f1a804687df69e0
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
6 years agoDisabled test meant for the F release. 65/41865/1
spisarski [Wed, 13 Sep 2017 14:20:34 +0000 (08:20 -0600)]
Disabled test meant for the F release.

Change-Id: I889fa6a384bc7468c732180261c0eebe815b7cfa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoEnhanced launch.py app to support all types. 31/40031/10
spisarski [Wed, 23 Aug 2017 19:26:36 +0000 (13:26 -0600)]
Enhanced launch.py app to support all types.

Added application support for users, projects, and
security groups. In addition, added support for multiple
credential sets so one can manage multiple projects
potentially on multiple clouds.

Added Jinja2 template support for substituting values
in the template file with values contained in the
environment file.

Added ansible substituion value for a VM's floating IP.
Changed credentials interface attribute's default value
from 'admin' to 'public'.

Added optional pre_sleep_time attribute to ansible execution
that will wait for a given number of seconds prior to attempting
to apply a playbook to a set of VMs.

JIRA: SNAPS-4, SNAPS-5, SNAPS-6, SNAPS-26

Change-Id: I67b8d69a3b06a43631d80e8fe0c56e02773dbfbe
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added method to return OpenStackVmInstance from Heat."
Steven Pisarski [Thu, 7 Sep 2017 18:46:32 +0000 (18:46 +0000)]
Merge "Added method to return OpenStackVmInstance from Heat."

6 years agoFixed test names. 13/40413/1
spisarski [Mon, 28 Aug 2017 13:52:21 +0000 (07:52 -0600)]
Fixed test names.

Copy/paste issue changed nova to heat.

Change-Id: Ib75fcea4c87375f615862e0542569c8e3d9675e8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded method to return OpenStackVmInstance from Heat. 51/39551/2
spisarski [Thu, 17 Aug 2017 21:21:37 +0000 (15:21 -0600)]
Added method to return OpenStackVmInstance from Heat.

OpenStackHeatStack now can introspect the VMs that the template
was responsible for deploying and return an instanitated instance
of OpenStackVmInstance for each VM deployed. When the VM has a
Floating IP, these instances have the ability to connect via
SSH just like one created from scratch.

JIRA: SNAPS-172

Change-Id: I5a7ed3a09bb871afc55c718aa80a9069b1eb4da7
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFix to a UserSettings pydoc explaination of an attribute. 01/40101/1
spisarski [Thu, 24 Aug 2017 13:54:53 +0000 (07:54 -0600)]
Fix to a UserSettings pydoc explaination of an attribute.

Change-Id: I7937c8fbfc1537ad70bd5bf9a657c52c600c1de8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Grant the new user to os_creds.project_name"
Steven Pisarski [Thu, 24 Aug 2017 13:51:49 +0000 (13:51 +0000)]
Merge "Grant the new user to os_creds.project_name"

6 years agoGrant the new user to os_creds.project_name 59/40059/1
Linda Wang [Thu, 24 Aug 2017 06:33:55 +0000 (06:33 +0000)]
Grant the new user to os_creds.project_name

For the test test_create_admin_user, the new user is
granted to the project "admin", so the role retrieval
is None with os_creds.project_name, which is not "admin".

Change-Id: I840d81ec83a72fc913edef8d4200223dfa2eca39
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoGet the correct endpoints URL based on OS_REGION_NAME env property 63/40063/1
Laurent Strullu [Wed, 23 Aug 2017 07:36:15 +0000 (09:36 +0200)]
Get the correct endpoints URL based on OS_REGION_NAME env property

It also ignores *.pyc.

Change-Id: I94a5e297108b839fd6d2811faa34eed3023c0e3a
Signed-off-by: Laurent Strullu <laurent.strullu@orange.com>
6 years agoSpecify segmentation_id when creating network 83/39483/3
Linda Wang [Thu, 17 Aug 2017 08:09:07 +0000 (08:09 +0000)]
Specify segmentation_id when creating network

When the network_type is vlan, it is necessary to specify
physical_network and segmentation_id.

JIRA: FUNCTEST-863

Change-Id: I44f57cdd825ee3cde7adb946c4f8dc78e3ee5212
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoFix validate_ssh_client 73/39273/1
Alex Yang [Mon, 14 Aug 2017 15:47:37 +0000 (23:47 +0800)]
Fix validate_ssh_client

After the "try..finally.." statement is executed, the ssh_client is
closed by the "finally" statement. So the out.channel.in_buffer is
not readable and the testcases failed.

Change-Id: I3fbf620cb9ccee62c515b83fed9fd01238ad3262
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
6 years agoMerge "Scripts to allow Jenkins to run the SNAPS-OO tests."
Steven Pisarski [Fri, 11 Aug 2017 14:47:56 +0000 (14:47 +0000)]
Merge "Scripts to allow Jenkins to run the SNAPS-OO tests."

6 years agoMerge "SNAPS Stack creators can now return SNAPS network creators."
Steven Pisarski [Fri, 11 Aug 2017 14:46:05 +0000 (14:46 +0000)]
Merge "SNAPS Stack creators can now return SNAPS network creators."

6 years agoScripts to allow Jenkins to run the SNAPS-OO tests. 75/39075/2
spisarski [Thu, 10 Aug 2017 15:17:44 +0000 (09:17 -0600)]
Scripts to allow Jenkins to run the SNAPS-OO tests.

JIRA: SNAPS-80

Change-Id: I7d634a5484752194d7796e841233bf387c1aeafe
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAssign a role to the new user 15/39115/1
Linda Wang [Fri, 11 Aug 2017 08:50:42 +0000 (08:50 +0000)]
Assign a role to the new user

Fix the patch: https://gerrit.opnfv.org/gerrit/#/c/37079
2 tests are influenced:
    test_create_project_sec_grp_one_user
    test_create_project_sec_grp_two_users

Change-Id: I5b2bad3b0b1c3394848de913ac5f161eb1172a3e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoSNAPS Stack creators can now return SNAPS network creators. 99/38999/3
spisarski [Wed, 9 Aug 2017 20:17:26 +0000 (14:17 -0600)]
SNAPS Stack creators can now return SNAPS network creators.

As Heat Stacks are responsible for spawning objects in OpenStack,
the class OpenStackHeatStack which is responsible for applying and
managing the state of a stack now can retrieve OpenStackNetwork
objects for the networks created in the stack for clients who would
like to query the networks and subnets or update them outside of
Heat.

JIRA: SNAPS-171

Change-Id: I9bf0b81d4f7bfeb1b6392f345022c7d9a57d0415
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded feature to update the quotas on a project/tenant. 71/38871/4
spisarski [Mon, 7 Aug 2017 20:14:06 +0000 (14:14 -0600)]
Added feature to update the quotas on a project/tenant.

JIRA: SNAPS-170

Change-Id: Icf494dd2bddc338b8e85259b0400c0950d2332bc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Reformat auth_url based on the ID API version."
Steven Pisarski [Wed, 9 Aug 2017 20:23:13 +0000 (20:23 +0000)]
Merge "Reformat auth_url based on the ID API version."

6 years agoAdded test ability for 2 VMs on different networks to ping each other. 33/38933/1
spisarski [Tue, 8 Aug 2017 19:01:04 +0000 (13:01 -0600)]
Added test ability for 2 VMs on different networks to ping each other.

JIRA: SNAPS-48

Change-Id: I77973fef06343eb7108e998ea8e939c1f2d9d4a6
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Refactored neutron_utils#get_router_by_name() to get_router()"
Steven Pisarski [Tue, 8 Aug 2017 14:16:16 +0000 (14:16 +0000)]
Merge "Refactored neutron_utils#get_router_by_name() to get_router()"

6 years agoConfigure requirements for AAVMF(UEFI) with Cirros image on AArch64 83/38883/2
Delia Popescu [Tue, 8 Aug 2017 07:32:16 +0000 (10:32 +0300)]
Configure requirements for AAVMF(UEFI) with Cirros image on AArch64

Cirros image on AArch64 with AAVMF(UEFI) requires at least 256MB RAM.
The default 128MB was changed to 256MB.

Change-Id: I7414de519dcb53337f83690d1470ea672cec739b
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
JIRA: ARMBAND-279

6 years agoRefactored neutron_utils#get_router_by_name() to get_router() 59/38859/1
spisarski [Mon, 7 Aug 2017 16:30:29 +0000 (10:30 -0600)]
Refactored neutron_utils#get_router_by_name() to get_router()

Added a router_settings (RouterSettings) object parameter
in addition to router_name for more robust query options.

JIRA: SNAPS-163

Change-Id: I47672f531171d6ee0c90dabb6641640bf97c1d20
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactored neutron_utils#get_security_group() 79/38779/2
spisarski [Fri, 4 Aug 2017 20:57:08 +0000 (14:57 -0600)]
Refactored neutron_utils#get_security_group()

Added a sec_grp_settings (SecurityGroupSettings) object parameter
in addition to sec_grp_name for more robust query options.

JIRA: SNAPS-164

Change-Id: I8bb21ff9e5e6b1f532773ca01d37964f8b47b530
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Refactored neutron_utils#get_subnet_by_name() to get_subnet()"
Steven Pisarski [Mon, 7 Aug 2017 14:33:41 +0000 (14:33 +0000)]
Merge "Refactored neutron_utils#get_subnet_by_name() to get_subnet()"

6 years agoMerge "Refactor server retrieval API calls."
Steven Pisarski [Mon, 7 Aug 2017 14:33:29 +0000 (14:33 +0000)]
Merge "Refactor server retrieval API calls."

6 years agoMerge "Refactored port retrieval to include PortSettigs."
Steven Pisarski [Mon, 7 Aug 2017 14:33:18 +0000 (14:33 +0000)]
Merge "Refactored port retrieval to include PortSettigs."

6 years agoMerge "Delete 'default' security group associated to new projects."
Steven Pisarski [Mon, 7 Aug 2017 14:33:04 +0000 (14:33 +0000)]
Merge "Delete 'default' security group associated to new projects."

6 years agoAdd domain name when creating projects and users 17/38717/2
Linda Wang [Fri, 4 Aug 2017 02:08:04 +0000 (02:08 +0000)]
Add domain name when creating projects and users

Change-Id: Id06e20e3c87072531930130db66763f554b4649c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoRefactored neutron_utils#get_subnet_by_name() to get_subnet() 77/38777/1
spisarski [Thu, 3 Aug 2017 19:23:39 +0000 (13:23 -0600)]
Refactored neutron_utils#get_subnet_by_name() to get_subnet()

Renamed utility function and added a subnet_settings parameter to
hold a SubnetSettings object to help make the query more robust
by being able to leverage values on the settings object.

JIRA: SNAPS-165

Change-Id: I226a1217dc4ba7bb50f7d985ecfaf3b7bc4f610b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactor server retrieval API calls. 97/38697/1
spisarski [Thu, 3 Aug 2017 17:44:16 +0000 (11:44 -0600)]
Refactor server retrieval API calls.

Refactored nova_utils#get_servers_by_name() to get_server() and
include a VmInstSettings object in addition to the server_name
parameter as well as only returning one VmInst object.

JIRA: SNAPS-168

Change-Id: I30c22a36b07ce143ee8c1c76a77fd75f0062e4aa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactored port retrieval to include PortSettigs. 95/38695/1
spisarski [Thu, 3 Aug 2017 16:57:49 +0000 (10:57 -0600)]
Refactored port retrieval to include PortSettigs.

Refactored neutron_utils#get_port_by_name to get_port while
adding in a port_settings object for more robust query options.

JIRA: SNAPS-162

Change-Id: I01222ad344224db94615859448ad05d8d5bc0c30
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoDelete 'default' security group associated to new projects. 91/38691/2
spisarski [Thu, 3 Aug 2017 15:14:20 +0000 (09:14 -0600)]
Delete 'default' security group associated to new projects.

OpenStack can create a security group named 'default' each time a
new project/tenant has been created but is not cleaned up when the
project has been deleted. This patch adds this functionality into
OpenStackProject#clean() method.

Also added similar routine to KeystoneUtilsTests#tearDown() method.

JIRA: SNAPS-169

Change-Id: I29492ae2ddd82e7d59d09b9c4eb759be4835532a
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Refactor network retrieval API calls."
Steven Pisarski [Thu, 3 Aug 2017 14:23:55 +0000 (14:23 +0000)]
Merge "Refactor network retrieval API calls."

6 years agoMerge "Add domain name when creating projects and users"
Steven Pisarski [Thu, 3 Aug 2017 14:23:37 +0000 (14:23 +0000)]
Merge "Add domain name when creating projects and users"

6 years agoAdd domain name when creating projects and users 71/38571/4
Linda Wang [Wed, 2 Aug 2017 02:41:15 +0000 (02:41 +0000)]
Add domain name when creating projects and users

(spisarski)
Also clarified the difference between domain ID and name
Added helper methods and domain object for Domains

JIRA: FUNCTEST-858

Change-Id: Iccd7eef56713a4ad0c23232073f52bc71168bf5c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoRefactor network retrieval API calls. 47/38647/2
spisarski [Wed, 2 Aug 2017 19:19:58 +0000 (13:19 -0600)]
Refactor network retrieval API calls.

Refactored neutron_utils#get_network() to also accept a
NetworkSettings object for more robust queries in addition to
the old network_name parameter. Also refactored neutron_utils#
get_network_by_id to add in the ID to list_networks((**{'id': id)
and returning the first item contains the expected ID value.

JIRA: SNAPS-161

Change-Id: Ie670a442dd70633bbef7a1233e630672ebac6b0c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Changed heat_utils#get_stack_by_name to get_stack."
Steven Pisarski [Wed, 2 Aug 2017 15:35:13 +0000 (15:35 +0000)]
Merge "Changed heat_utils#get_stack_by_name to get_stack."

6 years agoFixed logging out the OSCreds. 23/38523/1
spisarski [Tue, 1 Aug 2017 13:43:27 +0000 (07:43 -0600)]
Fixed logging out the OSCreds.

Change-Id: Id5675ff37c1d7e98eceb923194f190e2d5bc1d4d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Changed keystone_utils#get_project to accept settings"
Steven Pisarski [Tue, 1 Aug 2017 13:34:39 +0000 (13:34 +0000)]
Merge "Changed keystone_utils#get_project to accept settings"

6 years agoMerge "Added image_settings parameter to get_image()."
Steven Pisarski [Tue, 1 Aug 2017 13:34:25 +0000 (13:34 +0000)]
Merge "Added image_settings parameter to get_image()."

6 years agoFixed failing router test on Aricent pod. 85/38485/1
spisarski [Mon, 31 Jul 2017 21:13:33 +0000 (15:13 -0600)]
Fixed failing router test on Aricent pod.

Removed project ID from network lookup for the router_external
network as the test test_create_router_admin_user_to_new_project()
as the OpenStackRouter object was including its own project ID to
the API call causing the network lookup to fail.
Note: this is the only pod where this bug has reared it's ugly head.

Change-Id: I159252b3f3c3bc418f9947710e9e97d8471ec538
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanged keystone_utils#get_project to accept settings 81/38481/1
spisarski [Mon, 31 Jul 2017 20:48:39 +0000 (14:48 -0600)]
Changed keystone_utils#get_project to accept settings

Added project_settings parameter to allow for more robust
queries based on the known settings as required.

JIRA: SNAPS-159

Change-Id: I56ecf0cc34bbb91c4cfe2afe83971b614ec80a39
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoReformat auth_url based on the ID API version. 63/38363/2
spisarski [Fri, 28 Jul 2017 20:41:25 +0000 (14:41 -0600)]
Reformat auth_url based on the ID API version.

No longer raising an OSCredsError when the auth_url does
not end with a 'v' + some number. Additionally, the auth_url
will be massaged to remove any 'v' + num from the end of
the URL and generate its own version value based on the ID
API version configured.

JIRA: SNAPS-144

Change-Id: I3a7844025324105576da59b1516d0f541281e6bf
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanged heat_utils#get_stack_by_name to get_stack. 67/38467/1
spisarski [Mon, 31 Jul 2017 18:26:19 +0000 (12:26 -0600)]
Changed heat_utils#get_stack_by_name to get_stack.

Added stack_settings parameter to allow for more robust
queries based on the known settings as required.

JIRA: SNAPS-158

Change-Id: I538826f822307365b1afe997b71280b9ea500eab
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded image_settings parameter to get_image(). 61/38461/1
spisarski [Mon, 31 Jul 2017 16:36:57 +0000 (10:36 -0600)]
Added image_settings parameter to get_image().

With the ImageSettings object, was able to add logic to
filter on the image format field in addition to the name.

JIRA: SNAPS-157

Change-Id: I6fc51a9d4d03dc9971005ee738e6592d8ed70485
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAttempt to fix domain support. 47/38347/5
spisarski [Fri, 28 Jul 2017 14:37:35 +0000 (08:37 -0600)]
Attempt to fix domain support.

The prior code treated *_domain_name & *_domain_id the same
where the ID was taken first and the name was used as the
fallback which was incorrect. This patch treats the name and
ID fields as separate members.

JIRA: SNAPS-154

Change-Id: I5219863de597c4db24579f4af74ece2d648b2b07
Signed-off-by: spisarski <s.pisarski@cablelabs.com>