Nova: Instance Action Tracking "nova backup" and "nova image-create" cannot be seen using <nova instance-action-list> . Environment : --------------- python-nova-2013.1-2.el6.noarch openstack-nova-compute-2013.1-2.el6.noarch openstack-nova-cert-2013.1-2.el6.noarch openstack-nova-network-2013.1-2.el6.noarch openstack-nova-common-2013.1-2.el6.noarch python-novaclient-2.13.0-1.el6.noarch openstack-nova-api-2013.1-2.el6.noarch Scenario: --------- 1) Create an instance. 2) Perform 'nova backup' on that instance. 3) Perform 'nova image-create' on that instance. 4) Attempt to track the instance actions <nova instance-action-list> Results: -------- The actions "nova backup" and "nova create-Image" are not recorded and cannot be seen using <nova instance-action-list> . - couldn't find a record for those actions in DB either. mysql> SELECT * FROM instance_actions ;
Can reproduce this one with Havana, RDO bits. Version info: $ rpm -qa | grep -i nova openstack-nova-api-2013.2-2.fc20.noarch openstack-nova-cert-2013.2-2.fc20.noarch openstack-nova-cells-2013.2-2.fc20.noarch openstack-nova-common-2013.2-2.fc20.noarch openstack-nova-novncproxy-2013.2-2.fc20.noarch openstack-nova-console-2013.2-2.fc20.noarch python-nova-2013.2-2.fc20.noarch openstack-nova-objectstore-2013.2-2.fc20.noarch openstack-nova-network-2013.2-2.fc20.noarch openstack-nova-2013.2-2.fc20.noarch python-novaclient-2.15.0-1.fc20.noarch openstack-nova-scheduler-2013.2-2.fc20.noarch openstack-nova-conductor-2013.2-2.fc20.noarch openstack-nova-compute-2013.2-2.fc20.noarch Test: =========== $ nova list +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ | aa4f0894-9828-4310-bb38-f529b28adb33 | cirros-12net-guest1 | SHUTOFF | None | Shutdown | 12net=12.0.0.2, 192.169.142.12 | | af169342-777f-4b42-aee0-36c89115f093 | cirros-guest90 | ACTIVE | None | Running | int=30.0.0.2, 192.169.142.11 | +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ =========== $ nova backup cirros-guest90 backup-of-cirros-guest90 weekly 1 =========== $ echo $? 0 =========== $ nova list +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ | aa4f0894-9828-4310-bb38-f529b28adb33 | cirros-12net-guest1 | SHUTOFF | None | Shutdown | 12net=12.0.0.2, 192.169.142.12 | | af169342-777f-4b42-aee0-36c89115f093 | cirros-guest90 | ACTIVE | None | Running | int=30.0.0.2, 192.169.142.11 | +--------------------------------------+---------------------+---------+------------+-------------+--------------------------------+ =========== $ nova image-create cirros-guest90 snap1-cirros-guest90 =========== $ echo $? 0 =========== $ nova instance-action-list cirros-guest90 +--------+------------------------------------------+---------+----------------------------+ | Action | Request_ID | Message | Start_Time | +--------+------------------------------------------+---------+----------------------------+ | create | req-8616b85a-84e3-47f6-a0f7-6d027ff7ee8c | None | 2013-12-05T11:56:32.000000 | | stop | req-8f37c437-c389-4595-920a-7559405fe199 | None | 2013-12-09T11:11:17.000000 | | start | req-100c668d-c86d-4c3d-ae15-bd7b5d3fb692 | None | 2013-12-09T11:18:10.000000 | +--------+------------------------------------------+---------+----------------------------+ $ ===========
[Trying to triage RDO bugs. . .] Nova maintainers think this is a reasonable request?
It seems reasonable but I think this needs to be moved/reported upstream.
Stephen, makes sense to report upstream. Omri, since you filed the original bug, can you please clone/file the bug in upstream Launchpad?
It's not clear to me that this is a bug (arguably, "image-create" and "backup" do not affect the state of the instance), but in any case it should be reported upstream.