Thursday evening handover, 7/6/2012

Dave Cheney david.cheney at canonical.com
Thu Jun 7 06:05:36 UTC 2012


Hello,

Today I remerged all my changes to the new juju-core tree and worked on adding the functionality for the PA to be able to start and stop machines via the Environ.

I have hit one snag and wanted to ask for some background. In the python version there is a method on the provider that gets all the running instances id's. This method is used to check if there are any machines running which do not appear in the state. We have no such method in the go environ.Environs interface; you can get the environ.Instance for a set of running instances from the Environ, but you need to know their ids. As the PA is trying to shut down instances for which we have lost track of their ids, this won't work.

Is there are reason for environ.Instances being the way it is, or is this an oversight ?

Work in progress is here: http://codereview.appspot.com/6307049/

Cheers

Dave


More information about the Juju-dev mailing list