yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37040
[Bug 1486791] [NEW] Fix mistake in UT: test_detach_unattached_volume
Public bug reported:
Simple fix:
In nova.test.unit.compute.test_compute.py
def test_detach_unattached_volume(self):
# Ensure exception is raised when volume's idea of attached
# instance doesn't match.
fake_instance = self._fake_instance({'uuid': 'uuid1',
'locked': False,
'launched_at': timeutils.utcnow(),
'vm_state': vm_states.ACTIVE,
'task_state': None})
volume = {'id': 1, 'attach_status': 'in-use',
----------volume attach_status should be 'attached' or 'detached', status should be 'in-use', this should be fixed--------------
'instance_uuid': 'uuid2'}
** Affects: nova
Importance: Undecided
Assignee: wanghao (wanghao749)
Status: New
** Changed in: nova
Assignee: (unassigned) => wanghao (wanghao749)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1486791
Title:
Fix mistake in UT: test_detach_unattached_volume
Status in OpenStack Compute (nova):
New
Bug description:
Simple fix:
In nova.test.unit.compute.test_compute.py
def test_detach_unattached_volume(self):
# Ensure exception is raised when volume's idea of attached
# instance doesn't match.
fake_instance = self._fake_instance({'uuid': 'uuid1',
'locked': False,
'launched_at': timeutils.utcnow(),
'vm_state': vm_states.ACTIVE,
'task_state': None})
volume = {'id': 1, 'attach_status': 'in-use',
----------volume attach_status should be 'attached' or 'detached', status should be 'in-use', this should be fixed--------------
'instance_uuid': 'uuid2'}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1486791/+subscriptions
Follow ups