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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Steven Pisarski [Thu, 9 Nov 2017 17:46:41 +0000 (17:46 +0000)]
Merge "Initial patch to begin adding support for Magnum."
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>
Steven Pisarski [Thu, 9 Nov 2017 15:55:58 +0000 (15:55 +0000)]
Merge "Apply upper-constraints when testing SNAPS"
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>
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>
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>
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>
Steven Pisarski [Mon, 6 Nov 2017 15:04:22 +0000 (15:04 +0000)]
Merge "Added logging when a heat stack fails."
Steven Pisarski [Mon, 6 Nov 2017 14:43:50 +0000 (14:43 +0000)]
Merge "Added method to OpenStackHeatStack to return OpenStackRouter objects."
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>
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>
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>
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>
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>
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>
Steven Pisarski [Mon, 30 Oct 2017 15:24:00 +0000 (15:24 +0000)]
Merge "Return OpenStackVolume and OpenStackVolumeType instances from heat."
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>
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>
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>
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>
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>
Steven Pisarski [Mon, 23 Oct 2017 16:44:31 +0000 (16:44 +0000)]
Merge "Added ext_net_name into template substitution variable."
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>
Steven Pisarski [Mon, 23 Oct 2017 14:55:20 +0000 (14:55 +0000)]
Merge "Third patch for volume support."
Steven Pisarski [Fri, 20 Oct 2017 15:09:38 +0000 (15:09 +0000)]
Merge "Add reason for stack creation failure"
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>
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>
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>
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>
Steven Pisarski [Mon, 16 Oct 2017 13:40:35 +0000 (13:40 +0000)]
Merge "Improved creator/state machine classes class hierarchy."
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>
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>
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>
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>
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>
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>
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>
Steven Pisarski [Thu, 7 Sep 2017 18:46:32 +0000 (18:46 +0000)]
Merge "Added method to return OpenStackVmInstance from Heat."
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>
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>
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>
Steven Pisarski [Thu, 24 Aug 2017 13:51:49 +0000 (13:51 +0000)]
Merge "Grant the new user to os_creds.project_name"
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>
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>
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>
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>
Steven Pisarski [Fri, 11 Aug 2017 14:47:56 +0000 (14:47 +0000)]
Merge "Scripts to allow Jenkins to run the SNAPS-OO tests."
Steven Pisarski [Fri, 11 Aug 2017 14:46:05 +0000 (14:46 +0000)]
Merge "SNAPS Stack creators can now return SNAPS network creators."
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>
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>
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>
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>
Steven Pisarski [Wed, 9 Aug 2017 20:23:13 +0000 (20:23 +0000)]
Merge "Reformat auth_url based on the ID API version."
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>
Steven Pisarski [Tue, 8 Aug 2017 14:16:16 +0000 (14:16 +0000)]
Merge "Refactored neutron_utils#get_router_by_name() to get_router()"
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
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>
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>
Steven Pisarski [Mon, 7 Aug 2017 14:33:41 +0000 (14:33 +0000)]
Merge "Refactored neutron_utils#get_subnet_by_name() to get_subnet()"
Steven Pisarski [Mon, 7 Aug 2017 14:33:29 +0000 (14:33 +0000)]
Merge "Refactor server retrieval API calls."
Steven Pisarski [Mon, 7 Aug 2017 14:33:18 +0000 (14:33 +0000)]
Merge "Refactored port retrieval to include PortSettigs."
Steven Pisarski [Mon, 7 Aug 2017 14:33:04 +0000 (14:33 +0000)]
Merge "Delete 'default' security group associated to new projects."
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>
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>
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>
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>
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>
Steven Pisarski [Thu, 3 Aug 2017 14:23:55 +0000 (14:23 +0000)]
Merge "Refactor network retrieval API calls."
Steven Pisarski [Thu, 3 Aug 2017 14:23:37 +0000 (14:23 +0000)]
Merge "Add domain name when creating projects and users"
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>
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>
Steven Pisarski [Wed, 2 Aug 2017 15:35:13 +0000 (15:35 +0000)]
Merge "Changed heat_utils#get_stack_by_name to get_stack."
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>
Steven Pisarski [Tue, 1 Aug 2017 13:34:39 +0000 (13:34 +0000)]
Merge "Changed keystone_utils#get_project to accept settings"
Steven Pisarski [Tue, 1 Aug 2017 13:34:25 +0000 (13:34 +0000)]
Merge "Added image_settings parameter to get_image()."
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>
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>
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>
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>
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>
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>
Steven Pisarski [Mon, 31 Jul 2017 13:53:46 +0000 (13:53 +0000)]
Merge "Remove TODOs from create_router.py"
spisarski [Fri, 28 Jul 2017 19:48:06 +0000 (13:48 -0600)]
Remove TODOs from create_router.py
Determined not to support the optional router attributes:
'enable_snat' & 'external_fixed_ips' at this time.
JIRA: SNAPS-150
Change-Id: I68445fb055668f4cb5f2a2ff80499da0f4160043
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Fri, 28 Jul 2017 16:40:49 +0000 (10:40 -0600)]
Removed floating IP list from OpenStackVmInstance.
There was a list and dict both holding the same floating IP
objects which has been problematic especially when trying
to initialize the object with a VM instance that already
exists.
JIRA: SNAPS-149
Change-Id: If4af6dfef04a40b9c8cd7a8add484c9ec03f1ef8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Thu, 27 Jul 2017 16:27:14 +0000 (10:27 -0600)]
Ensure library and tests close all necessary resources.
The SNAPS-OO library and tests had left open files, ssh, and scp
connections. These have all now been wrapped with try/finally
blocks.
JIRA: SNAPS-152
Change-Id: I43e09978b5c075bd78ff3279c0799556b8758878
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Steven Pisarski [Thu, 27 Jul 2017 15:21:30 +0000 (15:21 +0000)]
Merge "Changes to enable overriding the OSCreds for tests."
Steven Pisarski [Thu, 27 Jul 2017 14:38:50 +0000 (14:38 +0000)]
Merge "Expand OpenStackSecurityGroup class tests."