yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73703
[Bug 1765376] Re: nova scheduler log contains html
Marking as fix released. If it becomes an issue we can consider
backporting it.
** Changed in: nova
Status: Confirmed => Fix Released
--
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/1765376
Title:
nova scheduler log contains html
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Description
===========
The nova scheduler log contains some HTML (see actual result). Log files should not contain any HTML. I suspect some wrong error message parsing here.
Actual result
=============
Log Message:
----
2018-04-19 13:12:53.109 12125 WARNING nova.scheduler.client.report [req-a35b4d7e-9914-48f1-b912-27cedb6eebdd cd9715e9b4714bc6b4d77f15f12ba5a9 fa976f761aad4d378706dfc26ddf6004 - default default] Unable to submit allocation for instance 6dc8e703-1174-499d-aa9b-4d05f83b7784 (409 <html>
<head>
<title>409 Conflict</title>
</head>
<body>
<h1>409 Conflict</h1>
There was a conflict when trying to complete your request.<br /><br />
Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider '322b4b21-f3ff-4d59-b6c8-8c1a9fe2b530'. The requested amount would violate inventory constraints.
</body>
</html>)
----
Steps to reproduce
==================
This log line occurred after trying to live-migrate a vm from one node to another. obviously the request failed to do so.
Expected result
===============
The log line should be better formatted. for example like this:
----
2018-04-19 13:12:53.109 12125 WARNING nova.scheduler.client.report [req-a35b4d7e-9914-48f1-b912-27cedb6eebdd cd9715e9b4714bc6b4d77f15f12ba5a9 fa976f761aad4d378706dfc26ddf6004 - default default] Unable to submit allocation for instance 6dc8e703-1174-499d-aa9b-4d05f83b7784 - HTTP Error 409 - There was a conflict when trying to complete your request. Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider '322b4b21-f3ff-4d59-b6c8-8c1a9fe2b530'. The requested amount would violate inventory constraints.
----
Environment
===========
Ubuntu 16.04 with the following packages from Ubuntu Cloud Archive:
nova-api 2:16.0.4-0ubuntu1~cloud0
nova-common 2:16.0.4-0ubuntu1~cloud0
nova-conductor 2:16.0.4-0ubuntu1~cloud0
nova-consoleauth 2:16.0.4-0ubuntu1~cloud0
nova-novncproxy 2:16.0.4-0ubuntu1~cloud0
nova-placement-api 2:16.0.4-0ubuntu1~cloud0
nova-scheduler 2:16.0.4-0ubuntu1~cloud0
python-nova 2:16.0.4-0ubuntu1~cloud0
python-novaclient 2:9.1.0-0ubuntu1~cloud0
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1765376/+subscriptions
References