Skip to content

Commit 30395e7

Browse files
committed
Fix XL failures in finalize step of peadm::convert
Prior to this commit, the finalize step of `peadm::convert` would fail when operating on PE XL installations as the Primary Database and Replica Database nodes do not run the pe-puppetdb or pe-puppetserver services: ``` The command failed with exit code 5 STDERR: Failed to restart pe-puppetserver.service: Unit not found. Failed to restart pe-puppetdb.service: Unit not found. ``` This commit updates the convert plan to exclude the database nodes from that service restart.
1 parent e557b53 commit 30395e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plans/convert.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@
246246
# Restart cluster compiler services that are likely not restarted by our
247247
# final Puppet run to increase chance everything is functional upon plan
248248
# completion
249-
run_command('systemctl restart pe-puppetserver.service pe-puppetdb.service', $all_targets - $primary_target)
249+
run_command('systemctl restart pe-puppetserver.service pe-puppetdb.service',
250+
$all_targets - $primary_target - $primary_postgresql_target - $replica_postgresql_target)
250251
}
251252

252253
return("Conversion to peadm Puppet Enterprise ${arch['architecture']} completed.")

0 commit comments

Comments
 (0)