Saturday, 2017-01-14

zhenguomorning mogan!01:56
*** liusheng has quit IRC02:35
*** liusheng has joined #openstack-mogan02:43
*** openstackgerrit has joined #openstack-mogan03:06
openstackgerritMerged openstack/mogan: Versioned notification add support for instance.create.start  https://review.openstack.org/41775503:06
openstackgerritliusheng proposed openstack/mogan: WIP: test support console  https://review.openstack.org/42027403:18
RuiChenhttps://www.irccloud.com/pastebin/Vb3ZJqOA/07:19
RuiChennimble -> mogan07:20
RuiChen:)07:20
openstackgerritMerged openstack/mogan: Add version tests for versioned notification class  https://review.openstack.org/41821209:07
liushengzhenguo: hi zhenguo, do you know does it support to directly login the ironic node console by shellinabox ?09:14
zhenguoliusheng: yes,09:15
zhenguoliusheng: you can use shellinabox directly09:15
zhenguoliusheng: but seems we don't enable console in the devstack config09:15
liushengzhenguo: I have tried, but it return an auth error: Error issuing Get Channel Authentication Capabilies request09:16
liushengzhenguo: I am not sure it is a bug of ironic code, I have chenged the code, then the shellinabox return:09:16
liushengRunning Get PICMG Properties my_addr 0x20, transit 0, target 0x2009:16
liushengError Response 0xc1 from Get PICMG Properities09:16
liushengNo PICMG Extenstion discovered09:16
liushengError activating SOL payload: Invalid command09:16
liushengSession closed.09:16
zhenguoliusheng: the driver is ipmi_tool, right?09:17
zhenguooh, agent_ipmitool09:17
liushengzhenguo: since I found the shellinaboxd process to listen the ipmi terminate port I set, it is shellinaboxd -t -p 4321 --background=/tmp/3ce8faa7-8311-492d-bfd9-a59b5414dc93.pid -s /:0:0:HOME:ipmitool -H 10.229.40.107 -I lanplus -U admin -f /tmp/3ce8faa7-8311-492d-bfd9-a59b5414dc93.pw -v sol activate09:17
liushengzhenguo: seems pxe_ipmi, i am not sure09:17
liushengzhenguo: I found the ipmitoll command without port specified, the node's ipmi port is 623109:18
zhenguoliusheng: seems not need to specify ipmi port, not sure09:19
liushengzhenguo: then I modifed the ironic node and restart ironic, the auth errir disappared, but it return the above info09:19
liushengzhenguo: really ?09:19
zhenguoliusheng: you can try the ipmi command directly09:19
zhenguoipmitool -H 10.229.40.107 -I lanplus -U admin -f /tmp/3ce8faa7-8311-492d-bfd9-a59b5414dc93.pw -v sol activate09:20
zhenguoliusheng: this ipmi is fake, before we use ssh for virtual machine09:20
liushengzhenguo: yes, I have tried the ipmitool command, but it also auth failed without the node's port specified09:20
zhenguoliusheng: you can specify the ipmi port and try again09:20
zhenguoliusheng: this ipmitool is fake to simulate ssh to virtual amchine09:21
liushengzhenguo: it return the "Error Response 0xc1 from Get PICMG Properities" error09:21
zhenguoliusheng: oh09:21
liushengzhenguo: I can directly ssh the mogan server by it's ip09:21
zhenguoliusheng: yes, we use ssh driver before09:22
zhenguoliusheng: ipmi is just introduced to simulate to ssh driver09:22
liushengzhenguo: so ironic don't use ipmi in devstack ?09:22
zhenguoliusheng: shellinabox connect to virtual machine by ssh before, and it works well, which is added by me09:22
zhenguoliusheng: it's not a real ipmi09:23
zhenguoliusheng: a sub project to simulate real ipmi access09:23
liushengzhenguo: oh09:23
liushengzhenguo: I don't know how to login the machine by shellinabox :(09:24
liushengzhenguo: my steps:09:24
liushengzhenguo: 1. ironic node-update 3ce8faa7-8311-492d-bfd9-a59b5414dc93 add driver_info/ipmi_terminal_port=432109:24
liushengzhenguo: 2. ironic node-set-console-mode 3ce8faa7-8311-492d-bfd9-a59b5414dc93 false09:24
liushengzhenguo: 3. ironic node-set-console-mode 3ce8faa7-8311-492d-bfd9-a59b5414dc93 true09:24
liushengzhenguo: 4. ironic node-get-console 3ce8faa7-8311-492d-bfd9-a59b5414dc9309:24
zhenguoliusheng: it's correct09:25
zhenguoliusheng: shellinabox is just a web proxy for the  console09:25
zhenguoliusheng: you can test ipmi console directly to ensure it works09:25
liushengzhenguo: I only need to paste the url returned by get-console to brwoser, right ?09:25
zhenguoliusheng: correct09:26
zhenguoliusheng: I can try it in my env09:27
liushengzhenguo: thanks!09:28
liushengzhenguo: please teach me, lol09:29
zhenguoliusheng: lol09:29
zhenguoliusheng: can you find the password file09:33
liushengzhenguo: yes09:39
liushengzhenguo: the -f paremeter of ipmitools can specify a file include password, if we don't use -f, we can use -P <password>09:40
zhenguoliusheng: yes, do you find the password is what?09:40
liushengzhenguo: in my env, it is password09:41
liushengzhenguo: in my env, it is "password"09:41
zhenguoliusheng: let me try09:42
zhenguoliusheng: no only console, I can't use ipmi directly to power on the ndoe09:48
liushengzhenguo: :(09:49
liushengzhenguo: it is because the configurations of our devstack ?09:49
zhenguoliusheng: not sure, but node can be provisioned with ipmi tool, will dig09:50
liushengzhenguo: ok, let's dig it later, happy weekend :)09:51
zhenguoliusheng: happy weekend!09:51
*** Jeffrey4l__ has quit IRC11:59
*** Jeffrey4l__ has joined #openstack-mogan12:02
*** Jeffrey4l__ has quit IRC17:25
*** l4yerffeJ_ has joined #openstack-mogan21:34
*** l4yerffeJ has quit IRC21:35

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