metadata service security-groups doesn't work with neutron

Bug #1506701 reported by Sam Morrison
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Hans Lindgren
Liberty
Fix Released
Medium
Matt Riedemann

Bug Description

Using the metadata to get the security groups for an instance by

curl http://169.254.169.254/latest/meta-data/security-groups

Doesn't work when you are using neutron. This is because the metadata server is hard coded to look for security groups in the nova DB.

Hans Lindgren (hanlind)
Changed in nova:
assignee: nobody → Hans Lindgren (hanlind)
importance: Undecided → Low
status: New → Confirmed
tags: added: security-groups
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/235788

Changed in nova:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
tags: added: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/235788
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8a9a457743396055e790a708aa5c533951410b79
Submitter: Jenkins
Branch: master

commit 8a9a457743396055e790a708aa5c533951410b79
Author: Hans Lindgren <email address hidden>
Date: Fri Oct 16 10:28:33 2015 +0200

    Fix metadata service security-groups when using Neutron

    The metadata service was hard-coded to lookup security groups from the
    DB when it really should go through the security group API.

    Change-Id: I8ab4a0e091de1e7ca02eec6417e1cff5f1d0260f
    Closes-Bug: #1506701

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

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/256180

Matt Riedemann (mriedem)
Changed in nova:
importance: Low → Medium
tags: removed: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/256180
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ff36a23225e909255e452df38f82332d0e97d7bd
Submitter: Jenkins
Branch: stable/liberty

commit ff36a23225e909255e452df38f82332d0e97d7bd
Author: Hans Lindgren <email address hidden>
Date: Fri Oct 16 10:28:33 2015 +0200

    Fix metadata service security-groups when using Neutron

    The metadata service was hard-coded to lookup security groups from the
    DB when it really should go through the security group API.

    Change-Id: I8ab4a0e091de1e7ca02eec6417e1cff5f1d0260f
    Closes-Bug: #1506701
    (cherry picked from commit 8a9a457743396055e790a708aa5c533951410b79)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/nova 12.0.1

This issue was fixed in the openstack/nova 12.0.1 release.

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0b2

This issue was fixed in the openstack/nova 13.0.0.0b2 development milestone.

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.