Cannot update Ironic nodes via baremetal import

Bug #1586523 reported by Ben Nemec
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Ben Nemec
Mitaka
Fix Released
Medium
Ben Nemec

Bug Description

If you try to update Ironic node info using openstack baremetal import, it will likely fail with the following message:

[centos@undercloud-demo ~]$ openstack baremetal import --json instackenv.json
Invalid node data: Several candidates found for the same node data: [u'03d75481-db17-40db-8a61-af8ff71e83cf', u'03d75481-db17-40db-8a61-af8ff71e83cf']

This is due to the fact that tripleo_common.nodes uses a list when looking for the node id based on the details passed in, but checks multiple fields and thus adds the same node to the list multiple times. Changing that operation to use a set instead should fix the problem.

Ben Nemec (bnemec)
Changed in tripleo:
assignee: nobody → Ben Nemec (bnemec)
Revision history for this message
Ben Nemec (bnemec) wrote :
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-common 5.0.0.0b1

This issue was fixed in the openstack/tripleo-common 5.0.0.0b1 development milestone.

Changed in tripleo:
milestone: none → newton-1
status: Triaged → Fix Released
Revision history for this message
Ronelle Landy (rlandy) wrote :

I just this error on Mitaka installation (openstack-tripleo-common-2.0.1-0.20160614154404.d87771a.el7.centos.noarch):

+ openstack baremetal import --json instackenv.json
Invalid node data: Several candidates found for the same node data: [u'043cdf2b-b515-4e44-8681-a58524239807', u'043cdf2b-b515-4e44-8681-a58524239807']

I hit this error on a clean install - no upgrades involved. I see that there is a fix for Newton. Any thoughts to back-porting this to fix to Mitaka?

Revision history for this message
Ben Nemec (bnemec) wrote :

I would consider this a valid backport candidate. I'll try to get it proposed sometime today.

tags: added: mitaka-backport-potential
Revision history for this message
Ben Nemec (bnemec) wrote :
Revision history for this message
Ronelle Landy (rlandy) wrote :

Thank you bnemec: Mitaka release with backport available today - works for me

Revision history for this message
Ben Nemec (bnemec) wrote :

Note that this problem does not appear to be present in the Liberty release, so no backport is required there.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-common 2.1.0

This issue was fixed in the openstack/tripleo-common 2.1.0 release.

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

This issue was fixed in the openstack/tripleo-common 2.1.0 release.

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.