snaps.git
6 years agoCorrect list of parameters 75/45775/1 opnfv-5.0.0
Cristina Pauna [Thu, 19 Oct 2017 08:28:28 +0000 (11:28 +0300)]
Correct list of parameters

CreateInstancePubPrivNetTests was moved to the openstack_staging_tests
suite but with the wrong list of parameters. This fix corrects that.

Change-Id: Id32cc19f2e6c4dfa5e0c07b83fd4911de208658c
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
6 years agoMove CreateInstancePubPrivNetTests test to staging 35/45235/1
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 agoIncrese ssh timeout in Ansible 09/44409/1
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>
(cherry picked from commit 440acd77fbda4cf944cc915bef4183935527f651)

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>
6 years agoMerge "Remove TODOs from create_router.py"
Steven Pisarski [Mon, 31 Jul 2017 13:53:46 +0000 (13:53 +0000)]
Merge "Remove TODOs from create_router.py"

6 years agoRemove TODOs from create_router.py 61/38361/1
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>
6 years agoRemoved floating IP list from OpenStackVmInstance. 57/38357/1
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>
6 years agoEnsure library and tests close all necessary resources. 93/38293/1
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>
6 years agoMerge "Changes to enable overriding the OSCreds for tests."
Steven Pisarski [Thu, 27 Jul 2017 15:21:30 +0000 (15:21 +0000)]
Merge "Changes to enable overriding the OSCreds for tests."

6 years agoMerge "Expand OpenStackSecurityGroup class tests."
Steven Pisarski [Thu, 27 Jul 2017 14:38:50 +0000 (14:38 +0000)]
Merge "Expand OpenStackSecurityGroup class tests."

6 years agoMerge "Expanded project creation tests and validation."
Steven Pisarski [Thu, 27 Jul 2017 14:38:41 +0000 (14:38 +0000)]
Merge "Expanded project creation tests and validation."

6 years agoMerge "Added configuration for keypair size."
Steven Pisarski [Thu, 27 Jul 2017 14:38:25 +0000 (14:38 +0000)]
Merge "Added configuration for keypair size."

6 years agoChanges to enable overriding the OSCreds for tests. 81/38281/1
spisarski [Thu, 27 Jul 2017 14:21:01 +0000 (08:21 -0600)]
Changes to enable overriding the OSCreds for tests.

JIRA: FUNCTEST-847

Change-Id: I36d1add82cdb13a2c8252495fd6df8e05dab837b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoUpdated docs for the OSCreds class 27/38227/1
spisarski [Wed, 26 Jul 2017 21:20:53 +0000 (15:20 -0600)]
Updated docs for the OSCreds class

JIRA: SNAPS-122

Change-Id: Id57f8830f7e87c513179de307130c76cb28f22a8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoExpand OpenStackSecurityGroup class tests. 25/38225/1
spisarski [Wed, 26 Jul 2017 21:12:16 +0000 (15:12 -0600)]
Expand OpenStackSecurityGroup class tests.

Improved validation and added another test case.

JIRA: SNAPS-148

Change-Id: I249ac0fcce502dd91c82cc2bfb54ca22da5e33bb
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoExpanded project creation tests and validation. 19/38219/1
spisarski [Wed, 26 Jul 2017 17:43:04 +0000 (11:43 -0600)]
Expanded project creation tests and validation.

JIRA: SNAPS-147

Change-Id: I16eb1ab9f976daf4195a47b04ce5b8b8ba931497
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoComment housekeeping... 97/38197/1
spisarski [Wed, 26 Jul 2017 15:23:01 +0000 (09:23 -0600)]
Comment housekeeping...

Change-Id: I917470cb4bd29f93512cce7eead89824f2326678
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemoved TODO from comment about the physical network value. 95/38195/1
spisarski [Wed, 26 Jul 2017 15:10:32 +0000 (09:10 -0600)]
Removed TODO from comment about the physical network value.

JIRA: SNAPS-123

Change-Id: Ie4085a35816a78cb5b4b910d52ddccaf6b102b1f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemoved TODO comment from lanucher app. 93/38193/1
spisarski [Wed, 26 Jul 2017 14:58:31 +0000 (08:58 -0600)]
Removed TODO comment from lanucher app.

Determined that the potential issue was not one.

JIRA: SNAPS-123

Change-Id: I171f0f959e77489c24b5c9ab6e225a129ff1cc93
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemoved TODO comment from sample playbook. 91/38191/1
spisarski [Wed, 26 Jul 2017 14:56:01 +0000 (08:56 -0600)]
Removed TODO comment from sample playbook.

Change-Id: I124bc707dfa18fb0076eb9b070b3f1f4bf0b7172
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded configuration for keypair size. 89/38189/1
spisarski [Wed, 26 Jul 2017 14:50:27 +0000 (08:50 -0600)]
Added configuration for keypair size.

Removed hardcoded key byte value of 1024 and added the abiltiy
for the user to define their key size.

JIRA: SNAPS-20

Change-Id: I81654420e558aae8a03bed902bb8be8f025b992c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded region support. 05/38105/2
spisarski [Tue, 25 Jul 2017 20:40:09 +0000 (14:40 -0600)]
Added region support.

Added region_name attribute to OSCreds
Added region_name to neutron, nova, glance, heat, and keystone
client retrieval
Fixed false positive heat connection test.

JIRA: SNAPS-50 & SNAPS-146

Change-Id: If3471ed7a2bdd0e6bfc281455c996386d031235d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added validation router is attached to the external network."
Steven Pisarski [Tue, 25 Jul 2017 13:22:36 +0000 (13:22 +0000)]
Merge "Added validation router is attached to the external network."

6 years agoMerge "Added keypair config for key file deletion."
Steven Pisarski [Tue, 25 Jul 2017 13:22:27 +0000 (13:22 +0000)]
Merge "Added keypair config for key file deletion."

6 years agoMerge "Updated docs."
Steven Pisarski [Tue, 25 Jul 2017 13:22:17 +0000 (13:22 +0000)]
Merge "Updated docs."

6 years agoAdded validation router is attached to the external network. 19/38019/1
spisarski [Mon, 24 Jul 2017 21:34:44 +0000 (15:34 -0600)]
Added validation router is attached to the external network.

Verifying that the external network's ID is the same as the 'network_id'
value in router.external_gateway_info.

JIRA: SNAPS-145

Change-Id: I60795c69679f6e439e6e102115e228a65572db52
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded keypair config for key file deletion. 13/38013/1
spisarski [Mon, 24 Jul 2017 21:15:51 +0000 (15:15 -0600)]
Added keypair config for key file deletion.

Added KeypairSetting attribute named 'delete_on_clean' which is used
to override the keypair creator's logic for deleting its associated
public/private key files.

JIRA: SNAPS-105

Change-Id: I337db99daa6bf7d4b42e8729a92a4baef5c73140
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoUpdated docs. 11/38011/1
spisarski [Mon, 24 Jul 2017 20:10:26 +0000 (14:10 -0600)]
Updated docs.

JIRA: SNAPS-122

Change-Id: I499971ac47c5d6b15d7895f1a7abc3a3e8290b3b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFixed problems when setting the OpenStack project ID. 05/38005/1
spisarski [Mon, 24 Jul 2017 17:27:59 +0000 (11:27 -0600)]
Fixed problems when setting the OpenStack project ID.

There were several calls to retrieve the project ID that required
named parameters which was causing the utility function to always
return None. Additionally, when creating the dict() required by the
Neutron create API 'body' parameter key 'project_id' is not supported
and still uses 'tenant_id'.

As these problems should have been found earlier, this patch also
extends the tests for networks, subnets, ports, and security groups
to use 'tenant_id' rather than 'project_id'.

JIRA: SNAPS-143

Change-Id: Ic69e56145ea6070718d821edd22a1d0f9970995d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Default OSCreds cacert attribute to False."
Steven Pisarski [Mon, 24 Jul 2017 15:24:06 +0000 (15:24 +0000)]
Merge "Default OSCreds cacert attribute to False."

6 years agoMerge "Fixed potential problems with image creation exceptions."
Steven Pisarski [Mon, 24 Jul 2017 15:11:10 +0000 (15:11 +0000)]
Merge "Fixed potential problems with image creation exceptions."

6 years agoMerge "Remove temporary directory created for tests."
Steven Pisarski [Mon, 24 Jul 2017 15:10:42 +0000 (15:10 +0000)]
Merge "Remove temporary directory created for tests."

6 years agoMerge "Created new exceptions for security group settings"
Steven Pisarski [Mon, 24 Jul 2017 15:10:18 +0000 (15:10 +0000)]
Merge "Created new exceptions for security group settings"

6 years agoMerge "Created new classes RouterSettingsError & RouterCreationError."
Steven Pisarski [Mon, 24 Jul 2017 15:09:03 +0000 (15:09 +0000)]
Merge "Created new classes RouterSettingsError & RouterCreationError."

6 years agoMerge "Created new class ProjectSettingsError."
Steven Pisarski [Mon, 24 Jul 2017 15:08:30 +0000 (15:08 +0000)]
Merge "Created new class ProjectSettingsError."

6 years agoFixed potential problems with image creation exceptions. 73/37873/2
spisarski [Thu, 20 Jul 2017 17:08:31 +0000 (11:08 -0600)]
Fixed potential problems with image creation exceptions.

With Glance client v2, it appears that rolling back on image
creation error was sending in an OpenStack image object into
the delete_image() function where it should have been expecting
a SNAPS-OO Image domain object.
Also added log messages to help expose other potential issues
if this patch does not address the root problem at hand.

JIRA: SNAPS-139

Change-Id: I52591ff1d055ddf4eacbbc49b3bc8718285edcfa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Refactor glance_utils.py v1 image creation."
Steven Pisarski [Mon, 24 Jul 2017 15:03:23 +0000 (15:03 +0000)]
Merge "Refactor glance_utils.py v1 image creation."

6 years agoAdded and improved flavor creation tests. 53/37953/1
spisarski [Sat, 22 Jul 2017 00:45:31 +0000 (18:45 -0600)]
Added and improved flavor creation tests.

JIRA: SNAPS-142

Change-Id: I9c3cf5202a551f7b137648e95359f0adeb831101
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRefactor glance_utils.py v1 image creation. 47/37947/1
spisarski [Fri, 21 Jul 2017 21:59:22 +0000 (15:59 -0600)]
Refactor glance_utils.py v1 image creation.

Replace 4 blocks using named parameters with on call to
create() with kwargs.

JIRA: SNAPS-141

Change-Id: I1268877a8524bb25a7f605f583ace9602f5a9c1b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemove temporary directory created for tests. 39/37939/1
spisarski [Fri, 21 Jul 2017 17:37:15 +0000 (11:37 -0600)]
Remove temporary directory created for tests.

JIRA: SNAPS-140

Change-Id: I9e15ca43f644cc86539bb09a32a59801eb689a29
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new classes RouterSettingsError & RouterCreationError. 31/37931/2
spisarski [Fri, 21 Jul 2017 14:18:11 +0000 (08:18 -0600)]
Created new classes RouterSettingsError & RouterCreationError.

Raising RouterSettingsError in RouterSettings and RouterCreationError in
OpenStackRouter instead of Exception.

JIRA: SNAPS-136

Change-Id: I3ba4824ea80ccfc07b1f15959898936d51bca1de
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoDefault OSCreds cacert attribute to False. 37/37937/3
spisarski [Fri, 21 Jul 2017 15:43:08 +0000 (09:43 -0600)]
Default OSCreds cacert attribute to False.

The default of True causes more problems than False when
dealing with unsecure and secure (HTTPS) API calls.
This was issue was found while testing against the new OPNFV
CI test pod running Pike.

JIRA: SNAPS-80

Change-Id: I819b4f64fa637bb7ce53c58a7a1164600ff6a3b9
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new exceptions for security group settings 35/37935/1
spisarski [Fri, 21 Jul 2017 14:27:22 +0000 (08:27 -0600)]
Created new exceptions for security group settings

Raising SecurityGroupSettingsError in SecurityGroupSettings
and SecurityGroupRuleSettingsError in SecurityGroupRuleSettings
instead of Exception.

JIRA: SNAPS-137

Change-Id: I959ffe9a247dc9adffbef460119ba94ad86fd3f0
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class ProjectSettingsError. 29/37929/1
spisarski [Fri, 21 Jul 2017 14:08:30 +0000 (08:08 -0600)]
Created new class ProjectSettingsError.

Raising ProjectSettingsError in ProjectSettings instead of Exception.

JIRA: SNAPS-135

Change-Id: I5169dd196775453466ea8d7fe9fa0c8d82b2382a
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Created new exception classes for networks."
Steven Pisarski [Fri, 21 Jul 2017 13:34:36 +0000 (13:34 +0000)]
Merge "Created new exception classes for networks."

6 years agoMerge "Created new class KeypairSettingsError."
Steven Pisarski [Fri, 21 Jul 2017 13:34:27 +0000 (13:34 +0000)]
Merge "Created new class KeypairSettingsError."

6 years agoMerge "Changes required for running CI tests (Pike pod)."
Steven Pisarski [Fri, 21 Jul 2017 13:34:14 +0000 (13:34 +0000)]
Merge "Changes required for running CI tests (Pike pod)."

6 years agoCreated new exception classes for networks. 83/37883/1
spisarski [Thu, 20 Jul 2017 21:15:55 +0000 (15:15 -0600)]
Created new exception classes for networks.

Raising NetworkSettingsError in NetworkSettings, SubnetSettingsError in
SubnetSettings and PortSettingsError in PortSettings instead of Exception.

JIRA: SNAPS-134

Change-Id: I724d9e115e41767a9e3596d85db2a20ee8de5f73
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges required for running CI tests (Pike pod). 91/37691/8
spisarski [Tue, 18 Jul 2017 15:37:07 +0000 (09:37 -0600)]
Changes required for running CI tests (Pike pod).

Added support for HTTPS proxies
HTTPS OSCreds settings for both RC file and os_env.yaml
OSCreds 'cacert' T/F and cert file path support
OSCreds API version support cleanup including the addition
of heat
Added more OSCreds test validations
Disabling of InsecureRequestWarning
PEP8 line width refactoring
heat_utils_test.py fix when stack status is error
test suite for CI
removed default flavor metadata of mem_page_size: Any to None

JIRA: SNAPS-80

Change-Id: I333e83ca79d7403bf43a9b74da4c072b4da976ba
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class KeypairSettingsError. 75/37875/1
spisarski [Thu, 20 Jul 2017 17:20:13 +0000 (11:20 -0600)]
Created new class KeypairSettingsError.

Raising KeypairSettingsError in KeypairSettings instead of Exception.

JIRA: SNAPS-133

Change-Id: Ie67f1da429f7d7a5e1c71c4f2f30bf9d11bbe209
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Created custom exceptions for VM instance creation."
Steven Pisarski [Thu, 20 Jul 2017 15:57:05 +0000 (15:57 +0000)]
Merge "Created custom exceptions for VM instance creation."

6 years agoMerge "Created new class FlavorSettingsError."
Steven Pisarski [Thu, 20 Jul 2017 15:56:58 +0000 (15:56 +0000)]
Merge "Created new class FlavorSettingsError."

6 years agoFixed logger name. 67/37867/1
spisarski [Thu, 20 Jul 2017 14:42:29 +0000 (08:42 -0600)]
Fixed logger name.

Logger was named incorrectly causing confusion.

Change-Id: I2e2fdae3a96d57036ea7d0aea8e2c2943f09de70
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated custom exceptions for VM instance creation. 99/37699/1
spisarski [Tue, 18 Jul 2017 17:22:03 +0000 (11:22 -0600)]
Created custom exceptions for VM instance creation.

Created VmInstanceSettingsError for errors creating VmInstanceSettings
objects
Created FloatingIpSettingsError for errors creating FloatingIpSettings
objects
Created VmInstanceCreationError for errors creating VM instances

JIRA: SNAPS-132

Change-Id: I588ae34bf066c8440755a8bf4f3721b946533d99
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class FlavorSettingsError. 95/37695/1
spisarski [Tue, 18 Jul 2017 16:09:36 +0000 (10:09 -0600)]
Created new class FlavorSettingsError.

Raising FlavorSettingsError in FlavorSettings instead of Exception.

JIRA: SNAPS-131

Change-Id: I1cbd077f97bd9294e7bb87fc51c4125d0ef23f42
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added proper assertion config NIC test."
Steven Pisarski [Tue, 18 Jul 2017 13:48:52 +0000 (13:48 +0000)]
Merge "Added proper assertion config NIC test."

6 years agoMerge "Created new class AnsibleException."
Steven Pisarski [Tue, 18 Jul 2017 13:48:30 +0000 (13:48 +0000)]
Merge "Created new class AnsibleException."

6 years agoMerge "Created new class NovaException."
Steven Pisarski [Tue, 18 Jul 2017 13:48:14 +0000 (13:48 +0000)]
Merge "Created new class NovaException."

6 years agoMerge "Created new class NeutronException."
Steven Pisarski [Tue, 18 Jul 2017 13:47:58 +0000 (13:47 +0000)]
Merge "Created new class NeutronException."

6 years agoCreated new class AnsibleException. 41/37641/1
spisarski [Mon, 17 Jul 2017 16:21:02 +0000 (10:21 -0600)]
Created new class AnsibleException.

Raising AnsibleException in ansible_utils.py instead of Exception.

JIRA: SNAPS-130

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