nova instance-action fails if project_id=NULL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Takashi Natsume | ||
Rocky |
Fix Committed
|
High
|
Takashi Natsume |
Bug Description
nova instance-action fails if project_id=NULL
Starting in api version 2.62 "an obfuscated hashed host id is returned"
To generate the host_id it uses utils.generate_
However, we can have actions without a user_id/project_id defined.
For example, when something happens outside nova API (user shutdown the VM inside the guest OS).
In this case we have an action "stop", without a user_id/project_id.
When running 2.62 it fails when performing:
nova instance-action <instance_uuid> <req_uuid>
no issues if using:
--os-compute-
===
The trace in nova-api logs:
Traceback (most recent call last):
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
) for evt in events_raw]
File "/usr/lib/
project_id)
File "/usr/lib/
data = (project_id + host).encode(
TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'
Changed in nova: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/639936
Review: https:/