Open jamime opened 9 years ago
@jamime , I guest maybe the reason is below:
If manually runs "fleetctl stop bug && fleetctl start bug", the system is initialized already. Maybe the environments and conditions are ready.
But if reboots, during the rebooting, maybe other environments and conditions are not ready, it meas network-online.target maybe is not eough. So it gets error.
So I guess it's nothing about the fleet, it's reason of system environment. Can you check and give more informations ?
network-online.target can't guarantee DNS is ready at reboot, I encounter same issue with other service at reboot, my solution is to set Restart=on_failure and retry every 5 seconds to wait for its ready
I have several fleet units that all fail due to the DNS resolution failing after reboot. In the example below the service works correctly if started once the system is running. However, if it is loaded on a cluster size of 1 and the machine is rebooted it will not work as expected
CoreOS alpha (766.0.0) fleetd version 0.10.2
Rebooted
The service will fail to resolve the DNS record
Running
fleetctl stop bug && fleetctl start bug
will produce the expected results