Bug 1324223

Summary: ipmitool called with 'help' command line option by ironic-conductor: ipmitool -N 0 -R 0 -h
Product: Red Hat OpenStack Reporter: Dan Yocum <dyocum>
Component: openstack-ironicAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED NOTABUG QA Contact: Raviv Bar-Tal <rbartal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: mburns, rhel-osp-director-maint, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-01 15:25:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dan Yocum 2016-04-05 21:11:04 UTC
Description of problem:

I see this in the ironic-conductor.log file with debug and verbose enabled:

2016-04-05 12:16:10.517 29802 DEBUG oslo_messaging._drivers.amqp [-] Pool creating new connection create /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqp.py:92
2016-04-05 12:16:10.522 29802 INFO oslo_messaging._drivers.impl_rabbit [-] Connecting to AMQP server on 10.3.3.1:5672
2016-04-05 12:16:10.671 29802 INFO oslo_messaging._drivers.impl_rabbit [-] Connected to AMQP server on 10.3.3.1:5672
2016-04-05 12:16:10.732 29802 DEBUG oslo_concurrency.lockutils [-] Lock "extension_manager" acquired by "_init_extension_manager" :: waited 0.000s inner /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:444
2016-04-05 12:16:11.362 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface power __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:11.363 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface deploy __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:11.363 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface management __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.878 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface power __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.880 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface deploy __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.880 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface power __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.881 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface deploy __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.882 29802 DEBUG ironic.drivers.base [-] Found clean steps [] for interface power __new__ /usr/lib/python2.7/site-packages/ironic/drivers/base.py:146
2016-04-05 12:16:12.882 29802 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): ipmitool -N 0 -R 0 -h execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:223
2016-04-05 12:16:13.004 29802 DEBUG oslo_concurrency.processutils [-] CMD "ipmitool -N 0 -R 0 -h" returned: 0 in 0.122s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:254
2016-04-05 12:16:13.005 29802 DEBUG ironic.common.utils [-] Execution completed, command line is "ipmitool -N 0 -R 0 -h" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:83
2016-04-05 12:16:13.005 29802 DEBUG ironic.common.utils [-] Command stdout is: "" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:84
2016-04-05 12:16:13.005 29802 DEBUG ironic.common.utils [-] Command stderr is: "ipmitool version 1.8.13

usage: ipmitool [options...] <command>

       -h             This help
       -V             Show version information
       -v             Verbose (can use multiple times)
       -c             Display output in comma separated format
       -d N           Specify a /dev/ipmiN device to use (default=0)
       -I intf        Interface to use
       -H hostname    Remote host name for LAN interface
       -p port        Remote RMCP port [default=623]
       -U username    Remote session username
       -f file        Read remote session password from file
       -z size        Change Size of Communication Channel (OEM)
       -S sdr         Use local file for remote SDR cache
       -D tty:b[:s]   Specify the serial device, baud rate to use
                      and, optionally, specify that interface is the system one
....




Version-Release number of selected component (if applicable):

[root@director1 ironic]# rpm -qa | grep ironic
python-ironicclient-0.5.1-12.el7ost.noarch
openstack-ironic-discoverd-1.1.0-8.el7ost.noarch
openstack-ironic-common-2015.1.2-2.el7ost.noarch
openstack-ironic-api-2015.1.2-2.el7ost.noarch
openstack-ironic-conductor-2015.1.2-2.el7ost.noarch
python-ironic-discoverd-1.1.0-8.el7ost.noarch

How reproducible:

Every?

Steps to Reproduce:
1. Enable debug and verbose in ironic.conf
2. restart ironic-conductor service
3.

Actual results:

see above

Expected results:

no error, not like this.

Additional info:

Comment 2 Lucas Alvares Gomes 2016-07-01 15:25:17 UTC
The ipmitool driver does use the help function to find out if some commands such as timing, single and dual bridge are supported [0].

[0] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L139