Friday, 2018-05-04

*** caoyuan has joined #openstack-zun00:13
*** caoyuan has quit IRC00:27
*** openstackgerrit has joined #openstack-zun00:48
openstackgerritweikeyou proposed openstack/zun master: Delete image residual data  https://review.openstack.org/56608300:48
*** chenyb4 has joined #openstack-zun01:06
*** spsurya has joined #openstack-zun01:14
*** caoyuan has joined #openstack-zun01:16
*** caoyuan has quit IRC01:17
*** caoyuan has joined #openstack-zun01:17
*** caoyuan has quit IRC01:23
*** caoyuan has joined #openstack-zun01:26
*** hongbin has joined #openstack-zun01:51
*** hongbin has quit IRC02:17
*** hongbin has joined #openstack-zun02:37
openstackgerritinspurericzhang proposed openstack/zun master: Update pypi url to new url  https://review.openstack.org/56620402:45
*** caisan has joined #openstack-zun03:03
chenyb4Hi, hongbin03:18
hongbinchenyb4: sup03:18
chenyb4hongbin, I think here was wrong. https://github.com/openstack/zun/blob/master/zun/compute/manager.py#L99603:19
hongbinmind elaborating03:19
chenyb4when search image, use image uuid, but docker not exist uuid image.03:20
hongbini see03: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
hongbinit sounds like the 'uuid' case is not handled03:21
chenyb4yes, i was change.03:21
hongbinsure03:22
chenyb4but use right image id search, the error exist. https://github.com/openstack/zun/blob/master/zun/image/docker/driver.py#L10403:24
chenyb4(Pdb) p repo03:24
chenyb4u'a5e21e1957b6efd3fe5d9a5bf044ef22a80b70f07b95f3e00f6d07ba8c6b90f5'03:24
chenyb4REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE03:24
chenyb4cirros              latest              a5e21e1957b6        6 months ago        7.73MB03:24
chenyb4hongbin, I don't know why there was a mistake.03:25
chenyb4zun not found image03:25
hongbinchenyb4: could you file a bug report for that? it would help if you can write down the steps for others to reproduce the error03:28
hongbini will take a closer look at it03:28
chenyb4Ok03:28
hongbinthx03:28
*** nicolasbock has quit IRC03:44
caisanhongbin,  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
caisanI cloud not execute any basic command, like zun list/iamge-list03:51
hongbincaisan: do you have a policy file in /etc/zun/ folder?03:52
caisanSurely, I execute as a role of admin03:52
caisanhongbin, you mean policy.json ?03:53
hongbincaisan: yes03:53
caisanhongbin, nope, should I create it manually ?03:53
hongbincaisan: no, you don't have to03:53
hongbincaisan:  in this case, you are using the default policy, which shouldn't give you this error03:54
hongbincaisan: you are using the master version?03:54
hongbincaisan: how about restarting the zun processes, the error still happen?03:55
caisanhongbin, I have tried master, pike, queens03:55
hongbinchenyb4: leave comment in your bug report03:55
caisanSame error occured03:55
chenyb4hongbin, ok03:56
hongbincaisan: run "tox -egenpolicy"03:57
hongbincaisan: it should generate the default policy file, it should specify the role for container:get_all03:58
hongbincaisan: see if you satisfy this role03:58
hongbincaisan: after the command finish, this file should be generated: etc/zun/policy.yaml.sample03:59
hongbincaisan: sorry, i need to leave now, it is late at the evening in my timezone04:01
hongbinsee you later04:02
caisanhongbin, seems this command need lots of seconds finished, waiting......04:02
caisanhongbin, thanks for you help :)04:02
caisanSee you04:02
hongbincaisan: consider filing a bug report if you still hit some issues04:02
caisanhongbin, ok04:02
*** hongbin has quit IRC04:02
openstackgerritchenyb4 proposed openstack/zun master: Fix image driver use docker search image error  https://review.openstack.org/56621104:08
*** janki has joined #openstack-zun04:15
openstackgerritDeepak Mourya proposed openstack/zun master: Introduce /availability-zone API endpoint  https://review.openstack.org/56467004:21
*** flwang1 has quit IRC05:02
*** threestrands has quit IRC05:47
*** nguyenhai has joined #openstack-zun06:12
*** nguyenhai_ has quit IRC06:16
openstackgerritKevin Zhao proposed openstack/zun master: Add started_at attribute to container  https://review.openstack.org/56596806:42
openstackgerritKevin Zhao proposed openstack/zun master: Add container start_at in compute node  https://review.openstack.org/56596906:42
*** caoyuan_ has joined #openstack-zun07:26
*** caoyuan has quit IRC07:29
*** caoyuan has joined #openstack-zun07:41
*** caoyuan_ has quit IRC07:45
*** janki has quit IRC07:57
*** nguyenhai has quit IRC08:54
*** janki has joined #openstack-zun09:03
*** junaidali has quit IRC09:08
openstackgerritPavlo Shchelokovskyy proposed openstack/python-zunclient master: Fix logger invocation in DeleteImage  https://review.openstack.org/56625009:10
*** vabada has quit IRC09:38
openstackgerritchenyb4 proposed openstack/zun master: Fix container create image not found error  https://review.openstack.org/56626009:39
openstackgerritchenyb4 proposed openstack/zun master: Fix container create image not found error  https://review.openstack.org/56626009:48
*** junaidali has joined #openstack-zun09:53
*** caisan has quit IRC10:02
*** chenyb4 has quit IRC10:06
*** caowei has quit IRC10:43
*** caoyuan has quit IRC10:47
*** spsurya has quit IRC10:56
openstackgerritKevin Zhao proposed openstack/zun master: [WIP]Capsule Status Sync  https://review.openstack.org/56628911:04
*** kevzha01_ has joined #openstack-zun11:17
*** kevzha01__ has quit IRC11:20
*** nicolasbock has joined #openstack-zun11:42
*** caoyuan has joined #openstack-zun11:47
*** caowei has joined #openstack-zun12:05
*** caowei has quit IRC12:05
*** kevzha01__ has joined #openstack-zun12:20
*** kevzha01_ has quit IRC12:24
*** kiennt26 has joined #openstack-zun14:10
*** chenyb4 has joined #openstack-zun14:19
*** hongbin has joined #openstack-zun14:43
*** chenyb4 has quit IRC14:44
*** fabian_ has joined #openstack-zun14:57
*** fabian_ is now known as chenyb414:58
*** nicolasbock has quit IRC15:26
*** caoyuan has quit IRC15:38
chenyb4Hi, hongbin15:40
*** nicolasbock has joined #openstack-zun15:40
hongbinchenyb4: hey15:40
chenyb4Use '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
chenyb4the image is uuid or image_id or repo ?15:41
chenyb4if the image in the local15:42
hongbinit seems the uuid is a random generated id15:42
hongbinimage_id seems to be the hash of the docker image15:43
chenyb4yes, so. use zun create  image (the image use image_id or repo ?)15:43
hongbini don't think anyone is using it so far, so i am not sure15:44
hongbinmost people are directly passing image repo/tag on creating the container, i.e. zun run nginx:latest15:45
chenyb4How can i use local image create ?15:45
hongbinit the image is pulled down in before, it will use it15:45
hongbinit will use it automatically15:46
hongbinso 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 down15:47
chenyb4Ok, I have always thought that the logic is zun uuid- >repo(database get)- >docker inspect image.15:49
hongbinfrom zun's perspective, the zun compute agent simply issue an API call to the local docker daemon, and the docker daemon handle the image pulling15:49
hongbindon't get your last comment15:50
chenyb4So, the uuid only is zun image record, No special purpose.15:51
hongbincorrect15:52
*** kiennt26 has quit IRC16:15
openstackgerritchenyb4 proposed openstack/python-zunclient master: Change container create image help message  https://review.openstack.org/56636316:42
*** chenyb4 has quit IRC16:45
*** janki has quit IRC18:19
*** hongbin has quit IRC23:01
*** caisan has joined #openstack-zun23:43

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!