<div dir="ltr">The last time I saw this error, my neutron agent on the compute host wasn't running.  If you run: neutron agent-list    is the neutron agent on your compute node up and running?<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 11:49 AM, Amit Kumar <span dir="ltr"><<a href="mailto:ebiibe82@gmail.com" target="_blank">ebiibe82@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>I have installed Openstack Newton using Openstack-Ansible. While creating an instance, it is failing with following error:</div><div><br></div><div><dt style="box-sizing:border-box;line-height:1.42857;font-weight:bold;float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>Message</i></dt><dd style="box-sizing:border-box;line-height:1.42857;margin-left:180px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>No valid host was found. There are not enough hosts available.</i></dd><dt style="box-sizing:border-box;line-height:1.42857;font-weight:bold;float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>Code</i></dt><dd style="box-sizing:border-box;line-height:1.42857;margin-left:180px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>500</i></dd><dt style="box-sizing:border-box;line-height:1.42857;font-weight:bold;float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>Details</i></dt><dd style="box-sizing:border-box;line-height:1.42857;margin-left:180px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><i>File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/conductor/manager.py", line 496, in build_instances context, request_spec, filter_properties) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/conductor/manager.py", line 567, in _schedule_instances hosts = self.scheduler_client.select_d<wbr>estinations(context, spec_obj) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/scheduler/utils.py", line 370, in wrapped return func(*args, **kwargs) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/scheduler/client/__init__.<wbr>py", line 51, in select_destinations return self.queryclient.select_destin<wbr>ations(context, spec_obj) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/scheduler/client/__init__.<wbr>py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_d<wbr>estinations(context, spec_obj) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/no<wbr>va/scheduler/rpcapi.py", line 126, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/os<wbr>lo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/os<wbr>lo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/os<wbr>lo_messaging/_drivers/amqpdriv<wbr>er.py", line 464, in send retry=retry) File "/openstack/venvs/nova-14.0.8/<wbr>lib/python2.7/site-packages/os<wbr>lo_messaging/_drivers/amqpdriv<wbr>er.py", line 455, in _send raise result</i></dd></div><div><br></div><div>I executed following commands before launching an instance.</div><div><div><ol><li><i>openstack image create --disk-format qcow2 --container-format bare --public --file ./cirros-0.3.4-x86_64-disk.img cirros0.3.4-image<br></i></li><li><i>openstack flavor create --public m1.extra_tiny --id auto --ram 2048 --disk 0 --vcpus 1 --rxtx-factor 1<br></i></li><li><i>openstack network create net1<br></i></li><li><i>openstack subnet create subnet1 --network net1 --subnet-range <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a></i><br></li></ol><div><b>/var/log/nova/nova-compute.log</b> are showing are something like this:</div></div></div><div><br></div><div><div><i>2017-02-28 23:11:44.610 1142 INFO nova.compute.resource_tracker [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Auditing locally available compute resources for node compute1</i></div><div><i>2017-02-28 23:11:44.721 1142 WARNING nova.scheduler.client.report [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] No authentication information found for placement API. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading.</i></div><div><i>2017-02-28 23:11:44.721 1142 WARNING nova.scheduler.client.report [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Unable to refresh my resource provider record</i></div><div><i>2017-02-28 23:11:44.800 1142 INFO nova.compute.resource_tracker [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Total usable vcpus: 8, total allocated vcpus: 0</i></div><div><i>2017-02-28 23:11:44.800 1142 INFO nova.compute.resource_tracker [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Final resource view: name=compute1 phys_ram=7877MB used_ram=2048MB phys_disk=908GB used_disk=2GB total_vcpus=8 used_vcpus=0 pci_stats=[]</i></div><div><i>2017-02-28 23:11:44.896 1142 WARNING nova.scheduler.client.report [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Unable to refresh my resource provider record</i></div><div><i>2017-02-28 23:11:44.896 1142 INFO nova.compute.resource_tracker [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Compute_service record updated for compute1:compute1</i></div><div><i>2017-02-28 23:12:30.611 1142 WARNING nova.virt.libvirt.imagecache [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Unknown base file: /var/lib/nova/instances/_base/<wbr>3451088abe875a7f691a9e229d767a<wbr>a128dc0da3</i></div><div><i>2017-02-28 23:12:30.612 1142 INFO nova.virt.libvirt.imagecache [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Removable base files: /var/lib/nova/instances/_base/<wbr>3451088abe875a7f691a9e229d767a<wbr>a128dc0da3</i></div><div><i>2017-02-28 23:12:30.612 1142 INFO nova.virt.libvirt.imagecache [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Base or swap file too young to remove: /var/lib/nova/instances/_base/<wbr>3451088abe875a7f691a9e229d767a<wbr>a128dc0da3</i></div><div><i>2017-02-28 23:12:45.609 1142 INFO nova.compute.resource_tracker [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Auditing locally available compute resources for node compute1</i></div><div><i>2017-02-28 23:12:45.750 1142 WARNING nova.scheduler.client.report [req-ad2fc0ae-e98f-45c5-89cc-3<wbr>211a69a37ec - - - - -] Unable to refresh my resource provider record</i></div><div><i>2</i></div></div><div><br></div><div><b>nova service-list</b> is showing following results:</div><div><div><i>root@infra1-utility-container-<wbr>07316276:~# nova service-list</i></div><div><i>+----+------------------+-----<wbr>------------------------------<wbr>-------+----------+---------+-<wbr>------+-----------------------<wbr>-----+-----------------+</i></div><div><i>| Id | Binary           | Host                                     | Zone     | Status  | State | Updated_at                 | Disabled Reason |</i></div><div><i>+----+------------------+-----<wbr>------------------------------<wbr>-------+----------+---------+-<wbr>------+-----------------------<wbr>-----+-----------------+</i></div><div><i>| 1  | nova-scheduler   | infra1-nova-scheduler-containe<wbr>r-34614124 | internal | enabled | up    | 2017-02-28T17:46:43.000000 | -               |</i></div><div><i>| 4  | nova-conductor   | infra1-nova-conductor-containe<wbr>r-e7a47165 | internal | enabled | up    | 2017-02-28T17:46:41.000000 | -               |</i></div><div><i>| 8  | nova-cert        | infra1-nova-cert-container-5e9<wbr>b6e14      | internal | enabled | up    | 2017-02-28T17:46:39.000000 | -               |</i></div><div><i>| 9  | nova-consoleauth | infra1-nova-console-container-<wbr>0f851e59   | internal | enabled | up    | 2017-02-28T17:46:42.000000 | -               |</i></div><div><i>| 10 | nova-compute     | compute1                                 | nova     | enabled | up    | 2017-02-28T17:46:41.000000 | -               |</i></div><div><i>+----+------------------+-----<wbr>------------------------------<wbr>-------+----------+---------+-<wbr>------+-----------------------<wbr>-----+-----------------+</i></div></div><div><br></div><div>Apart from this, computer and controller nodes are able to ping each other.</div><div><br></div><div>Could you please suggest any pointers to understand and fix the problem.</div><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div><div>Amit</div></div>
<br>______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.open<wbr>stack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-operators</a><br>
<br></blockquote></div><br></div></div></div>