<div dir="ltr"><div><br></div><div>I worked it out as well :-)</div><div><br></div><div>My final workflow is this (for charms that support the openstack-upgrade action):</div><div><br></div><div><div>1. Set the managed upgrade flag</div><div> action-managed-upgrade=true</div><div>2. upgrade the charm:</div><div> juju upgrade-charm </div><div>3. Set new origin </div><div>  openstack-origin=cloud:trusty-mitaka</div><div>4. uprade each unit</div><div> juju action do unit/0 openstack-upgrade</div></div><div><br></div><div>kind regards</div><div>Pshem</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 29 Jan 2016 at 12:34 Michael Nelson <<a href="mailto:michael.nelson@canonical.com">michael.nelson@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Fri, Jan 29, 2016 at 9:43 AM Pshem Kowalczyk <<a href="mailto:pshem.k@gmail.com" target="_blank">pshem.k@gmail.com</a>> wrote:<br></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok,<div><br></div><div>force-downgrade doesn't seem to work:</div><div><div>ubuntu@maascontroller:~$ juju upgrade-charm keystone                                                                                                                                                                                     </div></div></div><div dir="ltr"><div dir="ltr"><div><div>ERROR already running latest charm "cs:trusty/keystone-33"</div></div></div></div><div dir="ltr"><div dir="ltr"><div><div>ubuntu@maascontroller:~$ juju upgrade-charm --force keystone</div></div></div></div><div dir="ltr"><div dir="ltr"><div><div>ERROR already running latest charm "cs:trusty/keystone-33"</div></div></div><div><br></div></div><div dir="ltr">I ended up removing each unit and re-adding it. This has resolved the keystone issue.<div><br></div><div>I have tried that method with another charm (glance):</div><div><br></div><div>ubuntu@maascontroller:~$ juju set glance openstack-origin=cloud:trusty-mitaka</div><div>ubuntu@maascontroller:~$ juju upgrade-charm --force glance                                                   Added charm "cs:trusty/glance-30" to the environment.</div><div><br></div><div>that has resulted in exactly the same error:</div><div><div>2016-01-28 22:40:39 ERROR juju-log FATAL ERROR: Could not derive OpenStack version for codename: mitaka</div><div>2016-01-28 22:40:39 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1</div></div><div><br></div><div>So I think the only way is to blew away a service unit and deploy a new one.</div></div></blockquote><div><br></div></div></div><div dir="ltr"><div class="gmail_quote"><div>James' point above was that you need to upgrade the charm *before* you set the config to use mitaka. The error you are seeing above is on config-changed before the charm upgrade even happens, as the old charm doesn't know about mitaka.<br><br></div><div>If you haven't already blown away your glance service, you can set the openstack-origin back for glance, resolve the config-changed error, then do the upgrade first..<br></div></div></div><div dir="ltr"><div class="gmail_quote"><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>kind regards</div></div><div dir="ltr"><div>Pshem</div></div><div dir="ltr"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, 29 Jan 2016 at 10:49 James Page <<a href="mailto:james.page@ubuntu.com" target="_blank">james.page@ubuntu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hi Pshem</div><div dir="ltr"><div><br></div><div>On Thu, 28 Jan 2016 at 22:39 Pshem Kowalczyk <<a href="mailto:pshem.k@gmail.com" target="_blank">pshem.k@gmail.com</a>> wrote:<br></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I've tried to upgrade keystone to the new charm version (from liberty). I've updated the source:</div><div><br></div><div>juju set keystone openstack-origin=cloud:trusty-mitaka<br></div><div><br></div><div>and scheduled an upgrade:</div><div><br></div><div> juju upgrade charm keystone<br></div><div><br></div><div>but the charm upgrade fails:</div><div><br></div><div>2016-01-28 21:36:13 ERROR juju-log FATAL ERROR: Could not derive OpenStack version for codename: mitaka<br></div><div><br></div><div>What am I doing wrong? </div></div></blockquote><div><br></div></div></div><div dir="ltr"><div class="gmail_quote"><div>You need to upgrade the charm first, and then set the configuration option as the old version of the charm does not know about mitaka.</div><div><br></div><div>You can resolve this by doing:</div><div><br></div><div>juju upgrade-charm --force keystone</div><div>juju resolved --retry keystone/0 (or whatever the unit name is that failed)</div><div><br></div><div>Hopefully that should fix you up.</div><div><br></div><div>Cheers</div></div></div><div dir="ltr"><div class="gmail_quote"><div><br></div><div>James</div></div></div></div></div>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</blockquote></div></div></div>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</blockquote></div></div></blockquote></div>