snaps.git
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 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>
6 years agoAdded proper assertion config NIC test. 39/37639/1
spisarski [Mon, 17 Jul 2017 16:14:23 +0000 (10:14 -0600)]
Added proper assertion config NIC test.

The test that exercises the OpenStackVmInstance class config_nic()
now checks the Ansible return code.

JIRA: SNAPS-124

Change-Id: I7840cd53eea2eacf7952d14be30870c8fa3aeab8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class NovaException. 37/37637/1
spisarski [Mon, 17 Jul 2017 15:28:24 +0000 (09:28 -0600)]
Created new class NovaException.

Raising NovaException in nova_utils.py instead of Exception.

Change-Id: I9564e43352114df18bccc794a5cd57e20880085f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoLast task necessary to stop users from easily obtaining OS objects. 41/37541/2
spisarski [Fri, 14 Jul 2017 19:28:37 +0000 (13:28 -0600)]
Last task necessary to stop users from easily obtaining OS objects.

Changed external interfaces still exposing OpenStack created APIs to
either return SNAPS-OO domain objects or objects contained on the
OpenStack generated objects as to not leak implementation details that
would eventually break the library when new API versions are released.

JIRA: SNAPS-125

Change-Id: Iab6d6d298c4c5da68daed4b1b252313a1595a295
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Created new class KeystoneException"
Steven Pisarski [Mon, 17 Jul 2017 15:14:04 +0000 (15:14 +0000)]
Merge "Created new class KeystoneException"

6 years agoCreated new class KeystoneException 47/37547/2
spisarski [Fri, 14 Jul 2017 21:44:23 +0000 (15:44 -0600)]
Created new class KeystoneException

Raising KeystoneException in keystone_utils.py instead of Exception

JIRA: SNAPS-127

Change-Id: Ife37c9df79c5c85dfdb07e239268c05b7c9a91bd
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class GlanceException. 45/37545/2
spisarski [Fri, 14 Jul 2017 21:33:17 +0000 (15:33 -0600)]
Created new class GlanceException.

Raising GlanceException in glance_utils.py instead of Exception.

JIRA: SNAPS-126

Change-Id: I11b2d9a1ff439c1a4a52b4be30584fe8af877c73
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated new class NeutronException. 35/37635/1
spisarski [Mon, 17 Jul 2017 15:09:12 +0000 (09:09 -0600)]
Created new class NeutronException.

Raising NeutronException in neutron_utils.py instead of Exception.

JIRA: SNAPS-128

Change-Id: I567db38a5dfcaae9bbfc6c74558521b0e28d9d46
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain classes for networks and subnets. 39/37439/1
spisarski [Thu, 13 Jul 2017 20:34:01 +0000 (14:34 -0600)]
Created domain classes for networks and subnets.

Created Network and Subnet domain classes so neutron_utils.py functions
returning these types of objects will not be leaking out implementation
details as each API version can change these data structures which is now
being handled by the SNAPS neutron utility.

JIRA: SNAPS-113

Change-Id: Id95dd0f8c2618c20a1a73a428abb95686dfa8251
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Created domain class for routers."
Steven Pisarski [Thu, 13 Jul 2017 19:55:08 +0000 (19:55 +0000)]
Merge "Created domain class for routers."

6 years agoCreated domain class for routers. 13/37413/1
spisarski [Thu, 13 Jul 2017 15:02:40 +0000 (09:02 -0600)]
Created domain class for routers.

Created Router domain class so neutron_utils.py functions returning
router objects will not be leaking out implementation details as each
API version can change these data structures and this should all be
handled by the SNAPS neutron utility.

JIRA: SNAPS-115 & SNAPS-14

Change-Id: Ib6d36a735d835a6ed4ede489b14e33a261458fed
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain class for roles. 97/37397/1
spisarski [Thu, 13 Jul 2017 14:15:40 +0000 (08:15 -0600)]
Created domain class for roles.

Create Role domain class so keystone_utils.py functions returning
role objects will not be leaking out implementation details as each
API version can change these data structures and this should all be
handled by the SNAPS neutron utility.

