[RFE] Check for duplicates when enrolling a node

Bug #1519605 reported by Pradeep Varadarajulu
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ironic
Won't Fix
Wishlist
Unassigned

Bug Description

Steps to reproduce:

1. Enroll the ironic node multiple times for the same baremetal using "pxe_iscsi_cimc_neutron" driver.

2. We are able to enroll multiple ironic nodes on same baremetal, there needs to be a validation here to check the enrollment of ironic node on same baremetal

stack@sap-controller1:~/devstack$ ironic node-create -d pxe_iscsi_cimc_neutron -i cimc_address=10.106.240.210 -i cimc_username=admin -i cimc_password=password -i deploy_kernel=42c44287-3574-4bc 8-9e4e-559674b1a679 -i deploy_ramdisk=c3390340-5446-42be-a3cb-d69537580932 -p cpus=4 -p memory_mb=65536 -p local_gb=100 -p cpu_arch=x86_64 -p capabilities="boot_option:local"
+--------------+--------------------------------------------------------------------------+
| Property | Value |
+--------------+--------------------------------------------------------------------------+
| uuid | caa89b06-2e86-4e94-afab-509ba4c35ec0 |
| driver_info | {u'cimc_address': u'10.106.240.210', u'cimc_username': u'admin', |
| | u'deploy_ramdisk': u'c3390340-5446-42be-a3cb-d69537580932', |
| | u'deploy_kernel': u'42c44287-3574-4bc8-9e4e-559674b1a679', |
| | u'cimc_password': u'******'} |
| extra | {} |
| driver | pxe_iscsi_cimc_neutron |
| chassis_uuid | |
| properties | {u'memory_mb': 65536, u'cpu_arch': u'x86_64', u'local_gb': 100, u'cpus': |
| | 4, u'capabilities': u'boot_option:local'} |
| name | None |
+--------------+--------------------------------------------------------------------------+
stack@sap-controller1:~/devstack$ ironic node-list
+--------------------------------------+------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+------+---------------+-------------+--------------------+-------------+
| caa89b06-2e86-4e94-afab-509ba4c35ec0 | None | None | None | available | False |
+--------------------------------------+------+---------------+-------------+--------------------+-------------+
stack@sap-controller1:~/devstack$ ironic node-create -d pxe_iscsi_cimc_neutron -i cimc_address=10.106.240.210 -i cimc_username=admin -i cimc_password=password -i deploy_kernel=42c44287-3574-4bc 8-9e4e-559674b1a679 -i deploy_ramdisk=c3390340-5446-42be-a3cb-d69537580932 -p cpus=4 -p memory_mb=65536 -p local_gb=100 -p cpu_arch=x86_64 -p capabilities="boot_option:local"
+--------------+--------------------------------------------------------------------------+
| Property | Value |
+--------------+--------------------------------------------------------------------------+
| uuid | 341ac44d-31d5-4120-bb60-c59993186375 |
| driver_info | {u'cimc_address': u'10.106.240.210', u'cimc_username': u'admin', |
| | u'deploy_ramdisk': u'c3390340-5446-42be-a3cb-d69537580932', |
| | u'deploy_kernel': u'42c44287-3574-4bc8-9e4e-559674b1a679', |
| | u'cimc_password': u'******'} |
| extra | {} |
| driver | pxe_iscsi_cimc_neutron |
| chassis_uuid | |
| properties | {u'memory_mb': 65536, u'cpu_arch': u'x86_64', u'local_gb': 100, u'cpus': |
| | 4, u'capabilities': u'boot_option:local'} |
| name | None |
+--------------+--------------------------------------------------------------------------+
stack@sap-controller1:~/devstack$ ironic node-list
+--------------------------------------+------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+------+---------------+-------------+--------------------+-------------+
| caa89b06-2e86-4e94-afab-509ba4c35ec0 | None | None | None | available | False |
| 341ac44d-31d5-4120-bb60-c59993186375 | None | None | None | available | False |
+--------------------------------------+------+---------------+-------------+--------------------+-------------+

Tags: needs-spec rfe
Dmitry Tantsur (divius)
summary: - Validation for enrolling multiple ironic node on the same baremetal
+ Ironic does not check for duplicates when enrolling a node
Changed in ironic:
status: New → Triaged
importance: Undecided → Low
Cameron.C (cameron-c)
Changed in ironic:
assignee: nobody → Cameron.C (cameron-c)
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/256356

Changed in ironic:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Dmitry Tantsur (<email address hidden>) on branch: master
Review: https://review.openstack.org/256356
Reason: Hi! This has been around for 9 months with negative feedback, so I'm abandoning it. I do think it's a valuable feature to have, and I think we should start with a spec.

Revision history for this message
Dmitry Tantsur (divius) wrote :

This is a feature request actually, and I'd like to see a spec on it first: http://docs.openstack.org/developer/ironic/dev/code-contribution-guide.html#ironic-specs-process

summary: - Ironic does not check for duplicates when enrolling a node
+ [RFE] Check for duplicates when enrolling a node
Changed in ironic:
status: In Progress → Confirmed
importance: Low → Wishlist
assignee: Cameron.C (cameron-c) → nobody
tags: added: rfe
tags: added: needs-spec
Changed in ironic:
assignee: nobody → Zhenguo Niu (niu-zglinux)
Changed in ironic:
status: Confirmed → In Progress
Revision history for this message
Michael Turek (mjturek) wrote :

This wishlist bug has been open more than a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on. This bug can be reopened (set back to "New") if someone decides to work on this.

Changed in ironic:
status: In Progress → Opinion
Revision history for this message
Ruby Loo (rloo) wrote :

Hi Michael, I think there's validity to this, but as mentioned above, it needs a spec; its better to change the status back to 'Confirmed' (which I'll do).

Zhenguo, since there hasn't been any activity from you, I'm going to make this available for others to take a stab at. Feel free to assign it to yourself if you plan on working on it in the near future.

Changed in ironic:
status: Opinion → Confirmed
assignee: Zhenguo Niu (niu-zglinux) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic-specs (master)

Change abandoned by Zhenguo Niu (<email address hidden>) on branch: master
Review: https://review.opendev.org/296357

Revision history for this message
Julia Kreger (juliaashleykreger) wrote :

In discussion with contributors, we believe this is invalid/wont-fix.

Specifically, depending on the hardware, you may have many different "nodes" using the same BMC with one minor parameter difference. Realistically we can't really de-duplicate them without encoding all that extra logic.

Changed in ironic:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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