[Openstack] nova boot command issue
Ravikanth Samprathi
rsamprat at gmail.com
Mon Oct 14 20:38:07 UTC 2013
I have setup openstack according to the baremetal wiki.
The hostname on which i am running baremetal openstack controller is ''os''
1> I have this baremetal-flavor:
=========================
| 9 | my-baremetal-flavor | 1024 | 10 | 0 | | 1 |
1.0 | True | {u'cpu_arch': u'x86_64',
u'baremetal:deploy_kernel_id': u'5b9a76b6-c8e1-4bdf-9216-e31084a2b381',
u'baremetal:deploy_ramdisk_id': u'939f2278-2936-499b-aba2-7f3705160e65'} |
2> I have enrolled this baremetal node:
================================
root at os:/etc/init.d# nova baremetal-node-list
+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+
| ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address | PM Address |
PM Username | PM Password | Terminal Port |
+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+
| 3 | os | 1 | 1024 | 10 | 00:50:56:AA:20:54 | 10.40.0.99 |
admin | | None |
+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+
3> I have this baremetal interface:
=========================
root at os:/etc/init.d# nova baremetal-interface-list 3
+----+-------------+---------+-------------------+
| ID | Datapath_ID | Port_No | Address |
+----+-------------+---------+-------------------+
| 4 | 0 | 0 | 00:50:56:AA:20:54 |
+----+-------------+---------+-------------------+
4> I do nova baremetal boot:
=========================
root at os:/etc/init.d# nova boot --flavor my-baremetal-flavor --image
my-image my-baremetal-node
+-------------------------------------+--------------------------------------+
| Property |
Value |
+-------------------------------------+--------------------------------------+
| status |
BUILD |
| updated |
2013-10-14T20:32:52Z |
| OS-EXT-STS:task_state |
scheduling |
| OS-EXT-SRV-ATTR:host |
None |
| key_name |
None |
| image |
my-image |
| hostId
| |
| OS-EXT-STS:vm_state |
building |
| OS-EXT-SRV-ATTR:instance_name |
instance-00000029 |
| OS-EXT-SRV-ATTR:hypervisor_hostname |
None |
| flavor |
my-baremetal-flavor |
| id |
66a1f372-3217-4a5c-81e5-9c2cc975711c |
| security_groups | [{u'name':
u'default'}] |
| user_id |
251bd0a9388a477b9c24c99b223e7b2a |
| name |
my-baremetal-node |
| adminPass |
DLMqNtw59W4F |
| tenant_id |
8a34123d83824f3ea52527c5a28ad81e |
| created |
2013-10-14T20:32:52Z |
| OS-DCF:diskConfig |
MANUAL |
| metadata |
{} |
| accessIPv4
| |
| accessIPv6
| |
| progress |
0 |
| OS-EXT-STS:power_state |
0 |
| OS-EXT-AZ:availability_zone |
nova |
| config_drive
| |
+-------------------------------------+--------------------------------------+
5> But i see error in nova show:
===========================
root at os:/etc/init.d# nova show 66a1f372-3217-4a5c-81e5-9c2cc975711c
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+
| Property |
Value
|
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+
| status |
ERROR
|
| name |
my-baremetal-node
|
| fault | {u'message': u'NoValidHost',
u'code': 500, u'details': u'No valid host was
found. |
| | File
"/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line
97, in schedule_run_instance |
| | raise
exception.NoValidHost(reason="")
|
| | ', u'created':
u'2013-10-14T20:32:52Z'}
|
| OS-EXT-STS:power_state |
0
|
| OS-EXT-AZ:availability_zone |
nova
6> nova compute log:
=================
2013-10-14 13:34:18.153 6611 AUDIT nova.compute.resource_tracker [-]
Auditing locally available compute resources
2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free
ram (MB): 995
2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free
disk (GB): 38
2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free
VCPUS: 1
2013-10-14 13:34:18.219 6611 INFO nova.compute.resource_tracker [-]
Compute_service record updated for os:os
2013-10-14 13:34:18.234 6611 INFO nova.compute.manager [-] Updating host
status
7> nova-scheduler.log
====================
Connected to AMQP server on 10.40.0.99:5672
2013-10-14 13:32:52.660 WARNING nova.scheduler.driver
[req-ccbbf25f-758a-47df-be4a-f9d2c4fd70e6 251bd0a9388a477b9c24c99b223e7b2a
8a34123d83824f3ea52527c5a28ad81e] [instance:
66a1f372-3217-4a5c-81e5-9c2cc975711c] Setting instance to ERROR state.
8> nova service list has same hostname as in nova baremetal node list:
=======================================================
root at os:/etc/init.d# nova-manage service list
Binary Host Zone
Status State Updated_At
nova-cert os internal
enabled :-) 2013-10-14 20:37:18
nova-conductor os internal
enabled :-) 2013-10-14 20:37:18
nova-consoleauth os internal
enabled :-) 2013-10-14 20:37:18
nova-compute os nova
enabled :-) 2013-10-14 20:37:19
nova-scheduler os internal
enabled :-) 2013-10-14 20:37:19
Can someone please help?
Thanks
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131014/ac674140/attachment.html>
More information about the Openstack
mailing list