nova scheduler log contains html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Unassigned |
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.
<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-
</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.
----
Environment
===========
Ubuntu 16.04 with the following packages from Ubuntu Cloud Archive:
nova-api 2:16.0.
nova-common 2:16.0.
nova-conductor 2:16.0.
nova-consoleauth 2:16.0.
nova-novncproxy 2:16.0.
nova-placement-api 2:16.0.
nova-scheduler 2:16.0.
python-nova 2:16.0.
python-novaclient 2:9.1.0-
I think this is just dumping the contents of a requests. Response. text entry, I'm not sure how much pretty formatting we can put on that. Chris Dent might have ideas.