Yuji's profile - activity

2017-09-19 01:33:36 -0600 received badge  Student (source)
2016-09-19 00:16:08 -0600 received badge  Famous Question (source)
2016-09-10 11:16:15 -0600 received badge  Famous Question (source)
2016-09-06 00:13:00 -0600 received badge  Notable Question (source)
2016-09-05 21:10:11 -0600 received badge  Notable Question (source)
2016-09-05 10:26:47 -0600 received badge  Popular Question (source)
2016-09-05 02:11:32 -0600 received badge  Supporter (source)
2016-09-05 01:44:17 -0600 received badge  Editor (source)
2016-09-05 01:41:43 -0600 asked a question Connection to glance host http://controller:9292 failed

when i want to Launch an instance on my openstack ,that comes:

Build of instance 687661c9-e010-4cf2-8b5b-e4388a7912a9 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v1/images/440721e8-a13f-409b-a2f3-84f6763927a5: HTTPConnectionPool(host='controller',code:500
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2083, in _build_and_run_instance 'create.error', fault=e) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2067, in _build_and_run_instance instance=instance) File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2244, in _build_resources reason=six.text_type(exc))

-

cat /var/log/glance/registry.log

2016-09-05 14:22:30.694 40910 INFO eventlet.wsgi.server [req-af018f59-3514-41ff-ae44-c2cea5a9709e ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:22:30] "GET /images/440721e8-a13f-409b-a2f3-84f6763927a5 HTTP/1.1" 200 903 0.300862
2016-09-05 14:23:44.702 40911 INFO eventlet.wsgi.server [req-7da779ab-cdf8-4b6b-8936-4d4c7a8fdb18 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:23:44] "GET /images/detail?sort_key=created_at&sort_dir=desc&limit=1000 HTTP/1.1" 200 3059 0.301075
2016-09-05 14:23:54.638 40909 INFO eventlet.wsgi.server [req-d446408a-f54c-4d56-bfb6-d88cd15e3678 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 127.0.0.1 - - [05/Sep/2016 14:23:54] "GET /images/440721e8-a13f-409b-a2f3-84f6763927a5 HTTP/1.1" 200 903 0.559929

cat /var/log/nova/nova-compute.log

2016-09-05 15:24:14.544 26391 WARNING nova.virt.osinfo [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-09-05 15:24:14.796 26391 WARNING nova.virt.osinfo [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-09-05 15:24:14.798 26391 INFO nova.virt.libvirt.driver [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] [instance: 7a2a8e8f-ce69-4088-ab5b-af3a248778e6] Creating image
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance [req-8f5276f7-c77f-4be4-8622-3a2ab19ffd55 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] Error contacting glance server 'http://controller:9292' for 'data', done trying.
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance Traceback (most recent call last):
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 250, in call
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     result = getattr(client.images, method)(*args, **kwargs)
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     % urlparse.quote(str(image_id)))
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 275, in get
2016-09-05 15:24:14.806 26391 ERROR nova.image.glance     return ...
(more)
2016-09-05 01:36:37 -0600 received badge  Popular Question (source)
2016-09-05 01:36:02 -0600 commented question No valid host was found. There are not enough hosts available.

you are right,i find there were nothing,i have solved my problem ,there have some configuration wrong in my nova.conf ,thanks

2016-09-05 01:29:53 -0600 commented answer Running the command glance image-list I get the error: finding address for http://controller:9292/v1/images/detail

now i had done what you posted,if there have some skill to solve this problem without re-installing?

2016-09-04 11:40:12 -0600 asked a question No valid host was found. There are not enough hosts available.

this is my /var/log/nova/nova-conductor.log:

2016-09-04 22:20:16.775 11514 INFO nova.service [-] Starting conductor node (version 13.1.0-1.el7)
2016-09-04 22:24:25.974 11510 WARNING nova.scheduler.utils [req-3b1cd184-426b-4345-b0f4-904c6a891ea0 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 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 150, in inner
    return func(*args, **kwargs)

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

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

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

2016-09-04 22:24:25.975 11510 WARNING nova.scheduler.utils [req-3b1cd184-426b-4345-b0f4-904c6a891ea0 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] [instance: e2ae1198-7275-47ce-98dd-32d781bb7382] Setting instance to ERROR state.

and that is my /var/log/nova/nova-scheduler.log:

2016-09-04 22:44:20.801 11562 INFO nova.scheduler.host_manager [req-a6fe2d89-13e8-43b3-ba66-43b646483c27 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:44:35.772 11562 INFO nova.scheduler.host_manager [req-b65e3555-c03d-4d57-8f15-5b918ef9bd46 - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:46:23.810 11562 INFO nova.scheduler.host_manager [req-be52ff65-b4fb-4c21-9963-02b8c481bc2f - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:46:39.440 11562 INFO nova.scheduler.host_manager [req-a02933dd-b993-49bc-a15a-b93edbc2a4cc - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:48:23.808 11562 INFO nova.scheduler.host_manager [req-ebf59fd3-e53c-4e44-b230-a4be16375548 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:48:41.451 11562 INFO nova.scheduler.host_manager [req-ad5b58b7-603a-4845-91e3-9c1da18eba51 - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:50:28.803 11562 INFO nova.scheduler.host_manager [req-03f98b33-d20b-4d78-afde-7555eb321591 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:50:43.443 11562 INFO nova.scheduler.host_manager [req-215f9f4b-61e2-4bad-8ce3-ba51bf57e3c5 - - - - -] Successfully synced instances from host 'compute2'.

-

nova service-list:
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-conductor   | controller | internal | enabled | up    | 2016-09-04T14:53:11.000000 | -               |
| 3  | nova-scheduler   | controller | internal | enabled | up    | 2016-09-04T14:53:08.000000 | -               |
| 4  | nova-consoleauth | controller | internal | enabled | up    | 2016-09-04T14:53:11.000000 | -               |
| 16 | nova-compute     | compute1   | zone1    | enabled | up    | 2016-09-04T14:53:04.000000 | -               |
| 17 | nova-compute     | compute2   | zone2    | enabled | up    | 2016-09-04T14:53:12.000000 | -               |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+

[root@controller ~]#  neutron agent-list
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+
| id                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                 |
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+
| 5b76221c-9b0d-457e-  | Linux bridge agent | controller |                   | :-)   | True           | neutron-linuxbridge-   |
| 974d-ddca228feb36    |                    |            |                   |       |                | agent                  |
| 6518485c-d910-46f3   | L3 agent           | controller | nova              | :-)   | True           | neutron-l3-agent       |
| -b67a-78dc00601433   |                    |            |                   |       |                |                        |
| 89d79bc7-c7a5-40f1-8 | Linux bridge agent | compute1   |                   | :-)   | True           | neutron-linuxbridge-   |
| ac0-f648fc39872f     |                    |            |                   |       |                | agent                  |
| c02049ba-129c-4548-8 | Linux bridge agent | compute2   |                   | :-)   | True           | neutron-linuxbridge-   |
| d32-fd3ca2900731     |                    |            |                   |       |                | agent                  |
| cfef2c97-ee09-4c64-a | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent     |
| 042-7f1673ee85df     |                    |            |                   |       |                |                        |
| d6e0d782-8a80-411b-a | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent |
| 098-70becdaaa69e     |                    |            |                   |       |                |                        |
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+

cat /var/log/nova/nova-compute.log

2016-09-04 23:43:46.585 9017 ERROR nova.compute.manager [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] No compute node record for host compute1
2016-09-04 23:43:46.590 9017 INFO nova.compute.resource_tracker [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] Auditing locally available compute resources for node compute1
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] Error updating resources for node compute1.
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager Traceback (most recent call last):
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager   File "/usr ...
(more)