summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-31Support both admin role namestable/fraserValentin 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-24Skip searching network in project if external or sharedCédric Ollivier1-2/+1
It meets the OpenStack rules: - any router can be connected to an external network. - any VM can be connected to a shared network It completes https://gerrit.opnfv.org/gerrit/59865 which partially skip the lookup. Then CreateRouterSuccessTests passes when the external network is not owned by the user running snaps_smoke. JIRA: SNAPS-320 Change-Id: I2c60363002c6b667f90ff3f5f984eace4fa86c99 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 821d86248054017ea8ac40b99759df71fa639e3b)
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> (cherry picked from commit 89a0e76315c0ec123e3674536fcda07a6c9c3c06)
2018-07-03Remove conditional on external_fixed_ips to allow for case thatStuart Mackie1-2/+1
it is not set but network_id is set in external_gateway_info Change-Id: Ib0fdfbf49730ca68d7c1d47c18c2ac17be637380 Signed-off-by: Stuart Mackie <wsmackie@juniper.net> (cherry picked from commit 26645b9602a5eb41a6ab066d51a08a4d67d08c62)
2018-06-21Extra changes on Flavor Configopnfv-6.2.0Panagiotis Karalis6-7/+53
JIRA: SNAPS-254 Change-Id: I4f18c0d11fe2e8456c0ebce0681f22e3e1daf6bf Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit c5fd2310c8e9f63cf607de7fa9c21f60ab877224)
2018-06-21Patch to make flavor configuration for tests more flexible.Panagiotis Karalis7-55/+93
JIRA: SNAPS-254 Change-Id: Ib81569df499bbf0652c2025fc7de37af92525f7f Signed-off-by: spisarski <s.pisarski@cablelabs.com> Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit 44e8131216787127980558824b2a1def94fe317e)
2018-06-21Add flavor metadata for volume related testsPanagiotis Karalis4-11/+20
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> Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit 88c9496ee5d40adbb324c0d449ed1659e661d700)
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.spisarski4-16/+67
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-25Merge "New functionality for snaps-oo application." into stable/fraserSteven Pisarski2-17/+73
2018-05-24New functionality for snaps-oo application.spisarski2-17/+73
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> (cherry picked from commit f9cf2eb23cb1dc22fe9d680ac49c8ed4d2aa6eff)
2018-05-24Miscellaneous minor stability fixesspisarski4-8/+13
Change-Id: Iad8a7b6358f881d1c2935cc619cfa96f1196a675 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-24Merge "Restricting the magnum-pythonclient version to 2.1-2.2" into ↵Steven Pisarski1-1/+1
stable/fraser
2018-05-16Removed project query restriction when looking up network for port creation.spisarski1-2/+1
When creating a router to an external network, the port configuration object was performing a lookup using the port's user and project ID; however, as external networks created in other projects and are visible amongst all projects can also be added to a port. This patch removes the project restriction from the network query. I do not believe this fix should ultimately break other functionality as networks that cannot be looked up by a certain user would still return None raising a valid exception. JIRA: APEX-598 Change-Id: I6cd32373fd4f42d8ad9b63a89c2131f95b113ce8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-16Restricting the magnum-pythonclient version to 2.1-2.2spisarski1-1/+1
Using version >2.2 results in a runtime exception. Change-Id: Ifc46efc7bb818c93f1470d7ea2150d9974f1bfd3 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-05-16Conform ProjectConfig args with descriptionCédric Ollivier1-1/+1
Change-Id: Ib865fdc6d48c377c5a28092015b807ef79a15ce3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 816a90ca79a0f16bd5176b00c33391f522e517c1)
2018-05-15Fix NoneType in create_router.pyCédric Ollivier1-4/+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 Conflict: snaps/openstack/create_router.py Change-Id: I1b45c7d6118321dd67343f31253f154abae73655 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 9651c889f1b966dc2733daf7eabbb5e62268654d)
2018-05-09Fix defaultbranch in .gitreviewCédric Ollivier1-0/+1
Change-Id: I23f3af46fcc84ce752b5797a0a8493ebd583565b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-02Enable 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> (cherry picked from commit 390d31e3a6eaa0968474d19d71ec804d0c6c071a)
2018-04-26Initial release-notes.spisarski1-0/+25
JIRA: SNAPS-288 Change-Id: I61e96eeb2128fc4e4abc88595504cad5f70f4378 Signed-off-by: spisarski <s.pisarski@cablelabs.com> (cherry picked from commit bf07de830d7517f7173a3e8a68e1fa6dac2539da)
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> (cherry picked from commit 7f5f1b87cdde0b60cda714eb656d46751b9e2548)
2018-04-19Fixed bug with regards to subnet lookups.opnfv-6.1.0opnfv-6.0.0spisarski21-93/+282
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-13Fixed 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> (cherry picked from commit f9003b2925fd340998fd38fd353fba187aeadc69)
2018-03-22Remove test_create_volume_bad_zoneLinda Wang2-18/+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.spisarski5-2/+91
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 tospisarski2-1/+44
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.spisarski2-9/+98
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 canspisarski3-2/+116
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 OpenStackHeatStackspisarski4-2/+64
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-13Merge "Fixed a few Py 2.7 -> 3.x issues."Steven Pisarski1-18/+28
2018-03-12Fixed a few Py 2.7 -> 3.x issues.spisarski1-18/+28
JIRA: SNAPS-286 Change-Id: Ib4976529168655df0ed906276b503b70a8459f21 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-12Added support for running tests in parallel.spisarski5-39/+156
JIRA: SNAPS-215 Change-Id: I94923a9f184b0d370159b499919e8fc20a2fef90 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-12Closing keystone sessions after done with them.spisarski50-331/+617
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_zonespisarski6-31/+105
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.spisarski12-54/+239
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.spisarski7-81/+99
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>
2018-02-28Ensure project for routers are handled properly.spisarski9-48/+337
Routers should be able to be created by admin users to other projects. Routers without admin users should only be able to create ones to their default project. JIRA: SNAPS-266 Change-Id: I5ecfbcc2ed94bbab211751da9521f3ec1d4ff66d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-02-27Fixed subnet gateway support to allow for disabling the gateway.spisarski4-3/+169
JIRA: SNAPS-276 Change-Id: Ia676b91ee881097ca7502fb4b9f5c64961de2214 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-02-22Changed pattern on how objects lookup themselves by name and project.spisarski29-439/+539
The pattern being replaced has unwittingly added the requirement that all creator credentials must be of type 'admin' as when looking up the associated project ID required a call to keystone.projects.list(). As the SNAPS integration tests were always creating users with an 'admin' role, this issue was not caught. As part of this patch, integration test users will no longer be admin. JIRA: SNAPS-274 Change-Id: I02957f69e31a9d4dfa63362d371f061687e59fbf Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-02-20openstack: nova_utils_tests: Wait for volume detachmentMarkos Chandras1-6/+14
The 'test_add_remove_volum' is supposed to wait for volume attachment and detachments. However, the code for the latter was missing. Moreover, we remove some code that checks for attached volumes since that should never happen when detaching the volume. Change-Id: I9ed54a467062d0ddc4efeddf03af7ebe6173e789 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-20openstack: nova_utils_tests: Increase timeout for API callsMarkos Chandras1-2/+2
Patch I2245adb84d0e6d4e3350d17d0c2e44baf5202d51 increased the timeout for the API calls to 2 minutes which was then somewhat reverted in Iea3aeab59c378917fbd175d673113e8d30e2e4b9. However, the problem still persists on slow systems and 30 seconds may not be enough to confirm a volume attachment to the VM. Change-Id: I860b2a797917e13772e95c5d756919e9792b63a6 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-16Ensure project IDs are handled correctly for Network/Subnetsspisarski20-137/+335
JIRA: SNAPS-265 Change-Id: If58f5817e52e21be377d2b06a5f7c3a413454350 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-02-15Added functionality for OpenStackSecurityGroup#initialize() not to acceptspisarski10-33/+132
security groups with the same name from a different project JIRA: SNAPS-264 Change-Id: I7c905e5588d5e503b47ea0e9f5997be89e841aec Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-02-15Merge "Compare strings instead of objects in SecurityGroupConfig"Steven Pisarski1-1/+1
2018-02-15Merge "Set region_name in get_os_creds()"Steven Pisarski1-0/+1
2018-02-14Compare strings instead of objects in SecurityGroupConfigCédric Ollivier1-1/+1
It could have worked thanks to interned strings. Change-Id: If56cc44fe35ca06bc9033af620ddd3c0586877fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-14Merge "Fixed comment"Steven Pisarski1-1/+1
2018-02-14Fixed commentspisarski1-1/+1
Change-Id: Ib226ef99eed2fda2c7112faf0f0e9339afed90fe Signed-off-by: spisarski <s.pisarski@cablelabs.com>