You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Unit]Description=My Service
[Service]TimeoutStartSec=0
ExecStart=/bin/sh -c "trap 'exit 0' INT TERM; while true; do echo Hello World %i; sleep 10; done"
submit and start units:
$ fleetctl submit hello@.service
Unit hello@.service inactive
$ fleetctl start hello@{1..10}.service
Unit hello@1.service inactive
Unit hello@2.service inactive
Unit hello@3.service inactive
Unit hello@4.service inactive
Unit hello@5.service inactive
Unit hello@6.service inactive
Unit hello@7.service inactive
Unit hello@8.service inactive
Unit hello@9.service inactive
Unit hello@10.service inactive
Unit hello@2.service launched
Unit hello@4.service launched
Unit hello@5.service launched
Unit hello@1.service launched on 78b98c5d.../192.168.122.188
Unit hello@3.service launched on f8f4ec94.../192.168.122.135
Unit hello@6.service launched on f8f4ec94.../192.168.122.135
Unit hello@7.service launched on 78b98c5d.../192.168.122.188
Unit hello@8.service launched on 0903835b.../192.168.122.166
Unit hello@10.service launched on f8f4ec94.../192.168.122.135
Unit hello@9.service launched on 0903835b.../192.168.122.166
list etcd registry, some units are still there, but fleet doesn't see them:
$ etcdctl ls --recursive --sort /_coreos.com/fleet/job
/_coreos.com/fleet/job/hello@10.service
/_coreos.com/fleet/job/hello@3.service
/_coreos.com/fleet/job/hello@5.service
/_coreos.com/fleet/job/hello@5.service/target
/_coreos.com/fleet/job/hello@7.service
/_coreos.com/fleet/job/hello@7.service/target
/_coreos.com/fleet/job/hello@8.service
/_coreos.com/fleet/job/hello@8.service/job-state
/_coreos.com/fleet/job/hello@9.service
$ fleetctl list-unit-files
UNIT HASH DSTATE STATE TARGET
$ fleetctl list-units
UNIT MACHINE ACTIVE SUB
systemd still has some unit files in memory:
$ systemctl status hello@1
● hello@1.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Mar 02 13:00:19 coreos1 sh[10821]: Hello World 1
Mar 02 13:00:29 coreos1 sh[10821]: Hello World 1
Mar 02 13:00:39 coreos1 sh[10821]: Hello World 1
Mar 02 13:00:49 coreos1 sh[10821]: Hello World 1
Mar 02 13:00:59 coreos1 sh[10821]: Hello World 1
Mar 02 13:01:09 coreos1 sh[10821]: Hello World 1
Mar 02 13:01:19 coreos1 sh[10821]: Hello World 1
Mar 02 13:01:23 coreos1 systemd[1]: Stopping My Service...
Mar 02 13:01:23 coreos1 systemd[1]: Stopped My Service.
Mar 02 13:01:23 coreos1 sh[10821]: Terminated
steps to reproduce:
$ fleetctl submit hello@.service Unit hello@.service inactive $ fleetctl start hello@{1..10}.service Unit hello@1.service inactive Unit hello@2.service inactive Unit hello@3.service inactive Unit hello@4.service inactive Unit hello@5.service inactive Unit hello@6.service inactive Unit hello@7.service inactive Unit hello@8.service inactive Unit hello@9.service inactive Unit hello@10.service inactive Unit hello@2.service launched Unit hello@4.service launched Unit hello@5.service launched Unit hello@1.service launched on 78b98c5d.../192.168.122.188 Unit hello@3.service launched on f8f4ec94.../192.168.122.135 Unit hello@6.service launched on f8f4ec94.../192.168.122.135 Unit hello@7.service launched on 78b98c5d.../192.168.122.188 Unit hello@8.service launched on 0903835b.../192.168.122.166 Unit hello@10.service launched on f8f4ec94.../192.168.122.135 Unit hello@9.service launched on 0903835b.../192.168.122.166relates to #1344, #1433 PRs.
/cc @jonboulle @tixxdz @antrik @reneengelhard