instance log with vmware fails

Bug #1786683 reported by Daniel 'f0o' Preussker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

This happens on a fully updated Queens release using Ubuntu's Bionic release.

Basically the vmwareapi/driver.py opens the log-file and passes it to nova.privsep.path.last_bytes as argument.

However, nova.privsep.path.last_bytes expects a path and not a file-handle. Thus it throws a TypeError exception.

Changing the vmwareapi/driver.py to call

```
read_log_data, remaining = nova.privsep.path.last_bytes(path, MAX_CONSOLE_BYTES)
```
instead, fixes the issue.

Tags: privsep vmware
Revision history for this message
Matt Riedemann (mriedem) wrote :

Already fixed (in rocky). I'll propose a backport to stable/queens.

tags: added: privsep vmware
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.