Tuesday, 2016-12-27

zhenguomorning nimble!00:56
liushengmorning!01:15
*** Jeffrey4l has quit IRC01:39
*** Jeffrey4l has joined #openstack-nimble01:39
zhenguoliusheng: moring01:58
liushengzhenguo: morning :)01:58
zhenguoliusheng: so many internal meeting today, will be alive this afternoon :P01:59
liushengzhenguo: hah01:59
liushengzhenguo: you are so busy01:59
silencelimorning:)02:23
*** lambert has joined #openstack-nimble02:42
silenceliHello everyone, lambert is my colleague. He is also from china mobile, we both work on ironic and anything it's related to.02:51
shaohe_fengsilenceli: lambert: welcome02:52
silencelithx  :-)02:57
lambertHello everyone, i'm glad to have this opportunity to discuss something interesting with all of you, thanks!03:00
shaohe_fenglambert: yes. here is good to discuss interesting03:37
shaohe_fengzhenguo: liusheng: can you check your glance code?03:37
shaohe_fengzhenguo: liusheng: $ git show 5601f7f03:37
shaohe_fengzhenguo: liusheng: I have see this patch, it add a "img_config_drive" attr03:38
liushengzhenguo: ok, let my update the code firstly03:38
shaohe_fengzhenguo: liusheng: but http://developer.openstack.org/api-ref/image/v2/?expanded=show-image-details-detail03:39
shaohe_fengdoes not tell me how to get the "img_config_drive"03:39
shaohe_fengzhenguo: liusheng: we need to check the "img_config_drive" of a image.03:39
shaohe_fengzhenguo: liusheng: if the "img_config_drive" is mandatory, nimble need to generate the config_drive03:40
liushengshaohe_feng: seems a incompleted feature ?03:46
liushengzhenguo: the "img_config_drive" was only found once when i search the whole glance code03:47
shaohe_fengliusheng: I "git show 5601f7f", seems it support it.03:51
shaohe_fengliusheng: do we need to check this img_config_drive attr?03:52
shaohe_fengzhenguo: ^03:52
liushengzhenguo: yes, I mean I cannot found where glance use this metadata03:52
zhenguoshaohe_feng,liusheng: sorry, I have some internal stuff to deal with, will ping you back03:53
* zhenguo away03:53
shaohe_fengliusheng: yes. and I can not get the "img_config_drive" from the image docs.03:54
liushengshaohe_feng: so I doubt the patch is a part of the feature, and the feature is incompleted, not sure :)03:55
*** Jeffrey4l has quit IRC04:57
*** Jeffrey4l has joined #openstack-nimble04:58
*** l4yerffeJ has joined #openstack-nimble04:58
*** luyao has quit IRC07:02
zhenguoshaohe_feng, liusheng: hi, I'm back07:03
zhenguolambert: welcome!07:03
zhenguoshaohe_feng, liusheng: wrt config drive, do we need image_config_dirve?07:04
zhenguooh, seems nobody is here...07:06
*** zhangjl has joined #openstack-nimble07:06
zhenguosilenceli, lambert: in fact, you can try to play with nimble as we have already implemented the basic functionalities and it's really easy to setup an env with our devstack plugin :P07:09
*** l4yerffeJ has quit IRC07:11
*** l4yerffeJ has joined #openstack-nimble07:12
zhenguoliusheng: regarding https://review.openstack.org/#/c/414801/ , can we change to use net-id instead of net_id like nova?07:27
*** l4yerffeJ has quit IRC07:32
*** l4yerffeJ has joined #openstack-nimble07:33
*** l4yerffeJ has quit IRC07:45
liushengzhenguo: you mean in nimble code or in CLI commands ?07:52
liushengzhenguo: I prefer underline than strike in code07:53
zhenguoliusheng: in CLI, but I just found it's net-id indeed, hah but the commit message said it's net_id07:53
liushengzhenguo: lol07:53
zhenguoliusheng: agree, but in CLI seems better to use what like nova07:53
zhenguoliusheng: and I left a comment there, need to update that as well07:54
liushengzhenguo: yes, in CLI, it should be net-id07:54
zhenguoliusheng: yes, thanks07:55
openstackgerritliusheng proposed openstack/python-nimbleclient: Change "uuid" in instance post request body to "net_id"  https://review.openstack.org/41480107:58
openstackgerritZhenguo Niu proposed openstack/nimble: Refactor delete_instance  https://review.openstack.org/41367708:44
zhenguoKevin_Zheng: are you around?08:46
Kevin_Zhengyes whats up08:47
zhenguoI have a question, is az a mandatory arg when creating instance?08:48
Kevin_Zhengno but a default value will be assigned08:48
zhenguoso if you don't specify an az, it will assgin a default az08:49
zhenguook, thanks08:49
Kevin_ZhengNP08:49
zhenguoliusheng: so for us, do you think we should work like nova?08:50
liushengzhenguo: does ironic has default az ?08:51
zhenguoliusheng: no,08:52
zhenguoliusheng: we need to set az to ironic node properties08:52
zhenguoliusheng: currently if there's no az in ironic node, and users don't specify az, we just match them together08:53
zhenguoliusheng: seems like it's reasonable, hah08:53
liushengzhenguo: yes, I think we should08:54
zhenguoliusheng: but when show the instance, there's no any az information present08:55
liushengzhenguo: the az is a property of ironic node, not a property of nimble server, right ?08:55
zhenguoliusheng: no08:55
zhenguoliusheng: oh, yes, it's a property of ironic node,08:56
zhenguoliusheng: but instance need to include az information. as you may want to list instances by az08:56
liushengzhenguo: yes08:56
liushengzhenguo: agree08:56
liushengzhenguo: the az of a node is configured in ironic or set by ironic api ?08:57
zhenguoliusheng: by ironic api08:57
liushengzhenguo: if so, may we need to call ironic api to set the az info08:58
zhenguoliusheng: seems not, we just need to modify our node cache08:58
zhenguoliusheng: if the ironic node doens't have an az, we set the default az in our cache.08:58
zhenguoliusheng: no need to waste api call08:59
liushengzhenguo: but the node cache isn't persistent ?08:59
zhenguoliusheng: yes, and we dont need az persistent, we just need to check whether it has an az09:00
liushengzhenguo: so you propose the default az don't need to be set to the ironic nodes ?09:01
zhenguoliusheng: seems yes09:01
zhenguoliusheng: or we may also don't need to set in our node cache09:02
liushengzhenguo: hmm, i am not sure is there any problem about inconsistency09:02
zhenguoliusheng: as az seems just used for scheduling09:02
liushengzhenguo: seems reasonalbe09:03
zhenguoliusheng: you mean someone may want to call ironic api directly to see it's in which az?09:03
liushengzhenguo: yes09:03
zhenguoliusheng: at least, tenants can't do taht09:04
zhenguos/taht/that09:04
zhenguoliusheng: If operators want to do that, he should set it correctly09:04
liushengzhenguo: just because the ironic api is not for end users, right ?09:04
zhenguoliusheng: yes, it's a black box for end users09:05
liushengzhenguo: ok, so if the node in ironic has been set an az, we can specify the az to create sever, if we dont' specify an az, a default az will be assigned to the sever09:06
zhenguoliusheng: yes,09:06
liushengzhenguo: don't we need to expose the "set az" api in nimble ?09:06
liushengzhenguo: just pass the request to ironic api09:07
zhenguoliusheng: I don't think we should expose that to users09:07
liushengzhenguo: but nova provide that api09:08
zhenguoliusheng: really? users can set their az?09:08
liushengzhenguo: seems only for admin users09:08
zhenguoliusheng: hah, not sure if we need that, but now I think we don't09:09
liushengzhenguo: yes, agree, at least for now09:09
zhenguoliusheng: yes, and we have a set of ironic api for admin, so seems no need to add that09:10
liushengzhenguo: yes09:10
shaohe_fengzhenguo: I'm back09:11
zhenguoshaohe_feng: hah, welcome back09:11
shaohe_fengzhenguo: that are 3 ways in nova to require configdrive09:13
shaohe_fengzhenguo: let me show you.09:14
zhenguoshaohe_feng: seems we only need to care about the way for ironic09:14
zhenguoshaohe_feng: we only need to pass data to ironic, and ironic will save them to swift09:16
zhenguoshaohe_feng: during deployment, IPA will pull that data from swift, and add an extra partition to save it09:16
shaohe_fengzhenguo: https://github.com/openstack/nova/blob/master/nova/virt/configdrive.py#L15809:16
shaohe_fengzhenguo: instance.config_drive means pass it by API09:17
shaohe_fengzhenguo: API require to use configdrive09:17
shaohe_fengzhenguo: CONF.force_config_drive , config the require in conf file09:18
shaohe_fengzhenguo: instance.image_meta.properties.get09:18
zhenguoshaohe_feng: and we don't need to set config drive, or specify config drive with API, as it's the only way for us09:18
shaohe_fengzhenguo: the image glance  need config_drive, or the OS on the node will not works well after we install the image.09:19
zhenguoshaohe_feng: why glance image need that?09:20
zhenguoshaohe_feng: oh, yes, I remember when building image seems we need to specify configdrive09:21
shaohe_fengzhenguo: 1. API enable instance.config_drive 2. conf file enable CONF.force_config_drive 3. glance image require config_drive. instance.image_meta.properties.get("img_config_drive")09:21
zhenguoshaohe_feng:  these are the 3 ways or all required?09:22
shaohe_fengzhenguo: yes. Then we can inject the key or passwork or network config to the image when install node by config_drive09:22
shaohe_fengzhenguo: all means kvm, ironic and vmware?09:22
shaohe_fengzhenguo: you can seen the code is "or" https://github.com/openstack/nova/blob/master/nova/virt/configdrive.py#L16409:23
zhenguoshaohe_feng: ok, I will dig09:23
zhenguoshaohe_feng: but seems we don't need image support that09:24
shaohe_fengzhenguo: any of these 3 ways we config, then ironic will use config_drive09:24
shaohe_fengzhenguo: call you by wechat.09:24
zhenguoshaohe_feng: ok09:24
shaohe_fengzhenguo: git show 5601f7f09:27
shaohe_fengzhenguo: search img_config_drive09:27
shaohe_fengzhenguo: https://github.com/openstack/nova/blob/master/nova/virt/configdrive.py#L16409:28
shaohe_fengliusheng: has discuss with zhenguo, nimble will always enable config_drive09:40
zhenguoshaohe_feng, liusheng: wechat is really an effective communication tool :P09:41
shaohe_fengliusheng: so we do not care whether image need it.09:41
shaohe_fengzhenguo: yes, than IRC.09:41
zhenguoshaohe_feng: hah09:41
*** liusheng has quit IRC09:59
*** liusheng has joined #openstack-nimble10:00
zhenguoliusheng, shaohe_feng: do you think we need to create another webchat group just for contributors11:00
zhenguos/webchat/wechat11:01
liushengzhenguo: it is not good to talk technology in "大宝剑" group  lol11:04
zhenguoliusheng: yes, hah11:04
liushengzhenguo: I am OK11:04
zhenguoliusheng: ok11:05
zhenguozhangjl: hi, welcome here, are you also from china mobile?11:09
zhangjlno11:09
zhangjlfrom awcloud11:09
zhenguozhangjl: oh, welcome11:09
zhangjla new of nimble11:09
liushengzhangjl: welcome!11:09
zhangjlzhenguo,liusheng:Thanks11:10
zhenguozhangjl: I'm curious about how do you know this project?11:10
zhangjlenn, from github and openstack11:10
zhenguozhangjl: hah, please feel free to ping us if needed11:11
zhangjlzhenguo:That`s great!!!!11:11
zhenguozhangjl: you can first setup an env with our devstack plugin11:12
zhangjlzhenguo:yes11:12
zhenguozhangjl: ok, thanks11:13
zhangjl:-D11:14
zhangjlzhenguo:bye!11:16
zhenguozhangjl: see you!11:16
*** zhangjl has quit IRC11:16
zhenguoliusheng: still one thing left here https://review.openstack.org/#/c/414801/11:25
liushengzhenguo: ok, I am so careless11:26
zhenguoliusheng: hah11:26
openstackgerritliusheng proposed openstack/python-nimbleclient: Change "uuid" in instance post request body to "net_id"  https://review.openstack.org/41480111:28
openstackgerritZhenguo Niu proposed openstack/nimble: Add az check before instance create  https://review.openstack.org/41494912:07
openstackgerritliusheng proposed openstack/nimble: Add versioned notification related objects fields  https://review.openstack.org/41521412:26
openstackgerritliusheng proposed openstack/nimble: Add versioned object notification base(WIP)  https://review.openstack.org/41521512:26
openstackgerritliusheng proposed openstack/python-nimbleclient: Change "uuid" in instance post request body to "net-id"  https://review.openstack.org/41480112:30
openstackgerritliusheng proposed openstack/nimble: Add versioned notification related objects fields  https://review.openstack.org/41521412:35
openstackgerritliusheng proposed openstack/nimble: Add versioned object notification base(WIP)  https://review.openstack.org/41521512:35
openstackgerritliusheng proposed openstack/python-nimbleclient: Change "uuid" in instance post request body to "net-id"  https://review.openstack.org/41480112:43
openstackgerritZhenguo Niu proposed openstack/nimble: Change "uuid" in instance post request body to "net_id"  https://review.openstack.org/41477512:49
openstackgerritliusheng proposed openstack/nimble: Add versioned object notification base(WIP)  https://review.openstack.org/41521514:06
openstackgerritliusheng proposed openstack/nimble: Add versioned object notification base  https://review.openstack.org/41521514:07
*** l4yerffeJ has joined #openstack-nimble14:40
*** Jeffrey4l has quit IRC15:02
*** Jeffrey4l has joined #openstack-nimble15:09
*** Jeffrey4l has quit IRC15:12
*** Jeffrey4l has joined #openstack-nimble15:13
*** Jeffrey4l has quit IRC20:30
*** l4yerffeJ has quit IRC20:30
*** Jeffrey4l_ has joined #openstack-nimble20:31
*** l4yerffeJ_ has joined #openstack-nimble20:31
*** l4yerffeJ_ has quit IRC20:31
*** Jeffrey4l_ has quit IRC21:35
*** Jeffrey4l_ has joined #openstack-nimble21:36

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