JIRA: SNAPS-119

Change-Id: I6918a45c1c414ee6b104ec36e63c540d6f656e30
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain class for ports. 73/37273/2
spisarski [Wed, 12 Jul 2017 17:14:57 +0000 (11:14 -0600)]
Created domain class for ports.

Create Port domain class so neutron_utils.py functions returning
port objects will not be leaking out implementation details as each
API version can change these data structures and this should all be
handled by the SNAPS neutron utility.

JIRA: SNAPS-118

Change-Id: If031a094a9da284e2838691c3b3490359f710c61
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCrteated domain class for projects. 65/37265/3
spisarski [Wed, 12 Jul 2017 14:34:14 +0000 (08:34 -0600)]
Crteated domain class for projects.

Created Project domain class so keystone_utils.py functions returning
project objects will not be leaking out implementation details as each
API version can change these data structures and this should all be
handled by the SNAPS keystone utility.

JIRA: SNAPS-114

Change-Id: Id7bce929604278c8228622161eba1838ecd5e067
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFix the unittest of get_endpoint 71/37171/2
Linda Wang [Tue, 11 Jul 2017 10:16:59 +0000 (10:16 +0000)]
Fix the unittest of get_endpoint

The endpoints according to interface may be same or different
on different deployment, which depends on the configuration
during the deployment.

Change-Id: Id2127a3c3fe0eca4b10a98c548d10391912f9610
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Created domain classes for security groups."
Steven Pisarski [Wed, 12 Jul 2017 13:24:02 +0000 (13:24 +0000)]
Merge "Created domain classes for security groups."

6 years agoMerge "Added ability to add a user to a role."
Steven Pisarski [Wed, 12 Jul 2017 13:23:32 +0000 (13:23 +0000)]
Merge "Added ability to add a user to a role."

6 years agoDemo script to show how to use the library. 11/37211/1
spisarski [Tue, 11 Jul 2017 20:56:39 +0000 (14:56 -0600)]
Demo script to show how to use the library.

Change-Id: Ibe491b6e0f64aa751baf4006d6e3df1e571961d8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain classes for security groups. 03/37203/2
spisarski [Tue, 11 Jul 2017 18:08:53 +0000 (12:08 -0600)]
Created domain classes for security groups.

Created SecurityGroup and SecurityGroupRule classes so the neutron_utils
for security groups will be returning objects of these types instead of
the OpenStack objects returned by the API calls.

JIRA: SNAPS-116

Change-Id: I76ed1f85f7d54b984fc6f6ac28cee7680a1109e5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded ability to add a user to a role. 79/37079/6
spisarski [Fri, 7 Jul 2017 21:26:24 +0000 (15:26 -0600)]
Added ability to add a user to a role.

This functionality was requested as the SNAPS-OO integration tests
currently have the ability to run these tests in custom projects with
custom users and certain OpenStack installations are not allowing
some of the integration tests functions unless the new user has been
added to the 'admin' role.

Change-Id: I255cfa089a14bbcb434a6cd33b2a1dfae66206b5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Allow ssh when testing via ansible"
Steven Pisarski [Tue, 11 Jul 2017 13:26:43 +0000 (13:26 +0000)]
Merge "Allow ssh when testing via ansible"

6 years agoAllow ssh when testing via ansible 37/37137/1
Cédric Ollivier [Mon, 10 Jul 2017 22:03:28 +0000 (00:03 +0200)]
Allow ssh when testing via ansible

Change-Id: I5a518242fec9c3434040bbfa0d725e16068cff25
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFixed stack create status check on error. 35/37135/1
spisarski [Mon, 10 Jul 2017 21:34:40 +0000 (15:34 -0600)]
Fixed stack create status check on error.

Was checking for the status string of "ERROR" when "CREATE_FAILED"
should have been used. This bug caused the heat stack test to hang
instead of raising an exception.

