Only one entry created for nova-osapi_compute and nova-metadata services in multi-n-api environment

Bug #1631430 reported by Sujitha
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

Description
===========

In nova.conf, osapi_compute_listen and metadata_listen are defaulted to 0.0.0.0. Due to this when multiple n-api nodes are setup in a multinode environment, only one entry is
created for nova-osapi_compute and nova-metadata services in nova.services table.

This doesn't have any effect when n-api's on both nodes have same version. But when n-api on node 1 is upgraded, then n-api on node2 refuses to start due to Service version too Old exception.
This behavior can be changed by having two entries for these services in db.

Steps to reproduce
==================

1. Setup multinode devstack environment with all controller services on one node and n-api & n-cpu on another node.
2. Now you have two n-api nodes.
3. Check nova.services table.

Expected result
===============

There should be two entries for nova-osapi_compute and nova-metadata services in nova.services table one for each host.

Actual result
=============

Only one entry created for these services.

Tags: upgrade
Sujitha (sujitha-neti)
Changed in nova:
assignee: nobody → Sujitha (sujitha-neti)
Revision history for this message
John Garbutt (johngarbutt) wrote :

Move to confirmed due to code inspection.

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
tags: added: upgrades
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Anusha Unnam (anusha-unnam) wrote :

https://review.openstack.org/#/c/384724/ this is the patch proposed for this bug. Somehow it is not updated here.

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing
the status back to the previous state and unassigning. If
there are active reviews related to this bug, please include
links in comments.

Changed in nova:
status: In Progress → Confirmed
assignee: Sujitha (sujitha-neti) → nobody
Sean Dague (sdague)
Changed in nova:
assignee: nobody → Sujitha (sujitha-neti)
status: Confirmed → In Progress
melanie witt (melwitt)
tags: added: upgrade
removed: upgrades
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.opendev.org/384724
Reason: Looks like this is an old OSIC effort and I'm not sure how much we care about fixing this for the non-wsgi eventlet API case since running n-api under eventlet has been deprecated for a few releases now. I do think we still have issues with the service version stuff under wsgi though as well, e.g. bug 1815692.

Matt Riedemann (mriedem)
Changed in nova:
assignee: Sujitha (sujitha-neti) → nobody
importance: Medium → Low
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.