I tried to reinstall a host with cumin.
The host was icinga1001 and icinga servers are currently not appearing in other icinga servers as hosts.
So the first attempt to reinstall (without the --no-downtime option) failed because it told me right at the beginning it can't schedule icinga downtime. (T202782#4698844 (201810262131_dzahn_122415_icinga1001_wikimedia_org.log.)
Ok, so i added --no-downtime and tried again, and this time it started the reinstall. (T202782#4690228) (201810262133_dzahn_122885_icinga1001_wikimedia_org.log.)
But.. the bug is that later in the process i still get:
21:49:05 | icinga1001.wikimedia.org | Unable to run wmf-downtime-host: Failed to icinga_downtime ERROR:wmf-downtime-host:Unable to run wmf-downtime-host Traceback (most recent call last): File "/usr/local/sbin/wmf-downtime-host", line 67, in main lib.icinga_downtime(args.host, user, args.phab_task_id, title='wmf-downtime-host') File "/usr/local/lib/python3.5/dist-packages/wmf_auto_reimage_lib.py", line 536, in icinga_downtime run_cumin('icinga_downtime', icinga_host, [command]) File "/usr/local/lib/python3.5/dist-packages/wmf_auto_reimage_lib.py", line 469, in run_cumin raise RuntimeError('Failed to {label}'.format(label=label)) RuntimeError: Failed to icinga_downtime
It should not be trying this when --no-downtime is set and i was only able to get to this point because i did.