Cannot bootstrap instances in ec2

roger peppe roger.peppe at canonical.com
Wed Apr 3 08:15:36 UTC 2013


On 3 April 2013 00:17, Tim Penhey <tim.penhey at canonical.com> wrote:
> On 02/04/13 18:39, David Cheney wrote:
>> ubuntu at ip-10-130-181-131:~$ tail -f /var/log/juju/machine-1.log
>> 2013/04/02 05:37:43 ERROR JUJU:jujud:machine jujud machine command
>> failed: state entity name not found in configuration
>> error: state entity name not found in configuration
>> 2013/04/02 05:37:43 ERROR JUJU:jujud:machine jujud machine command
>> failed: state entity name not found in configuration
>> error: state entity name not found in configuration
>> 2013/04/02 05:37:43 ERROR JUJU:jujud:machine jujud machine command
>> failed: state entity name not found in configuration
>> error: state entity name not found in configuration
>> 2013/04/02 05:37:43 ERROR JUJU:jujud:machine jujud machine command
>> failed: state entity name not found in configuration
>> error: state entity name not found in configuration
>> 2013/04/02 05:37:43 ERROR JUJU:jujud:machine jujud machine command
>> failed: state entity name not found in configuration
>> error: state entity name not found in configuration
>
> OK... I think this may be fallout from earlier work that I did around
> the series stuff, that is only impacting us now as we have made an
> incompatible change to the configuration.
>
>   juju boostrap --upload-tools
>
> This (in trunk) creates tools for the version of the OS you are running
> (i.e. quantal / raring), but when the tools are looked for, it is
> looking for the default series for the environment (usually precise),
> which then chooses incompatible tools from the public bucket, and BOOM
> (well, not really boom).
>
> My proposed solution is simple:
>
> Don't use the series of the machine running juju to define the series
> for version.Current:
>
> Rietveld: https://codereview.appspot.com/8270045

As I've indicated on that review, I don't think that's a great solution.
version.Current is used by agents to report the series that the agent
is running on so that it can be seen in the juju status output.
This change will mean that all agents will report their series as "precise".

I think a better solution is probably to have a "--pretend-series" flag
(spelling TBD) to go alongside --upload-tools which will upload
the locally built tools as if they were built for other series.

Then, assuming you're running under quantal, you'd do:

    juju bootstrap --upload-tools --pretend-series raring,precise

Of course binaries aren't  guaranteed to work across series (that's why
we build for specific series after all) but at least it's explicit and
does not affect
the non-developer case.

  cheers,
    rog.



More information about the Juju-dev mailing list