[RFE] Allow creating a port providing node name instead of UUID

Bug #1594668 reported by Sharat Sharma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Confirmed
Wishlist
M V P Nitesh

Bug Description

Though the ironic node names are unique, there is no option to create a port using the node name. The Cli accepts only node uuid to create port.

Steps to reproduce:
1. Try creating two nodes with same name

[root@Mitaka4 ~(keystone_admin)]# ironic node-create -d pxe_ipmitool --name node1
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| chassis_uuid | |
| driver | pxe_ipmitool |
| driver_info | {} |
| extra | {} |
| name | node1 |
| properties | {} |
| uuid | dc0b8f90-e20c-443d-be95-4045a82ce10e |
+--------------+--------------------------------------+
[root@Mitaka4 ~(keystone_admin)]# ironic node-create -d pxe_ipmitool --name node1
A node with name node1 already exists. (HTTP 409)

2. Try creating a port using the unique node name

[root@Mitaka4 ~(keystone_admin)]# ironic port-create -n node1 -a 36:56:90:AB:67:90
Expected a uuid but received node1. (HTTP 400)

User must be able to create port using node names.

Tags: needs-spec rfe
Changed in ironic:
assignee: nobody → Sharat Sharma (sharat-sharma)
Changed in ironic:
status: New → Incomplete
status: Incomplete → Confirmed
tags: added: rfe
Dmitry Tantsur (divius)
summary: - Create a port using node_name
+ [RFE] Allow creating a port providing node name instead of UUID
Changed in ironic:
importance: Undecided → Wishlist
Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi! We've discussed this RFE on the regular meeting, and we like the idea. Could you please post a short spec for it? Please follow the https://wiki.openstack.org/wiki/Ironic/Specs_Process thanks!

tags: added: needs-spec
M V P Nitesh (m-nitesh)
Changed in ironic:
assignee: Sharat Sharma (sharat-sharma) → M V P Nitesh (m-nitesh)
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.