Add functional tests for [cinder]/cross_az_attach=False
This adds some simple functional tests for the API validation
behavior during server create when [cinder]/cross_az_attach=False
meaning the server being created and any volumes attached to it
must be in the same AZ.
As part of this, bug 1694844 is recreated where the server is
created without an AZ (or default_schedule_zone AZ) which results
in a 400 response because None != whatever the volume's AZ is
(which defaults to "nova" in Cinder). This is important for testing
fixes for that bug later since the API interaction code is pretty
hairy and unit tests are insufficient for validating a fix.
Reviewed: https:/ /review. opendev. org/684141 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f212b855835 d226189b202001b ba97bb8c289179
Committed: https:/
Submitter: Zuul
Branch: master
commit f212b855835d226 189b202001bba97 bb8c289179
Author: Matt Riedemann <email address hidden>
Date: Mon Sep 23 17:43:33 2019 -0400
Add functional tests for [cinder] /cross_ az_attach= False
This adds some simple functional tests for the API validation /cross_ az_attach= False
behavior during server create when [cinder]
meaning the server being created and any volumes attached to it
must be in the same AZ.
As part of this, bug 1694844 is recreated where the server is schedule_ zone AZ) which results
created without an AZ (or default_
in a 400 response because None != whatever the volume's AZ is
(which defaults to "nova" in Cinder). This is important for testing
fixes for that bug later since the API interaction code is pretty
hairy and unit tests are insufficient for validating a fix.
Change-Id: I1b724f7ad3e2f6 baa9fd865a8e22d 87bf909b488
Related-Bug: #1694844