Ask Your Question
0

pike placement-api http connection error

asked 2017-10-08 06:58:35 -0500

chanhyeong gravatar image

I'm doing OpenStack pike manual installation and this error is occur. I've been installed nova following documentation and OS is Ubuntu 16.04.
192.168.0.2 is controller node. I checked it works when I was installing glance.

~# nova-status upgrade check
Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 459, in main
    ret = fn(*fn_args, **fn_kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 389, in check
    result = func(self)
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 203, in _check_placement
    versions = self._placement_get("/")
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 191, in _placement_get
    return client.get(path, endpoint_filter=ks_filter).json()
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 840, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 698, in request
    resp = send(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 772, in _send_request
    raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to http://controller:8778/: HTTPConnectionPool(host='controller',     port=8778): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa1ba8f0e10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))


There are statuses now.

~# openstack compute service list
+----+------------------+-----------+----------+---------+-------+----------------------------+
| ID | Binary           | Host      | Zone     | Status  | State | Updated At                 |
+----+------------------+-----------+----------+---------+-------+----------------------------+
|  3 | nova-consoleauth | wisetest1 | internal | enabled | up    | 2017-09-26T05:51:29.000000 |
|  4 | nova-conductor   | wisetest1 | internal | enabled | up    | 2017-09-26T05:51:25.000000 |
| 10 | nova-scheduler   | wisetest1 | internal | enabled | up    | 2017-09-26T05:51:23.000000 |
| 11 | nova-compute     | wisetest2 | nova     | enabled | up    | 2017-09-26T05:51:27.000000 |
+----+------------------+-----------+----------+---------+-------+----------------------------+


~# openstack catalog list
+-----------+-----------+--------------------------------------------------------------------------+
| Name      | Type      | Endpoints                                                                |
+-----------+-----------+--------------------------------------------------------------------------+
| keystone  | identity  | RegionOne                                                                |
|           |           |   internal: http://192.168.0.2:5000/v3/                                  |
|           |           | RegionOne                                                                |
|           |           |   admin: http://192.168.0.2:35357/v3/                                    |
|           |           | RegionOne                                                                |
|           |           |   public: http://192.168.0.2:5000/v3/                                    |
|           |           |                                                                          |
| placement | placement | RegionOne                                                                |
|           |           |   public: http://controller:8778                                         |
|           |           | RegionOne                                                                |
|           |           |   internal: http://controller:8778                                       |
|           |           | RegionOne                                                                |
|           |           |   admin: http://controller:8778                                          |
|           |           |                                                                          |
| nova      | compute   | RegionOne                                                                |
|           |           |   public: http://controller:8774/v2.1/6cf3c19b0d954af58cdd79323b877ec3   |
|           |           | RegionOne                                                                |
|           |           |   internal: http://controller:8774/v2.1/6cf3c19b0d954af58cdd79323b877ec3 |
|           |           | RegionOne                                                                |
|           |           |   admin: http://controller:8774/v2.1/6cf3c19b0d954af58cdd79323b877ec3    |
|           |           |                                                                          |
| glance    | image     | RegionOne                                                                |
|           |           |   public: http://controller:9292                                         |
|           |           | RegionOne                                                                |
|           |           |   internal: http://controller:9292                                       |
|           |           | RegionOne                                                                |
|           |           |   admin: http://controller:9292                                          |
|           |           |                                                                          |
+-----------+-----------+--------------------------------------------------------------------------+


~# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| 4893d8997cd94292921888f36ed37e48 | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1/%(tenant_id)s |
| 4dfdb366a05a4578a3ed404b9c0a5eee | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
| 6bfde050e9684895bad993aa407fcd0d | RegionOne | placement    | placement    | True    | public    | http://controller:8778                    |
| 6cdc11a34d3549b99c067bee417ce8a3 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1/%(tenant_id)s |
| 7efacdbf72034806b4915ec6a34db8c0 | RegionOne | keystone     | identity     | True    | internal  | http://192.168.0.2:5000/v3/               |
| 9f9813bdf76f452eae46078e475701af | RegionOne | keystone     | identity     | True    | admin     | http://192.168.0.2:35357/v3/              |
| 9ffceadc1fe741bca9f3f28016752427 | RegionOne | keystone     | identity     | True    | public    |     http://192.168.0.2:5000/v3/               |
| a32c0da07b21431eaa0b060456a2455e | RegionOne | placement    | placement    | True    | internal  |     http://controller:8778                    |
| a553c26fd9be43ac9983211b43fbb95d | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| e09dd1746e86479c8f689ac721533434 | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s |
| e449566ec6064181955c620eaffff88d | RegionOne | placement    | placement    | True    | admin     | http://controller ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-08 22:45:36 -0500

jep gravatar image

Is your nova-api service running?

edit flag offensive delete link more

Comments

yes. I checked service nova-api status. It's active(running) now

chanhyeong gravatar imagechanhyeong ( 2017-10-10 06:26:56 -0500 )edit

In some of your endpoints you are using the IP 192.168.0.2, and in others like placement you are using the name controller. Is "controller". Is your hosts file and resolving correctly? Try "telnet controller 8778"

Also, check if apache is listening on port 8778. Maybe apache is not running?

jep gravatar imagejep ( 2017-10-12 07:48:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-10-08 06:58:35 -0500

Seen: 60 times

Last updated: Oct 11