Bug https://bugs.launchpad.net/glance/+bug/1525915 points out that an image can be set back to queued which allows modifying the image bytes.
There is an alternative way to modify the bytes without having the image's status from 'active'.
When using locations a location which may be directly modified can be used:
$ glance --os-image-api-version 1 image-update --location http://example.com e2093a55-2aa2-454e-95b4-80a5a80f5043
In the above call http://example.com may be any domain/path which can be modified by the creator of the image.
Images whose locations have been added in this way have no checksum:
+------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | None | | container_format | bare | | created_at | 2015-12-14T14:53:41.000000 | | deleted | False | | deleted_at | None | | disk_format | raw | | id | e2093a55-2aa2-454e-95b4-80a5a80f5043 | | is_public | False | | min_disk | 0 | | min_ram | 0 | | name | http2 | | owner | 1358057831f74e66953dd6f283874d34 | | protected | False | | size | 1270 | | status | active | | updated_at | 2015-12-14T14:55:03.000000 | | virtual_size | None | +------------------+--------------------------------------+
Bug https:/ /bugs.launchpad .net/glance/ +bug/1525915 points out that an image can be set back to queued which allows modifying the image bytes.
There is an alternative way to modify the bytes without having the image's status from 'active'.
When using locations a location which may be directly modified can be used:
$ glance --os-image- api-version 1 image-update --location http:// example. com e2093a55- 2aa2-454e- 95b4-80a5a80f50 43
In the above call http:// example. com may be any domain/path which can be modified by the creator of the image.
Images whose locations have been added in this way have no checksum:
+------ ------- -----+- ------- ------- ------- ------- ------- --+ ------- -----+- ------- ------- ------- ------- ------- --+ 14T14:53: 41.000000 | 2aa2-454e- 95b4-80a5a80f50 43 | 6953dd6f283874d 34 | 14T14:55: 03.000000 | ------- -----+- ------- ------- ------- ------- ------- --+
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2015-12-
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | e2093a55-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | http2 |
| owner | 1358057831f74e6
| protected | False |
| size | 1270 |
| status | active |
| updated_at | 2015-12-
| virtual_size | None |
+------