[Openstack] [nova baremetal] IPMI error when boot a baremetal

严超 yanchao727 at gmail.com
Fri Jul 4 05:19:13 UTC 2014


Hi, everyone :
        I've got an error when I boot a baremetal using "nova boot
baremetal flavor". What is wrong with this ? It is nova baremetal bug or my
device got wrong ?

(undercloud)chaoya at ironic001:~/tripleo$ nova show
overcloud-NovaCompute0-e6yscjqpiaap
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             |
Value
|
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    |
MANUAL
|
| OS-EXT-AZ:availability_zone          |
nova
|
| OS-EXT-SRV-ATTR:host                 |
undercloud
|
| OS-EXT-SRV-ATTR:hypervisor_hostname  |
a3c33301-4b53-47d1-a056-d1c147a4efa2
|
| OS-EXT-SRV-ATTR:instance_name        |
instance-0000000c
|
| OS-EXT-STS:power_state               |
4
|
| OS-EXT-STS:task_state                |
-
|
| OS-EXT-STS:vm_state                  |
error
|
| OS-SRV-USG:launched_at               |
-
|
| OS-SRV-USG:terminated_at             |
-
|
| accessIPv4
|
|
| accessIPv6
|
|
| config_drive
|
|
| created                              |
2014-07-04T02:32:23Z
|
| fault                                | {"message": "Unexpected error
while running
command.
|
|                                      | Command: ipmitool -I lanplus -H
10.79.53.69 -U admin -f /tmp/tmp1UNW8P power
status
|
|                                      | Exit code:
1
|
|                                      | Stdout:
''
|
|                                      | Stderr: 'Error in open session
response message : insufficient resources for
session\
|
|                                      |
\
|
|                                      | Error: Unable to es", "code": 500,
"details": "  File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 259, in decorated_function |
|                                      |     return function(self, context,
*args,
**kwargs)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1848, in
run_instance                                                     |
|                                      |
do_run_instance()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/lockutils.py\",
line 249, in inner                                                  |
|                                      |     return f(*args,
**kwargs)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1847, in
do_run_instance                                                  |
|                                      |
legacy_bdm_in_spec)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 977, in
_run_instance                                                     |
|                                      |     notify(\"error\",
msg=unicode(e))  # notify that build
failed
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/excutils.py\",
line 68, in __exit__                                                 |
|                                      |     six.reraise(self.type_,
self.value,
self.tb)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 961, in
_run_instance                                                     |
|                                      |     instance, image_meta,
legacy_bdm_in_spec)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1087, in
_build_instance                                                  |
|                                      |     filter_properties, bdms,
legacy_bdm_in_spec)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1131, in
_reschedule_or_error                                             |
|                                      |
self._log_original_error(exc_info,
instance_uuid)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/excutils.py\",
line 68, in __exit__                                                 |
|                                      |     six.reraise(self.type_,
self.value,
self.tb)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1126, in
_reschedule_or_error                                             |
|                                      |     bdms,
requested_networks)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1897, in
_shutdown_instance                                               |
|                                      |
requested_networks)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/excutils.py\",
line 68, in __exit__                                                 |
|                                      |     six.reraise(self.type_,
self.value,
self.tb)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/compute/manager.py\",
line 1887, in
_shutdown_instance                                               |
|                                      |
block_device_info)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/driver.py\",
line 328, in destroy                                                     |
|                                      |     \"baremetal database: %s\") %
e)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/excutils.py\",
line 68, in __exit__                                                 |
|                                      |     six.reraise(self.type_,
self.value,
self.tb)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/driver.py\",
line 310, in destroy                                                     |
|                                      |     self.power_off(instance,
node)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/driver.py\",
line 340, in power_off                                                   |
|                                      |
pm.deactivate_node()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/ipmi.py\",
line 242, in deactivate_node                                               |
|                                      |
self._power_off()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/ipmi.py\",
line 196, in _power_off                                                    |
|                                      |
timer.start(interval=1.0).wait()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/eventlet/event.py\",
line 116, in
wait                                                                    |
|                                      |     return
hubs.get_hub().switch()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/eventlet/hubs/hub.py\",
line 187, in
switch                                                               |
|                                      |     return
self.greenlet.switch()
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/loopingcall.py\",
line 78, in _inner                                                |
|                                      |     self.f(*self.args,
**self.kw)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/ipmi.py\",
line 177, in _wait_for_power_off                                           |
|                                      |     if self.is_power_on() is
False:
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/ipmi.py\",
line 253, in is_power_on                                                   |
|                                      |     res =
self._exec_ipmitool(\"power
status\")[0]
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/virt/baremetal/ipmi.py\",
line 137, in _exec_ipmitool                                                |
|                                      |     out, err =
utils.execute(*args,
attempts=3)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/utils.py\", line
166, in
execute
|
|                                      |     return
processutils.execute(*cmd,
**kwargs)
|
|                                      |   File
\"/opt/stack/venvs/nova/lib/python2.7/site-packages/nova/openstack/common/processutils.py\",
line 178, in execute                                             |
|                                      |     cmd='
'.join(cmd))
|
|                                      | ", "created":
"2014-07-04T02:52:40Z"}
|
| flavor                               | baremetal
(c6679951-272f-4ec7-9d78-710e734812e3)
|
| hostId                               |
f217a693b567a1c505e7ec77d64d2d9bfcd183c296c7599c82ae507e
|
| id                                   |
6ef68598-c190-49de-8e26-f00cc0162b9d
|
| image                                | overcloud-compute
(2e024da3-ccd8-4167-b807-e24babaa5ea2)
|
| key_name                             |
default
|
| metadata                             |
{}
|
| name                                 |
overcloud-NovaCompute0-e6yscjqpiaap
|
| os-extended-volumes:volumes_attached |
[]
|
| status                               |
ERROR
|
| tenant_id                            |
fd33317cc3a147aaa94f7b84c53d205b
|
| updated                              |
2014-07-04T02:54:06Z
|
| user_id                              |
fda3b46d266b491880f8aeac193839b9
|
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+


*Best Regards!*


*Chao Yan--------------**My twitter:Andy Yan @yanchao727
<https://twitter.com/yanchao727>*


*My Weibo:http://weibo.com/herewearenow
<http://weibo.com/herewearenow>--------------*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140704/49986701/attachment.html>


More information about the Openstack mailing list