Friday, 2016-12-23

*** l4yerffeJ has quit IRC00:28
*** l4yerffeJ has joined #openstack-nimble00:28
zhenguomorning nimble!01:48
openstackgerritMerged openstack/nimble: Updated from global requirements  https://review.openstack.org/41427102:10
shaohe_fengzhenguo: morning02:56
zhenguoshaohe_feng: o/02:56
liushengmorning02:56
zhenguoliusheng: o/02:57
shaohe_fengzhenguo: I'm in a internal meeting.03:00
shaohe_fengzhenguo: It's for vGPU. intel's vGPU has been in upstreamed03:01
shaohe_fengzhenguo: kernal upstream03:01
zhenguoshaohe_feng: cool,03:01
zhenguoshaohe_feng: i have some internal stuff to deal with, will ping you back,03:01
* zhenguo brb03:01
shaohe_fengzhenguo: allo the patch, more than 20 thousand lines.03:02
shaohe_fengzhenguo: al of these patches are done by Chinese.03:02
*** yuntongjin has joined #openstack-nimble03:47
*** l4yerffeJ has quit IRC03:57
*** yuntongjin has quit IRC04:35
*** kevinz has joined #openstack-nimble05:02
*** yuntongjin has joined #openstack-nimble05:53
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part1)  https://review.openstack.org/41444807:06
*** yuntongjin has quit IRC07:17
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part1)  https://review.openstack.org/41444807:34
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part2)  https://review.openstack.org/41446407:34
*** yuntongjin has joined #openstack-nimble07:42
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part2)  https://review.openstack.org/41446407:52
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part2)  https://review.openstack.org/41446407:59
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part1)  https://review.openstack.org/41444807:59
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part3)  https://review.openstack.org/41447208:15
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part4)  https://review.openstack.org/41448108:49
*** yuntongjin has quit IRC09:03
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part4)  https://review.openstack.org/41448109:23
openstackgerritliusheng proposed openstack/python-nimbleclient: Refactor: change *instance* to *server* (part4)  https://review.openstack.org/41448109:34
openstackgerritZhenguo Niu proposed openstack/nimble: Refactor to soft delete instance  https://review.openstack.org/41451709:40
zhenguoliusheng: hi, I add instance.id back09:41
liushengzhenguo: why need instance.id09:41
zhenguoliusheng: as soft_delete() will set instance.deleted=instance.id09:42
zhenguoliusheng: id is a internal column, need by soft_delete() method09:42
liushengzhenguo: oh, I see09:43
liushengzhenguo: it is only used internallly, right ?09:44
zhenguoliusheng: yes, it will never expose to end users09:44
liushengzhenguo: ok, the patch I committed is not only remove the instance.id and set uuid as primary key09:45
zhenguoliusheng: why uuid as primary key09:45
zhenguoliusheng: id should be primary key and uuid is unique constraints09:45
liushengzhenguo: I mean I have fix some other issues in the patch, not only use uuid as primary key09:46
zhenguoliusheng: ok09:46
zhenguoliusheng: I find a issue when using 'instance list'09:47
zhenguoliusheng: there are are Instance Type and Networks, but it's empty09:47
liushengzhenguo: I have found one, not sure same, lol09:47
liushengzhenguo: yes09:47
zhenguoliusheng: haha09:47
liushengzhenguo: oh, it is not same issue09:48
liushengzhenguo: you mean the two columns are empty ?09:48
zhenguoliusheng: yes, but if I use instance show, it will present09:49
liushengzhenguo: I have fix it, https://review.openstack.org/#/c/412326/09:49
liushengzhenguo: do you have update your client09:49
liushenghttps://bugs.launchpad.net/python-nimbleclient/+bug/165102109:50
openstackLaunchpad bug 1651021 in python-nimbleclient "The instance list command don't return instance_type, networks" [Undecided,Fix released] - Assigned to Liusheng (liusheng)09:50
zhenguoliusheng: oh, seems not, will update soon09:50
liushengzhenguo: another issue I found, the "instance list" command will return emty some times, but some times it will return the instance list09:50
liushengzhenguo: it is werid09:51
liushengzhenguo: something wrong with nimble-api side09:51
zhenguoliusheng: you mean empty instance list or some fields ?09:51
liushengroot@liusheng:/opt/stack/python-nimbleclient# openstack baremetal server list09:51
liushengzhenguo: it return empty09:51
liushengzhenguo: but actually I have a instance09:52
zhenguoliusheng: is there some error in api log09:52
liushengzhenguo: no09:53
liushengzhenguo: I have checked in db09:53
zhenguoliusheng: really wired09:53
liushengzhenguo: some times it is ok09:53
zhenguos/wired/weird09:53
zhenguoliusheng: oh, just realized, you have finished the rename work?09:56
liushengzhenguo: yes09:56
liushengzhenguo: the 4 patches09:56
zhenguoliusheng: nice09:56
zhenguoliusheng: I will have a presentation in tomorrow's OpenStack Meetup, maybe I can show our new CLI, hah09:57
liushengzhenguo: cool09:57
liushengzhenguo: so may need to fix the issue I said today, lol09:58
zhenguoliusheng: yes, hah09:58
liushengzhenguo: I will fix it tonight09:59
zhenguoliusheng: really appreciate09:59
liushengzhenguo: np :)09:59
zhenguoshaohe_feng: will you go to tomorrow's meetup?10:00
zhenguoshaohe_feng: seems in Intel10:00
liushengzhenguo: seems I don't update the mimble code in my env10:02
liushengzhenguo: maybe it is not an issue, hah10:02
zhenguoliusheng: lol10:02
liushengzhenguo: I cannot reproduce now :(10:02
zhenguoliusheng: hah, so i'ts not a issue if you can't produce10:03
liushengzhenguo: openstack baremetal server list --detailed, this command can show the flavor, networks10:03
liushengzhenguo: openstack baremetal server list only uuid, name, status10:03
zhenguoliusheng: ok, I'm updating my client now,10:04
liushengzhenguo: they are GET /instances and GET /instances/detail in nimble-api side10:04
zhenguoliusheng: yes, and detail will get some information from ironic10:05
zhenguoliusheng: but I don't quite like the current way10:05
liushengzhenguo: what you prefer10:06
zhenguoliusehng: I would like to cache the node information instead of issuing ironic API call then there's a request comming10:06
zhenguos/then/when10:06
zhenguoliusheng: we should try to reduce users' requests time,10:07
liushengzhenguo: agree!10:08
zhenguoliusheng: hah10:08
zhenguoliusheng: oh, after updated, I see the instance type and network info column disappeared, thanks!10:10
liushengzhenguo: hah10:10
liushengzhenguo: I need to go home :)10:11
* zhenguo away for dinner10:11
zhenguoliusheng: see you10:11
liushengzhenguo: enjoy10:11
zhenguoliusheng: thanks10:11
*** kevinz has quit IRC10:24
*** l4yerffeJ has joined #openstack-nimble11:33
openstackgerritZhenguo Niu proposed openstack/nimble: Refactor to soft delete instance  https://review.openstack.org/41451711:51
openstackgerritMerged openstack/nimble: Refactor to soft delete instance  https://review.openstack.org/41451713:04
shaohe_fengzhenguo: I will go to the meeting up.15:12
zhenguoshaohe_feng: hah, see you there15:13
shaohe_fengzhenguo: yes. just see your message15:13
shaohe_fengzhenguo: I'm out of office this afternoon15:14
zhenguoshaohe_feng: hah, why are you still online15:14
shaohe_fengzhenguo: I'n need to by a house for my car.15:14
zhenguoshaohe_feng: in fact, tomorrow is a work day for us15:14
shaohe_fengzhenguo: yes.15:15
zhenguoshaohe_feng: I men for huawei guys15:15
shaohe_fengzhenguo: oh, got it15:15
shaohe_fengzhenguo: every the last satudays15:15
zhenguoshaohe_feng: yeah, hah15:15
shaohe_fengzhenguo: so you deserved high salary.15:16
zhenguoshaohe_feng: we will get double pay for the work day like tomorrow15:16
zhenguoextra work da15:17
shaohe_fengzhenguo: I'm not buzy at this time every day.15:17
shaohe_fengzhenguo: My son go to sleep, so I can do some work. haha15:18
zhenguoshaohe_feng: hah15:18
shaohe_fengzhenguo: double pay. Huawei is a conscientious company15:19
zhenguoshaohe_feng: lol15:20
openstackgerritMerged openstack/nimble: Add node NotFound to messaging expected_exceptions  https://review.openstack.org/41391515:20
zhenguoshaohe_feng: I have changed to use soft delete now15:22
shaohe_fengzhenguo: so the soft delete means does not delete the DB?15:22
zhenguoshaohe_feng: yes, seems soft delete is a common use, not only for openstack15:23
shaohe_fengzhenguo: nice.15:24
shaohe_fengzhenguo: do we support hard delete? :)15:24
zhenguoshaohe_feng: no15:25
zhenguoliusheng: thanks for the cool CLI, I'm really like to type like that, lol15:27
shaohe_fengzhenguo: OK. A good design means meet usrs' requirements15:28
zhenguoshaohe_feng: sure, hah15:29
zhenguoshaohe_feng: I also learned some other thing from nova while reading their soft delete codes15:30
zhenguoshaohe_feng: they have a terminate_disabled field, which will disable user to delete the instance15:31
shaohe_fengzhenguo: why they are disable user to delete the instance.15:32
shaohe_fengzhenguo: is it useful for nimble?15:32
zhenguoshaohe_feng: it's useful15:33
zhenguoshaohe_feng: we may have many users in one tenant,15:33
shaohe_fengzhenguo: for example, some scenarios, such as we do not allow delete when building?15:33
zhenguoshaohe_feng: yes15:33
zhenguoshaohe_feng: no, not exactly15:34
shaohe_fengzhenguo: so  many users in one tenant, what will happen?15:34
zhenguoshaohe_feng: I mean the instance should never be deleted if that attribute is set15:34
zhenguoshaohe_feng: they will see all instances in the tenant,15:35
zhenguoshaohe_feng: but admin may not want end users delete some important instances15:35
shaohe_fengzhenguo: so they set the instance as terminate_disabled as true?15:36
zhenguoshaohe_feng: I think yes, but not sure15:38
shaohe_fengzhenguo: only admin can decide what are important instances, but any principle to make the decision?15:39
shaohe_fengzhenguo: So I think the "important" is not absolute15:40
zhenguoshaohe_feng: we are software, the principle should be set by human users, we just need to provide API15:40
shaohe_fengzhenguo: they can become un-important on day, so admin can also set terminate_disabled as false. :)15:41
zhenguoshaohe_feng: yes, we provide the API, they can do what they want, hah15:42
shaohe_fengzhenguo: we can seen the “套路” is add a field in DB.  :)15:43
zhenguoshaohe_feng: lol15:43
openstackgerritMerged openstack/python-nimbleclient: Refactor: change *instance* to *server* (part1)  https://review.openstack.org/41444815:50
openstackgerritMerged openstack/python-nimbleclient: Refactor: change *instance* to *server* (part2)  https://review.openstack.org/41446415:51
shaohe_fengzhenguo: Administrator password for the instance can also be in configdrive15:52
openstackgerritMerged openstack/python-nimbleclient: Refactor: change *instance* to *server* (part3)  https://review.openstack.org/41447215:52
openstackgerritMerged openstack/python-nimbleclient: Refactor: change *instance* to *server* (part4)  https://review.openstack.org/41448115:52
zhenguoshaohe_feng: yes15:53
shaohe_fengzhenguo: generate a configdrive shoulde be a task?15:59
shaohe_fengzhenguo: or just as a setp in the do_node_deploy routine?16:00
openstackgerritZhenguo Niu proposed openstack/python-nimbleclient: Set --power-state to be a required argument  https://review.openstack.org/41462016:00
zhenguoshaohe_feng: seems like it is in node deploy16:01
shaohe_fengzhenguo: OK.16:02
zhenguoshaohe_feng: you can pass the configdrive to ironic via provision API, then it will store it in swfit16:02
shaohe_fengzhenguo: yes. that's why ironic need swift. hah16:03
zhenguoshaohe_feng: yes, as ironic python agent cant get authorized from keystone, so they need swift to provide  a tempurl16:04
zhenguoshaohe_feng: I have to go to bed now, see you tomorrow16:07
shaohe_fengzhenguo: see you.16:07
* zhenguo away16:08
*** l4yerffeJ_ has joined #openstack-nimble21:32
*** l4yerffeJ_ has quit IRC21:32
*** l4yerffeJ_ has joined #openstack-nimble21:33
*** Jeffrey4l has quit IRC21:35
*** l4yerffeJ has quit IRC21:35
*** Jeffrey4l has joined #openstack-nimble21:48
*** l4yerffeJ_ has quit IRC23:12

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