Restore from snapshot is not working with resource references
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Rabi Mishra | ||
Newton |
Fix Committed
|
Undecided
|
Rabi Mishra | ||
Ocata |
Fix Committed
|
Undecided
|
Rabi Mishra |
Bug Description
OpenStack Release: Newton
OS: Ubuntu 16.04
While trying to restore a heat stack from its snapshot i.e. `openstack stack snapshot restore`, the stack status says " RESTORE_COMPLETE" but it actually does nothing. REBUILD never happens and the image of the instance never changes to snapshot image.
snapshot creation works just fine but restore functionality appears to be broken in Newton.
"openstack stack show" shows the "stack_status" as "RESTORE_COMPLETE" but the "resource_status" for "OS::Nova::Server" in "openstack stack resource list" is "SNAPSHOT_COMPLETE" while it should have been "UPDATE COMPLETE".
http://
$ openstack stack resource list syed_rollbacktest
+------
| resource_name | physical_
+------
| mysub_net | bacfc4a4-
| mybox | 44f533e0-
| router_interface | 40361f97-
| | fa37-4727-
| mybox_managemen
| myfloating_ip | fe066cc6-
| myconfig | 998b0339-
| router_gateway | 40361f97-
| | 84a1-ffa719257ad1 | | | |
| mysecurity_group | d21aade4-
| router | 40361f97-
| mynet | f854e5f1-
+------
$ openstack server show 44f533e0-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | management-
| config_drive | |
| created | 2017-04-
| flavor | 1C-1GB-20GB (b6560dce-
| hostId | dffe6d4398a25f8
| id | 44f533e0-
| image | Ubuntu 16.04 Xenial Xerus (2324095e-
| key_name | syed |
| name | mybox |
| progress | 0 |
| project_id | 42d9af4c2d72483
| properties | |
| security_groups | name='mysecurit
| status | ACTIVE |
| updated | 2017-04-
| user_id | 8ae69ffb933249e
| volumes_attached | |
+------
$ openstack image list | grep rollback
| 0dde39e3-
$ openstack stack show syed_rollbacktest
+------
| Field | Value |
+------
| id | 2d26d002-
| stack_name | syed_rollbacktest |
| description | No description |
| creation_time | 2017-04-
| updated_time | 2017-04-
| stack_status | RESTORE_COMPLETE |
| stack_status_reason | Stack RESTORE completed successfully |
| parameters | OS::project_id: 42d9af4c2d72483
| | OS::stack_id: 2d26d002-
| | OS::stack_name: syed_rollbacktest |
| | flavor: 1C-1GB-20GB |
| | image: Ubuntu 16.04 Xenial Xerus |
| | key_name: syed |
| | packages: '[]' |
| | public_net: ext-net |
| | |
| outputs | - description: Floating IP address in public network |
| | output_key: public_ip |
| | output_value: 89.46.85.20 |
| | |
| links | - href: https:/
| | 1dde03426a11 |
| | rel: self |
| | |
| parent | None |
| disable_rollback | True |
| deletion_time | None |
| stack_user_
| capabilities | [] |
| notification_topics | [] |
| stack_owner | None |
| timeout_mins | None |
| tags | None |
+------
$ openstack stack event list 2d26d002-
2017-04-28 10:53:28Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:29Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:30Z [syed_rollbackt
2017-04-28 10:53:31Z [syed_rollbackt
2017-04-28 10:53:31Z [syed_rollbackt
2017-04-28 10:53:32Z [syed_rollbackt
2017-04-28 10:53:32Z [syed_rollbackt
2017-04-28 10:53:33Z [syed_rollbackt
2017-04-28 10:53:44Z [syed_rollbackt
2017-04-28 10:53:44Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:56Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:54:57Z [syed_rollbackt
2017-04-28 10:55:20Z [syed_rollbackt
2017-04-28 10:55:20Z [syed_rollbackt
2017-04-28 11:00:13Z [syed_rollbackt
2017-04-28 11:00:19Z [syed_rollbackt
2017-04-28 11:00:19Z [syed_rollbackt
description: | updated |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → pike-2 |
summary: |
- Restore from snapshot is not working in Newton + Restore from snapshot is not working with resource references |
I could reproduce this in my setup. So both snapshot and restore do not work for nested stacks( i'e OS::Nova::Server in a nested stack). We don't seem to do anything, in case of snapshot we set the status to SNAPSHOT_COMPLETE for the nested stack resource and ignore it completely for restore.