[integration tests] Instance OS-EXT-SRV-ATTR:host is None some test cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Georgy Dyuldin |
Bug Description
Test result:
https:/
Trace:
instances = [<Server: server00>, <Server: server01>]
os_conn = <mos_tests.
env = <mos_tests.
keypair = <Keypair: instancekey>
nova_client = <mos_tests.
@pytest.
@pytest.
def test_live_
"""Live evacuate all instances of the specified host to other available
hosts without shared storage
Scenario:
1. Create net01, net01__subnet
2. Boot instances vm1 and vm2 in net01 on compute node1
3. Run the 'nova host-evacuate-live' command to live-migrate
vm1 and vm2 instances from compute node1 to compute node2:
4. Check that all live-migrated instances are hosted on target host
and are in ACTIVE status
5. Check pings between vm1 and vm2
"""
old_host = getattr(
new_host = [x.hypervisor_
> new_host=new_host))
mos_tests/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mos_tests/
merge_
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
remote = <mos_tests.
command = '. openrc && nova host-evacuate-live --target-host node-2.
fail_ok = False, merge_stderr = False
def os_execute(remote, command, fail_ok=False, merge_stderr=
command = '. openrc && {}'.format(
result = remote.
if not fail_ok and not result.is_ok:
raise exceptions.
> result.
E CommandFailed: Command '. openrc && nova host-evacuate-live --target-host node-2.
E stdout:
E
E stderr:
E ERROR (NotFound): No hypervisor matching 'None' could be found. (HTTP 404) (Request-ID: req-4362c552-
mos_tests/
Commit to fix it:
https:/ /review. gerrithub. io/#/c/ 277349/