[openstack-dev] [zun] "--image-driver glance" doesn't seem to work @ master

Waines, Greg Greg.Waines at windriver.com
Wed Jul 12 17:01:28 UTC 2017


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 at 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 at 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 at devstack-zun:~/devstack$ zun run --name ctn-ping --image-driver glance gregos ping 8.8.8.8

...

...
stack at 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 at devstack-zun:~/devstack$



Am I doing something wrong ?

Greg.





FULL logs below


stack at devstack-zun:~/devstack$ source openrc admin demo

WARNING: setting legacy OS_TENANT_NAME to support cli tools.

stack at 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 at 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 at 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 at 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 at 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 at 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 at 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 at devstack-zun:~/devstack$ zun run --name ctn-ping --image-driver glance gregos ping 8.8.8.8

...

...
stack at 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 at 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 at 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 at devstack-zun:~/devstack$



// I tried renaming the glance image to “gregos:latest” ... but that didn’t work either


Greg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170712/191add89/attachment.html>


More information about the OpenStack-dev mailing list