coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 302 forks source link

Issue with --replace #1691

Closed troyfontaine closed 7 years ago

troyfontaine commented 7 years ago

Hi Devs,

I'm trying to replace a unit file on a cluster with a new one using fleetctl start --replace myservice@1 and it is simply not updating. Even after destroying myservice@1 it still uses the previous unit file template.

I'm using

fleetctl stop myservice@1
fleetctl destroy myservice@1
fleetctl start --replace myservice@1

My version details are:

NAME=CoreOS
ID=coreos
VERSION=1122.2.0
VERSION_ID=1122.2.0
BUILD_ID=2016-09-06-1449
PRETTY_NAME="CoreOS 1122.2.0 (MoreOS)"

I've inserted a 30 second to 1 minute wait after stopping the service and destroying it to try and see if that will get the new unit file to submit correctly-but no banana. That delay has worked previously, but not in this attempt.

Any ideas on how to get it to actually submit?

troyfontaine commented 7 years ago

Figured out I had to destroy the template specifically then submit again. Thanks!