*** caoyuan has joined #openstack-zun | 00:13 | |
*** caoyuan has quit IRC | 00:27 | |
*** openstackgerrit has joined #openstack-zun | 00:48 | |
openstackgerrit | weikeyou proposed openstack/zun master: Delete image residual data https://review.openstack.org/566083 | 00:48 |
---|---|---|
*** chenyb4 has joined #openstack-zun | 01:06 | |
*** spsurya has joined #openstack-zun | 01:14 | |
*** caoyuan has joined #openstack-zun | 01:16 | |
*** caoyuan has quit IRC | 01:17 | |
*** caoyuan has joined #openstack-zun | 01:17 | |
*** caoyuan has quit IRC | 01:23 | |
*** caoyuan has joined #openstack-zun | 01:26 | |
*** hongbin has joined #openstack-zun | 01:51 | |
*** hongbin has quit IRC | 02:17 | |
*** hongbin has joined #openstack-zun | 02:37 | |
openstackgerrit | inspurericzhang proposed openstack/zun master: Update pypi url to new url https://review.openstack.org/566204 | 02:45 |
*** caisan has joined #openstack-zun | 03:03 | |
chenyb4 | Hi, hongbin | 03:18 |
hongbin | chenyb4: sup | 03:18 |
chenyb4 | hongbin, I think here was wrong. https://github.com/openstack/zun/blob/master/zun/compute/manager.py#L996 | 03:19 |
hongbin | mind elaborating | 03:19 |
chenyb4 | when search image, use image uuid, but docker not exist uuid image. | 03:20 |
hongbin | i see | 03:21 |
chenyb4 | if image_driver_name == 'docker': | 03:21 |
chenyb4 | image_id = objects.Image.get_by_uuid(context, image) | 03:21 |
chenyb4 | repo, tag = utils.parse_image_name(image_id.image_id, | 03:21 |
chenyb4 | image_driver_name) | 03:21 |
hongbin | it sounds like the 'uuid' case is not handled | 03:21 |
chenyb4 | yes, i was change. | 03:21 |
hongbin | sure | 03:22 |
chenyb4 | but use right image id search, the error exist. https://github.com/openstack/zun/blob/master/zun/image/docker/driver.py#L104 | 03:24 |
chenyb4 | (Pdb) p repo | 03:24 |
chenyb4 | u'a5e21e1957b6efd3fe5d9a5bf044ef22a80b70f07b95f3e00f6d07ba8c6b90f5' | 03:24 |
chenyb4 | REPOSITORY TAG IMAGE ID CREATED SIZE | 03:24 |
chenyb4 | cirros latest a5e21e1957b6 6 months ago 7.73MB | 03:24 |
chenyb4 | hongbin, I don't know why there was a mistake. | 03:25 |
chenyb4 | zun not found image | 03:25 |
hongbin | chenyb4: could you file a bug report for that? it would help if you can write down the steps for others to reproduce the error | 03:28 |
hongbin | i will take a closer look at it | 03:28 |
chenyb4 | Ok | 03:28 |
hongbin | thx | 03:28 |
*** nicolasbock has quit IRC | 03:44 | |
caisan | hongbin, I got same error "ERROR: Policy doesn't allow container:get_all to be performed.", When I try many times on every stable branch(pike/queens), Is there I miss something ? | 03:50 |
caisan | I cloud not execute any basic command, like zun list/iamge-list | 03:51 |
hongbin | caisan: do you have a policy file in /etc/zun/ folder? | 03:52 |
caisan | Surely, I execute as a role of admin | 03:52 |
caisan | hongbin, you mean policy.json ? | 03:53 |
hongbin | caisan: yes | 03:53 |
caisan | hongbin, nope, should I create it manually ? | 03:53 |
hongbin | caisan: no, you don't have to | 03:53 |
hongbin | caisan: in this case, you are using the default policy, which shouldn't give you this error | 03:54 |
hongbin | caisan: you are using the master version? | 03:54 |
hongbin | caisan: how about restarting the zun processes, the error still happen? | 03:55 |
caisan | hongbin, I have tried master, pike, queens | 03:55 |
hongbin | chenyb4: leave comment in your bug report | 03:55 |
caisan | Same error occured | 03:55 |
chenyb4 | hongbin, ok | 03:56 |
hongbin | caisan: run "tox -egenpolicy" | 03:57 |
hongbin | caisan: it should generate the default policy file, it should specify the role for container:get_all | 03:58 |
hongbin | caisan: see if you satisfy this role | 03:58 |
hongbin | caisan: after the command finish, this file should be generated: etc/zun/policy.yaml.sample | 03:59 |
hongbin | caisan: sorry, i need to leave now, it is late at the evening in my timezone | 04:01 |
hongbin | see you later | 04:02 |
caisan | hongbin, seems this command need lots of seconds finished, waiting...... | 04:02 |
caisan | hongbin, thanks for you help :) | 04:02 |
caisan | See you | 04:02 |
hongbin | caisan: consider filing a bug report if you still hit some issues | 04:02 |
caisan | hongbin, ok | 04:02 |
*** hongbin has quit IRC | 04:02 | |
openstackgerrit | chenyb4 proposed openstack/zun master: Fix image driver use docker search image error https://review.openstack.org/566211 | 04:08 |
*** janki has joined #openstack-zun | 04:15 | |
openstackgerrit | Deepak Mourya proposed openstack/zun master: Introduce /availability-zone API endpoint https://review.openstack.org/564670 | 04:21 |
*** flwang1 has quit IRC | 05:02 | |
*** threestrands has quit IRC | 05:47 | |
*** nguyenhai has joined #openstack-zun | 06:12 | |
*** nguyenhai_ has quit IRC | 06:16 | |
openstackgerrit | Kevin Zhao proposed openstack/zun master: Add started_at attribute to container https://review.openstack.org/565968 | 06:42 |
openstackgerrit | Kevin Zhao proposed openstack/zun master: Add container start_at in compute node https://review.openstack.org/565969 | 06:42 |
*** caoyuan_ has joined #openstack-zun | 07:26 | |
*** caoyuan has quit IRC | 07:29 | |
*** caoyuan has joined #openstack-zun | 07:41 | |
*** caoyuan_ has quit IRC | 07:45 | |
*** janki has quit IRC | 07:57 | |
*** nguyenhai has quit IRC | 08:54 | |
*** janki has joined #openstack-zun | 09:03 | |
*** junaidali has quit IRC | 09:08 | |
openstackgerrit | Pavlo Shchelokovskyy proposed openstack/python-zunclient master: Fix logger invocation in DeleteImage https://review.openstack.org/566250 | 09:10 |
*** vabada has quit IRC | 09:38 | |
openstackgerrit | chenyb4 proposed openstack/zun master: Fix container create image not found error https://review.openstack.org/566260 | 09:39 |
openstackgerrit | chenyb4 proposed openstack/zun master: Fix container create image not found error https://review.openstack.org/566260 | 09:48 |
*** junaidali has joined #openstack-zun | 09:53 | |
*** caisan has quit IRC | 10:02 | |
*** chenyb4 has quit IRC | 10:06 | |
*** caowei has quit IRC | 10:43 | |
*** caoyuan has quit IRC | 10:47 | |
*** spsurya has quit IRC | 10:56 | |
openstackgerrit | Kevin Zhao proposed openstack/zun master: [WIP]Capsule Status Sync https://review.openstack.org/566289 | 11:04 |
*** kevzha01_ has joined #openstack-zun | 11:17 | |
*** kevzha01__ has quit IRC | 11:20 | |
*** nicolasbock has joined #openstack-zun | 11:42 | |
*** caoyuan has joined #openstack-zun | 11:47 | |
*** caowei has joined #openstack-zun | 12:05 | |
*** caowei has quit IRC | 12:05 | |
*** kevzha01__ has joined #openstack-zun | 12:20 | |
*** kevzha01_ has quit IRC | 12:24 | |
*** kiennt26 has joined #openstack-zun | 14:10 | |
*** chenyb4 has joined #openstack-zun | 14:19 | |
*** hongbin has joined #openstack-zun | 14:43 | |
*** chenyb4 has quit IRC | 14:44 | |
*** fabian_ has joined #openstack-zun | 14:57 | |
*** fabian_ is now known as chenyb4 | 14:58 | |
*** nicolasbock has quit IRC | 15:26 | |
*** caoyuan has quit IRC | 15:38 | |
chenyb4 | Hi, hongbin | 15:40 |
*** nicolasbock has joined #openstack-zun | 15:40 | |
hongbin | chenyb4: hey | 15:40 |
chenyb4 | Use 'zun help create' <image> name or ID of the image . about image, how can i use? | 15:41 |
chenyb4 | | uuid | image_id | repo | tag | size | | 15:41 |
chenyb4 | +--------------------------------------+-------------------------------------------------------------------------+--------+--------+---------+ | 15:41 |
chenyb4 | | ed6c80e8-bee4-47a6-8958-1cd10e6058b4 | sha256:a5e21e1957b6efd3fe5d9a5bf044ef22a80b70f07b95f3e00f6d07ba8c6b90f5 | cirros | latest | 7735365 | | 15:41 |
chenyb4 | +--------------------------------------+-------------------------------------------------------------------------+--------+--------+---------+ | 15:41 |
chenyb4 | the image is uuid or image_id or repo ? | 15:41 |
chenyb4 | if the image in the local | 15:42 |
hongbin | it seems the uuid is a random generated id | 15:42 |
hongbin | image_id seems to be the hash of the docker image | 15:43 |
chenyb4 | yes, so. use zun create image (the image use image_id or repo ?) | 15:43 |
hongbin | i don't think anyone is using it so far, so i am not sure | 15:44 |
hongbin | most people are directly passing image repo/tag on creating the container, i.e. zun run nginx:latest | 15:45 |
chenyb4 | How can i use local image create ? | 15:45 |
hongbin | it the image is pulled down in before, it will use it | 15:45 |
hongbin | it will use it automatically | 15:46 |
hongbin | so zun simply ask docker to 'pull' the image with specified repo/tag, and docker is smart enough to detect if the image is presented locally, if not, pull it down | 15:47 |
chenyb4 | Ok, I have always thought that the logic is zun uuid- >repo(database get)- >docker inspect image. | 15:49 |
hongbin | from zun's perspective, the zun compute agent simply issue an API call to the local docker daemon, and the docker daemon handle the image pulling | 15:49 |
hongbin | don't get your last comment | 15:50 |
chenyb4 | So, the uuid only is zun image record, No special purpose. | 15:51 |
hongbin | correct | 15:52 |
*** kiennt26 has quit IRC | 16:15 | |
openstackgerrit | chenyb4 proposed openstack/python-zunclient master: Change container create image help message https://review.openstack.org/566363 | 16:42 |
*** chenyb4 has quit IRC | 16:45 | |
*** janki has quit IRC | 18:19 | |
*** hongbin has quit IRC | 23:01 | |
*** caisan has joined #openstack-zun | 23:43 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!