Updating the port address for an active instance does not regenerate the PXE configuration

Bug #1614094 reported by Lucas Alvares Gomes on 2016-08-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Triaged
High
Unassigned

Bug Description

Ironic is not recreating the PXE configuration file when you update the port address of an active instance (see https://bugs.launchpad.net/ironic/+bug/1611744) resulting in a boot error if the instance is rebooted.

This problem does not affect nodes configured to boot from the local disk.

Workaround:

Rename the PXE configuration to match the new mac address

Logs:

[stack@localhost ~]$ ironic node-list
+--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
| ecee7930-bd62-461c-98ef-6761d5420b63 | node-0 | 5439d859-c473-4ccd-acb0-37655e5de38f | power on | active | False |
| 5160b357-6c3b-4254-9103-7173fb1c0e6c | node-1 | None | power off | available | False |
+--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
[stack@localhost ~]$ ironic node-port-list node-0
+--------------------------------------+-------------------+
| UUID | Address |
+--------------------------------------+-------------------+
| 3ce9fc9b-a790-4325-bbdb-d4208bb42bba | 52:54:00:ff:3f:81 |
+--------------------------------------+-------------------+
[stack@localhost ~]$ ls /opt/stack/data/ironic/httpboot/pxelinux.cfg/
52-54-00-ff-3f-81
[stack@localhost ~]$ ironic node-set-maintenance node-0 True

# Changed the last digit from 1 to 2

[stack@localhost ~]$ ironic port-update 3ce9fc9b-a790-4325-bbdb-d4208bb42bba add address="52:54:00:ff:3f:82"
+-----------------------+-----------------------------------------------------------+
| Property | Value |
+-----------------------+-----------------------------------------------------------+
| address | 52:54:00:ff:3f:82 |
| created_at | 2016-08-15T16:35:48+00:00 |
| extra | {u'vif_port_id': u'03104679-1a8a-4e6e-b09f-62868feb7eeb'} |
| local_link_connection | |
| node_uuid | ecee7930-bd62-461c-98ef-6761d5420b63 |
| pxe_enabled | |
| updated_at | 2016-08-15T21:26:08+00:00 |
| uuid | 3ce9fc9b-a790-4325-bbdb-d4208bb42bba |
+-----------------------+-----------------------------------------------------------+
[stack@localhost ~]$ ls /opt/stack/data/ironic/httpboot/pxelinux.cfg/
52-54-00-ff-3f-81

Tags: pxe Edit Tag help
Changed in ironic:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
importance: Undecided → High
description: updated
Dmitry Tantsur (divius) on 2016-08-22
Changed in ironic:
status: New → Triaged
tags: added: pxe
information type: Public → Public Security
information type: Public Security → Public
Dmitry Tantsur (divius) on 2018-02-19
Changed in ironic:
assignee: Lucas Alvares Gomes (lucasagomes) → Dmitry Tantsur (divius)
Dmitry Tantsur (divius) on 2018-03-19
Changed in ironic:
assignee: Dmitry Tantsur (divius) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers