-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
Thanks! Taking a look. |
@@ -167,7 +155,7 @@ func (h *Host) Start() error { | |||
return err | |||
} | |||
|
|||
return utils.WaitFor(h.MachineInState(state.Running)) | |||
return utils.WaitFor(drivers.MachineInState(h.Driver, state.Running)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is starting to get clunky. I'm not saying it's bad - it just seems getting a bit much with the nesting. Not sure what to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I agree it's hairy. Maybe we could have an additional short-hand method available in utils
, like utils.WaitForDriverState(h.Driver, state.Running)
. I just don't want to re-implement "run an action, then wait for the state that action is trying to reach to be fulfilled" in different places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree -- I think it's ok for now.
LGTM |
Signed-off-by: Mikhail Zholobov <[email protected]>
Signed-off-by: Mikhail Zholobov <[email protected]>
Signed-off-by: Mikhail Zholobov <[email protected]>
Signed-off-by: Mikhail Zholobov <[email protected]>
Signed-off-by: Mikhail Zholobov <[email protected]>
cc @ehazlett @sthulb
This PR implements upgrade feature for the Ubuntu and boot2docker provisioners. In Ubuntu we run
sudo apt-get upgrade lxc-docker
and for boot2docker we download the latest ISO, then replace the one the machine is currently using with that ISO.Noteworthy changes:
WaitForState
has been pulled intodrivers
instead oflibmachine
in order to make it easier to use cross-packagevirtualbox
driver and intoutils
so it can be used in multiple places. Come to think of it, maybe I should go update the other local drivers to use this common code as well?PTAL