<div dir="ltr">Just going off the bits that Ian pointed to, the section of code was if you called ServiceDeploy with a CharmStore URL (eg cs:mysql) but you had not already called AddCharm.<div><br></div><div>The "juju" cli client already knows to call Client.AddCharm with the given URL, whereas the internal api/client/client.go does a double check if it gets called with a charm URL that isn't already in state.</div><div><br></div><div>Now, I don't know how Quickstart would be triggering apiserver/client/client.go </div><div>The error here: in traceback looks like:</div><div><div>connecting to wss://<a href="http://52.6.157.186:17070/environment/47724da5-9b38-4141-8f92-03d8f4225de9/api">52.6.157.186:17070/environment/47724da5-9b38-4141-8f92-03d8f4225de9/api</a></div><div>environment type: ec2</div><div>bootstrap node series: trusty</div><div>charm URL: cs:trusty/juju-gui-27</div><div>requesting juju-gui deployment</div><div>juju-quickstart: error: bad API response: charm "cs:trusty/juju-gui-27" not found</div></div><div><div>2015-05-01 18:28:59 ERROR Command '('juju', '--show-log', 'quickstart', '-e', 'aws-quickstart-bundle', '--constraints', 'mem=2G', '--no-browser', '/var/lib/jenkins/repository/landscape-scalable.yaml')' returned non-zero exit status 1</div><div>Traceback (most recent call last):</div><div> File "/var/lib/jenkins/juju-ci-tools/quickstart_deploy.py", line 51, in run</div><div> for step in self.iter_steps():</div><div> File "/var/lib/jenkins/juju-ci-tools/quickstart_deploy.py", line 70, in iter_steps</div><div> self.client.quickstart(self.bundle_path)</div><div> File "/mnt/jenkinshome/juju-ci-tools/jujupy.py", line 335, in quickstart</div><div> self.juju('quickstart', args, self.env.needs_sudo())</div><div> File "/mnt/jenkinshome/juju-ci-tools/jujupy.py", line 294, in juju</div><div> return subprocess.check_call(args, env=env)</div><div> File "/usr/lib/python2.7/subprocess.py", line 511, in check_call</div><div> raise CalledProcessError(retcode, cmd)</div></div><div><br></div><div><br></div><div>So it would appear that we had code to allow users to call Client.ServiceDeploy(cs:mysql) and the server would lookup the charm and deploy it for the user, but we stopped doing that as a Juju CLI since 1.16.</div><div><br></div><div>However, I think this is *our* bad because this is a very important client (quickstart and probably others) that has been relying on this behavior in all our recent releases.</div><div><br></div><div>Compat with juju-cli != compatibility with Juju API users.</div><div><br></div><div>AFAIK we don't have a great way to respond to clients that behavior is deprecated, but we can bump the Version of the API and change the behavior. We definitely should have done that here rather than just remove the behavior.</div><div><br></div><div>John</div><div>=:-></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 3:59 PM, Richard Harding <span dir="ltr"><<a href="mailto:rick.harding@canonical.com" target="_blank">rick.harding@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, 03 May 2015, Ian Booth wrote:<br>
<br>
> ><br>
> > Curtis has filed three new bugs for these so far, and there appears to<br>
> > be one or two more to come:<br>
> ><br>
> > <<a href="https://bugs.launchpad.net/juju-core/+bug/1450912" target="_blank">https://bugs.launchpad.net/juju-core/+bug/1450912</a>><br>
><br>
> The issue here is that quickstart is relying on Juju 1.16 behaviour. There was a<br>
> block of code with a comment:<br>
><br>
> // Remove this whole if block when 1.16 compatibility is dropped.<br>
><br>
> The code block was removed because 1.18 was our minimum compatibility version.<br>
> But it seems we have to restore the 1.16 behaviour. Note that this is not an<br>
> upgraded environment where we need to retain compatibility with older<br>
> deployments. It is a fresh 1.24 install which should be able to rely on 1.18 and<br>
> later behaviour only.<br>
<br>
</span>Ian, can you be more specific on the chunk of code that was removed or<br>
branch I can look at for this? I'll happily file a bug and update<br>
quickstart, we just need to know what's changed there. Having a branch in<br>
hand or a bug will assist us in getting that updated as fast as possible.<br>
<br>
In searching through the quickstart code there's no hard requirement or<br>
notes on 1.16.<br>
<br>
Thanks<br>
<br>
--<br>
<br>
Rick Harding<br>
<br>
Juju UI Engineering<br>
<a href="https://launchpad.net/~rharding" target="_blank">https://launchpad.net/~rharding</a><br>
@mitechie<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</div></div></blockquote></div><br></div>