Nova uses deprecated service URL for Neutron

Bug #1836952 reported by Joseph M
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Joseph M
Queens
Fix Committed
Medium
Unassigned
Rocky
Fix Committed
Medium
Unassigned
Stein
Fix Committed
Medium
Unassigned
Train
Fix Released
Medium
Joseph M

Bug Description

Operating system distribution and version: CentOS 7.6.1810
Kolla-Ansible package version: 8.0.0.0rc1
install_type (source/binary) and distribution from /etc/kolla/globals.yml: stein source
Are you using official images from Docker Hub or self built? Official

nova.conf currently uses the deprecated url= [neutron] option:

https://opendev.org/openstack/kolla-ansible/src/branch/stable/stein/ansible/roles/nova/templates/nova.conf.j2#L142

It looks like it was deprecated in Queens in favor of endpoint lookup in the catalog:
https://docs.openstack.org/nova/stein/configuration/config.html#neutron.url

This works fine if you only have a single region but in a multiple region environment it can cause Nova to use the wrong region. In particular I discovered this while live migrating and it failed to find the port on the destination server.

The fix I confirmed that works is to simply add an override to specify the region name:

/etc/kolla/config/nova.conf:
[neutron]
region_name = {{region_name}}

Before fix:
(openstack) server migrate --live node1 --wait e9002be1-d531-40e2-8583-fb276983996a
Migration pre-check error: Binding failed for port 6d477b7f-310f-4a6c-8a6a-12eb6d53fa1d, please check neutron logs for more information. (HTTP 400) (Request-ID: req-7d29c01f-fbf4-406d-aede-f3f45fd6e62c)

After fix:
(openstack) server migrate --live node2 --wait e9002be1-d531-40e2-8583-fb276983996a
Complete

Ideally the [neutron] section would be updated to specify all the the endpoint lookup options to match other Kolla service configurations.

Joseph M (noxoid)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/679488

Changed in kolla-ansible:
assignee: nobody → Joseph M (noxoid)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/679488
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=096555dcf2db9986572ebee85efc395e5f59fbe8
Submitter: Zuul
Branch: master

commit 096555dcf2db9986572ebee85efc395e5f59fbe8
Author: Joseph M <email address hidden>
Date: Fri Aug 30 13:14:59 2019 -0400

    [nova] Fix service catalog lookup of Neutron endpoint

    nova.conf currently uses the [neutron] "url" parameter which has been
    deprecated since 17.0.0. In multi-region environments this can
    cause Nova to look up the Neutron endpoint for a different region.
    Remove this parameter and set region_name and
    valid_interfaces to allow the correct lookup to be performed.

    Change-Id: I1bbc73728439a460447bc8edd264f9f2d3c814e0
    Closes-Bug: #1836952

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/680359

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/680360

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/680361

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/680359
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=fee1a080713f66b8331b7cd1dd1902c7e3615ebf
Submitter: Zuul
Branch: stable/stein

commit fee1a080713f66b8331b7cd1dd1902c7e3615ebf
Author: Joseph M <email address hidden>
Date: Fri Aug 30 13:14:59 2019 -0400

    [nova] Fix service catalog lookup of Neutron endpoint

    nova.conf currently uses the [neutron] "url" parameter which has been
    deprecated since 17.0.0. In multi-region environments this can
    cause Nova to look up the Neutron endpoint for a different region.
    Remove this parameter and set region_name and
    valid_interfaces to allow the correct lookup to be performed.

    Change-Id: I1bbc73728439a460447bc8edd264f9f2d3c814e0
    Closes-Bug: #1836952
    (cherry picked from commit 096555dcf2db9986572ebee85efc395e5f59fbe8)

tags: added: in-stable-stein
tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.opendev.org/680360
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=12147aea1aefab6552da0c3576c40a378edeed2c
Submitter: Zuul
Branch: stable/rocky

commit 12147aea1aefab6552da0c3576c40a378edeed2c
Author: Joseph M <email address hidden>
Date: Fri Aug 30 13:14:59 2019 -0400

    [nova] Fix service catalog lookup of Neutron endpoint

    nova.conf currently uses the [neutron] "url" parameter which has been
    deprecated since 17.0.0. In multi-region environments this can
    cause Nova to look up the Neutron endpoint for a different region.
    Remove this parameter and set region_name and
    valid_interfaces to allow the correct lookup to be performed.

    Change-Id: I1bbc73728439a460447bc8edd264f9f2d3c814e0
    Closes-Bug: #1836952
    (cherry picked from commit 096555dcf2db9986572ebee85efc395e5f59fbe8)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/queens)

Reviewed: https://review.opendev.org/680361
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=b8522e4093fa43415ec6ae3092cb18face64d215
Submitter: Zuul
Branch: stable/queens

commit b8522e4093fa43415ec6ae3092cb18face64d215
Author: Joseph M <email address hidden>
Date: Fri Aug 30 13:14:59 2019 -0400

    [nova] Fix service catalog lookup of Neutron endpoint

    nova.conf currently uses the [neutron] "url" parameter which has been
    deprecated since 17.0.0. In multi-region environments this can
    cause Nova to look up the Neutron endpoint for a different region.
    Remove this parameter and set region_name and
    valid_interfaces to allow the correct lookup to be performed.

    Change-Id: I1bbc73728439a460447bc8edd264f9f2d3c814e0
    Closes-Bug: #1836952
    (cherry picked from commit 096555dcf2db9986572ebee85efc395e5f59fbe8)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 6.2.3

This issue was fixed in the openstack/kolla-ansible 6.2.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 9.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.2.0

This issue was fixed in the openstack/kolla-ansible 7.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.1.0

This issue was fixed in the openstack/kolla-ansible 8.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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