Hi Arata, Thanks for your response.
Issue has been resolved, it's because the"bm1" not vaild nova-compute node hostname. When you creating/enroll the baremetal HW the hostname should be nova-compute host name. But I have other issue, while launching the instance. I have only one physical node to provision my instance after couple launch failures now the NIC interface of baremetal is giving " The mac address E8:93:53:2B:F9:E0 is in use " ERROR nova.scheduler.filter_scheduler [req-9b2e896b-c02b-4a1b-a2e3-936390add2a9 e29d4b006311421896a3469d7efb3621 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: db6bf68f-f52d-4d6a-944b-71036599939a] Error from last host: d00-50-56-8b-0c-5f (node 2ee2ab4e-85d6-4b59-9c24-024673277b9c): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 817, in _run_instance\n requested_networks, macs, security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1061, in _allocate_network\n instance=instance)\n', u' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1057, in _allocate_network\n security_groups=security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 46, in wrapper\n res = f(self, context, *args, **kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 280, in allocate_for_instance\n \'exception\': ex})\n', u' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 263, in allocate_for_instance\n quantum.create_port(port_req_body)[\'port\'][\'id\'])\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params\n ret = self.function(instance, *args, **kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 269, in create_port\n return self.post(self.ports_path, body=body)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 987, in post\n headers=headers, params=params)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 912, in do_request\n self._handle_fault_response(status_code, replybody)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 893, in _handle_fault_response\n exception_handler_v20(status_code, des_error_body)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 80, in exception_handler_v20\n message=error_dict)\n', u'QuantumClientException: Unable to complete operation for network e2d489b2-48ce-40cb-a4d8-b3fb8b71b936. The mac address E8:93:53:2B:F9:E0 is in use.\n'] WARNING nova.scheduler.driver [req-9b2e896b-c02b-4a1b-a2e3-936390add2a9 e29d4b006311421896a3469d7efb3621 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: db6bf68f-f52d-4d6a-944b-71036599939a] Setting instance to ERROR state. Thanks Shanthakumar K -----Original Message----- From: Openstack [mailto:openstack-bounces+sk13=hp....@lists.launchpad.net] On Behalf Of NOTSU Arata Sent: Wednesday, July 17, 2013 5:14 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] BAREMETAL: Unable to launch the instance due to "No valid host was found" Hello Shanthakumar, Please check your nova-compute's hostname showed in "nova-manage service list" matches the one in "nova baremetal-node-list". In this case, it should be "bm1". Thanks, Arata (2013/07/16 0:20), K, Shanthakumar wrote: > Hi, > I have open stack Grizzly installed configures with baremetal environment . > > Following: https://wiki.openstack.org/wiki/Baremetal > OS: Ubuntu 12.04 LTS > Install Mode : Multi node setup (controller and the compute hosts are two > separate nodes.) > Error: I'm unable to launch the instance due to error "No > valid host was found" > > > nova flavor-list | grep 10 > | 10 | SB | 2048 | 10 | 0 | | 1 | 1.0 > | True | {u'cpu_arch': u'x86_64', u'baremetal:deploy_kernel_id': > u'821affce-d908-4b07-81b8-f5eaf7c6ab21', u'baremetal:deploy_ramdisk_id': > u'c8abfc1d-bc43-48ef-ade3-b1de96af219f'} | > > nova baremetal-node-list > +----+------+------+-----------+---------+-------------------+------------+---------------+-------------+---------------+ > | ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address | PM Address | > PM Username | PM Password | Terminal Port | > +----+------+------+-----------+---------+-------------------+------------+---------------+-------------+---------------+ > | 2 | bm1 | 1 | 2048 | 10 | E8:39:35:2B:F9:E0 | 10.0.0.22 | > Administrator | | None | > +----+------+------+-----------+---------+-------------------+------------+---------------+-------------+---------------+ > > nova baremetal-interface-list 2 > +----+-------------+---------+-------------------+ > | ID | Datapath_ID | Port_No | Address | > +----+-------------+---------+-------------------+ > | 2 | 0 | 0 | E8:39:35:2B:F9:E0 | > +----+-------------+---------+-------------------+ > > nova boot --flavor SB --image my-image INS2 > +-------------------------------------+--------------------------------------+ > | Property | Value | > +-------------------------------------+--------------------------------------+ > | status | BUILD | > | updated | 2013-07-15T15:56:02Z | > | OS-EXT-STS:task_state | scheduling | > | OS-EXT-SRV-ATTR:host | None | > | key_name | None | > | image | my-image | > | hostId | > | | > +-------------------------------------+--------------------------------------+ > > nova show 88affe47-02a4-46c8-b155-aadce5df5134 > +-------------------------------------+------------------------------------------------------------------------------------+ > | Property | Value > | > +-------------------------------------+------------------------------------------------------------------------------------+ > | status | ERROR > | > | updated | 2013-07-15T15:56:02Z > | > | OS-EXT-STS:task_state | None > | > | OS-EXT-SRV-ATTR:host | None > | > | key_name | None > | > | > | > | > | fault | {u'message': u'NoValidHost', u'code': > 500, u'details': u'No valid host was found. | > | | ', u'created': > u'2013-07-15T15:56:02Z'} | > | OS-EXT-STS:power_state | 0 > | > | OS-EXT-AZ:availability_zone | None > | > | config_drive | > | > +-------------------------------------+------------------------------------------------------------------------------------+ > > DNSMASQ is running and all other services WRT to Openstack running. > > nova.conf > ######### > # Baremetal > scheduler_host_manager=nova.scheduler.baremetal_host_manager.Baremetal > HostManager firewall_driver=nova.virt.firewall.NoopFirewallDriver > compute_driver=nova.virt.baremetal.driver.BareMetalDriver > ram_allocation_ration=1.0 > reserved_host_memory_mb=0 > [baremetal] > sql_connection=postgresql://nova:mwx4s3gzsjy8@192.168.124.81/nova_bm > instance_type_extra_specs=cpu_arch:x86_64 > driver=nova.virt.baremetal.pxe.PXE > power_manager=nova.virt.baremetal.ipmi.IPMI > terminal=shellinaboxd > > nova-scheduler.log > ################## > 2013-07-15 10:13:52.808 31607 INFO nova.service [-] Caught SIGTERM, > exiting > 2013-07-15 10:13:55.294 26398 AUDIT nova.service [-] Starting > scheduler node (version 2013.1) > 2013-07-15 10:13:56.816 INFO nova.openstack.common.rpc.common > [req-7424f636-7b56-47b6-a758-7871568de350 None None] Connected to AMQP > server on 192.168.124.81:5672 > 2013-07-15 10:13:56.841 INFO nova.openstack.common.rpc.common > [req-7424f636-7b56-47b6-a758-7871568de350 None None] Connected to AMQP > server on 192.168.124.81:5672 > 2013-07-15 10:39:20.208 WARNING nova.scheduler.driver > [req-96b23651-acac-46a7-ba20-2440d4244572 e29d4b006311421896a3469d7efb3621 > 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: > 4cd2d334-856d-435c-81bd-cc0d71177163] Setting instance to ERROR state. > 2013-07-15 10:41:30.646 WARNING nova.scheduler.driver > [req-2360fa22-90a0-4319-bdc7-0c75119beb23 e29d4b006311421896a3469d7efb3621 > 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: > a689c1f0-ee76-467f-aee6-bf613f641126] Setting instance to ERROR state. > 2013-07-15 10:50:59.934 WARNING nova.scheduler.driver > [req-9788e857-47be-488d-8338-eab2edf3919a e29d4b006311421896a3469d7efb3621 > 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: > cfe18217-f803-48ca-89d2-0b396327afb5] Setting instance to ERROR state. > 2013-07-15 10:56:02.472 WARNING nova.scheduler.driver > [req-a8abeb9a-a8ec-4775-8c9d-d1492a5fa63a e29d4b006311421896a3469d7efb3621 > 33a71acc451e4bfc8105a1b7d01bfe8c] [instance: > 88affe47-02a4-46c8-b155-aadce5df5134] Setting instance to ERROR state. > > > Any help on this would be really helpful > > Thanks > Shanthakumar K > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp