yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72450
[Bug 1765376] [NEW] nova scheduler log contains html
Public bug reported:
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
** Affects: nova
Importance: Undecided
Status: New
** Description changed:
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.
----
- 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>)
- ----
-
Environment
===========
+ Ubuntu 16.04 with the following packages from Ubuntu Cloud Archive:
- ii nova-api 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - API frontend
- ii nova-common 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - common files
- ii nova-conductor 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - conductor service
- ii nova-consoleauth 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - Console Authenticator
- ii nova-novncproxy 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - NoVNC proxy
- ii nova-placement-api 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - placement API frontend
- ii nova-scheduler 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute - virtual machine scheduler
- ii python-nova 2:16.0.4-0ubuntu1~cloud0 all OpenStack Compute Python libraries
- ii python-novaclient 2:9.1.0-0ubuntu1~cloud0 all client library for OpenStack Compute API - Python 2.7
+ 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
--
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):
New
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
Follow ups