Comment 4 for bug 1683104

Revision history for this message
wiston (349317925-k) wrote : Re: [Bug 1683104] Re: instance is not created rightly

about performance limitation of starting placement-api raised by me,I am not sure.
About apache configuration have some error as you said,could you give me some ideas?thanks very much!

发自网易邮箱大师
On 04/21/2017 17:56, Chris Dent wrote:
wiston, while your solution may be working for you, it has some issues:

* running /usr/bin/nova-placement-api directory is for testing purposes
only, the placement API expects to be run under apache, using mod-wsgi,
otherwise performance may be limited

* the reason things aren't working for you is that the apache
configuration for the placement service has some issues in the
respective packages that install it, resulting in a deployment that
cannot work without some tweaks to the apache configuration

What those tweaks are depends on whether you are using Ubuntu or RDO
packages and what is currently in your apache configuration.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1683104

Title:
 instance is not created rightly

Status in openstack-manuals:
 Invalid

Bug description:
 This bug tracker is for errors with the documentation, use the
 following as a template and remove or add fields as you see fit.
 Convert [ ] into [x] to check boxes:

 - [ ] This doc is inaccurate in this way: ______
 - [ ] This is a doc addition request.
 - [x] I have a fix to the document that I can paste below including example: input and output.

 ERROR:
 1. Compute node log error:
 1.1 Check /var/log/nova/nova-compute.log :
 2017-04-16 11:33:58.108 3226 WARNING nova.scheduler.client.report [req-931699f3-d38b-49dc-9461-6d2d04ae0cd4 - - - - -] Placement API service is not responding.

 2. Controller node log error:
 2.1 Check placement api port , not listen :
 netstat –an|grep 8778

 2.2 Check /var/log/nova/nova-scheduler.log:
 2017-04-08 22:06:20.123 5717 WARNING nova.scheduler.client.report [req-d287ab3e-758f-4bb2-a758-68d257efa644 53b3b82fda094717b570cda47b4065e5 d2283a9485d2445bbb836c420aefcf22 - - -] Placement API service is not responding.

 2.3 Check /var/log/nova/nova-conductor.log:
 2017-04-08 14:43:54.629 5716 INFO nova.service [-] Starting conductor node (version 15.0.0-15.0.0.0~rc3~dev1)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager [req-3c7725b0-42af-4de2-a2c2-c21a1b9e908b 53b3b82fda094717b570cda47b4065e5 d2283a9485d2445bbb836c420aefcf22 - - -] Failed to schedule

 instances
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager Traceback (most recent call last):
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager request_specs[0].to_legacy_filter_properties_dict())
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager hosts = self.scheduler_client.select_destinations(context, spec_obj)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return func(*args, **kwargs)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return self.queryclient.select_destinations(context, spec_obj)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return getattr(self.instance, __name)(*args, **kwargs)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return self.scheduler_rpcapi.select_destinations(context, spec_obj)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129, in select_destinations
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return cctxt.call(ctxt, 'select_destinations', **msg_args)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager retry=self.retry)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager timeout=timeout, retry=retry)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager retry=retry)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 449, in _send
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager raise result
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager NoValidHost_Remote: No valid host was found. There are not enough hosts available.
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager Traceback (most recent call last):
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 218, in inner
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager return func(*args, **kwargs)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 98, in select_destinations
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager dests = self.driver.select_destinations(ctxt, spec_obj)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 79, in select_destinations
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager raise exception.NoValidHost(reason=reason)
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager NoValidHost: No valid host was found. There are not enough hosts available.
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.371 5716 ERROR nova.conductor.manager
 2017-04-08 21:23:50.574 5716 WARNING nova.scheduler.utils [req-3c7725b0-42af-4de2-a2c2-c21a1b9e908b 53b3b82fda094717b570cda47b4065e5 d2283a9485d2445bbb836c420aefcf22 - - -] Failed to

 compute_task_build_instances: No valid host was found. There are not enough hosts available.
 Traceback (most recent call last):

   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 218, in inner
     return func(*args, **kwargs)

   File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 98, in select_destinations
     dests = self.driver.select_destinations(ctxt, spec_obj)

   File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 79, in select_destinations
     raise exception.NoValidHost(reason=reason)

 NoValidHost: No valid host was found. There are not enough hosts
 available.

 2.4 Check /var/log/nova/nova-placement-api.log , no this log

 RESOLUTION:

 1. Start nova-placement-api service :
 /usr/bin/nova-placement-api

 Check nova-placement-api port , default value is 8000.but it is 8778
 in OpenStack guide.

 2. Change /usr/bin/nova-placement-api file, from 8000 to 8778

 3. Check port whether it is listening:
 netstat –an|grep 8778

 If you have a troubleshooting or support issue, use the following
 resources:

  - Ask OpenStack: http://ask.openstack.org
  - The mailing list: http://lists.openstack.org
  - IRC: 'openstack' channel on Freenode

 -----------------------------------
 Release: 15.0.0 on 2017-04-14 06:13
 SHA: c73899569e19fc809f56f6d58235f339c30bda2a
 Source: https://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/environment-ntp-controller.rst
 URL: https://docs.openstack.org/ocata/install-guide-obs/environment-ntp-controller.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-manuals/+bug/1683104/+subscriptions