{"id":534,"date":"2011-12-07T09:11:34","date_gmt":"2011-12-07T17:11:34","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=534"},"modified":"2011-12-07T09:11:34","modified_gmt":"2011-12-07T17:11:34","slug":"juju-bug-fixing","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2011\/12\/07\/juju-bug-fixing\/","title":{"rendered":"juju bug fixing"},"content":{"rendered":"<p>My earlier <a href=\"http:\/\/www.outflux.net\/blog\/archives\/2011\/12\/05\/ec2-instances-in-support-of-a-bsp\/\">post on juju<\/a> described a number of weird glitches I ran into. I got invited by hazmat on IRC (freenode <code>#juju<\/code>) to try to reproduce the problems so we could isolate the trouble.<\/p>\n<p>Fix #1: use the version from the PPA. The <a href=\"https:\/\/juju.ubuntu.com\/docs\/getting-started.html#configuring-your-environment\">juju setup documentation<\/a> doesn&#8217;t mention this, but it seems that adding &#8220;<code>juju-origin: ppa<\/code>&#8221; to your <code>~\/.juju\/environment.yaml<\/code> is a good idea. I suggest it be made the default, and to link to the full list of <a href=\"https:\/\/juju.ubuntu.com\/docs\/provider-configuration-ec2.html\">legal syntax for the <code>environment.yaml<\/code> file<\/a>. I was not able to reproduce the missing-machines-at-startup problem after doing this, but perhaps it&#8217;s a hard race to lose.<\/p>\n<p>Fix #2: don&#8217;t use &#8220;<code>terminate-machine<\/code>&#8220;. :P There seems to be a problem around doing the following series of commands: &#8220;<code>juju remove-unit FOO\/N; juju terminate-machine X; juju add-unit FOO<\/code>&#8220;. This makes the provisioner go crazy, and leaves all further attempts to add units stick in &#8220;pending&#8221; forever.<\/p>\n<p>Big thank you to hazmat and SpamapS for helping debug this.<\/p>\n<p style='text-align:left'>&copy; 2011, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>My earlier post on juju described a number of weird glitches I ran into. I got invited by hazmat on IRC (freenode #juju) to try to reproduce the problems so we could isolate the trouble. Fix #1: use the version from the PPA. The juju setup documentation doesn&#8217;t mention this, but it seems that adding [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,14,19],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/534"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=534"}],"version-history":[{"count":2,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/534\/revisions"}],"predecessor-version":[{"id":536,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/534\/revisions\/536"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}