<div dir="ltr"><div><div><div><div><div><div>I have setup openstack according to the baremetal wiki.<br></div><div><br>The hostname on which i am running baremetal openstack controller is ''os''<br><br></div>
<div>1> I have this baremetal-flavor:<br>=========================<br>| 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'} |<br>
<br><br><br><br><br></div><div>2> I have enrolled this baremetal node:<br>================================<br>root@os:/etc/init.d# nova baremetal-node-list<br>+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+<br>
| ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address | PM Address | PM Username | PM Password | Terminal Port |<br>+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+<br>
| 3 | os | 1 | 1024 | 10 | 00:50:56:AA:20:54 | 10.40.0.99 | admin | | None |<br>+----+------+------+-----------+---------+-------------------+------------+-------------+-------------+---------------+<br>
<br><br><br><br></div><div>3> I have this baremetal interface:<br>=========================<br></div><div>root@os:/etc/init.d# nova baremetal-interface-list 3<br>+----+-------------+---------+-------------------+<br>| ID | Datapath_ID | Port_No | Address |<br>
+----+-------------+---------+-------------------+<br>| 4 | 0 | 0 | 00:50:56:AA:20:54 |<br>+----+-------------+---------+-------------------+<br><br><br><br><br><br></div><div>4> I do nova baremetal boot:<br>
=========================<br>root@os:/etc/init.d# nova boot --flavor my-baremetal-flavor --image my-image my-baremetal-node<br>+-------------------------------------+--------------------------------------+<br>| Property | Value |<br>
+-------------------------------------+--------------------------------------+<br>| status | BUILD |<br>| updated | 2013-10-14T20:32:52Z |<br>
| OS-EXT-STS:task_state | scheduling |<br>| OS-EXT-SRV-ATTR:host | None |<br>| key_name | None |<br>
| image | my-image |<br>| hostId | |<br>| OS-EXT-STS:vm_state | building |<br>
| OS-EXT-SRV-ATTR:instance_name | instance-00000029 |<br>| OS-EXT-SRV-ATTR:hypervisor_hostname | None |<br>| flavor | my-baremetal-flavor |<br>
| id | 66a1f372-3217-4a5c-81e5-9c2cc975711c |<br>| security_groups | [{u'name': u'default'}] |<br>| user_id | 251bd0a9388a477b9c24c99b223e7b2a |<br>
| name | my-baremetal-node |<br>| adminPass | DLMqNtw59W4F |<br>| tenant_id | 8a34123d83824f3ea52527c5a28ad81e |<br>
| created | 2013-10-14T20:32:52Z |<br>| OS-DCF:diskConfig | MANUAL |<br>| metadata | {} |<br>
| accessIPv4 | |<br>| accessIPv6 | |<br>| progress | 0 |<br>
| OS-EXT-STS:power_state | 0 |<br>| OS-EXT-AZ:availability_zone | nova |<br>| config_drive | |<br>
+-------------------------------------+--------------------------------------+<br><br><br><br><br></div><div class="h5">5> But i see error in nova show:<br>===========================</div>root@os:/etc/init.d# nova show 66a1f372-3217-4a5c-81e5-9c2cc975711c<br>
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+<br>| Property | Value |<br>
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+<br>| status | ERROR |<br>
| name | my-baremetal-node |<br>| fault | {u'message': u'NoValidHost', u'code': 500, u'details': u'No valid host was found. |<br>
| | File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 97, in schedule_run_instance |<br>| | raise exception.NoValidHost(reason="") |<br>
| | ', u'created': u'2013-10-14T20:32:52Z'} |<br>| OS-EXT-STS:power_state | 0 |<br>
| OS-EXT-AZ:availability_zone | nova <br><br><br><br></div>6> nova compute log:<br>=================<br>2013-10-14 13:34:18.153 6611 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources<br>
2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 995<br>2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 38<br>2013-10-14 13:34:18.195 6611 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 1<br>
2013-10-14 13:34:18.219 6611 INFO nova.compute.resource_tracker [-] Compute_service record updated for os:os<br>2013-10-14 13:34:18.234 6611 INFO nova.compute.manager [-] Updating host status<br><br><br><br><br></div>7> nova-scheduler.log<br>
====================<br>Connected to AMQP server on <a href="http://10.40.0.99:5672">10.40.0.99:5672</a><br>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.<br>
<br><br><br><br></div>8> nova service list has same hostname as in nova baremetal node list:<br>=======================================================<br>root@os:/etc/init.d# nova-manage service list<br>Binary Host Zone Status State Updated_At<br>
nova-cert os internal enabled :-) 2013-10-14 20:37:18<br>nova-conductor os internal enabled :-) 2013-10-14 20:37:18<br>
nova-consoleauth os internal enabled :-) 2013-10-14 20:37:18<br>nova-compute os nova enabled :-) 2013-10-14 20:37:19<br>
nova-scheduler os internal enabled :-) 2013-10-14 20:37:19<br><br><br><br></div>Can someone please help?<br></div>Thanks<br>Ravi<br><br><div><div><br><div><div><div><br></div>
</div></div></div></div></div>