Thursday, 2017-01-19

*** wanghao has joined #openstack-mogan00:29
*** little has joined #openstack-mogan00:52
littleMaybe the gerrit is down01:13
*** kevinz has joined #openstack-mogan01:14
*** 7F1AAKIKM is now known as luyao01:33
openstackgerritliusheng proposed openstack/python-moganclient: Add 'Power State' column in server list --long comand  https://review.openstack.org/42233101:44
zhenguomorning mogan!01:49
littlemorning01:51
liushengmorning01:54
*** zhangjl has joined #openstack-mogan01:59
zhenguo#startmeeting mogan02:01
openstackMeeting started Thu Jan 19 02:01:00 2017 UTC and is due to finish in 60 minutes.  The chair is zhenguo. Information about MeetBot at http://wiki.debian.org/MeetBot.02:01
openstackUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.02:01
openstackThe meeting name has been set to 'mogan'02:01
zhenguoo/02:01
zhangjlo/02:01
openstackgerritMerged openstack/python-moganclient: Add 'Power State' column in server list --long comand  https://review.openstack.org/42233102:01
zhenguook, as always, the agenda:02:02
zhenguo#link https://wiki.openstack.org/wiki/Meetings/Mogan#Agenda_for_next_meeting02:02
zhenguo#topic announcements and reminders02:02
zhenguoCall for presentations for OpenStack Summit Boston02:03
liushengo/02:03
zhenguoThe deadline for submission is Feb 602:03
zhenguoI would suggest you all register one02:03
zhenguoit's a good opportunity to promote Mogan!02:04
littleright02:04
shaohe_fengo/02:05
zhenguoshaohe_feng: o/02:05
zhenguoshaohe_feng: you are alive, hah02:05
shaohe_fengGood.02:05
shaohe_fengwe can submit a topic for mogan02:05
zhenguoyes,02:05
littlegreat02:05
zhenguobut not one, we can t ry to submit more, lol02:06
shaohe_fengyes.02:06
zhenguoin different track02:06
zhenguoseems every presentation can have 3 speakers, right?02:07
liushengzhenguo: yes02:07
zhenguohah, try to make it, then we can fly to Boston02:08
littleyou guys have this experience?02:08
zhenguowanghao and shaohe_feng has02:08
zhenguothey both have topic selected in previous summit02:09
zhenguook, not much announcement,02:10
zhenguoanything else here?02:10
shaohe_fengzhenguo: I have found the topic should not be very  technicalization02:10
zhenguoshaohe_feng: yes, because we have a PTG for techs02:10
zhenguoI will attend the coming PTG if there's no problems with my visa02:11
liushengzhenguo: good luch :)02:11
liushengs/luch/luck02:11
zhenguohah02:11
shaohe_fengzhenguo: It is better a cooperation topic accross company02:11
shaohe_fengzhenguo: Good luck. You are rich.02:12
zhenguoshaohe_feng: yes, so I suggest we can prepare it together02:12
zhenguolol02:12
zhenguomaybe china mobile should have a presentation02:13
liushenghope you can attract more contibutors and customers02:13
shaohe_fengzhenguo: I submmit a topic about live migration first time, just technical introduce.  seldom select this one.02:13
zhenguoliusheng: I just want them to accept us02:13
littleshaohe_feng: live migration in nova?02:14
zhenguoshaohe_feng: hah, seems because the summit has splitted02:14
shaohe_fengzhenguo: And the next one, I submmit topic to introduce how to optimize live migration, it is select as option.02:14
shaohe_fenglittle: yes.02:14
zhenguoshaohe_feng: hah, that's a experience02:15
shaohe_fengzhenguo: Then the GPU, I just tell what audiences care, and cooperation with Huawei.02:15
shaohe_fengzhenguo: it is selected.02:15
zhenguowe may submit one about the limitation of nova to manage baremetals02:16
shaohe_fengzhenguo: good point.02:16
zhenguoshaohe_feng: yes, but it's a pity that they don't send you there :(02:16
wanghaozhenguo: good idea for summit topic.02:17
zhenguothe other option is that baremetal cloud without nova02:17
shaohe_fengyes. Intel is stingy02:17
zhenguohah02:17
shaohe_fengmost compony want their employee to summit topic in these meeting02:18
liushengwe are also stingy02:18
zhenguowanghao: maybe you can register one for customers view, like why you choose mogan02:18
shaohe_feng for this is a good chance to promote the compony itself.02:18
shaohe_fengwanghao: This is a good idea.02:19
openstackgerritZhong Luyao proposed openstack/mogan: Add fault_info field for object Instance  https://review.openstack.org/42119202:19
wanghaozhenguo: Good idea, I'd like try it.02:19
zhenguoyes, it's really weird that you topic is selected, but they don't want you go02:19
zhenguowanghao: thanks02:19
wanghaozhenguo: But not sure the boss will let me go,  tooooo02:19
zhenguowanghao: hah, just try02:19
wanghaostingy too....02:19
shaohe_fengBarcelona is a good tourist city02:20
wanghaozhenguo: np02:20
shaohe_fengevery want to visit this city.02:20
littleI just want to travel there02:20
wanghaoshaohe_feng: yes, I was been there few years ago.02:21
zhenguohah,02:21
littlewanghao: u r a rich man02:21
shaohe_fengso most of our employee are asiggned to visit Barcelona even without any task for Intel.02:21
shaohe_fengwanghao: rich man02:22
wanghaolittle: huawei send me there ....02:22
wanghaoshaohe_feng: .... for business, you know02:22
liushengwanghao: 巴展02:22
shaohe_fengbillionaire02:23
wanghaoliusheng: bingo02:23
zhenguook, hah we can continue to discuss this in open discusstion topic02:23
zhenguolet's move on?02:23
wanghaozhenguo: sure02:24
zhenguook02:24
shaohe_fenggo ahead.02:24
zhenguo#topic task tracking02:24
zhenguo#link https://etherpad.openstack.org/p/nimble-task02:24
* zhenguo gives folks a few minutes to review02:24
zhenguolooks like things are moving along nicely02:25
zhenguowe can align the task status one by one02:25
* liusheng dont02:26
littleOK02:26
zhenguoshaohe_feng: seems no owner for rootwrap task02:26
liushengzhenguo: why we still use nimble-task, lol02:27
shaohe_fengliusheng: we need to call shell cmd02:27
zhenguoliusheng: oh, sorry, my mistake02:28
littlehah02:28
zhenguo#link https://etherpad.openstack.org/p/mogan-task02:28
zhenguolet's move to the mogan task02:28
shaohe_fengliusheng: we should limit the privilege scope02:29
zhenguoI have moved the rootwrap task to TODO02:29
liushengshaohe_feng: got it02:29
shaohe_fengliusheng: we should not use "sudo" to do every thing.02:29
liushengshaohe_feng: sure02:29
shaohe_fengliusheng: now in configdrive, I just use "sudo"02:29
zhenguoshaohe_feng: yes, but no owner takes taht now, so move it to TOTO02:29
liushengshaohe_feng: I talked about the etherpad link, hah02:29
zhenguos/TOTO/TODO02:30
shaohe_fengzhenguo: yes, move it TODO. we can use "sudo" first.02:30
zhenguoshaohe_feng: ok02:30
zhenguoso the first now is config drive02:30
shaohe_fengmany example for rootwrap in very project. such as nova, cinder, ironic.02:31
liushengshaohe_feng: just stole it02:31
shaohe_fengliusheng: yes.02:31
littleyes02:31
shaohe_fengzhenguo: it is almost done. I'm testing it.02:31
zhenguoif so, please feel free to do that02:31
littlemany projects use it02:31
zhenguoshaohe_feng: awsome!02:31
zhenguoyou test it with vm or bm02:32
shaohe_fengzhenguo: VM.02:32
shaohe_fengzhenguo: still not setup bm02:32
zhenguoshaohe_feng: ok,02:32
shaohe_fengzhenguo: when you come to here to setup bm?02:32
zhenguoshaohe_feng: hah,02:32
zhenguoshaohe_feng: sorry for that, as now my office is really far from downtown02:33
zhenguoshaohe_feng: But I will try later, or maybe remote?02:33
littleHuanBaoYuan?02:33
zhenguolittle: exactly02:33
shaohe_fengzhenguo: Maybe I can take you here by car.02:33
littleshaohe_feng: cool02:34
zhenguoshaohe_feng: hah02:34
shaohe_fengzhenguo: let me think how to setup remote?02:34
shaohe_fengso sorry, these days do not feel well to delay the task.02:34
zhenguoshaohe_feng: no problems, really appreciate it02:35
zhenguoshaohe_feng: ok, if the config drive task is nealy done, it can be landed before Spring Festival maybe02:35
liushengshaohe_feng: health is most important02:35
wanghaoshaohe_feng: health! health! health!02:36
shaohe_fengzhenguo: we can find a public place for these bm and Switch02:36
wanghaoshaohe_feng: three times for important thing.02:36
littleshaohe_feng: you are not in Huawei!02:36
shaohe_fengwanghao: yes.02:36
zhenguohah02:36
wanghaoliusheng: ....02:36
wanghaolittle: ...02:36
zhenguoonly liusheng and me are with huawei02:36
wanghaozhenguo: ....02:36
shaohe_fenghealth! health! health!   and then $! $! $!02:37
zhenguolol02:37
* liusheng envy you02:37
wanghaohaha02:37
liusheng¥¥¥ is enough02:37
littleliusheng: hah02:38
zhenguoI'm thinking whether we need to hold a meetup or mid-cycle to gather everyone together02:39
liushengzhenguo: in Beijing ?02:39
zhenguomaybe, hah02:39
zhenguobut not time left before Spring Festival02:39
wanghaozhenguo: that also needs boss to support....02:39
zhenguoand it's really hard to buy a ticket now02:40
zhenguowanghao: yes02:40
liushengzhenguo, wanghao yes02:40
wanghaozhenguo: we just can take train to beijing...02:40
zhenguowanghao: hah02:40
zhenguonot sure when it is the next bug smash02:41
zhenguooh, just realized this is task tracking topic!02:41
liushengzhenguo: haha02:41
zhenguowe should discuss these in next one, hah02:41
zhenguolet's move one to next task02:41
zhenguonotification02:41
zhenguoit's yours liusheng02:42
liushengzhenguo: ok, the notifications related patches have been landed, it is the basic frame and an "instance.create.start" notification example02:42
liushengzhenguo: since we may will have some change about the process, I propose don't add more notifications now02:43
liushengzhenguo: what do you think ?02:43
liushengask to all you guys, lol02:44
zhenguooh, just came back02:44
zhenguosome thing wrong with my IRC client02:44
wanghaoliusheng: agree, we could have mechanism02:44
liushengit is easy to add more notifications02:45
littleliusheng: it's OK02:45
zhenguoagree, so we should keep the task here, or move it to DONE?02:45
liushengzhenguo: may change the task to basic notification fram and move it to done ?02:46
littleIf only provide a mechanism, it should  be done02:46
zhenguook,02:46
wanghaonew notification should be added in new process changes.02:47
liushengwanghao: yes02:47
zhenguoliusheng: please help to update it02:47
zhenguolet's move on02:47
liushengzhenguo: ok02:47
liushengbtw, the console task02:47
zhenguook, please continue02:47
liushengI have do some tests02:48
zhenguodoes it work?02:48
liushengzhenguo: no :(02:48
zhenguooh02:48
zhenguowhat's the problem02:49
zhenguoI remeber you can get console with ssh driver02:49
liushengzhenguo: I tested it with start a new console proxy service, but seems it cannot work to connect to the shellinabox02:49
liushengzhenguo: yes02:49
zhenguoliusheng: oh, yes, we should not use shellinabox02:49
zhenguono existing proxy can support shellinabox02:49
liushengzhenguo: first step, I planed to add a console proxy without consoleauth02:50
liushengzhenguo: really ?02:50
zhenguoyes,02:50
liushengzhenguo: so how should Ido?02:50
zhenguoso I create a httpproxy before, it works well, but refused by community02:50
zhenguoliusheng: we have another console driver02:50
zhenguowhich can leverage serialconsole proxy02:51
liushengzhenguo: or just redirect the "virsh console" ?02:51
zhenguoliusheng: not sure,02:51
liushengzhenguo: yes, I almost copied a serialconsole proxy from nova02:52
zhenguoliusheng: will dig after this meeting02:52
liushengzhenguo: ok, thanks02:52
zhenguook, let's move on02:52
zhenguonext is quotas02:52
zhenguoit's yours wanghao02:52
wanghaookay, now I have built the quota models.02:52
wanghaoLike Quota, Quota Driver, Resource.02:53
zhenguowanghao: yes, I saw the patch02:53
wanghaoso next work will implement the db operation.02:53
wanghaozhenguo: yes02:53
zhenguobut seems some conflicts now, need to rebase02:53
wanghaozhenguo: yes, will do it today.02:53
zhenguowanghao: ok, thanks02:53
zhenguooh, seems not much time left02:54
zhenguoif not much problems we will move on to multi instances create02:54
zhenguohey little02:54
wanghaookay02:54
littleyes02:54
littleI have summit a frame patch, but the jeknis failed02:54
zhenguoseems because merge conflict?02:55
zhenguoor others02:55
littleBoth02:55
littleI am trying to solve it today02:55
zhenguooh, need to modify to satisfy pep,py27, make all our gates happy02:56
littleyes02:56
zhenguook02:56
shaohe_fengzhenguo: There's a problem on evn02:57
zhenguoshaohe_feng: what02:57
shaohe_fengzhenguo: I can not run tox, after I re-install linux and devstack02:57
zhenguoshaohe_feng: reinstall linux?02:57
liushengshaohe_feng: what's the error ?02:58
zhenguohah maybe discuss the fault info task a bit?02:59
zhenguohey luyao, are you around?02:59
shaohe_fengzhenguo: yes.02:59
shaohe_fengliusheng: let try tox again02:59
zhenguoluyao's patch seems ready02:59
zhenguobut do we need to add the fault info like nova02:59
zhenguonova has a seperate table and save not only the string03:00
zhenguomaybe we can discuss in the patch, seems luyao is absent now03:00
*** Jeffrey4l_ has joined #openstack-mogan03:00
zhenguoand the lock instances03:01
zhenguooh, oh no time left03:01
zhangjlzhenguo:....03:01
zhenguozhangjl: haha03:01
zhenguowe can discuss in our channel03:01
liushengit is ok, we don't use #openstack-meeting, hah03:01
zhangjlyes03:01
shaohe_fengliusheng: $ tox -egenconfig03:02
zhenguoliusheng: hah, ok so we can continue or end the meeting?03:02
shaohe_fengliusheng: error: command 'x86_64-linux-gnu-gcc' failed with exit status 103:02
shaohe_fengliusheng: gcc not install?03:02
liushengzhenguo: we can end it, and the meeting log will be ended. lol03:03
zhenguook, everyone, let's discuss in our channel, will end the meeting03:03
zhenguoliusheng: no problems, hah03:03
littleok03:03
zhenguook thanks you all for joining the meeting03:03
shaohe_fengliusheng: $ which x86_64-linux-gnu-gcc03:03
zhenguo#endmeeting03:03
shaohe_feng/usr/bin/x86_64-linux-gnu-gcc03:03
openstackMeeting ended Thu Jan 19 03:03:39 2017 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)03:03
openstackMinutes:        http://eavesdrop.openstack.org/meetings/mogan/2017/mogan.2017-01-19-02.01.html03:03
openstackMinutes (text): http://eavesdrop.openstack.org/meetings/mogan/2017/mogan.2017-01-19-02.01.txt03:03
openstackLog:            http://eavesdrop.openstack.org/meetings/mogan/2017/mogan.2017-01-19-02.01.log.html03:03
shaohe_fengliusheng:  fatal error: Python.h: No such file or directory03:04
*** Jeffrey4l has quit IRC03:04
zhangjlyum install python-devel -y03:04
zhenguowe can have a break, and then continue the lock instance task03:04
liushengshaohe_feng: seems some thing wrong with gcc ?03:04
liushengzhenguo: ok03:05
shaohe_fengliusheng: yes. why missing Python.h?03:05
luyaozhenguo, sorry,I'm back03:05
zhangjlzhenguo:ok, it`s my turn03:05
zhangjl#link:https://review.openstack.org/#/c/420486/03:06
liushengshaohe_feng: are you in Ubuntu ?03:06
zhenguohah03:06
zhangjli registed a specs for lock instance03:06
zhenguozhangjl: yes, we need to discuss more about the difference of lock and maintenance as I commented03:07
zhangjlzhenguo:yes03:07
zhenguoluyao: hi, we can discuss fault info later after lock, haha03:07
zhenguohi all, do you think we need both lock and maintenance03:07
luyaozhenguo, ok03:07
zhangjlzhenguo:i think so03:08
liushengshaohe_feng: may try to apt-get dist-uprade ?03:08
zhenguozhangjl: I read the nova's lock/unlock codes03:08
zhenguozhangjl: it allows the owner and admin to lock/unlock the instances03:09
shaohe_fengliusheng: OK, let me try03:09
zhenguobut admin can do any operations to a locked instances but owner can't03:09
zhenguoin fact, Ironic node can move to maintenance automatically if there's something wrong with the node03:10
zhenguoI just thinking whether we can leverage that03:10
zhenguolike we have a periodic task to collect maintenace node, and move the instance to maintenance state?03:11
openstackgerritTao Li proposed openstack/mogan: [WIP] Support multi-instance creating (part 1)  https://review.openstack.org/42106403:11
zhenguoseems a lock can cover most cases, we don't need to expose maintain interface to users/admins03:12
zhenguowdyt?03:12
zhangjlzhenguo: maybe it`s good.While, in our company ,most of all thinks lock an instance to disallow user to operate is better03:12
zhenguozhangjl: including the owner?03:13
zhangjlzhenguo:yes03:13
zhenguozhangjl: if it loked by an admin, all common users can't operate it indeed03:14
zhenguozhangjl: but owner can also lock it to prevent other users in the same tenant operate it03:14
zhangjlzhenguo: emm. maybe, it`s so different between our options03:15
zhenguozhangjl: hah03:16
zhangjlzhenguo: imo, lock and unlock should be only for admin03:16
zhenguozhangjl: and then03:16
zhenguozhangjl: ok, wen can ignore the owner now, just talk about admins03:16
zhenguozhangjl: if the admin locked the instance, common users can't do any operations on it, how about admins03:17
zhangjlzhenguo:sorry for my slowly typing03:18
zhenguozhangjl: np, infact there's many syntax with my typing, hah03:18
zhenguooh, I mean problems with syntax03:18
zhangjlzhenguo: because there are more admin role user in openstack03:18
zhangjlzhenguo: so , for security, if an instance is been locked , any one of admin can only unlock03:20
zhangjlzhenguo: then , we can avoid other admin to delete server03:20
zhenguozhangjl: so other admin can also unlock it and then delete it, right?03:20
zhangjlzhenguo:emm..yes03:21
zhangjlzhenguo: i need your advice03:21
zhenguozhangjl: another question is do we need to use instance status for lock state03:22
zhenguozhagnjl: or need to introduce a new field03:22
zhenguozhangjl: as we have a state machine to control states transition now, and I think you can lock the instance in any status03:23
zhangjlzhenguo: use instance status maybe is better03:23
zhangjlzhenguo:only active can be locked03:23
zhenguozhangjl: so if the instance is in building status, and you lock it, it will move on to locked03:23
zhangjlzhenguo:no, only active instance can be lock03:24
zhenguozhangjl: when the building is done, we need to transition the state from building to active, but it's now in locked state03:24
zhangjlzhenguo:otherwise, 409 would be raise03:24
zhenguozhangjl: in fact, we allow deleting instance in any state now :(03:25
zhenguozhangjl: and lock should be a seperate state not related to instance status,03:25
shaohe_fengliusheng: auto reboot linux after upgrade,  :'(03:27
shaohe_feng环境太恶劣了,每次devstack,都得多次才能成功。 :'(03:37
zhenguolol03:52
zhenguoshaohe_feng: it's ok now?03:52
*** kevinz has quit IRC04:10
*** kevinz has joined #openstack-mogan04:10
openstackgerritTao Li proposed openstack/mogan: [WIP] Support multi-instance creating (part 1)  https://review.openstack.org/42106404:35
zhenguoshaohe_feng: I have a question about the policy control of API, if I wan't to deny power on, but allow power off, how to make it05:09
zhenguoshaohe_feng: currently we use a decorator, but we can't get the argument like 'target' for  set power state, so seems there are limitations, maybe that's why nova doesn't choose to use decorator, wdyt?05:13
* zhenguo zZZZ..05:14
shaohe_fengzhenguo: yes. the we need to hardcode the "power off"05:18
shaohe_fengzhenguo: but we can think a more better to do it.05:18
shaohe_fengzhenguo: such as use filter to get the traget.05:20
shaohe_fengzhenguo: normally, such as "power off" or "power on", should be seperated api.05:21
shaohe_fengzhenguo: you can seen Lu Hongbin's email of zun.05:21
*** yuntongjin has joined #openstack-mogan05:22
shaohe_fengzhenguo: nova does mixture many action in one api.05:22
*** yuntongjin has quit IRC05:26
*** yuntongjin has joined #openstack-mogan05:28
shaohe_fengzhenguo: wo can hardcode. or decorator for every action.05:32
shaohe_fengzhenguo: such as:05:32
*** wxy has quit IRC05:38
zhenguoshaohe_feng: seems not easy to make it05:58
zhenguoshaohe_feng: like this https://github.com/openstack/mogan/blob/master/mogan/api/controllers/v1/instances.py#L122-L12505:59
zhenguoshaohe_feng: I want to use different policy for different 'target'06:00
shaohe_fengzhenguo: we can use nova's hard code, but decorator first. anyway, nova's api define is not good. I really seen other project use nova style defination. so many developers question nova's style.06:02
shaohe_fengs/I really seen/I really never seen06:03
zhenguoshaohe_feng: yes, but we also face the same problem06:03
shaohe_fengzhenguo: I send your a picture on wechat.06:03
zhenguoshaohe_feng: like power state, we use target to indicate which operation should be taken06:03
zhenguook06:03
shaohe_fengzhenguo: and let me think a more better method.06:06
zhenguoshaohe_feng: thanks06:06
zhenguoshaohe_feng: I remember you said neutron uses another way06:06
zhenguoshaohe_feng: will be right back.06:07
* zhenguo brb06:07
shaohe_fengshaohe_feng: yes. they check it in hook phase. it is similor to our way, avoid hard code.06:08
shaohe_fengzhenguo: wo check it after hook, but before the app call06:08
zhenguoshaohe_feng: thanks06:18
zhenguoshaohe_feng: I want to introduce a new URI like /instances/instance_uuid/states/provision06:20
zhenguoshaohe_feng: we can PUT it with {'target': 'rebuild'} or other actions related to provision state06:20
openstackgerritTao Li proposed openstack/mogan: [WIP] Support multi-instance creating (part 1)  https://review.openstack.org/42106406:21
zhenguoseems our API defination makes more sense06:21
shaohe_fengzhenguo: yes.06:21
zhenguoshaohe_feng: and a new networks sub resouces for instances like /instances/instance_uuid/networks/floatingip or port or other neworks related thing06:22
shaohe_fengzhenguo: user is can easy to send their request in this way.06:23
zhenguoshaohe_feng: and console seems should be a new sub resouce like /instances/instance_uuid/console ? or add it under states?06:23
zhenguoshaohe_feng: yes, and they know what resouce their request06:23
shaohe_fengzhenguo: all sub-resouces in it's father resoucce, is not a good way.06:24
shaohe_fengzhenguo: do does Lu Hongbin use the api style at last?06:24
shaohe_fengwhat does?06:25
zhenguoshaohe_feng: not sure, be cause the use a action instead of resource06:25
zhenguoshaohe_feng: some one point out it's urgly06:25
shaohe_fengredhat use instances/instance_uuid/states/power/shutdown instances/instance_uuid/states/power/start06:26
shaohe_fengzhenguo: opensource can not satisfy06:26
shaohe_fengzhenguo: opensource can not satisfy every one.06:26
shaohe_fengsome many people, different flavor.06:27
shaohe_fengin Chinese: It is difficult to cater for all tastes.06:28
zhenguohah06:29
zhenguoshaohe_feng: but start is a verb06:29
zhenguoshaohe_feng: not sure if a verb should present in URI06:29
shaohe_fengzhenguo: yes. actually, redhat also discuss the verb for a long time.06:30
zhenguoshaohe_feng: yes, REST only have verbs like PUT/POST/DELETE06:31
zhenguoshaohe_feng: what's the meaning of PUT a start06:31
shaohe_fengzhenguo: maybe we let luyao introduce whether Fielding has metion the verb.06:31
shaohe_fengPUT means updata.06:32
zhenguoshaohe_feng: ok06:32
shaohe_fengzhenguo: so /instances/instance_uuid/states/provision,  PUT it with {'target': 'rebuild'}06:32
zhenguoyes, but I don't think you can PUT a verb06:32
zhenguoshaohe_feng: yes06:32
shaohe_fengzhenguo: means you want to update the status  of provision, the target status is 'rebuild'.06:33
zhenguoshaohe_feng: yes, just like power satte06:33
shaohe_fengzhenguo: here, the rebuid is a status, a noun.06:34
zhenguoshaohe_feng: yes, so I think a target seems more better06:34
shaohe_fengzhenguo: we want to change(PUT) the  stats/provision to 'rebuild'.06:35
zhenguoshaohe_feng: yes, do you think it's better06:35
shaohe_fengFielding is the author of RESTFUL, and he is aslo an main developer of Apachi.06:36
shaohe_fengzhenguo: yes. I think it looks resonable.06:37
zhenguoshaohe_feng: does luyao familiar with that, she read up the papter from Fielding?06:37
shaohe_fengbut verb is always is a dispute06:38
shaohe_fengzhenguo: she has read  the paper.06:38
zhenguoshaohe_feng: yes, I think our current way is more resonable06:43
shaohe_fengzhenguo: OK. let's follow this way.06:45
zhenguoshaohe_feng: Okay06:45
shaohe_fengzhenguo: our annual meeting at 4 o'clock06:55
zhenguoshaohe_feng: oh, have fun06:56
shaohe_fengzhenguo: good luck is more important than fun.06:56
shaohe_fengzhenguo: I want an iphone.06:56
zhenguoshaohe_feng: hah, good luck and have fun06:56
shaohe_fengzhenguo: Thank you very much. :-))06:57
zhenguoshaohe_feng: iphone iphone iphone06:57
zhenguooh, and good luck for luyao06:58
wanghaoshaohe_feng: iphone iphone iphone06:58
zhenguoand yuntongjin, lol06:58
shaohe_fengeveryone good luck, means I missing the chance of iphone. :-D06:59
shaohe_fenghopeful yuntongjin do not like iphone.07:00
shaohe_fengwanghao: thank you. iphone.07:00
wanghaoshaohe_feng: haha07:01
shaohe_fengluyao and yuntongjin, android is also good.07:01
zhenguohuawei is good07:01
wanghaoshaohe_feng: is there only one iphone?07:01
shaohe_fenghuawei is good. luyao and yuntongjin.07:02
shaohe_fengwanghao: seem more than one.07:02
wanghaoshaohe_feng: cool07:02
shaohe_fengwanghao: the special prize seems is imac pro07:02
shaohe_fengonly one.07:03
wanghaoshaohe_feng: wow, very cooooool07:03
wanghaoshaohe_feng: wish you can get it,  better than iphone more.07:03
shaohe_fengThanks. seems too greedy. :-D07:04
openstackgerritTao Li proposed openstack/mogan: [WIP] Support multi-instance creating (part 1)  https://review.openstack.org/42106407:14
openstackgerritwanghao proposed openstack/mogan: [WIP]Quota support in Mogan(part 1)  https://review.openstack.org/41732607:18
*** yuntongjin has quit IRC07:34
zhenguohi all, do you think the current instance_type way is enough or we need to refactor it08:14
zhenguoI'd like to add filters for ports account and types  when scheduling08:15
zhenguoliusheng, wanghao, little, zhangjl: hi08:16
zhenguos/ports account/ports quantity08:16
littleAdd a new filter?08:17
zhenguolittle: yes08:17
zhangjlzhenguo:sorry , i`m in meeting08:17
zhenguolittle: currently we just schedule a node to satisfy, but not consider the ports08:17
zhenguozhangj: np08:17
*** wxy has joined #openstack-mogan08:17
liushengzhenguo: obviously we need to refactor/improve the current instance_type08:18
liushengzhenguo: it is fake one, right ?08:18
zhenguoliusheng: hah08:18
zhenguoliusheng: how about use different types08:18
zhenguoliusheng: instance_type + port_type08:18
littlezhenguo: can you give more details?08:19
zhenguoliusheng: and maybe other types08:19
zhenguolittle: ok08:19
liushengzhenguo: seems, the port type should be property of network paremeters08:19
zhenguoopenstack baremetal server create --flavor H1 --image test --nic net-id=aa,port_type=10GE08:20
zhenguoliusheng: yes, but if we have a way to schedule it, seems it's enough08:20
littleso mogan can select 10GE server to deploy?08:20
liushengzhenguo: if we put the port_type in flavor, how to create a server with port specified ?08:21
zhenguolittle: exactly the serve with 10GE port08:21
littleIf this is done, I think can we add ram, disk and cpu filters?08:22
zhenguoliusheng: not esay08:22
zhenguos/esay/easy08:22
zhenguolittle: seems no need to add that filters like nova08:22
liushengzhenguo: we will support creating with port specified, right ?08:22
zhenguolittle: as the specs for a server is fixed08:23
zhenguoliusheng: yes08:23
zhenguoliusheng: but need to specify the port type to specified network08:23
zhenguoliusheng: like the current way08:23
liushengzhenguo: yes08:23
zhenguoliusheng: if it's in instance_type, not sure how to handle it08:23
littlemaybe this is very useful08:23
zhenguolittle: for example08:24
zhenguolittle: nova has that filters is because that want to select a node with enough properties08:24
zhenguolittle: but we are not, we just want to select a node and use all resources08:24
littlemaybe user select specific spec server08:25
zhenguolittle: hah but we can't support that08:25
zhenguolittle: can you compose a server with specified specs?08:26
zhenguolittle: we just have server types of servers, users can only select some one from it08:26
littleso this is the differnet from nova,hah08:26
zhenguolittle: hah, yes,08:26
zhenguolittle: nova's flavor is not suit for us08:27
littleif this is ok for users, i agree it08:27
liushengzhenguo: if we create a port firstly with port_type specified, we don't need to select a host, right ?08:27
zhenguolittle: and you can add details specs in the instance_type description08:27
littlezhenguo: yeah08:27
liushengzhenguo: only when bind the port ?08:28
zhenguoliusheng: no, we need to select a node with that port type08:28
liushengzhenguo: oh, that is different with nova08:28
zhenguoliusheng: and you maybe specified 4 networks when creating a server08:28
wanghaozhenguo:  for mogan,  instance type like template,  including cpu ,ram, disk, port, etc.08:28
zhenguowanghao: yes, but we only filter the type08:29
zhenguoliusheng: and if we only filter instance type, a node may only have 2 ports, how to handle that?08:29
liushengzhenguo: oh, we need to specifying mac address when create port08:29
zhenguonova will just fail in this case08:29
zhenguoliusheng: seems just port type is enough08:30
zhenguoliusheng: users don't care about the MAC, just types like 1GE, 10GE08:30
liushengzhenguo: yes,08:30
littlemaybe currently just filter port type08:31
zhenguolittle: and the quntity08:31
liushengzhenguo: so it is not a common use case that we creating a server with an exist port specified, right ?08:31
zhenguoquantity08:31
wanghaozhenguo: yes,  I mean we put the port specs into instance_type,  and filter it, if no nodes found, we failed.08:31
zhenguowanghao: but this way, we can't specify with port bind to which neutron network08:32
*** openstackgerrit has quit IRC08:33
littleI will go home now08:33
zhenguolittle: oh, so early08:34
zhenguowanghao: like --nic net-id=A, port-type=1GE; net-id=B,port-type=10GE08:34
wanghaozhenguo:  if we use extra_spec in instance_type?   we can specify those information in it.08:34
zhenguowanghao: but you can't match the networks08:35
wanghaozhenguo: : or we build a dict for ports08:35
wanghaolike this   cpu=1, mem=10G, ports=[{port:id, port-type:1GE, net-id:B...}]08:36
liushengzhenguo: seems it is more reasonable to put it in instance type08:36
wanghaozhenguo: even maybe  cpu, mem is dict too,   you can specify some cpu type,08:38
*** little has quit IRC08:38
wanghaozhenguo: if we can get those hardware information.08:38
zhenguowanghao: net-id is not hardware info08:39
zhenguowanghao: it's neutron networks08:39
wanghaozhenguo: yes, I see, just for example.08:39
zhenguowanghao: yes, I mean if we put port type to instance_type, we can't match the networks08:40
*** zhangjl has quit IRC08:40
wanghaozhenguo: I mean,  user can specify some hardware info  and other resources in Openstack too.08:40
zhenguowanghao: but for hardware, we not only care about the quantity of CPU, MEM, but also the type of it08:41
zhenguowanghao: RedHat just add a feature to nova,08:41
liushengwanghao: zhenguo may means we can support the a type of hardware ability in instance_type08:41
zhenguothey can tag the device08:41
liushengwanghao: then scheduler will select nodes that can satisfy the ability08:42
wanghaoI see.08:42
zhenguoliusheng: but we don't filter it08:42
zhenguoliusheng: that's would be more complex08:42
zhenguoliusheng: you can add more instance type if you want08:42
zhenguoliusheng: why we need to filter all hardware properties08:43
zhenguojust a description to list all properties to show users seems more easy08:43
liushengzhenguo: we only need ti filter the properties only we want, right ?08:43
liushengzhenguo: just use ronic node-list ?08:43
zhenguoliusheng: the users just want to select a node, right?08:44
zhenguowe can just think the node is a device08:44
liushengzhenguo: yes, but if we have many nodes, it is not user-friend to select a node for users, and especially after we supportting multiple creation08:46
liushengzhenguo: seems it the works schduler should do08:46
zhenguoliusheng: if we have many nodes, we can just divide them into seperate groups08:47
zhenguoliusheng: admin can do that08:47
liushengzhenguo: you mean like ag ?08:47
zhenguoliushegn: no, just use instance type08:48
zhenguoliusheng: like Gold, Silver...08:48
liushengzhenguo: lol08:48
zhenguoliusheng: no need to make us more complex08:48
liushengzhenguo: hmmm, but that seems the scheduler is not intelligent enough08:49
zhenguoliusheng: hah, the new scheduler for ironic is just follow this way08:50
zhenguoliusheng: they maybe copy us08:50
zhenguoliusheng: I mean the nova's palcement08:50
zhenguoliusheng: as if we have more properties in instance_type, the scheduler would be like P1=V1, P2=V2, P3=V3,P4=V4...08:51
zhenguowhy we don't just use P1+P2+P3+P4=V1+V2+V3+v408:51
zhenguohah, it's fixed08:52
liushengzhenguo: make seense08:55
liushengzhenguo: may we need to support the basic properties in instance_type firstly, that is a hight priority task, hah08:57
zhenguoliusheng: hah, this question is asked by anyone contributed to Mogan, especially at the beginning of this project.08:57
liushengzhenguo: btw, do you think we need to replace the *instance* word in mogan ?08:57
zhenguoliusheng: ...08:57
zhenguoliusheng: I also don't want to put basic properties to instance_type08:58
zhenguoliusheng: seems the current way is enough08:58
zhenguoas we don't filter it08:59
zhenguowe just match the types, instance_type and port_type and maybe disk_type in future08:59
zhenguoevery type is specified with the resources09:00
liushengzhenguo: so the instance type will include nothing ?09:00
zhenguoserver->instance_type, network->port_type, raid->disk_type09:00
zhenguoliusheng: yes, lol09:00
liushengzhenguo: oh, i see09:00
liushengzhenguo: hmm, that is werid!!!09:01
zhenguoliusheng: just think the server is a device, we don't care  about what's inside09:01
liushengzhenguo: why we need instance_type09:01
zhenguoliusheng: if we don't have instance_type, how to choose a server09:01
zhenguowe use instance_type to choose a server09:01
zhenguoport_type to choose a ehternet09:01
liushengzhenguo: the instance type is more like a tag on the server09:01
zhenguoliusheng: yes09:02
zhenguoliusheng: the difference is just the name09:02
liushengzhenguo: so we just need a tag than instance type09:02
zhenguoliusheng: yes, the difference is just the name09:02
liushengzhenguo: the instance type make things more complex09:02
zhenguoliusheng: why09:02
liushengzhenguo: so how to deprecate it ? haha09:03
zhenguolol09:03
liushengzhenguo: we need to support a set of CURD api on it09:03
liushengzhenguo: and extra09:03
zhenguoyou mean instance_type?09:03
liushengzhenguo: tag on a resource is a common usage09:03
liushengzhenguo: yes09:03
zhenguoliusheng: you mean just specify a tag name when creating a instance?09:04
liushengzhenguo: yes09:04
zhenguoliusheng: it's unacceptable, as we also want to show users, the specs of the server they request09:04
liushengzhenguo: if instance type include nothing, and it actually same with tag09:05
liushengzhenguo: you mean the extra specs ?09:05
zhenguoliusheng: it has a description09:05
liushengzhenguo: so it only for a description ?09:06
liushengzhenguo: ...09:06
zhenguoliusheng: and extra specs09:07
zhenguoliusheng: and for tag, how to manage it09:07
zhenguoliusheng: you may also need to add CURD api on it09:07
liushengzhenguo: tag is a attribute of server09:07
liushengzhenguo: yes, set/unset09:08
zhenguoliusheng: before requesting a server, users should know how many types of instances you provide, and which one he wants to choose, how to handle that09:08
liushengzhenguo: seems that will easy mislead users09:08
liushengzhenguo: so it is more like a tag on server09:11
zhenguoliusheng: no09:11
liushengzhenguo: to filter different type of instances09:11
zhenguoliusheng: yes,09:11
zhenguoliusheng: but that's enough09:11
zhenguoliusheng: you can use capabilites to math with intance type extras if you want, you can specify any key/value there09:12
liushengzhenguo: but that won't be used by scheduler, right ?09:12
zhenguoliusheng: we have a capabilities filter09:13
zhenguoliusheng: ironic node also has a capabilities field for this09:13
zhenguoliusheng: so extra specs can satisfy everything you want to filter09:14
liushengzhenguo: so it also indicate some actual properties of a ironic node09:14
zhenguoliusheng: but we only support a name for filter in instance_type like volume_type09:14
zhenguoliusheng: which properties you mean09:15
liushengzhenguo: something that represent th capabilities of nodes09:15
zhenguoliusheng: we only use extra specs for special properties09:15
zhenguoliusheng: yes, just special properties09:15
liushengzhenguo: yes, I agree taht09:15
zhenguoliusheng: cinder's volume type also includes nothing09:16
liushengzhenguo: I don't object to saperate the properties into type, disk type, network type09:16
liushengzhenguo: but I don't think it reasonable that the the functionality is jsut like a tag on a server09:17
zhenguoliusheng: as we can't combine the together i think09:17
zhenguoliusheng: hah, it's really enough09:17
liushengzhenguo: or only for a "description"09:17
zhenguoliusheng: name, description, extra_specs09:17
liushengzhenguo: yes, the extra_epecs we can spcify some properties to indicate the capabilities09:18
liushengzhenguo: I know about a bit of cinder09:18
zhenguoliusheng: yes, why you want to put cpu, mem in the instance_type?09:18
liushengzhenguo: no, I don't think so09:19
zhenguoliusheng: so you agree we don't need those things?09:19
liushengzhenguo: I have said I don't object seperate them into disk type, net-type, instance_tyupe09:19
zhenguoliusheng: ok, hah09:20
liushengzhenguo: no... we can add disk_type, net_type, instance_type09:20
liushengzhenguo: but I think the instance_type is not only for a description and works like a tag09:20
zhenguoseems it's ok, not sure why you don't like it, hah09:22
liushengzhenguo: :P, I never don't like it. hah09:22
wanghaosorry guys, it's time to leave09:22
wanghaobye09:22
zhenguoliusheng: hah, just like when you create a volume, you just choose a type09:23
liushengwanghao: bye09:23
zhenguowanghao: bye09:23
*** wanghao has quit IRC09:23
liushengzhenguo: yes, but the volume type can include some properties that indicate the  capabilities of storage backends09:23
zhenguobut the volume type is just a name, there's no IOPS, speed, or other properties09:23
liushengzhenguo: no, that is just a volume type you don't have specific requirement09:24
zhenguoliusheng: why I don't have a specified requirement09:25
zhenguoliusehng: I may want to create a volume with high speed and high IOPS09:25
liushengzhenguo: I mean you just want a volume, and you don't have specific requirement of the volume09:25
zhenguono09:25
liushengzhenguo: hat need the storage backend support09:26
liushengzhenguo: that09:26
zhenguoliusheng: yes, that's just like us09:26
liushengzhenguo: and you need to create a volume type for the storage backend with some properties specified09:26
zhenguoliusheng: volume type also just has a name and description09:27
liushengzhenguo: no09:30
liushengzhenguo: the extra_spec is important for volume type09:31
zhenguoliusheng: hah, we also has a extra_spec09:31
liushengzhenguo: if we have a high performance volume backend, and we want to create volumes on it, we need create a volume type with a key-value in volume type's extra specs09:32
liushengit is like {"volume_backend_name": "xxx"}09:32
zhenguoliusheng: you can also do this for instance_type09:32
liushengzhenguo: that is important09:32
liushengzhenguo: yes, so it absolutely not only a name and description09:32
zhenguohah, ye09:32
*** little has joined #openstack-mogan09:33
* zhenguo brb09:35
liushengzhenguo: maybe we have same ideas but misunderstand :P09:35
zhenguoliusheng: yes, I think we can just keep the current way, and add new filter for ports, maybe need more discuss if new requiremetns come09:36
liushengzhenguo: yes, but seem we need to support real type firstly now, I mean the real disk size, cpu num, ram size.09:37
liushengzhenguo: that is hight proirty09:38
zhenguoliusheng: again, why we need support that09:54
liushengzhenguo: we only need to create server always be 10G disk, 10G ram, 1 cpu ?09:57
zhenguoliusheng: no, instance type is indicate that09:58
zhenguowe don't need to filter that things09:58
zhenguolike type1 is for 10Gdisk, 10Gram09:58
zhenguoi have to go for dinner09:58
zhenguottyl09:58
liushengzhenguo: ok, got it09:58
liushengzhenguo: if so, we also need to support than hardcoded, right ?09:59
liushengzhenguo: you have type1, type2, typen, but they all  10G disk, 10G ram, 1 cpu10:00
*** kevinz has quit IRC10:30
*** little has quit IRC10:38
zhenguoliusheng: no, type1-10Gdisk-10Gram-1cpu, type2-100Gdisk-100Gram-100cpu10:39
liushengzhenguo: how to support that ?10:40
zhenguoliusheng: ?10:40
zhenguoliusheng: we already supported that, you can set instance_type to different nodes according this10:41
liushengzhenguo: I mean we have hardcoded the 10G disk, 10G ram, 1 cpu in code, how to support different size with different type ?10:41
zhenguoliusheng: why we have hardcoded that10:41
liushengzhenguo: https://github.com/openstack/mogan/blob/master/mogan/engine/baremetal/ironic.py#L76-L9810:42
liushengzhenguo: am I wrong ?10:42
zhenguoliusheng: oh, sorry10:42
liushengzhenguo: the current instance type has no effect10:42
zhenguoliusheng: it's just used for schedule10:42
zhenguoliusheng: and instance info to ironic node is useless10:43
zhenguoliusheng: we just use it for partition10:43
*** little has joined #openstack-mogan10:43
zhenguoliusheng: so we need to add partition support but not related to instance type10:43
liushengzhenguo: oh, I thought that is size of the all instances, I was wrong10:44
zhenguoliusheng: hah, cpu and mem is useless10:44
liushengzhenguo: I am not familiar with that in ironic :(10:44
zhenguoliusheng: but root_disk, swap, and ephermeral is used to partition10:45
zhenguoliusheng: we need to consider this10:45
liushengzhenguo: ok, things become clear, lol10:45
zhenguoliusheng: haha, but not sure how to handle paritions10:45
liushengzhenguo: that seems another task10:46
zhenguoliusheng: hah, yes10:46
zhenguoliusheng: let me first check whether instance_info is useless like what I just said, hah10:47
zhenguoliusheng: thanks for pointing it out :P10:48
liushengzhenguo: so we actually cannot set the cpu num and mem size for an instance, right ? the instance will use the all the resource of the node10:48
zhenguoliusheng: yes10:48
liushengzhenguo: OK, I get it!10:49
zhenguoliusheng: let me remove unneeded info to see whether it works10:50
liushengzhenguo: ok10:50
zhenguoliusheng: I think instance info is used by nova to show the instance properties to users although it's wrong10:51
liushengzhenguo: maybe, but it can be set to ironic node10:52
zhenguoliusheng: yes10:52
*** little has quit IRC10:53
*** openstackgerrit has joined #openstack-mogan11:03
zhenguoliusheng: just send a patch to clean it https://review.openstack.org/#/c/422551/11:04
liushengzhenguo: cool11:05
zhenguoliusheng: not sure if local_gb is also useless, let me test11:06
liushengzhenguo: ok11:06
zhenguoliusheng: but it's really ugly that we hardcode the partitions11:07
liushengzhenguo: hah, I always thought it is related with the instance_type11:07
zhenguoliusheng: hah, sorry for the misleading11:07
liushengzhenguo: np, it is just because I am not familiar with ironic11:08
zhenguoliusheng: hah11:09
zhenguoliusheng: currently ironic only support disk_layout like [root_gb, swap_mb, ephermeral_gb]11:24
zhenguoliusheng: so we can't support more advanced partition, only can specify these fields11:24
liushengzhenguo: it is only for root partition ?11:25
zhenguoliusheng: root_gb is for roto partition, also can specify swap and ephermeral11:25
zhenguoliusheng: in fact, ephermeral is other partition rather than root parition11:26
zhenguoliusheng: these partitions will in one disk11:26
liushengzhenguo: oh, so may we will support user disk ?11:26
zhenguoliusheng: seems not11:27
zhenguoliusheng: all partitions in one disk11:27
zhenguoliusheng: and we may support raid later11:27
liushengzhenguo: I mean does the bm can support attaching cinder volume ?11:27
zhenguoliusheng: currently not11:28
zhenguoliusheng: someone is working on boot from volume11:28
liushengzhenguo: may will support :)11:28
zhenguoliusheng: yes11:28
openstackgerritZhenguo Niu proposed openstack/mogan: Remove unused instance info  https://review.openstack.org/42255111:29
zhenguoliusheng: I remember nova has an option about auto disk config11:30
zhenguoliusheng: only leave a root_gb in instance_info now, will add another patch to remove the hardcoded 10, maybe can use node.properties.local_gb and ram for swap11:31
liushengzhenguo: yes, I can search the words in Nova's code, it is a attribute of Instance object11:38
zhenguoliusheng: yes, seems can leave partition to users, only create a root part11:39
*** little has joined #openstack-mogan12:00
openstackgerritZhenguo Niu proposed openstack/mogan: Set node local_gb to instance_info root_gb  https://review.openstack.org/42258612:26
openstackgerritMerged openstack/mogan: Remove unused instance info  https://review.openstack.org/42255112:45
*** kevinz has joined #openstack-mogan13:00
*** little has quit IRC13:07
*** kevinz has quit IRC13:14
*** kevinz has joined #openstack-mogan13:15
*** kevinz has quit IRC13:43
*** kevinz has joined #openstack-mogan13:43
*** kevinz has quit IRC15:35
openstackgerritZhenguo Niu proposed openstack/mogan: Remove ironic node states request for instance  https://review.openstack.org/42273716:26
*** liusheng has quit IRC17:18
*** liusheng has joined #openstack-mogan17:18
openstackgerritMerged openstack/mogan: Remove ironic node states request for instance  https://review.openstack.org/42273718:14
*** openstackgerrit has quit IRC19:33
*** Jeffrey4l_ has quit IRC21:35
*** Jeffrey4l_ has joined #openstack-mogan21:36

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