2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-12-04 16:17:06 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Hilst b5300555a6 fix(xcat-core): an installed KVM node sends a DUID its reservation does not hold
With mac.duid=canonical or firmware, an installed KVM guest whose
domain an earlier mkvm defined sends a DHCPv6 client identifier that
its reservation does not hold.

makedhcp applies the policy to vpd.uuid. configdhcpv6duid applied it to
product_uuid of the node. In such a guest product_uuid is the byte swap
of vpd.uuid, so the script wrote the other UUID order.

mypostscript now exports vpd.uuid as VPDUUID, and configdhcpv6duid
applies the policy to it. The script reads product_uuid only when
VPDUUID holds no UUID.

postscript_dhcpv6_duid.bats asserts the DUID for each policy with a
swapped product_uuid, and the VPDUUID export. The tests fail without
this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-09 18:19:09 -03:00
Daniel Hilst a5cd542a5d fix(xcat-core): configdhcpv6duid writes a DUID that the reservation does not hold
mypostscript assigned DHCP6DUID and did not export it, so configdhcpv6duid, which runs as a
child process, never saw mac.duid and wrote the firmware DUID-UUID. The script also rejected
ll, which makedhcp accepts and selects by default on ppc64le. It read the SMBIOS UUID before
the attribute, so a missing or nil UUID ended the script although a literal DUID needs none.
And it wrote no systemd-networkd configuration for a DUID that is not a DUID-UUID.

mypostscript now exports DHCP6DUID. The script reads the attribute first, builds the DUID-LL
from the first mac.mac address for ll and for an unset value on ppc64le, reads the UUID only
for firmware and canonical, and gives systemd-networkd the type of every DUID through
DUIDType and the rest through DUIDRawData.

postscript_dhcpv6_duid.bats fails without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-06 17:32:00 -03:00
Daniel Hilst 102dc80920 fix(postscripts): an installed node ignores the DUID its reservation holds
configdhcpv6duid always derived the DHCPv6 client identifier from the SMBIOS
UUID in firmware byte order. makedhcp does that only when mac.duid is unset or
holds 'firmware': 'canonical' reserves the order product_uuid prints, and a
literal DUID is reserved as it stands. A node with either setting wrote an
identifier that matched no reservation, so it took a pool address and had no
boot file URL.

mypostscript.tmpl now exports the attribute as DHCP6DUID, and the postscript
reads it. 'canonical' keeps the order product_uuid printed. A literal is
written as it stands for NetworkManager, which takes a whole DUID.
systemd-networkd composes one from a named type, and only the UUID type can be
expressed that way, so a literal of another type is written for
NetworkManager alone and the reason is logged. A value that is neither keyword
nor DUID writes nothing, which is what makedhcp refuses as well.

The derived values are byte-identical to kea_duid_from_uuid for both orders.
postscript_dhcpv6_duid.bats goes from 9 checks to 16; ignoring the attribute
fails the five that name a setting and leaves the firmware default passing.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-30 13:17:39 -03:00
Markus Hilger 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
GONG Jie d51025d495 Remove trailing spaces in file xCAT-server/share/xcat/mypostscript/mypostscript.tmpl 2017-12-31 23:59:59 +00:00
cxhong 51ad6fd511 Support User defined community string for enable snmp on Cumulus Switches (#3818)
* Support User defined community string for enable snmp on Cumulus
Switches

* modify comment from yangsong

* Modify code from review comments
2017-09-04 10:04:06 +08:00
bybai f6b16d24bd enhance configeth configure instnic 2017-07-24 02:51:35 -04:00
Bin Xu bf172d1489 Fix 3151, Backup service node is not reflected in the /opt/xcat/xcatinfo file (#3434)
* populate node attribute servicenode into mypostscript, and then inject into /opt/xcat/xcatinfo
cover both updatenode -s and os installation case.

* using 1 step of sed for chaning
2017-07-12 03:03:54 -05:00
XuWei ee67e2eafd Add node attribute 'syslog', avoid the syslog configuration for certain node 2016-03-25 03:53:55 -04:00
bybai 2806f1f79e enhance mypostscript.tmpl 2016-01-12 02:36:12 -05:00
immarvin 71e6a7f1bf postscript enhancement: enhance log framework of the xcat postscript 2015-07-07 01:49:57 -04:00
daniceexi 19853bf2d2 Change the code to generate MACADDRESS var in mypostscript. var MACMAC will show the mac.mac. var MACADDRESS will show the installnic which calculated from mac.mac 2015-03-06 05:22:40 -05:00
linggao 729907f7eb Allow specifying mtu and connected_mode settings in configeth and configib per request from defect 3567 2014-12-04 09:32:59 -05:00
lissav 318cf6bfa8 add zonename 2014-02-26 10:41:42 -05:00
wanghuaz 0c911a96a3 passing kitcomponent deploy parameters to genimage package installation, postinstall script and postbootscripts. 2013-12-30 09:54:46 +08:00
jjhua 7cff252401 add the loadclouddata, share/xcat/mypostscript/mypostscript_cloud.tmpl into xCAT-OpenStack 2013-10-23 22:56:17 -04:00
jjhua 1d3d316d05 fixed bug 3718. This fix only checked into xCAT 2.9 2013-08-13 17:13:47 -04:00