summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-11-20Refactoring of KeypairSettings to extend KeypairConfigspisarski16-114/+336
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>
2017-11-20Refactoring of FlavorSettings to extend FlavorConfigspisarski19-196/+500
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>
2017-11-16Refactoring of ImageSettings to extend ImageConfigspisarski20-175/+469
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>
2017-11-16Minor copy/paste logging value fixes.spisarski2-3/+3
Change-Id: I729265575583eec7fb7adc1fc49c6d91c06ad603 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-11-15Updated from global requirementsCédric Ollivier2-9/+18
Change-Id: I9fa229d0216b90f7619d1fe5e9f5c35be8899d19 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-09Deleting files created when obtaining keypair settings from heat.spisarski3-18/+60
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>
2017-11-09Merge "Initial patch to begin adding support for Magnum."Steven Pisarski6-2/+116
2017-11-09Initial patch to begin adding support for Magnum.spisarski6-2/+116
JIRA: SNAPS-212 Change-Id: I5f72fe9c28fe5cdd61546eee828becd034f8aff9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-11-09Merge "Apply upper-constraints when testing SNAPS"Steven Pisarski1-1/+1
2017-11-09Apply upper-constraints when testing SNAPSCédric Ollivier1-1/+1
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>
2017-11-08Adding tests for IPv6.spisarski12-253/+932
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>
2017-11-08Removal of test from API check.spisarski1-4/+3
Change-Id: Iaf99f0d397043233e9112b38f0cbb5008b5159d1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-11-06Added method to OpenStackHeatStack to return OpenStackSecurityGroup objects.spisarski13-21/+418
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>
2017-11-06Merge "Added logging when a heat stack fails."Steven Pisarski6-49/+189
2017-11-06Merge "Added method to OpenStackHeatStack to return OpenStackRouter objects."Steven Pisarski18-145/+585
2017-11-03Quick fix around static IPs and ports in launch.py application.spisarski1-2/+3
Change-Id: I81b74fb37aee37644f3092251ae5163d57392fdc Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-11-02Added logging when a heat stack fails.spisarski6-51/+190
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>
2017-11-02Added method to OpenStackHeatStack to return OpenStackRouter objects.spisarski18-145/+585
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>
2017-10-31docs: Update installation methodsTaseer Ahmed1-0/+8
JIRA: SNAPS-193 Change-Id: Ibd42667023311ee2d61142063f4d301bad4ac5d7 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-31Added method to OpenStackHeatStack to return OpenStackFlavor objects.spisarski14-30/+280
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>
2017-10-30Added method to OpenStackHeatStack to return OpenStackKeypair objects.spisarski10-86/+334
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>
2017-10-30Merge "Return OpenStackVolume and OpenStackVolumeType instances from heat."Steven Pisarski11-54/+562
2017-10-30Sync requirements with OpenStack PikeCédric Ollivier2-11/+17
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>
2017-10-27Return OpenStackVolume and OpenStackVolumeType instances from heat.spisarski11-54/+562
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>
2017-10-27Updated application to support volumes.spisarski4-7/+266
Updated VirEnvDeploy documents to reflect newly supported object type. JIRA: SNAPS-208 Change-Id: Icc0d435d9b2d780d31a15ebc9a1ebd539c58e407 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-10-26Updated documentation to reflect new block storage support.spisarski16-238/+806
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>
2017-10-24Implemented the ability to attach volumes to VM instances.spisarski12-70/+652
JIRA: SNAPS-198 Change-Id: I30bb92dabab64e6a8918fa5ab0de1bed359a147e Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-10-23Merge "Added ext_net_name into template substitution variable."Steven Pisarski3-2/+24
2017-10-23Added ext_net_name into template substitution variable.spisarski3-2/+24
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>
2017-10-23Merge "Third patch for volume support."Steven Pisarski9-5/+877
2017-10-20Merge "Add reason for stack creation failure"Steven Pisarski3-6/+36
2017-10-19Third patch for volume support.spisarski9-5/+877
* 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>
2017-10-19Add reason for stack creation failureTaseer Ahmed3-6/+36
JIRA: SNAPS-190 Change-Id: I59b7d416ef16cd1f301ccbdcdd8a7529527b3dd6 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-10-18Second patch for volume support.spisarski7-35/+1209
* 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>
2017-10-16First of several patches for adding volume support.spisarski11-12/+772
* 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>
2017-10-16Merge "Improved creator/state machine classes class hierarchy."Steven Pisarski15-336/+603
2017-10-13Move CreateInstancePubPrivNetTests test to stagingCristina Pauna1-5/+5
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>
2017-10-12Improved creator/state machine classes class hierarchy.spisarski15-336/+603
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>
2017-10-10Restricted Ansible version to >=2.1 && < 2.4spisarski1-1/+1
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>
2017-10-05Increse ssh timeout in AnsibleJose Lausuch1-2/+2
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>
2017-09-20Reduce flavor resources of heat templateMichael Polenchuk1-6/+6
In order to pass the HeatUtilsCreateComplexStackTests request an affordable amount of compute resources. Change-Id: I7d99435ce9500cc96e2e25828f1a804687df69e0 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-09-13Disabled test meant for the F release.spisarski1-5/+7
Change-Id: I889fa6a384bc7468c732180261c0eebe815b7cfa Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-09-08Enhanced launch.py app to support all types.spisarski15-245/+382
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>
2017-09-07Merge "Added method to return OpenStackVmInstance from Heat."Steven Pisarski31-261/+1921
2017-08-28Fixed test names.spisarski1-3/+3
Copy/paste issue changed nova to heat. Change-Id: Ib75fcea4c87375f615862e0542569c8e3d9675e8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-24Added method to return OpenStackVmInstance from Heat.spisarski31-263/+1923
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>
2017-08-24Fix to a UserSettings pydoc explaination of an attribute.spisarski1-2/+2
Change-Id: I7937c8fbfc1537ad70bd5bf9a657c52c600c1de8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-24Merge "Grant the new user to os_creds.project_name"Steven Pisarski1-1/+1
2017-08-24Grant the new user to os_creds.project_nameLinda Wang1-1/+1
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>
2017-08-23Get the correct endpoints URL based on OS_REGION_NAME env propertyLaurent Strullu2-1/+4
It also ignores *.pyc. Change-Id: I94a5e297108b839fd6d2811faa34eed3023c0e3a Signed-off-by: Laurent Strullu <laurent.strullu@orange.com>