yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50019
[Bug 1575998] [NEW] The actual value of 'request_spec' should be reported when a MaxRetriesExceeded exception is raised
Public bug reported:
If a MaxRetriesExceeded exception is raised by
scheduler_utils.populate_retry then request_spec will be empty in the
exception handler[1], then _set_vm_state_and_notify method will just put
a empty dict as request_spec into the payload of notification[2]. It
would make more sense if we report the actual value of request_spec in
the notification.
[1]https://github.com/openstack/nova/blob/13.0.0.0rc3/nova/conductor/manager.py#L382
[2]https://github.com/openstack/nova/blob/13.0.0.0rc3/nova/scheduler/utils.py#L109
Simply moving the initialization of request_spec up one line before the
call to populate_retry should fix the issue.
** Affects: nova
Importance: Undecided
Assignee: Wenzhi Yu (yuywz)
Status: New
** Changed in: nova
Assignee: (unassigned) => Wenzhi Yu (yuywz)
--
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/1575998
Title:
The actual value of 'request_spec' should be reported when a
MaxRetriesExceeded exception is raised
Status in OpenStack Compute (nova):
New
Bug description:
If a MaxRetriesExceeded exception is raised by
scheduler_utils.populate_retry then request_spec will be empty in the
exception handler[1], then _set_vm_state_and_notify method will just
put a empty dict as request_spec into the payload of notification[2].
It would make more sense if we report the actual value of request_spec
in the notification.
[1]https://github.com/openstack/nova/blob/13.0.0.0rc3/nova/conductor/manager.py#L382
[2]https://github.com/openstack/nova/blob/13.0.0.0rc3/nova/scheduler/utils.py#L109
Simply moving the initialization of request_spec up one line before
the call to populate_retry should fix the issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1575998/+subscriptions
Follow ups