Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetctl start for unitfile shows wrong error #1028

Closed
zeisss opened this issue Nov 18, 2014 · 3 comments · Fixed by #1050
Closed

fleetctl start for unitfile shows wrong error #1028

zeisss opened this issue Nov 18, 2014 · 3 comments · Fixed by #1050

Comments

@zeisss
Copy link
Contributor

zeisss commented Nov 18, 2014

fleetctl start supports submit a local file when a unit with the name does not exist in fleet. If the unit contains an @ it can be scheduled multiple times with different values. If a file with that name exists, it cannot be used, but must be moved to a filename with anything behind the @.

core@core-01 ~$ ls
api@1.service
core@core-01 ~ $ fleetctl start api@1
Error creating units: unable to find Unit(api@1.service) or template Unit(api@.service) in Registry or on filesystem
core@core-01 ~ $ mv api@1.service api@.service
core@core-01 ~ $ fleetctl start api@1
Unit api@1.service launched on 304e333b.../172.17.8.102
core@core-01 ~ $ fleetctl -version
fleetctl version 0.8.3

Expected behavior:
Either being able to add a file with the name api@1.service or not showing that name in the error message (that it couldn't be found).

@bcwaldon
Copy link
Contributor

bcwaldon commented Dec 1, 2014

@zeisss What happens if you try to fleetctl start api@1.service with a local api@1.service rather than fleetctl start api@1?

@zeisss
Copy link
Contributor Author

zeisss commented Dec 2, 2014

The full qualified filename (fleetctl start api@1.service) does indeed work.

@bcwaldon
Copy link
Contributor

bcwaldon commented Dec 3, 2014

@zeisss Found the bug here: #1050

@bcwaldon bcwaldon added this to the v0.9.0 milestone Dec 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants