mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 01:42:15 +00:00
b999334d1a
rinstall prints "Failed to run 'nodeset' against the node" while nodeset succeeds and reports no error. xCAT::Utils::runxcmd returns $::RUNCMD_RC, and xCAT::Utils::runcmd and the service helpers of every plugin inside the subrequest assign to that global, so the status of the last command of the subrequest becomes the status of the subrequest. makedhcp supplies that command: the ISC branch restarts dhcpd6 whenever /etc/dhcp/dhcpd6.conf is absent or foreign, which is every run of a cluster with no IPv6 network, and the restart fails because dhcpd6 has no subnet to serve. runxcmd_subrequest_errorcode.t holds the result of a subrequest to the errorcode of its responses. dhcp_isc_dhcp6_restart.t holds the restart of dhcpd6 to a run that serves an IPv6 network. The condition moves out of dhcp.pm into xCAT::DHCP::Backend::ISC unchanged, so that a test can read it. Against this tree the first test fails 3 of its 5 assertions and the second fails 1 of its 4. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>