Closed johnpmitsch closed 7 years ago
Issues: #20925
run_cmd("hammer ping", [0], "There is a problem with the server, please check 'hammer ping'")
this will fail on a proxy. the old code had a unless block around it.
you can add a || true
at the end of the command. also hacky. but will always exit 0.
@evgeni thanks, I still have to test on a foreman-proxy!
unrelated, but just realized, is the port really always 9090? shouldn't we read the old port and re use it?
the puppet server/master restart will fail, as it's either puppetserver or httpd (for puppet3) which we have to restart.
unrelated, but just realized, is the port really always 9090? shouldn't we read the old port and re use it?
@evgeni I'm not sure about the 9090 port, @ehelms or @jlsherrill do you know?
the puppet server/master restart will fail, as it's either puppetserver or httpd (for puppet3) which we have to restart.
The original cause of adding those lines is here. In what scenario is this going to fail?
if you have a Puppet3 setup, the puppet master is running inside Apache httpd using mod_passenger. With Puppet 4 you have the stand-alone puppetserver process. depending on that you have to restart different services. and with run_cmd this will now really fail and wont be silently discarded on a puppet 3 install which has no puppetserver.
I think its 99% safe to assume smart proxies are running on 9090 in Katello deployments.
@evgeni I'm not sure of the exact cause of updating the capsule w/ hammer working but throwing an error. Its a bad bug and we should fix soon! In my experience, it is consistent. I've tried out of the script too.
We should check the exit codes on each command ran in the script and exit if they fail.