Hi Greg, I created a bug to record the issue: https://bugs.launchpad.net/zun/+bug/1703955 . Due to this bug, Zun couldn’t find the docker image if the image was uploaded to glance under a different name. I think it will work if you can upload the image to glance with name “cirros”. For example:
$ docker pull cirros $ docker save cirros | glance image-create --visibility public --container-format=docker --disk-format=raw --name cirros $ zun run -i --name ctn-ping --image-driver glance cirros ping 8.8.8.8 Best regards, Hongbin From: Waines, Greg [mailto:greg.wai...@windriver.com] Sent: July-12-17 1:01 PM To: OpenStack Development Mailing List (not for usage questions) Subject: [openstack-dev] [zun] "--image-driver glance" doesn't seem to work @ master Just tried this, this morning. I can not launch a container when I specify to pull the container image from glance (instead of docker hub). I get an error back from docker saying the “<imageName>:latest” can not be found. I tried renaming the glance image to “<imageName>:latest” ... but that didn’t work either. stack@devstack-zun:~/devstack$ glance image-list +--------------------------------------+--------------------------+ | ID | Name | +--------------------------------------+--------------------------+ | 6483d319-69d8-4c58-b0fb-7338a1aff85f | cirros-0.3.5-x86_64-disk | | 3055d450-d780-4699-bc7d-3b83f3391fe9 | gregos | <-- it is of container format docker | e8f3cab8-056c-4851-9f67-141dda91b9a2 | kubernetes/pause | +--------------------------------------+--------------------------+ stack@devstack-zun:~/devstack$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE scratch latest 019a481dc9ea 5 days ago 0B kuryr/busybox latest a3bb6046b119 5 days ago 1.21MB cirros latest f8ce316a37a7 18 months ago 7.74MB kubernetes/pause latest f9d5de079539 2 years ago 240kB stack@devstack-zun:~/devstack$ zun run --name ctn-ping --image-driver glance gregos ping 8.8.8.8 ... ... stack@devstack-zun:~/devstack$ zun show ctn-ping +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | addresses | 10.0.0.6, fdac:1365:7242:0:f816:3eff:fea4:fb65 | | links | ["{u'href': u'http://10.10.10.17:9517/v1/containers/cb83a98c-776c-4ea8-83a7-ef3430f5e6d2', u'rel': u'self'}", "{u'href': u'http://10.10.10.17:9517/containers/cb83a98c-776c-4ea8-83a7-ef3430f5e6d2', u'rel': u'bookmark'}"] | | image | gregos | <SNIP> | | status | Error | <SNIP> | status_reason | Docker internal error: 404 Client Error: Not Found ("No such image: gregos:latest"). | <SNIP> stack@devstack-zun:~/devstack$ Am I doing something wrong ? Greg. FULL logs below stack@devstack-zun:~/devstack$ source openrc admin demo WARNING: setting legacy OS_TENANT_NAME to support cli tools. stack@devstack-zun:~/devstack$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE kuryr/busybox latest a3bb6046b119 5 days ago 1.21MB scratch latest 019a481dc9ea 5 days ago 0B kubernetes/pause latest f9d5de079539 2 years ago 240kB stack@devstack-zun:~/devstack$ docker pull cirros Using default tag: latest latest: Pulling from library/cirros a3ed95caeb02: Pull complete 8c4568d40636: Pull complete e6cc72aea3e6: Pull complete b5a1edf1e076: Pull complete Digest: sha256:9aa75497b46cc15cccceef625acee6017d7f3e78db9bd5f7b6b933feaa38e3ae Status: Downloaded newer image for cirros:latest stack@devstack-zun:~/devstack$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE scratch latest 019a481dc9ea 5 days ago 0B kuryr/busybox latest a3bb6046b119 5 days ago 1.21MB cirros latest f8ce316a37a7 18 months ago 7.74MB kubernetes/pause latest f9d5de079539 2 years ago 240kB stack@devstack-zun:~/devstack$ glance image-list +--------------------------------------+--------------------------+ | ID | Name | +--------------------------------------+--------------------------+ | 6483d319-69d8-4c58-b0fb-7338a1aff85f | cirros-0.3.5-x86_64-disk | | e8f3cab8-056c-4851-9f67-141dda91b9a2 | kubernetes/pause | +--------------------------------------+--------------------------+ stack@devstack-zun:~/devstack$ docker save cirros | glance image-create --visibility public --container-format=docker --disk-format=raw --name gregos +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | 128665df6dcc0f110d7dda7d3aa79b2f | | container_format | docker | | created_at | 2017-07-12T16:44:27Z | | disk_format | raw | | id | 3055d450-d780-4699-bc7d-3b83f3391fe9 | | min_disk | 0 | | min_ram | 0 | | name | gregos | | owner | c8398b3154094049960e86b3caba1a4a | | protected | False | | size | 8130560 | | status | active | | tags | [] | | updated_at | 2017-07-12T16:44:28Z | | virtual_size | None | | visibility | public | +------------------+--------------------------------------+ stack@devstack-zun:~/devstack$ glance image-list +--------------------------------------+--------------------------+ | ID | Name | +--------------------------------------+--------------------------+ | 6483d319-69d8-4c58-b0fb-7338a1aff85f | cirros-0.3.5-x86_64-disk | | 3055d450-d780-4699-bc7d-3b83f3391fe9 | gregos | | e8f3cab8-056c-4851-9f67-141dda91b9a2 | kubernetes/pause | +--------------------------------------+--------------------------+ stack@devstack-zun:~/devstack$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE scratch latest 019a481dc9ea 5 days ago 0B kuryr/busybox latest a3bb6046b119 5 days ago 1.21MB cirros latest f8ce316a37a7 18 months ago 7.74MB kubernetes/pause latest f9d5de079539 2 years ago 240kB stack@devstack-zun:~/devstack$ zun run --name ctn-ping --image-driver glance gregos ping 8.8.8.8 ... ... stack@devstack-zun:~/devstack$ zun list +--------------------------------------+----------+--------+----------+--------------------+------------------------------------------------+-------+ | uuid | name | image | status | task_state | addresses | ports | +--------------------------------------+----------+--------+----------+--------------------+------------------------------------------------+-------+ | cb83a98c-776c-4ea8-83a7-ef3430f5e6d2 | ctn-ping | gregos | Creating | container_creating | 10.0.0.6, fdac:1365:7242:0:f816:3eff:fea4:fb65 | [] | +--------------------------------------+----------+--------+----------+--------------------+------------------------------------------------+-------+ stack@devstack-zun:~/devstack$ zun list +--------------------------------------+----------+--------+--------+------------+------------------------------------------------+-------+ | uuid | name | image | status | task_state | addresses | ports | +--------------------------------------+----------+--------+--------+------------+------------------------------------------------+-------+ | cb83a98c-776c-4ea8-83a7-ef3430f5e6d2 | ctn-ping | gregos | Error | None | 10.0.0.6, fdac:1365:7242:0:f816:3eff:fea4:fb65 | [] | +--------------------------------------+----------+--------+--------+------------+------------------------------------------------+-------+ stack@devstack-zun:~/devstack$ zun show ctn-ping +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | addresses | 10.0.0.6, fdac:1365:7242:0:f816:3eff:fea4:fb65 | | links | ["{u'href': u'http://10.10.10.17:9517/v1/containers/cb83a98c-776c-4ea8-83a7-ef3430f5e6d2', u'rel': u'self'}", "{u'href': u'http://10.10.10.17:9517/containers/cb83a98c-776c-4ea8-83a7-ef3430f5e6d2', u'rel': u'bookmark'}"] | | image | gregos | | labels | {} | | security_groups | [] | | image_pull_policy | None | | uuid | cb83a98c-776c-4ea8-83a7-ef3430f5e6d2 | | hostname | None | | environment | {} | | memory | None | | status | Error | | workdir | None | | status_detail | None | | host | None | | image_driver | glance | | task_state | None | | status_reason | Docker internal error: 404 Client Error: Not Found ("No such image: gregos:latest"). | | name | ctn-ping | | restart_policy | {} | | ports | [] | | command | "ping" "8.8.8.8" | | cpu | None | | interactive | False | +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ stack@devstack-zun:~/devstack$ // I tried renaming the glance image to “gregos:latest” ... but that didn’t work either Greg.
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev