rebuild instance will delete instance's image_base_image_ref
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Chaolei Li |
Bug Description
When i rebuild an instance with a base image that has no property of base_image_ref, i find that the instance's system_metadada image_base_
Here is the system_metadata of an instance:
$ MariaDB [nova]> select * from instance_
+------
| created_at | updated_at | deleted_at | id | instance_uuid | key | value | deleted |
+------
| 2017-04-17 10:16:07 | NULL | NULL | 111215 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111216 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111217 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111218 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111219 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111220 | f885595b-
+------
Now we rebuild this instance choosing a base image.
$ nova rebuild f885595b-
$ MariaDB [nova]> select * from instance_
+------
| created_at | updated_at | deleted_at | id | instance_uuid | key | value | deleted |
+------
| 2017-04-17 10:16:07 | NULL | NULL | 111215 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111216 | f885595b-
| 2017-04-17 10:16:07 | 2017-04-18 06:47:38 | NULL | 111217 | f885595b-
| 2017-04-17 10:16:07 | 2017-04-18 06:47:38 | NULL | 111218 | f885595b-
| 2017-04-17 10:16:07 | 2017-04-18 06:47:38 | 2017-04-18 06:47:38 | 111219 | f885595b-
| 2017-04-17 10:16:07 | NULL | NULL | 111220 | f885595b-
| 2017-04-18 06:47:42 | NULL | NULL | 111463 | f885595b-
+------
we can see that the image_min_ram and image_min_disk are updated but the image_base_
Fix proposed to branch: master /review. openstack. org/457514
Review: https:/