<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      May I add two tips that can help <br>
      <ol>
        <li>When you use the python template, the charmhelpers package
          download and use is done for you, but it then prevents your
          script to be run with as a simple python script since usually
          /<font color="#ff0000">usr/local/lib/python2.7/dist-packages
            is <font color="#330033">not a default.</font><br>
          </font></li>
      </ol>
      <ul>
        <li>Default path under juju is: </li>
      </ul>
      <blockquote>sys.path=
        ['/var/lib/juju/agents/unit-kimchi-0/charm/hooks',
        '/usr/lib/python2.7',
        '/usr/lib/python2.7/plat-powerpc64le-linux-gnu',
        '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
        '/usr/lib/python2.7/lib-dynload', '/<font color="#ff0000">usr/local/lib/python2.7/dist-packages</font>',

        '/usr/lib/python2.7/dist-packages',
        '/usr/lib/python2.7/dist-packages/PILcompat']<br>
      </blockquote>
      <ul>
        <li>log() functions found in hookenv.py is not available and
          will raise an error.</li>
      </ul>
      <ol>
        <li>if you run under "local" environment and your LXC machine
          get unexpected network errors try to disable IPv6 on main
          host.</li>
      </ol>
      <p>That's all for now</p>
      <p>Thierry<br>
      </p>
      On 03/02/2015 06:18 PM, Charles Butler wrote:<br>
    </div>
    <blockquote
cite="mid:CA+DOLSzyX3rjg9FU7EfUCirDn9Fwm=w2+1O==m52_uxpevRJtg@mail.gmail.com"
      type="cite">
      <div dir="ltr">juju upgrade-charm --force, get that iterative
        action without a teardown/redeploy in an error state
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Mar 2, 2015 at 11:51 AM, Nick
          Veitch <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:nick.veitch@canonical.com" target="_blank">nick.veitch@canonical.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            I should clarify that the tips on this page are for charm
            authors -<br>
            i.e. writing charms.<br>
            <br>
            If you have any tips for using Juju, we'd be happy to hear
            those too though!<br>
            <div>
              <div class="h5"><br>
                <br>
                <br>
                On 2 March 2015 at 16:30, Jorge O. Castro <<a
                  moz-do-not-send="true" href="mailto:jorge@ubuntu.com">jorge@ubuntu.com</a>>
                wrote:<br>
                > Hi everyone,<br>
                ><br>
                > We have a best practices guide in the docs,
                initially it was a brain dump of<br>
                > what Canonical IS was doing with Juju:<br>
                ><br>
                > <a moz-do-not-send="true"
                  href="https://jujucharms.com/docs/authors-charm-best-practice"
                  target="_blank">https://jujucharms.com/docs/authors-charm-best-practice</a><br>
                ><br>
                > However if you look at the history of the page it
                hasn't been touched in a<br>
                > long time, and there are tons of new tips and
                tricks that we have neglected<br>
                > to put on this page. In many cases we've just added
                the tip to the<br>
                > corresponding page in the docs, so the question
                becomes, do any of you have<br>
                > any tips/tricks that can help this page be more
                useful to users?<br>
                ><br>
              </div>
            </div>
            > --<br>
            > Juju mailing list<br>
            > <a moz-do-not-send="true"
              href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
            > Modify settings or unsubscribe at:<br>
            > <a moz-do-not-send="true"
              href="https://lists.ubuntu.com/mailman/listinfo/juju"
              target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
            ><br>
            <span class="HOEnZb"><font color="#888888"><br>
                <br>
                <br>
                --<br>
                Nick Veitch<br>
                <a moz-do-not-send="true"
                  href="mailto:nick.veitch@canonical.com">nick.veitch@canonical.com</a><br>
                <br>
                --<br>
                Juju mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
                Modify settings or unsubscribe at: <a
                  moz-do-not-send="true"
                  href="https://lists.ubuntu.com/mailman/listinfo/juju"
                  target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
              </font></span></blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">All the best,
            <div><br>
            </div>
            <div>Charles Butler <<a moz-do-not-send="true"
                href="mailto:charles.butler@canonical.com"
                target="_blank">charles.butler@canonical.com</a>> -
              Juju Charmer</div>
            <div>Come see the future of datacenter orchestration: <a
                moz-do-not-send="true" href="http://jujucharms.com"
                target="_blank">http://jujucharms.com</a></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thierry Fauck @ linux.vnet.ibm</pre>
  </body>
</html>