Questions tagged [charms]

Charms provide a way to deploy services using Juju.

More information on what charms are, as well as how to make, get or distribute them, is provided here.

11 questions
8
votes
4 answers

Juju stuck in "pending" state when using LXC

So I'm trying to get started with Juju, and tried to do this locally using LXC. I followed the instructions here: How do I configure juju for local usage? Unfortunately this doesn't seem to work for me. status shows the following: $ juju…
Andre
  • 520
7
votes
1 answer

What juju charm hooks are available and what does each one do?

I am trying to understand the hooks for a juju charm, some of them are rather obvious and easy to understand (start, stop, install,etc), others not really. How many hooks are there, when are they called, for what function? I am looking for a good…
Bruno Pereira
  • 74,715
6
votes
1 answer

What tools are necessary to create a juju charm?

What methods and tools supplied by Ubuntu are necessary to create a juju charm?
Bruno Pereira
  • 74,715
6
votes
1 answer

charm proof issues a "relation server has no hooks" warning

When I run charm proof I get the following warning. W: relation server has no hooks What does this mean and how do I get rid of it?
Octavian Helm
  • 14,515
5
votes
1 answer

How do I make a Juju Charm's revision match the Bazaar revision of its repo?

I've got a Juju Charm that is stored in a Bazaar repository and I would like the charm revision file to have the same value as the Bazaar repository's revision number. Is there a way to make Juju "compile" the Charm and check Bazaar for the…
Ted Gould
  • 3,425
3
votes
1 answer

Failure to troubleshoot a juju charm deployment

My environments.yaml looks like this: environments: test: type: local control-bucket: juju-a14dfae3830142d9ac23c499395c2785999 admin-secret: 6608267bbd6b447b8c90934167b2a294999 default-series: oneiric juju-origin: distro …
Bruno Pereira
  • 74,715
3
votes
1 answer

How can I test a Juju Charm?

I have written a Juju Charm and want to test it. What are the steps to test it?
Octavian Helm
  • 14,515
3
votes
1 answer

How do I gracefully shutdown a Juju Charm?

My charm controls a service that can detect when it's no longer needed, and should shut itself down. Is there a defined way to shutdown the system in a way that Juju considers appropriate? Can I just shutdown -h now on the system?
Ted Gould
  • 3,425
3
votes
1 answer

How do I add and call a helper script in a Juju charm?

I have a charm where I'd like to be able to call a small Python script in one of the hooks as part of its execution. Where do I put that helper script? Can I put it in the hooks directory and get it included? Then, once it is transfered to the…
Ted Gould
  • 3,425
3
votes
1 answer

How would one know a charms dependencies?

If really really novice user is using Juju and wants to deploy wordpress how would he come to understand that mysql is required to deploy it. If you take another product xyz which isn't as popular as wordpress and has no deployment related articles…
1
vote
2 answers

What is the correct way to set config options to a juju service unit with a file?

I need to set some secondary config options to a service charm deployed with juju. All of the options needed are preset to empty in the original config.yaml file. Now, some of those settings are changed in a separate config file named…