yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #39824
[Bug 1504666] [NEW] RemoteError not properly caught during live migraion
Public bug reported:
API fails during live migration with a 500 internal server error.
https://127.0.0.1:8774/v2/8c87f173ba7c47cbb4f57eebe85479c1/servers/d53b954a-7323-4d88-a5fc-14c0672a704e/action
{
"os-migrateLive": {
"host": "8231E2D_109EFCT",
"block_migration": false,
"disk_over_commit": false
}
}
The correct error should be 400 BadRequest as the error raise should be
RemoteError, not a MigrationError
Nova-api logs:
MigrationError(u'Migration error: Remote error:error message)
[u'Traceback (most recent call last):\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped\n payload)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped\n return f(self, context, *args, **kw)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 352, in decorated_function\n LOG.warning(msg, e, instance=instance)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 325, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped\n payload)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped\n return f(self, context, *args, **kw)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 402, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 380, in decorated_function\n kwargs[\'instance\'], e, sys.exc_info())\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 368, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5023, in check_can_live_migrate_destination\n block_migration, disk_over_commit)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
raise exception.MigrationError(reason=six.text_type(ex))\n'
** Affects: nova
Importance: Undecided
Assignee: Lauren Taylor (lmtaylor)
Status: New
** Changed in: nova
Assignee: (unassigned) => Lauren Taylor (lmtaylor)
--
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/1504666
Title:
RemoteError not properly caught during live migraion
Status in OpenStack Compute (nova):
New
Bug description:
API fails during live migration with a 500 internal server error.
https://127.0.0.1:8774/v2/8c87f173ba7c47cbb4f57eebe85479c1/servers/d53b954a-7323-4d88-a5fc-14c0672a704e/action
{
"os-migrateLive": {
"host": "8231E2D_109EFCT",
"block_migration": false,
"disk_over_commit": false
}
}
The correct error should be 400 BadRequest as the error raise should
be RemoteError, not a MigrationError
Nova-api logs:
MigrationError(u'Migration error: Remote error:error message)
[u'Traceback (most recent call last):\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n result = func(ctxt, **new_args)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped\n payload)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped\n return f(self, context, *args, **kw)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 352, in decorated_function\n LOG.warning(msg, e, instance=instance)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 325, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped\n payload)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped\n return f(self, context, *args, **kw)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 402, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 380, in decorated_function\n kwargs[\'instance\'], e, sys.exc_info())\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 368, in decorated_function\n return function(self, context, *args, **kwargs)\n', u'
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5023, in check_can_live_migrate_destination\n block_migration, disk_over_commit)\n', u'
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u'
raise exception.MigrationError(reason=six.text_type(ex))\n'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1504666/+subscriptions
Follow ups