From 31daf134e2dbd6aecb681c8ff50d4a7e0e11599e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:37:44 -0300 Subject: [PATCH] fix(confluent): read the enclosure of a node from the mp table makeconfluentcfg exports enclosure.manager and enclosure.bay from the mpa and id columns. Those columns belong to the mp table. When the command runs with a node range it reads them from the mp table, but when it runs with no argument it reads them from the nodepos table, which has only node, rack, u, chassis, slot, room and height. The two attributes were therefore always empty for a whole cluster export. Read them from the mp table in both branches. --- xCAT-server/lib/xcat/plugins/confluent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/confluent.pm b/xCAT-server/lib/xcat/plugins/confluent.pm index a15be9695..989cb31ec 100644 --- a/xCAT-server/lib/xcat/plugins/confluent.pm +++ b/xCAT-server/lib/xcat/plugins/confluent.pm @@ -299,7 +299,7 @@ sub makeconfluentcfg { } else { @cfgents1 = $hmtab->getAllNodeAttribs([ 'cons', 'serialport', 'mgt', 'conserver', 'termserver', 'termport', 'consoleondemand' ]); @cfgents2 = $nodepostab->getAllNodeAttribs([ 'rack', 'u', 'chassis', 'slot', 'room' ]); - @cfgents3 = $nodepostab->getAllNodeAttribs([ 'mpa', 'id' ]); + @cfgents3 = $mptab->getAllNodeAttribs([ 'mpa', 'id' ]); @cfgents4 = $switchtab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]); }