Activity log for bug #1237802

Date Who What changed Old value New value Message
2013-10-10 07:08:12 Ryota Mibu bug added bug
2013-10-16 14:37:32 Robert Collins nova: status New Triaged
2013-10-16 14:37:34 Robert Collins nova: importance Undecided High
2013-10-16 18:58:48 Dan Prince nova: status Triaged In Progress
2013-10-21 05:17:23 Ryota Mibu summary IPMI power manager hangs up when the password is empty. IPMI power manager hangs when the password is empty.
2013-10-21 05:17:50 Ryota Mibu description While creating Baremetal Node by `nova baremetal-node-create' with --pm_password '' [1] and starting a deployment, IPMI power manager hangs up with showing prompt "Password:" in nova-compute process. IPMI power manager creates an empty file and specifies it as the password file in the ipmitool command line, but ipmitool ignores that file [2]. This is an uncommon case that an administrator set password empty, but this is not a low importance bug due to it stops the thread. I think we can avoid this bug by writing '\0' into the password file [3], since ipmitool checks return value of fgets() is not NULL which means the file is not start with EOF and no error had occurred. [1] e.g.: $ nova baremetal-node-create --pm_address 192.0.2.200 --pm_user admin --pm_password '' service-host 1 1000 10000 00:11:22:33:44:55 [2] In ipmitool manpage: -f <password_file> Specifies a file containing the remote server password. If this option is absent, or if password_file is empty, the password will default to NULL. [3] I checked that ipmitool works with a file containing '\0'; # touch a # ipmitool -I lanplus -H 192.0.2.94 -f a -U administrator power status Unable to read password from file a Unable to read password from file a Password: <-- Enter Chassis Power is off # echo -e '\0' > b # ipmitool -I lanplus -H 192.0.2.94 -f b -U administrator power status Chassis Power is off While creating Baremetal Node by `nova baremetal-node-create' with --pm_password '' [1] and starting a deployment, IPMI power manager hangs with showing prompt "Password:" in nova-compute process. IPMI power manager creates an empty file and specifies it as the password file in the ipmitool command line, but ipmitool ignores that file [2]. This is an uncommon case that an administrator set password empty, but this is not a low importance bug due to it stops the thread. I think we can avoid this bug by writing '\0' into the password file [3], since ipmitool checks return value of fgets() is not NULL which means the file is not start with EOF and no error had occurred. [1] e.g.:     $ nova baremetal-node-create --pm_address 192.0.2.200 --pm_user admin --pm_password '' service-host 1 1000 10000 00:11:22:33:44:55 [2] In ipmitool manpage:     -f <password_file>         Specifies a file containing the remote server password. If this option is absent, or if password_file is empty, the password will default to NULL. [3] I checked that ipmitool works with a file containing '\0';     # touch a     # ipmitool -I lanplus -H 192.0.2.94 -f a -U administrator power status     Unable to read password from file a     Unable to read password from file a     Password: <-- Enter     Chassis Power is off     # echo -ne '\0' > b     # ipmitool -I lanplus -H 192.0.2.94 -f b -U administrator power status     Chassis Power is off
2013-10-24 02:57:25 Ryota Mibu nova: assignee Ryota Mibu (r-mibu)
2013-10-25 07:54:38 Ghe Rivero bug task added ironic
2013-10-30 08:33:42 Ryota Mibu ironic: status New Opinion
2013-10-30 14:13:55 aeva black ironic: status Opinion Invalid
2013-11-26 08:01:00 OpenStack Infra nova: status In Progress Fix Committed
2013-12-03 23:06:28 Russell Bryant nova: milestone icehouse-1
2013-12-04 10:02:48 Thierry Carrez nova: status Fix Committed Fix Released
2014-04-17 08:47:19 Thierry Carrez nova: milestone icehouse-1 2014.1