Open rootwyrm opened 8 years ago
You have a jail mounted, but is it running a testport? It can't be bulk since there's no builder jails listed.
This is correct; as discussed on IRC, it's not impossible (or unlikely) for someone to need to pop up the 'real' build environment for spot work or such and an automated scheduler (i.e. Jenkins) to collide with that. Ultimately, poudriere has no idea of the state of it's own jails, which I see as a fairly significant shortcoming. Status
should at minimum accurately reflect any states that were initiated by poudriere including non-build states.
I'm happy to start putting something together to address this. The big question is how should poudriere store non-build state changes (e.g. jail -s $JAIL
) so that it can at least avoid assuming someone did something bad?
For Status itself, I would propose the following: Started
indicating it was started with poudriere jail -s
, Stopped
indicating it was unmounted by poudriere jail -k
, Mounted
indicating something outside of poudriere has mounted it, and Unknown
if it's showing in jls
but poudriere has no knowledge of state.
I'll come up with something for this, since you cannot start a testport
in this state so it really should be 'running' or 'started' (to go with jail -s
)
The 'Status' line from
poudriere jail -i -j $JAIL
should reflect that a jail is running if it was started from poudriere, but actually does not. This complicates several common activities, such as building a single port from an external job control.