Change-Id: I91e04d58bed083fd8b93ec908c766c0ddc4828de
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Changed validation logic to check for DHCP lease before SSH connection."
Steven Pisarski [Mon, 10 Jul 2017 18:36:54 +0000 (18:36 +0000)]
Merge "Changed validation logic to check for DHCP lease before SSH connection."

6 years agoChanged validation logic to check for DHCP lease before SSH connection. 27/37127/1
spisarski [Mon, 10 Jul 2017 15:51:28 +0000 (09:51 -0600)]
Changed validation logic to check for DHCP lease before SSH connection.

Change-Id: Ifa5c481963d0a9607107465915eb7ab12501e21d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFix get_endpoint 23/37023/5
Linda Wang [Thu, 6 Jul 2017 16:01:32 +0000 (16:01 +0000)]
Fix get_endpoint

One specific service type has the same endpoint url if interface is admin
or internal, while it is different from that with public interface, except
the admin and internal endpoint url for service identity has same ip but
different ports.

Change-Id: I19c260222286d8b4aa3f0d3b7d273e192b13a96b
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoCreated domain object for users. 35/37035/2
spisarski [Thu, 6 Jul 2017 20:28:49 +0000 (14:28 -0600)]
Created domain object for users.

OpenStack implementation details were leaking out into the
user creator.

JIRA: SNAPS-117

Change-Id: I67c77c75055b37819512d1e7712925b839fbc047
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain object for keypairs. 33/37033/3
spisarski [Thu, 6 Jul 2017 20:03:54 +0000 (14:03 -0600)]
Created domain object for keypairs.

OpenStack implementation details were leaking out into the
keypair creator.

JIRA: SNAPS-112

Change-Id: Idd22ca9f8ebec7b21c337ca003e01169efec34cb
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Created domain object for flavors."
Steven Pisarski [Fri, 7 Jul 2017 13:56:37 +0000 (13:56 +0000)]
Merge "Created domain object for flavors."

6 years agoCompleted tests for creating networks of different types. 37/37037/1
spisarski [Thu, 6 Jul 2017 21:03:35 +0000 (15:03 -0600)]
Completed tests for creating networks of different types.

Change-Id: I33601da3f51d7acc60bd646e1d783a07afd8ea45
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreated domain object for flavors. 29/37029/2
spisarski [Thu, 6 Jul 2017 19:09:46 +0000 (13:09 -0600)]
Created domain object for flavors.

OpenStack implementation details were leaking out into the
flavor creator.

JIRA: SNAPS-111

Change-Id: I59a77d02e30065a7f4560e74295b2084a83686df
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded support for using '~' for SSH key location. 27/37027/1
spisarski [Thu, 6 Jul 2017 17:58:52 +0000 (11:58 -0600)]
Added support for using '~' for SSH key location.

While testing changes, fixed problems found with querying for
floating IPs which also required adding network data to the
VMInst domain object.

JIRA: SNAPS-85

Change-Id: I0ecf3a6885ce84fe14c4a6db09269c56dc0ad9fc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMaking test user password dynamic for testing against secure pods. 81/36981/1
spisarski [Wed, 5 Jul 2017 17:35:13 +0000 (11:35 -0600)]
Making test user password dynamic for testing against secure pods.

Change-Id: I7c281062fc89a2ff4721e6bee9e90042c59273c5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Refactor OSCreds to leverage kwargs instead of named parameters."
Steven Pisarski [Wed, 5 Jul 2017 17:08:43 +0000 (17:08 +0000)]
Merge "Refactor OSCreds to leverage kwargs instead of named parameters."

6 years agoRefactor OSCreds to leverage kwargs instead of named parameters. 63/36663/7
spisarski [Wed, 28 Jun 2017 15:20:13 +0000 (09:20 -0600)]
Refactor OSCreds to leverage kwargs instead of named parameters.

JIRA: SNAPS-109

Change-Id: I423ede964cce9fc3b4e5b27f1e8f0dd7603d9ff1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Add a warning of keypair creation"
Steven Pisarski [Wed, 5 Jul 2017 13:57:58 +0000 (13:57 +0000)]
Merge "Add a warning of keypair creation"

6 years agoAdd a warning of keypair creation 31/36831/2
boucherv [Sun, 2 Jul 2017 14:26:57 +0000 (16:26 +0200)]
Add a warning of keypair creation

Put a warning if the public key already exist in OpenStack
but the private key file is not found

Change-Id: Ie2dc5b9f6a6abb0831e1826130d5c283cf3f34ec
Signed-off-by: boucherv <valentin.boucher@orange.com>
6 years agoSync requirements.txt with OpenStack (novaclient) 91/36791/1
Cédric Ollivier [Fri, 30 Jun 2017 09:03:55 +0000 (11:03 +0200)]
Sync requirements.txt with OpenStack (novaclient)

It completes "Use neutron to create floating IPs" [1]

[1] https://gerrit.opnfv.org/gerrit/#/c/36389/

Change-Id: I11c591d86509fa41b4b0c4a7a758ff0ceed321c2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFixed tests to delete security groups. 53/36753/1
spisarski [Thu, 29 Jun 2017 21:25:06 +0000 (15:25 -0600)]
Fixed tests to delete security groups.

Change-Id: I140618a310bae050bea29df665b98881c6052980
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Changed credentials for deploying heat templates."
Steven Pisarski [Thu, 29 Jun 2017 17:21:44 +0000 (17:21 +0000)]
Merge "Changed credentials for deploying heat templates."

6 years agoChanged credentials for deploying heat templates. 41/36741/1
spisarski [Thu, 29 Jun 2017 17:15:37 +0000 (11:15 -0600)]
Changed credentials for deploying heat templates.

The old credentials had been working on other pods but are not working
with our latest deployed by Kolla. This change does not affect any of
the functionality included in the tests. It simply takes the administrative
user credentials and changes the project to the newly created one.

Change-Id: I76c605797b68f902f2ee5c679bd5b8a50c48a501
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Fixed test to not download images when configured with a disk file path."
Steven Pisarski [Thu, 29 Jun 2017 14:06:51 +0000 (14:06 +0000)]
Merge "Fixed test to not download images when configured with a disk file path."

6 years agoFIX mistake in import keypair 21/36721/1
boucherv [Thu, 29 Jun 2017 12:39:41 +0000 (14:39 +0200)]
FIX mistake in import keypair

Change-Id: I3d0a3111efcb4200c9b867663a45c07a3b47c09d
Signed-off-by: boucherv <valentin.boucher@orange.com>
6 years agoFixed test to not download images when configured with a disk file path. 65/36665/1
spisarski [Wed, 28 Jun 2017 15:56:48 +0000 (09:56 -0600)]
Fixed test to not download images when configured with a disk file path.

JIRA: FUNCTEST-809

Change-Id: I078578ba9881eeeb8942d22cb342e87e17f6f879
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded offline test support to NovaUtilsInstanceTests missed initially. 05/36605/1
spisarski [Tue, 27 Jun 2017 18:19:30 +0000 (12:19 -0600)]
Added offline test support to NovaUtilsInstanceTests missed initially.

JIRA: FUNCTEST-809

Change-Id: I3a54af6fc64f93a72059d0ff205024fa765ceb52
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoEnable snaps work using public endpoint 41/36441/3
Linda Wang [Sat, 24 Jun 2017 07:42:20 +0000 (07:42 +0000)]
Enable snaps work using public endpoint

When functest is not run on jumpserver but on other external host without
admin network, snaps failed to connect the admin endpoint. So running
snaps tests using public endpoint should be allowed.

JIRA: SNAPS-110

Change-Id: I8ca8d8c48330b5f427568d3d5fe942f6f2ca9ea9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoUse neutron to create floating IPs. 89/36389/4
spisarski [Thu, 22 Jun 2017 18:43:09 +0000 (12:43 -0600)]
Use neutron to create floating IPs.

This patch moves the floating IP creation out of nova and into neutron.
Other changes include the use of domain objects for VM and Floating IP
instances, addition of new nova_utils tests to exercise the create
server functionality, and more PEP8 compliance.

JIRA: SNAPS-92

Change-Id: I16c12b26b56008901633e90ae307586ad2045f9b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoEnable https for Openstack in Snaps 21/36221/7
Linda Wang [Tue, 20 Jun 2017 06:31:29 +0000 (06:31 +0000)]
Enable https for Openstack in Snaps

When running in https environment, snaps should provide two options:
1. To support certification verify when https certification file is provided;
2. To disable server certificate verification without cert file.

JIRA: SNAPS-84

Change-Id: I5a9094238db5c8017cc8b80e3353adc6e793b552
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoFixed launcher app to support new settings kwargs. 21/36321/1
spisarski [Wed, 21 Jun 2017 17:38:35 +0000 (11:38 -0600)]
Fixed launcher app to support new settings kwargs.

Additionally, found issue with importing ansible libraries.
Needed to rename the snaps.provisioning.ansible package to 'ansible_pb'.

JIRA: SNAPS-107 & SNAPS-93

Change-Id: I8c8628d3af5ce30849229ed47bfbb0ecaad5b3ad
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Changes UserSettings constructor to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:36:03 +0000 (13:36 +0000)]
Merge "Changes UserSettings constructor to use kwargs."

6 years agoMerge "Changes StackSettings constructor to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:35:56 +0000 (13:35 +0000)]
Merge "Changes StackSettings constructor to use kwargs."

6 years agoMerge "Changes SecurityGroupSettings & SecurityGroupRuleSettings constructor to use...
Steven Pisarski [Wed, 21 Jun 2017 13:35:49 +0000 (13:35 +0000)]
Merge "Changes SecurityGroupSettings & SecurityGroupRuleSettings constructor to use kwargs."

6 years agoMerge "Changes to RouterSettings constructors to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:35:43 +0000 (13:35 +0000)]
Merge "Changes to RouterSettings constructors to use kwargs."

6 years agoMerge "Changes to ProjectSettings constructors to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:35:36 +0000 (13:35 +0000)]
Merge "Changes to ProjectSettings constructors to use kwargs."

6 years agoMerge "Changes to NetworkSettings, SubnetSettings, and PortSettings constructors...
Steven Pisarski [Wed, 21 Jun 2017 13:35:29 +0000 (13:35 +0000)]
Merge "Changes to NetworkSettings, SubnetSettings, and PortSettings constructors to use kwargs."

6 years agoMerge "Changes to KeypairSettings constructor to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:35:22 +0000 (13:35 +0000)]
Merge "Changes to KeypairSettings constructor to use kwargs."

6 years agoMerge "Changes to VMInstanceSettings and FloatingIPSettings constructors."
Steven Pisarski [Wed, 21 Jun 2017 13:35:11 +0000 (13:35 +0000)]
Merge "Changes to VMInstanceSettings and FloatingIPSettings constructors."

6 years agoMerge "Changes ImageSettings constructor to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:35:01 +0000 (13:35 +0000)]
Merge "Changes ImageSettings constructor to use kwargs."

6 years agoMerge "Changes FlavorSettings constructor to use kwargs."
Steven Pisarski [Wed, 21 Jun 2017 13:34:51 +0000 (13:34 +0000)]
Merge "Changes FlavorSettings constructor to use kwargs."

6 years agoChanges UserSettings constructor to use kwargs. 71/36271/1
spisarski [Tue, 20 Jun 2017 19:14:35 +0000 (13:14 -0600)]
Changes UserSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-104

Change-Id: I04413ccd783b5ccdac0f6d8e76780e728f765962
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges StackSettings constructor to use kwargs. 69/36269/1
spisarski [Tue, 20 Jun 2017 19:07:49 +0000 (13:07 -0600)]
Changes StackSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-103

Change-Id: Iacc3a42cbf3bebe7336d17fc4a4574590f15b93a
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges SecurityGroupSettings & SecurityGroupRuleSettings constructor to use kwargs. 67/36267/1
spisarski [Tue, 20 Jun 2017 18:57:02 +0000 (12:57 -0600)]
Changes SecurityGroupSettings & SecurityGroupRuleSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-102

Change-Id: Ifa878ba01694eaa17ee05cea5dbbe9bc8bde3cd0
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges to RouterSettings constructors to use kwargs. 63/36263/1
spisarski [Tue, 20 Jun 2017 16:32:13 +0000 (10:32 -0600)]
Changes to RouterSettings constructors to use kwargs.

And changed line lengths to 79 for pep8

JIRA: SNAPS-101

Change-Id: I2b63e4130644ad422aa1f81bcf2627e97d97c035
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges to ProjectSettings constructors to use kwargs. 57/36257/1
spisarski [Tue, 20 Jun 2017 16:04:04 +0000 (10:04 -0600)]
Changes to ProjectSettings constructors to use kwargs.

And changed line lengths to 79 for pep8

Change-Id: I3ea32e221608d759466973071dd86f9037ad2996
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges to NetworkSettings, SubnetSettings, and PortSettings constructors to use... 55/36255/1
spisarski [Tue, 20 Jun 2017 15:51:56 +0000 (09:51 -0600)]
Changes to NetworkSettings, SubnetSettings, and PortSettings constructors to use kwargs.

And changed line lengths to 79 for pep8

JIRA: SNAPS-99

Change-Id: Iedb3ff663dc9d71ce774b5c4c1d0bef601f792da
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges to KeypairSettings constructor to use kwargs. 47/36247/1
spisarski [Tue, 20 Jun 2017 14:47:27 +0000 (08:47 -0600)]
Changes to KeypairSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-98

Change-Id: I01f7f459bc46ed818d75d30f8bea7b1e09b5b376
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges to VMInstanceSettings and FloatingIPSettings constructors. 43/36243/1
spisarski [Tue, 20 Jun 2017 14:33:57 +0000 (08:33 -0600)]
Changes to VMInstanceSettings and FloatingIPSettings constructors.

Removed named parameters and replaced with kwargs.

JIRA: SNAPS-97

Change-Id: I9e313c342a8fd5a99f3ce6e7274406f8a29b8c8b
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanges ImageSettings constructor to use kwargs. 07/36207/1
spisarski [Mon, 19 Jun 2017 19:27:45 +0000 (13:27 -0600)]
Changes ImageSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-96

Change-Id: Ibda4954a4d9a6be4b94a7b2de61d03b25afff8db
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Missed image config for configuring multiple NICs test"
Steven Pisarski [Mon, 19 Jun 2017 16:41:23 +0000 (16:41 +0000)]
Merge "Missed image config for configuring multiple NICs test"

6 years agoChanges FlavorSettings constructor to use kwargs. 03/36203/1
spisarski [Mon, 19 Jun 2017 16:39:48 +0000 (10:39 -0600)]
Changes FlavorSettings constructor to use kwargs.

And changed line lengths to 79 for pep8.

JIRA: SNAPS-95

Change-Id: Icd3ac79c66049b596c14273abb146d957d6e4e67
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Ignore several files"
Steven Pisarski [Mon, 19 Jun 2017 16:18:50 +0000 (16:18 +0000)]
Merge "Ignore several files"

6 years agoMerge "Leverage on pbr (Python Build Reasonableness)"
Steven Pisarski [Wed, 14 Jun 2017 22:14:34 +0000 (22:14 +0000)]
Merge "Leverage on pbr (Python Build Reasonableness)"

6 years agoIgnore several files 71/36071/3
Cédric Ollivier [Wed, 14 Jun 2017 02:34:54 +0000 (04:34 +0200)]
Ignore several files

Change-Id: Ie00d9a995e1cf96f2754d30fc0a77f3254c811c7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoLeverage on pbr (Python Build Reasonableness) 69/36069/4
Cédric Ollivier [Wed, 14 Jun 2017 02:31:14 +0000 (04:31 +0200)]
Leverage on pbr (Python Build Reasonableness)

It also updates requirements according to OpenStack stable/ocata
except for nova client version as snaps needs nova support of
floating IP which has been removed in pike [1] (8.0.0 [2]).

