test_list_servers_by_admin & test_list_servers_by_admin_with_specified_tenant: mismatch error when admin tenant's VM is already spawned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm fencing a bug when i tried to execute these tests:
- tempest.
- tempest.
If I try to execute these tests when a VM is already spawned by admin tenant, it's failed with this kind of error:
=======
FAIL: tempest.
tags: worker-0
-------
pythonlogging:'': {{{
2016-02-05 18:25:27,430 13603 INFO [tempest_
2016-02-05 18:25:27,430 13603 DEBUG [tempest_
Body: None
Response - Headers: {'status': '200', 'content-length': '4241', 'vary': 'X-Auth-Token', 'connection': 'close', 'date': 'Fri, 05 Feb 2016 17:25:27 GMT', 'content-type': 'application/json', 'x-openstac}
Body: None
2016-02-05 18:25:28,271 13603 INFO [tempest_
2016-02-05 18:25:28,271 13603 DEBUG [tempest_
Body: None
Response - Headers: {'status': '200', 'content-length': '1812', 'content-location': 'https:/
Body: {"servers": [{"status": "ACTIVE", "updated": "2016-02-
}}}
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
MismatchError: !=:
reference = []
actual = [{u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'OS-
u'accessIPv4': u'',
u'accessIPv6': u'',
u'addresses': {u'test_mgmt': [{u'OS-
u'config_drive': u'',
u'created': u'2016-
u'flavor': {u'id': u'666d382c-
u'hostId': u'5d4c4292f62bb
u'id': u'080ab8fb-
u'image': {u'id': u'7fb7217d-
u'key_name': None,
u'links': [{u'href': u'http://
u'metadata': {},
u'name': u'test-mtu',
u'os-
u'progress': 0,
u'security_
u'status': u'ACTIVE',
u'tenant_id': u'd52c3b27887e4
u'updated': u'2016-
u'user_id': u'admin'}]
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
But if I try without VMs spawned by admin tenant or VMs spawned by an other tenant, it's works:
# source adminrc
# nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=
# testr run tempest.
# nova delete vm-admin
# testr run tempest.
Thanks
Fix proposed to branch: master /review. openstack. org/279109
Review: https:/