summaryrefslogtreecommitdiffstats
path: root/snaps/openstack
AgeCommit message (Collapse)AuthorFilesLines
2018-10-08Deprecating launch app and ansible support.spisarski2-0/+8
Change-Id: Iba28a784a4e78e1009d2038a30ccea8a1bfaa25f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-10-03Updates to the ansible API implementation to allow forspisarski2-11/+4
playbooks to be applied directly against the localhost as well as removing the return code in favor of reliance of unchecked Errors/Exceptions. Change-Id: Ib963aa9b4f5a75010d8f7b25db7d66a2e1950cce Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-09-11Pass flavor metadata into heat templateMichael Polenchuk2-0/+7
Change-Id: I660c7421c9c43d4603cf05489ca39f781467e3a1 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2018-07-31Support both admin role nameValentin Boucher1-1/+4
Depending of the installer the admin role name can be admin or Admin. This patch was tested: +-------------------+------------------+------------------+----------------+ | TEST CASE | PROJECT | DURATION | RESULT | +-------------------+------------------+------------------+----------------+ | api_check | functest | 09:60 | PASS | +-------------------+------------------+------------------+----------------+ Change-Id: I99815777794cd6524213abca1f04ec84dae1e760 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-07-24Merge "Added a check for cloud-init completion before final ssh client check."Steven Pisarski1-0/+1
2018-07-24Added a check for cloud-init completion before final ssh client check.spisarski1-0/+1
Change-Id: I040da15623a7da03d1e3805cfa113b1c40916d11 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-07-24Small fix to network/project when creating ports andspisarski2-5/+115
added new tests for routers that create ports to external and shared networks created by the 'admin' user. Change-Id: I0365e9843e0837d720ca8dd907c45afa2c512047 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-07-16Cleaned up extra network created in the testspisarski1-0/+8
test_set_one_port_two_ip_two_subnets() JIRA: SNAPS-323 Change-Id: I7610d7b3d2262b0f75c9620d2ec6907b62458158 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-07-13Switch to OS::Neutron::FloatingIPAssociationCédric Ollivier2-8/+15
OS::Nova::FloatingIPAssociation is hugely deprecated and doesn't work with latest OpenStack Queens deliverables. Change-Id: Icc43ba8a3466efbcc03e190b7e56f84eb69b7e51 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Added additional check for the returned project object is not None.spisarski1-1/+1
There were 3 other instances of this check in neutron_utils.py but this one was missed and could potentially cause issues. Change-Id: I599e63e14a9b08ba34f50e060c7dfa5fbdd631f7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-06-20Adds Stack Updatembeierl5-26/+222
Adds function to allow stack update to occur. Includes higher level object calls for stack update. Added blocking parameter to create() and update() Rebase screwed up some changes. Added new test to test_suite_builder.py and updated IntegrationTests.rst accordingly Change-Id: I4558befb3ea8ea7982faff79d1ebb54fbb3d44a7 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-06-19Adds Threads to Heat Callsmbeierl3-39/+113
Adds thread pool and coverts looping calls to OpenStack to be submitted to it, allowing them to be run in parallel. Places a configurable maximum size (default 5) of concurrent calls on the thread pool. JIRA: SNAPS-316 Change-Id: Id209c5fe9b7ee7d755d3210a124b38fc3234f0d7 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-06-15Merge "Fixes additional legacy problems found when reviewing patch 58483"Steven Pisarski1-14/+16
2018-06-14Removing flavor metadata from test heat template.spisarski1-4/+0
Tests can break with this setting. Change-Id: Idab15bc5d83f8d88a08c46c71fb179c1e3d0282b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-06-13Fixes additional legacy problems found when reviewing patch 58483spisarski1-14/+16
Second revision removes an unnecessary check on self.ext_net_name. Change-Id: I0611d0130824fb0c2fa147d3fa503b2826a61ed5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-06-13Check dev_os_env_file exists before loading itCédric Ollivier1-4/+6
The testcases should work even if no specific metadata are set. Change-Id: I3fa6aea3588f37946a847042903f313e33a728f8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-11Added MTU network config and updated flavor_metadata test supportspisarski8-32/+56
JIRA: SNAPS-315 Change-Id: Ie4cbab24ea0af41e93c475e04c9440422617466f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-06-08Merge "Added support for OSCreds output to SNAPS-OO orchestrator app."Steven Pisarski5-36/+106
2018-06-04Added support for OSCreds output to SNAPS-OO orchestrator app.spisarski5-36/+106
Change-Id: Ic690ebff47d137fdd172f5dd5f263cd7f4a6ae04 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-06-04Fix to a router's internal subnet resoulution.spisarski1-1/+1
Ensures that any subnet added to the router is available to that project. Change-Id: Iddfad14a093551bc0f4a05c52b20f02db2474d78 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-29Fixed issue when attempting to add an internal subnet to a router.spisarski3-16/+61
Internal subnets that are owned by the same user who is creating a router now can be added properly. Attempted to fix an issue with the change in https://gerrit.opnfv.org/gerrit/#/c/57853/ that was allowing for subnets with the same name to be assigned but ended up breaking this functionality completely. JIRA: SNAPS-312 Change-Id: I1687f66db47520e93e401d3e9fb5f0c4f45d460f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-24Miscellaneous minor stability fixesspisarski3-8/+9
Change-Id: Iad8a7b6358f881d1c2935cc619cfa96f1196a675 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-24Merge "New functionality for snaps-oo application."Steven Pisarski1-16/+58
2018-05-24New functionality for snaps-oo application.spisarski1-16/+58
1. Utility for saving a dict to a YAML file 2. Added new hook that will create a file with the VMs created with the associated OpenStack credentials Change-Id: I124db00e4375603e9473cceab3e2846582d6cb22 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-24Added ability for integration tests to define additionalspisarski2-4/+40
existing users to a project. Change-Id: I91be434dcd7b580f3bfd69e3a97b9a9a13ee4676 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-22Extra changes on Flavor ConfigPanagiotis Karalis3-5/+41
JIRA: SNAPS-254 Change-Id: I4f18c0d11fe2e8456c0ebce0681f22e3e1daf6bf Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2018-05-09Patch to make flavor configuration for tests more flexible.spisarski5-51/+87
Also fixed potential issues with downloading images from https locations JIRA: SNAPS-254 Change-Id: Ib81569df499bbf0652c2025fc7de37af92525f7f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-04-29Fix NoneType in create_router.pyCédric Ollivier1-6/+4
It lets Neutron handle str or unicode instead of returning None. It reverts the first proposal [1] which raises side effects [2]. [1] https://gerrit.opnfv.org/gerrit/#/c/56171/ [2] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/126/console Change-Id: I1b45c7d6118321dd67343f31253f154abae73655 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-23Merge "Fix NoneType error when creating router"Steven Pisarski1-1/+3
2018-04-23Addressed issue with test when replicated networks are configured on the pod.spisarski1-4/+9
According to the defect, "neutron OVS agent uses a replicated network for DVR." JIRA: SNAPS-305 Change-Id: I3ceb94582d74a297f5ff41520ffe4e9f5e638266 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-04-21Fix NoneType error when creating routerLinda Wang1-1/+3
Change-Id: Icef5f8a769b5c33da68b7da33ac8ba87132830e2 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-04-19Fixed bug with regards to subnet lookups.spisarski11-66/+161
Neutron returns all subnets regardless of visibility which cause problems within routers if there is another subnet with the same name attached to a different network. JIRA: SNAPS-304 In addition, this patch contains two other minor fixes. launch_utils.py - raise an exception when the creator is not properly instantiated network.py - allow fixed IPs to be none. Change-Id: Ib343074d925be4592a713727a03d5b531890eada Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-04-19Adding assertion message to test validation.spisarski1-3/+5
Change-Id: I609d09ed8b4f75baeb1ad5454c9ddde9e996a3fe Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-04-18Add flavor metadata for volume related testsMichael Polenchuk2-7/+12
These tests are very sensitive to the state of instance which might be active in terms of nova, but in fact still trying to get an ip address in case of dpdk scenarios. Change-Id: I739044c2edd360535ce1d3531549263163cfea19 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2018-04-17Add listing security groups functionalityManuel Buil2-0/+42
JIRA: SNAPS-302 Be able to list the available security groups Change-Id: I82e2daeb388f4eb3bc8cbc5fd02006b30b959c2f Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-04-12Merge "Fixed bug when use_keystone parameter is False."Steven Pisarski1-7/+3
2018-04-12Fixed bug when use_keystone parameter is False.spisarski1-7/+3
When false, the self.keystone member is None and now it is being used in many more places with some of the other changes during the Fraser release JIRA: SNAPS-299 Change-Id: I752afb127287036a16f3c9b00e6feae9cab80143 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-04-12Fixing security group in CreateInstanceTwoNetTestsGeorg Kunz1-3/+8
The test CreateInstanceTwoNetTests does define and create a security group and a corresponding rule but never associates them with the created instances. Moreover, some commercial systems require explicit egress rules in addition to ingress rules in order to allow traffic to pass. Anm egress rule has been added. JIRA: SNAPS-300 Change-Id: Ie0da75781f8b4e97af11e4e7588c7a53acad59ac Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2018-04-04Enable get_project_by_id when only tenant_id is providedLinda Wang1-8/+24
This is to improve: https://gerrit.opnfv.org/gerrit/#/c/52675/ Change-Id: I7228e5eadcc121fe94a869c6cbbeac412d972868 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-03-22Remove test_create_volume_bad_zoneLinda Wang1-15/+0
JIRA: FUEL-356 Fuel/MCP has set allow_availability_zone_fallback option to True. If the requested Cinder availability zone is unavailable, fall back to the value of default_availability_zone, then storage_availability_zone, instead of failing. Change-Id: I04f45f8435dbdf1113ac6b2c50bf913c1f29cd20 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-03-19Added ability to set several quota settings upon project creation.spisarski2-0/+55
JIRA: SNAPS-275 Change-Id: Ibab81e835dddcb666fb3c829857b1c4676b57ed1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-14Added test to ensure a port to the external network can be added tospisarski1-1/+41
a router by an 'admin' user. JIRA: SNAPS-283 Change-Id: I78a48862de5bd48dca7dc38d197c0df315003638 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-13Added tests to ensure multiple IP addresses can be assigned to a VM port.spisarski1-9/+92
JIRA: SNAPS-284 Change-Id: I43528434523a137a78d1f1f8d22496341f78492b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-13Added test to ensure VM instances spawned by an admin user canspisarski1-0/+99
have an external network used on a port. JIRA: SNAPS-282 Change-Id: I3ee2fef65d1751880e576dc8f6a797260d1028ee Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-13Reverse engineer OpenStackHeatStackspisarski3-2/+58
Added support for obtaining an initialized OpenStackHeatStack object from an existing Stack object JIRA: SNAPS-278 Change-Id: I68cb0c85179868e4e3899b5516316dda3321e9f6 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-12Added support for running tests in parallel.spisarski1-2/+2
JIRA: SNAPS-215 Change-Id: I94923a9f184b0d370159b499919e8fc20a2fef90 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-12Closing keystone sessions after done with them.spisarski46-292/+563
By not closing all of the keystone sessions being created when running all of the tests, this may be the root cause to the IOError occasionally being observed: IOError: [Errno 24] Too many open files JIRA: SNAPS-285 Change-Id: I7fc7ab0c6cdd02f1ae32bb3ae4f121cb465d5693 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-08Added members to VmInst that will contain the availability_zonespisarski3-27/+85
and compute_host names while deprecating the method get_vm_info(). JIRA: SNAPS-277 Change-Id: Idc8578b3f2cf2be8ef90f52dd025dbea729b222b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-08Ensure the project for volumes are handled properly.spisarski6-42/+183
Although this patch has added the project_name member to VolumeConfig, it does not work properly due to a cinder bug https://bugs.launchpad.net/cinder/+bug/1641982. However, the code will now allow for volumes with the same name to be created on the same pod just as long as they do not exist within the same project/tenant. JIRA: SNAPS-270 Change-Id: Ia6f98e9b66793a69c0205d2d8e38bb3d03f3333e Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-07Updated stack tests to only use an admin user when necessary.spisarski5-78/+79
Changed super test class OSIntegrationTestCase to allow subclasses to set the user roles when required. For all heat stack test, the user role will always be 'heat_stack_owner'. 'admin' will be used for tests requiring this role (i.e. heat template creates flavors) JIRA: SNAPS-268 Change-Id: I0ec01cfea6297547a6a158eec8e5c69af6d6c7d7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>