Steven Pisarski [Wed, 3 Jan 2018 17:05:52 +0000 (17:05 +0000)]
Merge "Support network configuration overridden"
spisarski [Wed, 3 Jan 2018 17:00:43 +0000 (10:00 -0700)]
Added new configuration option for OpenStackVmInstance for cloud-init
Added cloud_init_timeout to VM instance configuration to override the
default timeout value hardcoded @ 120 seconds. This patch not only
expands the default value to 300, but also allows the client to override
this value as cloud-init can take quite some time depending on what is
being requested.
Change-Id: Ia4d0a54ce853a93748b16945f5ddd4d5887feb7d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Steven Pisarski [Wed, 3 Jan 2018 15:02:33 +0000 (15:02 +0000)]
Merge "Enhancements to the SNAPS orchestrator/launcher"
Linda Wang [Wed, 3 Jan 2018 03:13:02 +0000 (03:13 +0000)]
Support network configuration overridden
When the network_type is vlan, the params physical_network and
segmentation_id should be accepted as arguments when creating
network.
JIRA: SNAPS-252
Change-Id: I3a7bec8a592ede65b97eff0911d09a8154349385
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Linda Wang [Tue, 26 Dec 2017 02:49:05 +0000 (02:49 +0000)]
Configure physical_network when creating network
When the network_type is vlan, configuring physical_network
and segmentation_id should be supported by snaps.
Here only testcase test_check_vm_ip_dhcp is changed, which is
consumed by functest.
JIRA: SNAPS-252
Change-Id: I12ae12f62f73f2ae66fe7ee12a49abf0394669cd
Signed-off-by: Linda Wang <wangwulin@huawei.com>
spisarski [Thu, 28 Dec 2017 23:09:48 +0000 (16:09 -0700)]
Enhancements to the SNAPS orchestrator/launcher
Added support for more Ansible substitution values extracted
from OpenStack instances (i.e. subnet broadcast address, router
external IP for gateway configuration, CIDR IP, netmask, etc.)
Removed most try/except blocks to ensure processing does not
continue when a problem should arise
Added the ability to know when cloud-init has completed
Removed nic configuration from OpenStackVmInstance as userdata/
cloud-init/cloud-config should be performing that functionality
Fixed some logging messages
Misc launcher bug fixes
Change-Id: I73e7607ee158cce3d16f9c1c1fc7c32ef5899a1d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Thu, 21 Dec 2017 15:46:49 +0000 (08:46 -0700)]
Added substitution variable support.
Change-Id: I57e10be315c288d75d61b014940cd02c0c0134fa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Manuel Buil [Tue, 19 Dec 2017 09:18:41 +0000 (10:18 +0100)]
Return the floating ip object
Sometimes it might be useful to have the floating ip object which was assigned
Change-Id: I883ec2af448cd38dad2e0d24843c92e7ab495c2f
Signed-off-by: Manuel Buil <mbuil@suse.com>
spisarski [Mon, 18 Dec 2017 17:02:02 +0000 (10:02 -0700)]
Refactored VmInst domain class for Ports.
Removed network dict and replaced with a list of Port domain
objects. The old network member was directly copied into the
VmInst object from neutron meaning that Neutron implementation
details were leaking through. This refactor not only makes
VmInst objects easier to use, it also ensures that future
Neutron API changes will not break the library.
JIRA: SNAPS-251
Change-Id: I3e5e811e433bf7670ecd80405186ac2ac0739def
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Thu, 14 Dec 2017 15:25:17 +0000 (08:25 -0700)]
Added utility function to retrieve the names of all hosts with a hypervisor.
Change-Id: I25b91c6eee78ebf35785c4884dded7c9ab2cc412
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Linda Wang [Thu, 7 Dec 2017 07:39:46 +0000 (07:39 +0000)]
Set the ram of flavor to 1024
The setting of hw:mem_page_size=large indicates larger page sizes
for guest RAM, eg., either 2MB or 1GB on x86.
When tested on compass, 1GB is required
Change-Id: I22d2fcab190e465dd1c36bc4264c75c724c6f64d
Signed-off-by: Linda Wang <wangwulin@huawei.com>
spisarski [Fri, 1 Dec 2017 18:06:23 +0000 (11:06 -0700)]
Added the ability to reboot OpenStack server instances
JIRA: SNAPS-243
Change-Id: I7232ee14cac81d39d86e7391a4e006b8276ed536
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Steven Pisarski [Mon, 4 Dec 2017 21:30:34 +0000 (21:30 +0000)]
Merge "Added ability to add a floating IP to an existing instance"
spisarski [Fri, 1 Dec 2017 18:27:52 +0000 (11:27 -0700)]
Move CreateInstanceIPv6NetworkTests from staging to integration.
Change-Id: Icf381661c56ecf19311ebc95210686bc20eb124e
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Fri, 1 Dec 2017 16:48:50 +0000 (09:48 -0700)]
Added ability to add a floating IP to an existing instance
Patch includes:
1. Ability to easily retrive an initialized OpenStackVmInstance object
2. Added method to OpenStackVmInstance named "add_floating_ip"
3. Tests to ensure floating IPs added after initialization actually work
JIRA: SNAPS-241, SNAPS-242
Change-Id: I1f413645a752c17fd624ecff26e851068bb77e3f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Steven Pisarski [Fri, 1 Dec 2017 14:14:17 +0000 (14:14 +0000)]
Merge "Deactivated test heat template's volume encryption."
spisarski [Thu, 30 Nov 2017 21:35:53 +0000 (14:35 -0700)]
Deactivated test heat template's volume encryption.
Removed volume encryption from the test volume heat template as
it is no longer operating properly against a Pike pod. Created the
ticket SNAPS-245 to address this issue sometime in the future.
JIRA: SNAPS-240
Change-Id: I610dbba4ebadd5dfb360a665b7a543be6ef5fb1c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Thu, 30 Nov 2017 18:57:40 +0000 (11:57 -0700)]
Added exception handling around adding security groups.
When a VM instance has a security group associated with it and
the client attempts to add the same security group, a Pike pod
now raises a ClientException where previous releases simply return
None. This patch adds the appropriate exception handling that
allows several existing tests to pass not only with Pike but also
with all OpenStack versions.
JIRA: SNAPS-239
Change-Id: I282df5a2b516dab415ba5e2e7208176f2ba3f270
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Wed, 29 Nov 2017 20:11:20 +0000 (13:11 -0700)]
Cluster template cleanup
Removal of negative tests where an invalid keypair is being
configured. This test was not operating consistently between
pods
Update testing documentation
Updated some invalid class names in pydoc
Change-Id: I7a392e9ed993450de40a20457044ba8294d45044
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Tue, 28 Nov 2017 20:16:54 +0000 (13:16 -0700)]
Added cluster template creator/state machine class.
Created class and tests for creating and managing cluster templates.
JIRA: SNAPS-235
Change-Id: Ia91aef9507fc39d1814dce03169aab0b784721a6
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Mon, 27 Nov 2017 17:21:09 +0000 (10:21 -0700)]
Expanded the tests for ClusterTypes
JIRA: SNAPS-233
Change-Id: Ibba9b7046b95b5523cde525c4a4ed971f463a19d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Mon, 27 Nov 2017 15:16:39 +0000 (08:16 -0700)]
Updated comments for ID version 2 vs. 3
Change-Id: Ib51076cb9fa1c3f52c619a5682ae4a11f64580a9
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Wed, 22 Nov 2017 21:55:43 +0000 (14:55 -0700)]
Implemented the ability to create Magnum Cluster Type objects.
This patch is the second of several necessary for the addition of
Magnum support. This one implements a create and delete function
to magnum_utils.py as well as the necessary config and domain classes
for sending and receiving Cluster Type data to OpenStack.
JIRA: SNAPS-233
Change-Id: Iad1959b98eaabc4ef5f41b70a23f6b1306259650
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Mon, 20 Nov 2017 21:56:44 +0000 (14:56 -0700)]
Refactoring of SecurityGroupSettings to extend SecurityGroupConfig
SecurityGroupSettings, SecurityGroupSettings and neutron_utils have a
runtime cyclical dependency. This patch reduces this dependency and
deprecates the SecurityGroupSettings and SecurityGroupRuleSettings class with
snaps.config.security_group SecurityGroupConfig and SecurityGroupRuleConfg classes
JIRA: SNAPS-224
Change-Id: I6cd82ed5be31f4a24449be767b203e86489b1962
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
spisarski [Mon, 20 Nov 2017 20:51:18 +0000 (13:51 -0700)]
Refactoring of VmInstanceSettings to extend VmInstanceConfig
VmInstanceSettings, FloatingIPSettings and nova_utils have a
runtime cyclical dependency. This patch reduces this dependency and
deprecates the VmInstanceSettings and FloatingIPSettings class with
snaps.config.vm_inst VmInstanceConfig and FloatingIpConfg classes
JIRA: SNAPS-218
Change-Id: I95688130256bca1df4a5c347bdb741019ae0937e
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Steven Pisarski [Mon, 20 Nov 2017 20:05:41 +0000 (20:05 +0000)]
Merge "Supporting the protocol string value of 'any' for security group rules."
spisarski [Fri, 17 Nov 2017 23:07:40 +0000 (16:07 -0700)]
Refactoring of NetworkSettings to extend NetworkConfig
This also includes SubnetSettings extending to SubnetConfig and
PortSettings extenting to Portconfig and neutron_utils have a runtime cyclical
dependency. This patch reduces this dependency and deprecates the NetworkSettings,
SubnetSettings, and PortSettings classes.
JIRA: SNAPS-220
Change-Id: I996d73d9b910c075a6511a423f01d966f5b6fb74
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
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 17:51:30 +0000 (10:51 -0700)]
Supporting the protocol string value of 'any' for security group rules.
This issue had been found by Stuart Mackie when using OpenContrail.
Change-Id: I5b57773e19c20028ac736521d461d49341c78cb0
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
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()"