bundle deployment on local does not find my charms.
Charles Butler
charles.butler at canonical.com
Tue Oct 21 16:42:54 UTC 2014
Greetings Saurabh,
The export of JUJU_REPOSITORY is great for local development, however juju
gui lives in a LXC Container on your local machine, with an isolated
environment that is separate from your workstation. The way i've moved
forward with this is to publish my charms to my personal namespace. You can
view the documentation on this process here:
https://juju.ubuntu.com/docs/authors-charm-store.html#name-space-charms
Then update your bundle charm location accordingly, for instance, to deploy
logstash from my namespaced branch the charm declaration appears as such:
charm: "cs:~lazypower/trusty/logstash-agent-0"
So to re-cap what i've inferred above:
- bzr push your charm to lp:~username/charms/series/<service>/trunk
- wait ~ 15 minutes for the store to ingest my charm (this happens once.
updates are nearly immediate)
- verify with juju deploy cs:~username/series/service
- update bundle with namespace links
- deploy bundle
Sorry about the confusion. I've run into this as well with locally defined
charms. The alternative to this is to continue to reference local charms,
but instead use juju-deployer to deploy the bundles yaml
http://pythonhosted.org/juju-deployer/
If you have any further questions dont hestate to reach out! i'm
@lazypower on irc.freenode.net in #juju
All the best
Charles
On Tue, Oct 21, 2014 at 11:26 AM, saurabh <saurabh.kumar at techblue.co.uk>
wrote:
> Hi All,
>
> I have a quick one. I have created two charms and have tested them on my
> local machine I have exported the bundle file as well but when I import
> that bunle using the juju-gui it says "An error occurred while deploying
> the bundle: ('No charm metadata @ %s', 'trusty/node-0/metadata.yaml'".
>
> Just to let you know I have exported the the JUJU_REPOSITORY path as
> JUJU_REPOSITORY=/home/saurabh/charms/ in /etc/profile file.
> Any pointer will be very helpful.
>
>
> Thanks,
>
> --
> Saurabh Kumar
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20141021/b1205ca9/attachment.html>
More information about the Juju
mailing list