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
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
[Service]ExecStart=/usr/bin/bash -c 'while true; do echo hello1; sleep 1; done'
start it: fleetctl start app
modify local app.service: sed -i 's#hello1#hello2#g' app.service
load it: fleetctl load app ->
$ fleetctl load app.service
WARNING: Unit app.service in registry differs from local unit file app.service
Unit app.service loaded on 659caee1.../coreos1
FYI load/start/stop describe the desired state, not the action to perform, thus fleetctl load will move the unit from whichever state it is in to the loaded state.
fleetctl load and start have been working for all given units, no matter
whether each unit's target state is more activated than the current state
or not. That means, for example, fleetctl load on activated units
results in stopping the units, which could be unexpected for users.
To fix that, check that each unit really needs to be waited, by running
unitToBeChanged().
Fixescoreos#1428
fleetctl load and start have been working for all given units, no matter
whether each unit's target state is more activated than the current state
or not. That means, for example, fleetctl load on activated units
results in stopping the units, which could be unexpected for users.
To fix that, check that each unit really needs to be waited, by running
unitToBeChanged().
Fixescoreos#1428
fleetctl load and start have been working for all given units, no matter
whether each unit's target state is more activated than the current state
or not. That means, for example, fleetctl load on activated units
results in stopping the units, which could be unexpected for users.
To fix that, check that each unit really needs to be waited, by running
unitToBeChanged().
Fixescoreos#1428
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
/cc @jonboulle @tixxdz
Steps to reproduce:
app.service
:fleetctl start app
app.service
:sed -i 's#hello1#hello2#g' app.service
fleetctl load app
->And this unit will be stopped.
Have to review
lazyLoadUnits
https://github.com/coreos/fleet/blob/master/fleetctl/fleetctl.go#L705And it should be much smarter, i.e. like
lazyCreateUnits
one https://github.com/coreos/fleet/blob/master/fleetctl/fleetctl.go#L597In addition we have to create unit tests for this behavior.
The text was updated successfully, but these errors were encountered: