yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66027
[Bug 1706068] [NEW] (docker) uploaded and downloaded image having different image name
Public bug reported:
Hi team,
i uploaded my docker images to glance with user-defined image name. Its
uploaded successfully and i downloaded the same using "image save" as
tar file. But inside tar file the glance image name is updated. Kindly
refer the following steps:
_______________
root@cooldharma06:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
scratch latest 27afa157f925 3 days ago 0B
kuryr/busybox latest 61627aa6a64c 3 days ago 1.21MB
<none> <none> 7349d65f4871 3 days ago 0B
ubuntu 16.04 d355ed3537e9 4 weeks ago 119MB
cirros latest f8ce316a37a7 18 months ago 7.74MB
kubernetes/pause latest f9d5de079539 3 years ago 240kB
root@cooldharma06:~# docker save cirros | openstack image create cir-mine --disk-format raw --container-format docker
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | 3b1fb1b184fd8bf69caac45f532c9b4b |
| container_format | docker |
| created_at | 2017-07-24T12:41:54Z |
| disk_format | raw |
| file | /v2/images/1ca19965-6ecd-4149-b752-f353a6d1ff28/file |
| id | 1ca19965-6ecd-4149-b752-f353a6d1ff28 |
| min_disk | 0 |
| min_ram | 0 |
| name | cir-mine |
| owner | 364c310ac3384deea23ff9d34c5e0b35 |
| protected | False |
| schema | /v2/schemas/image |
| size | 8130560 |
| status | active |
| tags | |
| updated_at | 2017-07-24T12:41:55Z |
| virtual_size | None |
| visibility | shared |
+------------------+------------------------------------------------------+
root@cooldharma06:~# glance image-show 1ca19965-6ecd-4149-b752-f353a6d1ff28
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 3b1fb1b184fd8bf69caac45f532c9b4b |
| container_format | docker |
| created_at | 2017-07-24T12:41:54Z |
| disk_format | raw |
| id | 1ca19965-6ecd-4149-b752-f353a6d1ff28 |
| min_disk | 0 |
| min_ram | 0 |
| name | cir-mine |
| owner | 364c310ac3384deea23ff9d34c5e0b35 |
| protected | False |
| size | 8130560 |
| status | active |
| tags | [] |
| updated_at | 2017-07-24T12:41:55Z |
| virtual_size | None |
| visibility | shared |
+------------------+--------------------------------------+
root@cooldharma06:~# openstack image save --file cir-mine.tar
1ca19965-6ecd-4149-b752-f353a6d1ff28
root@cooldharma06:~# vi cir-mine.tar
" tar.vim version v29
" Browsing tarfile /root/cir-mine.tar
" Select a file with cursor and press ENTER
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/VERSION
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/json
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/layer.tar
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/VERSION
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/json
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/layer.tar
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/VERSION
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/json
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/layer.tar
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/VERSION
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/json
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/layer.tar
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/VERSION
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/json
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/layer.tar
f8ce316a37a79a89cb6f9ef65f23b38893fe291b519a8b18cf08af65872f02a9.json
manifest.json
repositories
~
$vi manifest.json
[{"Config":"f8ce316a37a79a89cb6f9ef65f23b38893fe291b519a8b18cf08af65872f02a9.json","RepoTags":["cirros:latest"],"Layers":["3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/layer.tar","772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/layer.tar","75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/layer.tar","413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/layer.tar","a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/layer.tar"]}]
RepoTags: Its still as cirros:latest its not updating the glance image name i.e., cir-mine
regards,
cooldharma06 .. :)
** Affects: glance
Importance: Undecided
Status: New
** Tags: docker glance image-upload
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1706068
Title:
(docker) uploaded and downloaded image having different image name
Status in Glance:
New
Bug description:
Hi team,
i uploaded my docker images to glance with user-defined image name.
Its uploaded successfully and i downloaded the same using "image save"
as tar file. But inside tar file the glance image name is updated.
Kindly refer the following steps:
_______________
root@cooldharma06:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
scratch latest 27afa157f925 3 days ago 0B
kuryr/busybox latest 61627aa6a64c 3 days ago 1.21MB
<none> <none> 7349d65f4871 3 days ago 0B
ubuntu 16.04 d355ed3537e9 4 weeks ago 119MB
cirros latest f8ce316a37a7 18 months ago 7.74MB
kubernetes/pause latest f9d5de079539 3 years ago 240kB
root@cooldharma06:~# docker save cirros | openstack image create cir-mine --disk-format raw --container-format docker
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | 3b1fb1b184fd8bf69caac45f532c9b4b |
| container_format | docker |
| created_at | 2017-07-24T12:41:54Z |
| disk_format | raw |
| file | /v2/images/1ca19965-6ecd-4149-b752-f353a6d1ff28/file |
| id | 1ca19965-6ecd-4149-b752-f353a6d1ff28 |
| min_disk | 0 |
| min_ram | 0 |
| name | cir-mine |
| owner | 364c310ac3384deea23ff9d34c5e0b35 |
| protected | False |
| schema | /v2/schemas/image |
| size | 8130560 |
| status | active |
| tags | |
| updated_at | 2017-07-24T12:41:55Z |
| virtual_size | None |
| visibility | shared |
+------------------+------------------------------------------------------+
root@cooldharma06:~# glance image-show 1ca19965-6ecd-4149-b752-f353a6d1ff28
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 3b1fb1b184fd8bf69caac45f532c9b4b |
| container_format | docker |
| created_at | 2017-07-24T12:41:54Z |
| disk_format | raw |
| id | 1ca19965-6ecd-4149-b752-f353a6d1ff28 |
| min_disk | 0 |
| min_ram | 0 |
| name | cir-mine |
| owner | 364c310ac3384deea23ff9d34c5e0b35 |
| protected | False |
| size | 8130560 |
| status | active |
| tags | [] |
| updated_at | 2017-07-24T12:41:55Z |
| virtual_size | None |
| visibility | shared |
+------------------+--------------------------------------+
root@cooldharma06:~# openstack image save --file cir-mine.tar
1ca19965-6ecd-4149-b752-f353a6d1ff28
root@cooldharma06:~# vi cir-mine.tar
" tar.vim version v29
" Browsing tarfile /root/cir-mine.tar
" Select a file with cursor and press ENTER
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/VERSION
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/json
3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/layer.tar
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/VERSION
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/json
413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/layer.tar
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/VERSION
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/json
75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/layer.tar
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/VERSION
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/json
772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/layer.tar
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/VERSION
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/json
a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/layer.tar
f8ce316a37a79a89cb6f9ef65f23b38893fe291b519a8b18cf08af65872f02a9.json
manifest.json
repositories
~
$vi manifest.json
[{"Config":"f8ce316a37a79a89cb6f9ef65f23b38893fe291b519a8b18cf08af65872f02a9.json","RepoTags":["cirros:latest"],"Layers":["3f563b34b1e69c88fe5a29b5164c32eb7c73f1a71aefb21e9a9e6f1edf564fc4/layer.tar","772085bec9f76eaaf7b6efedefbd216496bc76c0645dc1ada97a4000a070f0a8/layer.tar","75e01d4ecc5bd4a98ba07bfb57b9247c88ebb904e4f8b927824f91a974944486/layer.tar","413a13e317b492865ce57c46781bbe71ca4ef0c7d04c39db90ce8aa3f601a423/layer.tar","a4a367fcc82204aebb60e3867f86d71e3f940ded80299391f416af82a208492e/layer.tar"]}]
RepoTags: Its still as cirros:latest its not updating the glance image name i.e., cir-mine
regards,
cooldharma06 .. :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1706068/+subscriptions
Follow ups