[RFE] Add api support to query nodes by name filters

Bug #1526319 reported by Vladyslav Drok
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
In Progress
Wishlist
Haomeng,Wang

Bug Description

With this bp, will support below query by node's name value input in regex and LIKE formats.

http://localhost:6385/v1/nodes/?name_regexp=<NAME_REGEXP>
http://localhost:6385/v1/nodes/?name_wildcard=<NAME_WILDCARD>

Tags: rfe-approved
Vladyslav Drok (vdrok)
Changed in ironic:
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: rfe
Haomeng,Wang (whaom)
Changed in ironic:
assignee: nobody → Haomeng,Wang (whaom)
Changed in ironic:
status: Confirmed → In Progress
Haomeng,Wang (whaom)
description: updated
Revision history for this message
Ruby Loo (rloo) wrote :
Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

This is an API change, and I'm not sure on DB support here. Could you write a short spec for this, please?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-specs (master)

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

Revision history for this message
Haomeng,Wang (whaom) wrote :

Hi Jim,

I have proposed the spec - https://review.openstack.org/#/c/266688/, would you please help to review if you have time, thank you!

Haomeng

Haomeng,Wang (whaom)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-specs (master)

Reviewed: https://review.openstack.org/266688
Committed: https://git.openstack.org/cgit/openstack/ironic-specs/commit/?id=4e55cbe4c8a054441fc8a21ebbfbe7f4bac5a0b7
Submitter: Jenkins
Branch: master

commit 4e55cbe4c8a054441fc8a21ebbfbe7f4bac5a0b7
Author: Haomeng, Wang <email address hidden>
Date: Wed Jan 13 05:33:25 2016 +0000

    Add node name regexp and wildcard filter to API

    This commit proposes adding a way to filter nodes in the API by
    their name (regex and wildcard).

     GET /v1/nodes/?name_regex=<regex_str>
     GET /v1/nodes/?name_wildcard=<wildcard_str>

    Change-Id: I937893f086f31d8bb5a82f4b54b9295109ad5391
    Partial-Bug: 1526319

Ruby Loo (rloo)
tags: added: rfe-approved
removed: rfe
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Haomeng,Wang (whaom)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Haomeng,Wang (<email address hidden>) on branch: master
Review: https://review.openstack.org/250112

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.