This is openstack baremetal related problem.
The testing environment is RHEL6.4 on x86-64. The following rpm packages were installed and used.
[root@dx360m4n05 ~]# rpm -qa | grep -i xcat
perl-xCAT-2.8.4-snap201403130854.noarch
xCAT-OpenStack-baremetal-2.8.4-snap201403130855.noarch
xCAT-server-2.8.4-snap201403130854.noarch
xCAT-client-2.8.4-snap201403130854.noarch
[root@dx360m4n05 ~]# rpm -qa | grep -i openstack | sort
kernel-2.6.32-358.123.2.openstack.el6.x86_64
kernel-firmware-2.6.32-358.123.2.openstack.el6.noarch
openstack-glance-2013.2.2-2.el6.noarch
openstack-keystone-2013.2.2-1.el6.noarch
openstack-nova-2013.2.2-1.el6.noarch
openstack-nova-api-2013.2.2-1.el6.noarch
openstack-nova-cells-2013.2.2-1.el6.noarch
openstack-nova-cert-2013.2.2-1.el6.noarch
openstack-nova-common-2013.2.2-1.el6.noarch
openstack-nova-compute-2013.2.2-1.el6.noarch
openstack-nova-conductor-2013.2.2-1.el6.noarch
openstack-nova-console-2013.2.2-1.el6.noarch
openstack-nova-network-2013.2.2-1.el6.noarch
openstack-nova-novncproxy-2013.2.2-1.el6.noarch
openstack-nova-objectstore-2013.2.2-1.el6.noarch
openstack-nova-scheduler-2013.2.2-1.el6.noarch
openstack-packstack-2013.2.1-0.32.dev987.el6.noarch
openstack-selinux-0.1.3-2.el6ost.noarch
openstack-utils-2013.2-2.el6.noarch
perf-2.6.32-358.123.2.openstack.el6.x86_64
xCAT-OpenStack-baremetal-2.8.4-snap201403130855.noarch
This is the nova configuration file
[root@dx360m4n05 ~]# cat /etc/nova/nova.conf | grep -v ^# | grep -v ^$
[DEFAULT]
reserved_host_memory_mb=0
scheduler_host_manager=nova.scheduler.baremetal_host_manager.BaremetalHostManager
ram_allocation_ratio=1.0
compute_driver=xcat.openstack.baremetal.driver.xCATBareMetalDriver
my_ip = 9.114.34.243
vncserver_listen = 9.114.34.243
vncserver_proxyclient_address = 9.114.34.243
auth_strategy = keystone
rpc_backend = nova.openstack.common.rpc.impl_qpid
qpid_hostname = dx360m4n05
[hyperv]
[zookeeper]
[osapi_v3]
[conductor]
[keymgr]
[cells]
[database]
connection = mysql://nova:cluster@dx360m4n05/nova
[image_file_url]
[baremetal]
sql_connection=mysql://root:cluster@localhost/nova_bm?charset=utf8
instance_type_extra_specs=cpu_arch:x86_64
tftp_root=/tftpboot
[rpc_notifier2]
[matchmaker_redis]
[ssl]
[trusted_computing]
[upgrade_levels]
[matchmaker_ring]
[vmware]
[spice]
[keystone_authtoken]
auth_uri = http://dx360m4n05:5000
auth_host = dx360m4n05
auth_protocol = http
auth_port = 35357
admin_user = nova
admin_tenant_name = service
admin_password = cluster
[xcat]
deploy_timeout=0
deploy_checking_interval=10
reboot_timeout=0
reboot_checking_interval=5
While I was trying to start up the openstack-nova-compute service. The service did not start up at all.
[root@dx360m4n05 ~]# service openstack-nova-compute start
Starting openstack-nova-compute: [ OK ]
[root@dx360m4n05 ~]# cat /var/run/nova/nova-compute.pid
19163
[root@dx360m4n05 ~]# ps ax | grep -v grep | grep 19163
The error message looked like this.
[root@dx360m4n05 ~]# cat /var/log/nova/compute.log2014-03-17 12:51:25.852 17872 CRITICAL nova [-] unexpected indent (driver.py, line 171)
2014-03-17 12:51:28.309 17886 CRITICAL nova [-] unexpected indent (driver.py, line 171)
2014-03-17 12:51:36.701 17906 CRITICAL nova [-] unexpected indent (driver.py, line 171)
2014-03-17 12:51:49.980 17921 CRITICAL nova [-] unexpected indent (driver.py, line 171)
2014-03-17 12:56:57.817 18109 CRITICAL nova [-] unexpected indent (driver.py, line 171)
As you can see, there is a TAB at the beginning of line 171.
[root@dx360m4n05 ~]# cat -nA /opt/xcat/lib/python/xcat/openstack/baremetal/driver.py | head -n 175 | tail -n 10
166 be detached from the instance.$
167 :param destroy_disks: Indicates if disks should be destroyed$
168 """$
169 ^I #import pdb$
170 ^I #pdb.set_trace()$
171 ^I context = nova_context.get_admin_context()$
172 try:$
173 node = bm_driver._get_baremetal_node_by_instance_uuid(instance['uuid'])$
174 $
175 except exception.InstanceNotFound:$
Please refer the attachment for a quick-and-dirty fixing.
Diff:
Diff:
There is an tab key on line 171.
Fixed for 2.8.4 in revision a6c7b582ef62dbdf9e2508a2d56d5463198ce14d
Fixed on trunk in revision 5529a93267b529815e987e32abb746b941fc1560