It must be reverted to >=6.0.0,!=7.0.0 as soon as snaps calls the
related neutron commands.

[1] https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/pike-rm-deprecated-net-272aeb62b329a5bc.yaml
[2] https://docs.openstack.org/releasenotes/python-novaclient/unreleased.html

Change-Id: Iaa0285471da5f2f73cbfef038c9902e1c39fa009
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoNeed to move file resources required by tests. 79/36079/1
spisarski [Wed, 14 Jun 2017 03:22:33 +0000 (11:22 +0800)]
Need to move file resources required by tests.

Functest was not installing the heat resource files required
by the snaps tests being run by Functest as the heat template
file used by the tests as it was under the repository's root
directory which is causing tests to fail.

Change-Id: I214d2e61e92f7dfa2e9859dded1e7ea08706314d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoChanged logic to return only active availability zones. 21/36021/1
spisarski [Tue, 13 Jun 2017 01:18:57 +0000 (09:18 +0800)]
Changed logic to return only active availability zones.

Change-Id: I75d92976f4486933d432a8066159dbb66c12daf5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoCreate download directory if not exists before downloading image file. 19/36019/1
spisarski [Tue, 13 Jun 2017 01:16:18 +0000 (09:16 +0800)]
Create download directory if not exists before downloading image file.

Change-Id: I6d51681d4e0d58b96a00bfeb144d6bfcb8ae04e6
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMissed image config for configuring multiple NICs test 75/35975/1
spisarski [Sun, 11 Jun 2017 07:26:57 +0000 (15:26 +0800)]
Missed image config for configuring multiple NICs test

JIRA: SNAPS-89

Change-Id: I640aee39842272ca8dd6245be10c2fb3a899020e
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFixed problems found in Functest after implementing offline testing. 73/35973/1
spisarski [Sun, 11 Jun 2017 06:16:37 +0000 (14:16 +0800)]
Fixed problems found in Functest after implementing offline testing.

JIRA: FUNCTEST-809

Change-Id: I5e579b141eb513b0f9db36959014b8f945afe6a0
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoRemoved current working directory logic retrieving test file resources. 93/35893/1
spisarski [Wed, 7 Jun 2017 20:56:00 +0000 (14:56 -0600)]
Removed current working directory logic retrieving test file resources.

Some of the SNAPS tests leverage file resources contained within the
project. These resources were being accessed via relative paths which
required the test clients to ensure that the CWD was the <repo>/snaps
directory. Replaced that logic to leverage the import pkg_resources
making the tests much more flexible and robust.

JIRA: SNAPS-89

Change-Id: Ic9c429ee53e4dd785641e11e1ed4de5aeeab54d1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoMerge "Added custom security group with ICMP and SSH rules."
Steven Pisarski [Wed, 7 Jun 2017 14:45:09 +0000 (14:45 +0000)]
Merge "Added custom security group with ICMP and SSH rules."

6 years agoAdded custom security group with ICMP and SSH rules. 41/35841/2
spisarski [Tue, 6 Jun 2017 20:45:19 +0000 (14:45 -0600)]
Added custom security group with ICMP and SSH rules.

This was done for all tests exercising floating IPs.
Also added check to all of these tests to ensure the VMs
all have received their private IP address via DHCP.

JIRA: FUNCTEST-834

Change-Id: I88ae2fecc3f8e507641adf24cb65a0583f4db24c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoAdded support for applying Heat Templates 53/35753/3
spisarski [Fri, 2 Jun 2017 21:31:53 +0000 (15:31 -0600)]
Added support for applying Heat Templates

Second patch expanded support to both files and dict() objects.
Third patch exposes new accessor for status and outputs.

JIRA: SNAPS-86

Change-Id: Ie7e8d883b4cc1a08dbe851fc9cbf663396334909
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
6 years agoFixed RST warning. 83/35683/1
spisarski [Thu, 1 Jun 2017 18:27:03 +0000 (12:27 -0600)]
Fixed RST warning.

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