*** wanghao has joined #openstack-mogan | 00:41 | |
*** liusheng has quit IRC | 01:10 | |
*** liusheng has joined #openstack-mogan | 01:18 | |
*** little has joined #openstack-mogan | 01:21 | |
*** kevinz has joined #openstack-mogan | 01:30 | |
*** zhangjl has joined #openstack-mogan | 01:34 | |
openstackgerrit | Merged openstack/python-moganclient: Updated from global requirements https://review.openstack.org/420447 | 01:50 |
---|---|---|
*** l4yerffeJ_ has joined #openstack-mogan | 01:53 | |
*** l4yerffeJ has quit IRC | 01:53 | |
*** liusheng has quit IRC | 01:54 | |
*** yuntongjin has joined #openstack-mogan | 01:56 | |
*** liusheng has joined #openstack-mogan | 02:12 | |
*** yuntongjin has quit IRC | 02:36 | |
*** yuntongjin has joined #openstack-mogan | 02:45 | |
*** yuntongjin has quit IRC | 02:49 | |
*** yuntongjin has joined #openstack-mogan | 03:16 | |
*** Jeffrey4l_ has quit IRC | 03:21 | |
*** Jeffrey4l has joined #openstack-mogan | 03:21 | |
*** yuntongjin has quit IRC | 03:31 | |
openstackgerrit | zhangjl proposed openstack/mogan-specs: Adds specification for lock instances https://review.openstack.org/420486 | 03:37 |
*** yuntongjin has joined #openstack-mogan | 04:15 | |
*** wanghao has quit IRC | 05:58 | |
*** wanghao has joined #openstack-mogan | 05:58 | |
openstackgerrit | wanghao proposed openstack/mogan: [WIP]Quota support in Mogan(part 1) https://review.openstack.org/417326 | 06:06 |
openstackgerrit | wanghao proposed openstack/mogan: [WIP]Quota support in Mogan(part 1) https://review.openstack.org/417326 | 06:06 |
openstackgerrit | Zhenguo Niu proposed openstack/mogan: Introduce a state machine for instance status https://review.openstack.org/419024 | 06:23 |
zhenguo | zhangjl: thanks for adding the first spec, hah | 06:53 |
zhangjl | zhenguo:well, thanks | 06:53 |
zhenguo | hi all, if there's no objection for https://review.openstack.org/#/c/419024/ , I will land it, then we can add more states later | 07:18 |
zhenguo | liusheng, shaohe_feng: are you around? | 07:20 |
liusheng | zhenguo: yes | 07:20 |
zhenguo | liusheng: for state machine patch, I will land it by today if there's no objection from you guys | 07:21 |
liusheng | zhenguo: ok, I will take a review now | 07:21 |
zhenguo | liusheng: thanks | 07:21 |
liusheng | zhenguo: that is really a big change. lol | 07:22 |
zhenguo | liusheng: btw, does the ipmitool work now? | 07:22 |
liusheng | zhenguo: no :( | 07:22 |
zhenguo | liusheng: hah, in fact just the concept of state machine is a big thing | 07:22 |
zhenguo | liusheng: the logic is really simple, just check the orginal status before transition | 07:22 |
zhenguo | liusehng: maybe something wrong with the fake ipmi I think | 07:23 |
liusheng | zhenguo: ok, le me check | 07:23 |
liusheng | zhenguo: yes, but I cannot find it | 07:23 |
zhenguo | liusheng: will help to check whether it work | 07:24 |
liusheng | zhenguo: ipmitool -H 10.229.40.107 -p 6231 -I lanplus -U admin -f /tmp/3ce8faa7-8311-492d-bfd9-a59b5414dc93.pw -v sol activate | 07:24 |
zhenguo | liusheng: It can must work in a real physical node | 07:24 |
liusheng | zhenguo: really ? | 07:24 |
zhenguo | liusheng: yes, I used it many times with our blue env in HangZhou | 07:25 |
zhenguo | liusheng: but now, I can't connect it :( | 07:25 |
liusheng | zhenguo: you mean the ironic node need to be a physical node ? or the devstack should be installed in a physical node ? | 07:25 |
zhenguo | liusheng: I'm not sure the current devstack node, but for ssh_driver, I think it can work | 07:26 |
liusheng | zhenguo: currenly, we use pxe_ipmitool driver right ? | 07:28 |
zhenguo | liusheng: for virtual machine, ipmitool should not work, but ironic have a sub project to help simulate that, but not sure if console can work | 07:29 |
liusheng | zhenguo: I have a devstack installed on a physical server, but someting wrong that it cannot create mogan server, if you mean we need a devstack installed on physical server, I am going to try to re-isntall the devstack | 07:29 |
zhenguo | liusheng: but now, I can't even use ipmitool for powering, that's weird, should dig out why | 07:30 |
liusheng | zhenguo: haha | 07:30 |
zhenguo | liusheng: not a devstack in physical server, but use mogan and ironic to manage real node | 07:30 |
zhenguo | liusheng: instead of a virtual machine | 07:30 |
liusheng | zhenguo: I guess so | 07:31 |
liusheng | zhenguo: I can run the command like this: ipmitool -I lanplus -H 10.229.40.107 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -P password power status | 07:31 |
zhenguo | liusheng: really? | 07:31 |
liusheng | zhenguo: yes | 07:31 |
zhenguo | liusheng: you can change to use ipmitool -I lanplus -H 10.229.40.107 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -P password -v sol activate | 07:32 |
liusheng | zhenguo: it cannot work | 07:32 |
liusheng | Running Get PICMG Properties my_addr 0x20, transit 0, target 0x20 | 07:33 |
liusheng | Error Response 0xc1 from Get PICMG Properities | 07:33 |
liusheng | No PICMG Extenstion discovered | 07:33 |
liusheng | Error activating SOL payload: Invalid command | 07:33 |
liusheng | zhenguo: it return these errors | 07:33 |
zhenguo | liusheng: oh, seems there's something wrong with the upstream work | 07:33 |
liusheng | zhenguo: I have googled this error, but cannot find useful info | 07:34 |
zhenguo | liusheng: Will check code | 07:34 |
liusheng | zhenguo: do you think there should be a "-p 6231" in ipmitool comand include by the shellinaboxd process ? | 07:35 |
liusheng | zhenguo: currently the shellinaboxd process started by ironic don't include this, but I think it should include this | 07:36 |
*** yuntongjin has quit IRC | 07:36 | |
zhenguo | liusheng: seems yes, but it still not work with that in ipmitool command | 07:36 |
liusheng | zhenguo: the 6231, 6232, 6233 it 3 impi_port set to the 3 ironic nodes by ironic | 07:37 |
zhenguo | liusheng: you don't need to care about shellinabox now, just make sure ipmitool can work | 07:37 |
liusheng | zhenguo: yes | 07:37 |
liusheng | zhenguo: yes | 07:37 |
zhenguo | liusheng: seems there is a virtualbmc log | 07:38 |
liusheng | zhenguo: where ? | 07:38 |
zhenguo | liusheng: in ironic vm log dir | 07:38 |
liusheng | zhenguo: I found it, but it don't record log when I run ipmitool comands | 07:41 |
liusheng | zhenguo: may it only record the logs about operations by ironic | 07:41 |
zhenguo | liusheng: is there any context there | 07:41 |
liusheng | zhenguo: yes, many lines of: 2017-01-04 23:23:07,070.070 51044 DEBUG VirtualBMC [-] Get power state called for domain node-1 | 07:42 |
liusheng | zhenguo: 2017-01-04 23:11:03,059.059 51200 INFO VirtualBMC [-] Virtual BMC for domain node-2 started | 07:42 |
zhenguo | liusheng: you can use mogan to power a node to see whether there's some thing recorded | 07:43 |
zhenguo | liusheng: and use ipmitool directly to see | 07:43 |
liusheng | zhenguo: ok | 07:43 |
liusheng | zhenguo: yes, it recorded: 2017-01-16 15:43:39,895.895 51044 DEBUG VirtualBMC [-] Power off called for domain node-1 when I stop a server | 07:45 |
zhenguo | liusheng: with mogan or ipmitool | 07:45 |
liusheng | zhenguo: with mogan | 07:46 |
zhenguo | liusheng: but there's nothing with ipmitool? | 07:46 |
liusheng | zhenguo: how to run directly with ipmitool ? | 07:47 |
liusheng | zhenguo: ipmitool -I lanplus -H 10.229.40.107 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -P password power start ? | 07:47 |
zhenguo | liusheng: yes | 07:47 |
liusheng | zhenguo: ok let me try | 07:47 |
zhenguo | ok | 07:47 |
liusheng | zhenguo: 2017-01-16 15:47:29,398.398 51044 DEBUG VirtualBMC [-] Power on called for domain node-1 | 07:48 |
liusheng | zhenguo: it can also work and record this log | 07:48 |
zhenguo | liusheng: so for console command? | 07:48 |
liusheng | zhenguo: it cannot work | 07:50 |
zhenguo | liusheng: nothing recorded? | 07:50 |
liusheng | zhenguo: yes | 07:50 |
zhenguo | liusheng: maybe virtualbmc doesn't support this yet, will confirm | 07:51 |
liusheng | zhenguo: yes, maybe | 07:51 |
zhenguo | liusheng: https://github.com/openstack/virtualbmc/blob/master/virtualbmc/vbmc.py#L53-L136 | 07:57 |
zhenguo | liusheng: seems it can only support power on/off, get/set boot device, | 07:57 |
zhenguo | liusheng: so for console testing, I would suggest you use agent_ssh driver | 07:59 |
liusheng | zhenguo: oh, thanks for your info, I will try | 07:59 |
zhenguo | liusheng: you need to restack with IRONIC_DEPLOY_DRIVER=agent_ssh in you local config file | 08:00 |
liusheng | zhenguo: don't need any other options ? | 08:01 |
zhenguo | liusheng: yes | 08:01 |
zhenguo | liusehng: wait | 08:02 |
openstackgerrit | wanghao proposed openstack/mogan: [WIP]Quota support in Mogan(part 1) https://review.openstack.org/417326 | 08:02 |
openstackgerrit | zhangjl proposed openstack/mogan-specs: Adds specification for lock instances https://review.openstack.org/420486 | 08:06 |
zhenguo | liusheng: seems only that option can work | 08:10 |
liusheng | zhenguo: ok, let me try, thanks for you help :) | 08:11 |
zhenguo | liusheng: np, feel free to ping me if there's still something wrong with that | 08:11 |
liusheng | zhenguo: hah, thanks, you are a ironic export! | 08:11 |
liusheng | s/export/expert | 08:13 |
zhenguo | liusheng: lol, just because the ssh console support is added by me | 08:14 |
liusheng | zhenguo: hah, awesome! | 08:14 |
zhenguo | liusheng: so if there's still something wrong, we can hack ti | 08:16 |
zhenguo | s/ti/it | 08:16 |
liusheng | zhenguo: ok | 08:17 |
zhenguo | liusheng: ok, good luck | 08:17 |
liusheng | zhenguo: lol | 08:17 |
zhenguo | hah | 08:17 |
*** wanghao_ has joined #openstack-mogan | 08:47 | |
*** wanghao has quit IRC | 08:47 | |
little | hi guys, i encountered a issue about multi-instance support: should we get a flow per instance or create all instances in a flow? | 08:50 |
zhenguo | little: how about nova? | 08:51 |
little | nova does not use task flow | 08:51 |
zhenguo | little: but if in separate flow, it may takes long time | 08:51 |
little | so it will process it much easier | 08:52 |
zhenguo | little: I think we should do every create it different flow, but they should be in parallel, wdyt? | 08:53 |
little | so you mean get a flow per instance? | 08:54 |
zhenguo | wanghao_: does cinder support creating multi volume? | 08:55 |
zhenguo | little: yes, maybe we should follow cinder if it supports creating multi volume | 08:55 |
zhenguo | little: let me check first, but yes I think we should create aflow for every instance | 08:56 |
wanghao_ | zhenguo: no, you just can create one volume in API | 08:56 |
zhenguo | wanghao_: oh | 08:56 |
wanghao_ | zhenguo: Do we need to support multi creation, or just leave it to mistral. | 08:57 |
little | zhenguo: so i think one flow per instnce is good | 08:57 |
zhenguo | wanghao_: not sure, but nova supports that | 08:57 |
zhenguo | little: thanks | 08:57 |
wanghao_ | zhenguo: yes, from nova side, it should be since multi instance with same flavor is making sense to users. | 08:58 |
zhenguo | wanghao_: yes, and for us, multi instance with same flavor for baremetal seems also makes sense, not sure, in fact, you are customer, lol | 08:59 |
wanghao_ | zhenguo: I think it should be. many baremetals may be needed to deploy in one time. | 09:00 |
zhenguo | wanghao_: yes, thanks | 09:00 |
wanghao_ | zhenguo: so support multi instances in one taskflow, that will be nice. | 09:01 |
zhenguo | wanghao_: why not multi flow? | 09:01 |
little | If in one flow, the revert process is much complex | 09:02 |
wanghao_ | zhenguo: isn't that be a long time with multi flow? | 09:02 |
zhenguo | wanghao_: every flow includes tasks like scheduler, reschedule, set_instance_info, deploy_instance | 09:02 |
zhenguo | wanghao: we can create multi flows, they will run in parallel, | 09:02 |
wanghao_ | zhenguo: little: I see, that's will be great. | 09:03 |
wanghao_ | parallel way. | 09:03 |
little | wanghao_:yes, | 09:03 |
little | independent process for every instance | 09:04 |
zhenguo | wanghao, little: yes, that will be more clear | 09:04 |
wanghao_ | zhenguo: oh, btw, I think a useful feature that do we want to mange a baremetal? | 09:05 |
wanghao_ | zhenguo: I mean, OS has be installed, everything is ok, and mogan can mange it to itself. | 09:06 |
zhenguo | wanghao_: you mean adopt an existing baremetal node? | 09:06 |
wanghao_ | zhenguo: yes | 09:06 |
zhenguo | liusheng: yes, we can do that, and ironic already support it | 09:06 |
wanghao_ | zhenguo: cool. | 09:06 |
zhenguo | wanghao_: maybe need to add before O release | 09:07 |
zhenguo | wanghao_: that's a good example for mogan is better than nova in baremetal management, lol | 09:08 |
wanghao_ | zhenguo: agree, Nova doesn't to mange an existing instance. | 09:08 |
zhenguo | wanghao_: yes, | 09:10 |
* zhenguo brb | 09:21 | |
*** wanghao_ has quit IRC | 09:24 | |
openstackgerrit | liusheng proposed openstack/mogan: Remove the unused notifier and engine api initialization https://review.openstack.org/420604 | 09:30 |
*** kevinz has quit IRC | 10:06 | |
*** little has quit IRC | 10:08 | |
*** zhangjl has quit IRC | 10:29 | |
openstackgerrit | Zhenguo Niu proposed openstack/mogan: Introduce a state machine for instance status https://review.openstack.org/419024 | 10:55 |
zhenguo | liusheng: is your ssh driver env ready? I remember we use agent_ssh on our tempest gate | 11:16 |
liusheng | zhenguo: no, I need to restack again | 11:19 |
liusheng | zhenguo: will try after my env get ready | 11:19 |
zhenguo | liusheng: ok | 11:23 |
openstackgerrit | liusheng proposed openstack/mogan: Remove the unused notifier and engine api initialization https://review.openstack.org/420604 | 11:43 |
liusheng | zhenguo: I have finished my env installation | 11:43 |
zhenguo | liusheng: is that work? | 11:44 |
liusheng | zhenguo: yes, can create server | 11:44 |
zhenguo | liusheng: hah, you can try to enable console | 11:44 |
liusheng | zhenguo: ok, the same steps ? | 11:45 |
zhenguo | liusheng: yes | 11:45 |
zhenguo | liusheng: hi, liudong proposed this bp https://blueprints.launchpad.net/mogan/+spec/engine-driver-framework , wdyt? | 11:51 |
liusheng | zhenguo: I think we need to consider the posssibilities various drivers | 11:52 |
liusheng | zhenguo: but seems we only consider ironic, right ? | 11:54 |
liusheng | zhenguo: I have tried the console | 11:54 |
liusheng | zhenguo: seems the shellinabox still started with wrong paremeter | 11:55 |
zhenguo | liusheng: yes, we should consider to support more drivers like nova, because there are many baremetal provisioning project | 11:56 |
liusheng | zhenguo: yes | 11:56 |
zhenguo | liusheng: currently we use ironic is just like a driver, that's all, so maybe it's easy to split it out | 11:57 |
liusheng | zhenguo: so we may need to keep the concept in mind now, before we starting to change our architecture | 11:57 |
zhenguo | liusheng: yes, liudong said he like to do this, hah | 11:57 |
zhenguo | liusheng: they don't use ironic, but want to use mogan | 11:58 |
liusheng | zhenguo: hah | 11:58 |
liusheng | zhenguo: that make sense | 11:58 |
zhenguo | liusheng: yes | 11:58 |
liusheng | zhenguo: about the console, the ssh driver use command like "virsh console node-1" | 11:58 |
zhenguo | liusheng: yes | 11:58 |
liusheng | zhenguo: but I cannot directly use that command to login the node | 11:58 |
zhenguo | liusheng: oh | 11:58 |
liusheng | Connected to domain node-1 | 11:59 |
liusheng | Escape character is ^] | 11:59 |
liusheng | error: internal error: character device <null> is not using a PTY | 11:59 |
liusheng | zhenguo: it return this | 11:59 |
zhenguo | liusheng: so seems the devstack plugin is not support this | 11:59 |
zhenguo | liusheng: but we can change the vm xml file to make it suport PTY | 12:00 |
liusheng | zhenguo: but seems libvirt support this | 12:00 |
zhenguo | liusheng: yes, but you need to add PTY console in the xml file | 12:00 |
liusheng | zhenguo: i have googled this, there is a suggestion way, but it still cannot work, the error dissapared, but it will be stucked | 12:01 |
liusheng | zhenguo: virsh console --devname serial1 node-1 | 12:01 |
liusheng | zhenguo: because the PTY in the xml is "serial1" port | 12:01 |
liusheng | zhenguo: it will be stucked, and only show: Escape character is ^] | 12:02 |
zhenguo | liusheng: I tried with my env, seems yes | 12:04 |
zhenguo | liusheng: you can try to access shellinabox console url | 12:06 |
zhenguo | liusheng: via browser | 12:06 |
liusheng | zhenguo: it is same with "virsh console node-1" | 12:07 |
zhenguo | liusheng: you mean on the it shows the same context in the page? | 12:07 |
liusheng | zhenguo: yes | 12:07 |
zhenguo | liusheng: you can try to remove other serial and console in the xml | 12:08 |
zhenguo | liusheng: just leaving pty | 12:08 |
zhenguo | and serial0 | 12:08 |
zhenguo | liusheng: like this https://review.openstack.org/#/c/256272/ | 12:09 |
liusheng | zhenguo: let me try | 12:11 |
liusheng | zhenguo: do you know where the xml file stored in ? | 12:11 |
liusheng | zhenguo: I want to backup | 12:11 |
zhenguo | liusheng: not sure, but no need to backup it as you can copy other node's xml if needed, lol | 12:12 |
liusheng | zhenguo: lol | 12:12 |
zhenguo | liusheng: oh, just find that, there no pty console in the xml file ony a serial dev | 12:14 |
liusheng | <serial type='pty'> | 12:14 |
liusheng | <source path='/dev/pts/51'/> | 12:14 |
liusheng | <target port='1'/> | 12:14 |
liusheng | <alias name='serial1'/> | 12:14 |
liusheng | </serial> | 12:14 |
liusheng | zhenguo: isn't this ? | 12:15 |
zhenguo | liusheng: yes, this just a serial dev, you also need to add a console dev with pty | 12:15 |
liusheng | zhenguo: oh, how to add that ? | 12:15 |
zhenguo | liusheng: see https://review.openstack.org/#/c/256272/7/devstack/tools/ironic/scripts/configure-vm.py | 12:15 |
liusheng | zhenguo: oh, I found it | 12:16 |
liusheng | zhenguo: thanks | 12:16 |
liusheng | zhenguo: I just found there is a console tag that is the console log | 12:17 |
zhenguo | liusheng: yes, you can change it directly to pty and change the serial port num | 12:18 |
*** kevinz has joined #openstack-mogan | 12:20 | |
liusheng | zhenguo: when I save the xml, it says: error: unsupported configuration: Only the first console can be a serial port | 12:20 |
*** kevinz has quit IRC | 12:21 | |
zhenguo | liusheng: can you paste your config here? | 12:21 |
liusheng | zhenguo: oh may I need to delete the console log device | 12:22 |
zhenguo | liusheng: just delete it to make things simple | 12:22 |
liusheng | zhenguo: it is weird, libvirt can reset it after I editted | 12:27 |
liusheng | zhenguo: need to stop firstly ? | 12:27 |
zhenguo | liusheng: seems need to restart libvirt | 12:27 |
zhenguo | liusheng: does that work? | 12:35 |
liusheng | zhenguo: I still cannot edit the xml | 12:35 |
zhenguo | liusheng: even if restart libvirtd? | 12:35 |
liusheng | zhenguo: it will automatically reset after aditted | 12:35 |
liusheng | zhenguo: yes | 12:35 |
zhenguo | liusheng: need to as some libvirt guy, hah | 12:36 |
liusheng | zhenguo: you mean 1. stop libvirtd 2. edit 3. start libvirtd ? | 12:36 |
zhenguo | liusheng: you can google it | 12:36 |
liusheng | zhenguo: let me randomly try, lol | 12:36 |
zhenguo | liusheng: a libvirt maintainer is here, but he is absent now | 12:37 |
liusheng | zhenguo: how ? | 12:37 |
liusheng | zhenguo: who | 12:37 |
zhenguo | liusheng: renguannan | 12:37 |
liusheng | zhenguo: oh, maybe some periodic task in ironic do this ? | 12:38 |
zhenguo | liusheng: no, | 12:38 |
zhenguo | liusheng: I can't remember how to do that, but seems need extra steps | 12:38 |
liusheng | zhenguo: let me ask google | 12:39 |
zhenguo | liusheng: hah, good choice | 12:39 |
zhenguo | liusheng: I have to go home now, ttyl? | 12:39 |
liusheng | zhenguo: http://stackoverflow.com/questions/10646426/unable-to-edit-kvm-config-file | 12:39 |
liusheng | zhenguo: ok | 12:39 |
liusheng | zhenguo: bye | 12:39 |
zhenguo | liusheng: bye | 12:43 |
*** l4yerffeJ_ has quit IRC | 13:19 | |
*** l4yerffeJ_ has joined #openstack-mogan | 13:19 | |
*** little has joined #openstack-mogan | 13:25 | |
*** little has quit IRC | 13:41 | |
*** l4yerffeJ_ has quit IRC | 13:58 | |
*** l4yerffeJ_ has joined #openstack-mogan | 13:59 | |
*** l4yerffeJ_ has quit IRC | 14:00 | |
*** l4yerffeJ_ has joined #openstack-mogan | 14:00 | |
openstackgerrit | Zhenguo Niu proposed openstack/mogan: Remove the unused notifier initialization https://review.openstack.org/420604 | 14:29 |
openstackgerrit | Zhenguo Niu proposed openstack/mogan: [WIP] Save power_state to instance and sync with ironic https://review.openstack.org/418249 | 14:58 |
*** l4yerffeJ__ has joined #openstack-mogan | 15:12 | |
*** l4yerffeJ_ has quit IRC | 15:12 | |
*** l4yerffeJ__ has quit IRC | 15:14 | |
*** l4yerffeJ__ has joined #openstack-mogan | 15:14 | |
*** l4yerffeJ__ has quit IRC | 15:35 | |
*** l4yerffeJ__ has joined #openstack-mogan | 15:36 | |
*** l4yerffeJ__ has quit IRC | 15:37 | |
*** l4yerffeJ__ has joined #openstack-mogan | 15:37 | |
openstackgerrit | Merged openstack/mogan: Remove the unused notifier initialization https://review.openstack.org/420604 | 16:26 |
openstackgerrit | Merged openstack/mogan: Introduce a state machine for instance status https://review.openstack.org/419024 | 16:30 |
*** l4yerffeJ has joined #openstack-mogan | 21:34 | |
*** l4yerffeJ__ has quit IRC | 21:34 | |
*** Jeffrey4l has quit IRC | 21:34 | |
*** Jeffrey4l has joined #openstack-mogan | 21:35 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!