yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81024
[Bug 1856816] [NEW] Nova not creating the "create" action in cell0
Public bug reported:
Setup
-----
1. Disable single nova-compute service as admin.
2. Switch to non-admin demo user/project.
Create Test
-----------
1. Create server which fails with NoValidHost.
2. Show the server fault details as the non-admin user:
$ openstack server show build-fail1 -f value -c fault
{u'message': u'No valid host was found. ', u'code': 500, u'created': u'2019-11-13T15:57:13Z'}
Instance actions
----------------
Actual result
=============
1. As admin:
$ nova instance-action-list 008a7d52-dd83-4f52-a720-b3cfcc498259
+--------+------------+---------+------------+------------+
| Action | Request_ID | Message | Start_Time | Updated_At |
+--------+------------+---------+------------+------------+
+--------+------------+---------+------------+------------+
2. As demo user/project (owner of the server):
$ nova instance-action-list 008a7d52-dd83-4f52-a720-b3cfcc498259
+--------+------------+---------+------------+------------+
| Action | Request_ID | Message | Start_Time | Updated_At |
+--------+------------+---------+------------+------------+
+--------+------------+---------+------------+------------+
Expected result
===============
When the instance is not creating, the "create" action should be recorded in cell0.
Since the instance is in cell0 the "create" action is not there.
It only gets created in the non-cell0 cell that the instance is created in:
https://github.com/openstack/nova/blob/20.0.0/nova/conductor/manager.py#L1460
Back in Mitaka the API would create the "create" action before
casting to conductor:
https://github.com/openstack/nova/blob/mitaka-
eol/nova/compute/api.py#L1180
** Affects: nova
Importance: Undecided
Assignee: Brin Zhang (zhangbailin)
Status: New
** Changed in: nova
Assignee: (unassigned) => Brin Zhang (zhangbailin)
--
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/1856816
Title:
Nova not creating the "create" action in cell0
Status in OpenStack Compute (nova):
New
Bug description:
Setup
-----
1. Disable single nova-compute service as admin.
2. Switch to non-admin demo user/project.
Create Test
-----------
1. Create server which fails with NoValidHost.
2. Show the server fault details as the non-admin user:
$ openstack server show build-fail1 -f value -c fault
{u'message': u'No valid host was found. ', u'code': 500, u'created': u'2019-11-13T15:57:13Z'}
Instance actions
----------------
Actual result
=============
1. As admin:
$ nova instance-action-list 008a7d52-dd83-4f52-a720-b3cfcc498259
+--------+------------+---------+------------+------------+
| Action | Request_ID | Message | Start_Time | Updated_At |
+--------+------------+---------+------------+------------+
+--------+------------+---------+------------+------------+
2. As demo user/project (owner of the server):
$ nova instance-action-list 008a7d52-dd83-4f52-a720-b3cfcc498259
+--------+------------+---------+------------+------------+
| Action | Request_ID | Message | Start_Time | Updated_At |
+--------+------------+---------+------------+------------+
+--------+------------+---------+------------+------------+
Expected result
===============
When the instance is not creating, the "create" action should be recorded in cell0.
Since the instance is in cell0 the "create" action is not there.
It only gets created in the non-cell0 cell that the instance is created in:
https://github.com/openstack/nova/blob/20.0.0/nova/conductor/manager.py#L1460
Back in Mitaka the API would create the "create" action before
casting to conductor:
https://github.com/openstack/nova/blob/mitaka-
eol/nova/compute/api.py#L1180
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1856816/+subscriptions