Ask Your Question
0

Is there a way to specify ipmi_protocol_version for a node in ironic ?

asked 2015-07-23 11:20:02 -0500

bonclay7 gravatar image

Hello, I try to manage some servers which doesn't support IPMI v2, and I'm looking for a way to tell ironic to not use IPMI v2 for those. I can see in the logs the default action :

Command: ipmitool -I lanplus -H 192.168.10.2 -L ADMINISTRATOR -U USERID -R 12 -N 5 -f /tmp/tmpMKt9ni power status Exit code: 1 Stdout: '' Stderr: 'Error: Unable to establish IPMI v2 / RMCP+ session\nError: Unable to establish IPMI v2 / RMCP+ session\nError: Unable to establish IPMI v2 / RMCP+ session\nUnable to get Chassis Power Status\n'.

I tried this command ironic node-update $NODE add properties/ipmi_protocol_version='1.5' and i got the same result after that

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-07 12:02:41 -0500

bonclay7 gravatar image

I saw in the master of ironic on github (https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py (https://github.com/openstack/ironic/b...)) that they provided support for IPMI 1.5. Based on that I've updated the ipmitool driver source code to support ipmi_protocol_version parameter ('1.5' and default to '2.0') in the node properties

Juno : https://gist.github.com/bonclay7/35b58400019f35e9b6ec (https://gist.github.com/bonclay7/35b5...) Kilo : https://gist.github.com/bonclay7/35b58400019f35e9b6ec#file-ipmitool-kilo-py (https://gist.github.com/bonclay7/35b5...)

With this modification, I'm able to manage different IPMI versions on my OpenStack env

ironic node-show $NODE

driver_info : {u'pxe_deploy_ramdisk': u'3cbfa97e-9127-4a3a-8eff-eda37cf9ad3a',
u'ipmi_terminal_port': 8023, u'ipmi_username': u'USERID',
u'ipmi_address': u'192.168.10.2', u'ipmi_password': u'**',
u'ipmi_protocol_version': 1.5, u'pxe_deploy_kernel': u'e91ba8a5-860d- 47f0-a2a6-2e8bccbed146'}

power_state: power off driver : pxe_ipmitool

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-07-23 11:20:02 -0500

Seen: 404 times

Last updated: Aug 07 '15