← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1723918] Re: nova-placement-api port mismatch

 

Thanks for your comment, you're right, I filed a bug report against
openSUSE and marked this bug as invalid.

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1723918

Title:
  nova-placement-api port mismatch

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description:
  Upgraded first from Mitaka to Newton, then to Ocata, and also upgraded openSUSE Leap 42.1 to Leap 42.3, so it's not a fresh installation, but since I couldn't find any hint to check the /etc/apache2/vhosts.d/nova-placement-api.conf.sample I assume this will also be a problem in a fresh installation.

  I followed OBS install guide [1] to configure nova-placement-api:

  1. Created the Placement API entry in the service catalog successfully...
  2. Created the Placement API service endpoints successfully:
    openstack endpoint create --region RegionOne placement public http://controller:8778
    openstack endpoint create --region RegionOne placement internal http://controller:8778
    openstack endpoint create --region RegionOne placement admin http://controller:8778
  3. Synced databases and registered cell0 database successfully...
  4. Enabled the placement API Apache vhost:
    mv /etc/apache2/vhosts.d/nova-placement-api.conf.sample /etc/apache2/vhosts.d/nova-placement-api.conf
    systemctl reload apache2.service

  Expected results:

  - nova-compute reports success ("Created resource provider record via placement API for resource provider...")
  - "nova-status upgrade check" shows upgrade status

  Actual results:

  - nova-compute reports:
  2017-10-16 10:53:31.247 8400 WARNING nova.scheduler.client.report [req-20cf1da3-86c4-4b03-bb13-84a54fd38425 - - - - -] Placement API service is not responding.
  2017-10-16 10:53:31.249 8400 WARNING nova.scheduler.client.report [req-20cf1da3-86c4-4b03-bb13-84a54fd38425 - - - - -] Placement API service is not responding.
  2017-10-16 10:53:31.249 8400 WARNING nova.scheduler.client.report [req-20cf1da3-86c4-4b03-bb13-84a54fd38425 - - - - -] Unable to refresh my resource provider record

  - "nova-status upgrade check" shows connection error:

  ---cut here---
  control1:/var/log/cinder #  nova-status upgrade check
  Error:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 456, in main
      ret = fn(*fn_args, **fn_kwargs)
    File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 386, in check
      result = func(self)
    File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 201, in _check_placement
      versions = self._placement_get("/")
    File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 189, in _placement_get
      return client.get(path, endpoint_filter=ks_filter).json()
    File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 758, in get
      return self.request(url, 'GET', **kwargs)
    File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
      return wrapped(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 616, in request
      resp = send(**kwargs)
    File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 690, 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('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fd616954950>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
  ---cut-here---

  The problem is a port misconfiguration in the nova-placement-api vhost, it doesn't match the endpoint configuration:
   
  ---cut-here---
  control1:/var/log/cinder # diff -u /etc/apache2/vhosts.d/nova-placement-api.conf.dist /etc/apache2/vhosts.d/nova-placement-api.conf
  --- /etc/apache2/vhosts.d/nova-placement-api.conf.dist  2017-10-16 12:19:28.503899981 +0200
  +++ /etc/apache2/vhosts.d/nova-placement-api.conf       2017-10-16 12:19:41.363642540 +0200
  @@ -1,8 +1,8 @@
   # OpenStack nova-placement-api Apache2 example configuration

  -Listen 8780
  +Listen 8778

  -<VirtualHost *:8780>
  +<VirtualHost *:8778>
       WSGIScriptAlias / /srv/www/nova-placement-api/app.wsgi
       WSGIDaemonProcess nova-placement-api processes=2 threads=1 user=nova group=nova
       WSGIProcessGroup nova-placement-api
  ---cut-here---

  Changing the port to match the port configured in the endpoints solves
  the problem.

  [1] https://docs.openstack.org/ocata/install-guide-obs/nova-
  controller-install.html#install-and-configure-components

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1723918/+subscriptions


References