[RFE] Add tags to neutron resources

Bug #1489291 reported by Gal Sagie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Wishlist
Hirofumi Ichihara

Bug Description

In most popular REST API interfaces, objects in the domain model can be
"tagged" with zero or more simple strings. These strings may then be used
to group and categorize objects in the domain model.

Neutron resources in current DB model do not contain any tags, and
dont have a generic consistent way to add tags or/and any other data
by the user.
Adding tags to resources can be useful for management and
orchestration in OpenStack, if its done in the API level
and IS NOT backend specific data.

The following use cases refer to adding tags to networks, but the same
can be applicable to any other Neutron resource (core resource and router):

1) Ability to map different networks in different OpenStack locations
   to one logically same network (for Multi site OpenStack)

2) Ability to map Id's from different management/orchestration systems to
   OpenStack networks in mixed environments, for example for project Kuryr,
    map docker network id to neutron network id

3) Leverage tags by deployment tools

spec : https://review.openstack.org/#/c/216021/

Gal Sagie (gal-sagie)
Changed in neutron:
assignee: nobody → Gal Sagie (gal-sagie)
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

That looks like a bluepring, not a bug.
Could you file it for the next release?

Changed in neutron:
status: New → Incomplete
tags: added: api
Revision history for this message
Gal Sagie (gal-sagie) wrote :

This is an RFE request as part of Neutron new process, which is described here:

https://github.com/openstack/neutron/blob/master/doc/source/policies/blueprints.rst#neutron-request-for-feature-enhancements

Did i do it wrong somehow?

The spec is also written, and the Neutron drivers team should set the release, its obviously not for Liberty...

Changed in neutron:
status: Incomplete → Confirmed
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Discussion has been going on in a number of venues, and there's positive reaction to the use of tagging for 3rd party projects to use (rather than plugins/drivers themselves).

tags: added: rfe-approved
removed: rfe
Changed in neutron:
status: Confirmed → Triaged
Changed in neutron:
importance: Undecided → Wishlist
Changed in neutron:
milestone: none → mitaka-1
Changed in neutron:
milestone: mitaka-1 → mitaka-2
Changed in neutron:
milestone: mitaka-2 → mitaka-3
Henry Gessau (gessau)
summary: - Add tags to neutron resources
+ [RFE] Add tags to neutron resources
Changed in neutron:
assignee: Gal Sagie (gal-sagie) → Hirofumi Ichihara (ichihara-hirofumi)
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I have introduced the implementation[1] as PoC in order to confirm the spec is fine and reasonable in neutron. I found some gaps between spec and implementation but I believe that it's easy to bridge the gaps. I will clear up PoC code and then introduce some patches for the feature.

[1]: https://review.openstack.org/#/c/273881/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/278197

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/284519

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/284519
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0ae3c172ae4a7f80df5473ed53b8424ea408c583
Submitter: Jenkins
Branch: master

commit 0ae3c172ae4a7f80df5473ed53b8424ea408c583
Author: Hirofumi Ichihara <email address hidden>
Date: Thu Feb 25 12:26:57 2016 +0900

    Make API framework more flexible for various extensions

    This patch adds a function to Neutron extension mechanism
    so that we can add API methods to "/resources" path rather than
    "/resources/action" path.

    This patch also allow extentions to control correspondences
    between action and status in API request.

    Change-Id: I862086f7528583e65d7bee794f011ddff6ae8901
    Partial-Implements: blueprint add-tags-to-core-resources
    Related-Bug: #1489291

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/273881
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ec1457dd7503626c917031ce4a16a366fe70c7bb
Submitter: Jenkins
Branch: master

commit ec1457dd7503626c917031ce4a16a366fe70c7bb
Author: Hirofumi Ichihara <email address hidden>
Date: Tue Mar 1 11:05:56 2016 +0900

    Add tag mechanism for network resources

    Introduce a generic mechanism to allow the user to set tags
    on Neutron resources. This patch adds the function for "network"
    resource with tags.

    APIImpact
    DocImpact: allow users to set tags on network resources

    Partial-Implements: blueprint add-tags-to-core-resources
    Related-Bug: #1489291
    Change-Id: I4d9e80d2c46d07fc22de8015eac4bd3dacf4c03a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/278197
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7fb8d542efab555e2e3b466fe9a04fb77d836c02
Submitter: Jenkins
Branch: master

commit 7fb8d542efab555e2e3b466fe9a04fb77d836c02
Author: Hirofumi Ichihara <email address hidden>
Date: Tue Mar 1 11:57:36 2016 +0900

    Add filter for resource tag

    Introduce a generic mechanism to allow the user to get
    Neutron resources with tag filter.

    APIImpact

    Change-Id: I1e5b25fea268e188cc9620c72b3c71004b197512
    Partial-Implements: blueprint add-tags-to-core-resources
    Related-Bug: #1489291

Changed in neutron:
milestone: mitaka-3 → mitaka-rc1
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

@Hirofumi, coding for this effort looks complete to me. Can you confirm?

Changed in neutron:
status: Triaged → Fix Released
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

And lasty: what about bug 1552487? Is there any pending patch you're working on?

Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I'm preparing documents now. It takes some times because I'm beginner about api-site development ;)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/292204

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/293839

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/293839
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/292204
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a348c389583a0b7a9c48ed5a7cbc4ae734b766ee
Submitter: Jenkins
Branch: master

commit a348c389583a0b7a9c48ed5a7cbc4ae734b766ee
Author: Hirofumi Ichihara <email address hidden>
Date: Tue Aug 16 19:53:19 2016 +0900

    Add API test for tag

    This patch adds api test for tag.

    Change-Id: I87aba26534db179f0744ddee982251e8e1834638
    Partial-Implements: blueprint add-tags-to-core-resources
    Related-Bug: #1489291

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/413662

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/414500

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Dongcan Ye (<email address hidden>) on branch: master
Review: https://review.openstack.org/414500
Reason: duplicated with: https://review.openstack.org/#/c/413662/

Changed in neutron:
milestone: mitaka-rc1 → ocata-rc1
milestone: ocata-rc1 → mitaka-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/470335

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (stable/newton)

Reviewed: https://review.openstack.org/470335
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d48e5c7575bc4fe786cfbdca2b88060eec905015
Submitter: Jenkins
Branch: stable/newton

commit d48e5c7575bc4fe786cfbdca2b88060eec905015
Author: Hirofumi Ichihara <email address hidden>
Date: Tue Aug 16 19:53:19 2016 +0900

    Add API test for tag

    This patch adds api test for tag.

    Change-Id: I87aba26534db179f0744ddee982251e8e1834638
    Partial-Implements: blueprint add-tags-to-core-resources
    Related-Bug: #1489291
    (cherry picked from commit a348c389583a0b7a9c48ed5a7cbc4ae734b766ee)

tags: added: in-stable-newton
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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