Limit charmworld to only import ingest the trusty charms ?

Brad Crittenden brad.crittenden at canonical.com
Mon Jun 2 19:50:21 UTC 2014


On May 30, 2014, at 18:40 , GMail <stein.myrseth at gmail.com> wrote:

> I’m setting up a local Charmworld sandbox with some local charms but I'm running out of disk space (the default 8GB).
> 
> Setting the charm_import_limit to like 50 or 100, does not add my local once (added in the end ?). Increasing this number also downloads all series of charms and makes me run out of disk space.
> 
> My main configuration goes like this:
> $sudo bin/supervisorctl -c charmworld/jobs/supervisord.conf stop ingest
> 
> $sudo INI=production.ini bin/ingest-queued --clear --local-repo=/home/ubuntu/trusty
> 
> $sudo bin/supervisorctl -c charmworld/jobs/supervisord.conf start ingest

Hi Stein,

Can you clarify how the above three commands are being run?  The second, if run to completion, should import all of your local charms.  So, I’m unsure why you see your charms being ingested last.


> 
> Questions
> 1) Is it possible to make it load my local charms first, and then use the charm_import_limit to limit the number of charms ?

When the charm starts, it will begin ingesting file.  You can prevent it from ingesting by setting the charm configuration value charm_import_limit to 0, i.e.

juju set charmworld “charm_import_limit=0”

Then when you run the bin/ingest-queued by handit will clear anything in the queue, and start import your local charms.  You’ll need to specify a —limit option to override the one placed in production.ini by the charm:

$ sudo su charmworld -c “INI=production.ini bin/ingest-queued --limit=1 —clear —local-repo=/home/ubuntu/trusty"

Since you indicated in the shared Google doc that you don’t rely on any charmstore charms, you need not restart the supervisorctl ingest process.


> 2) Can I set a import filter to only import the Trusty charms ?

You could but it would require editing the file

/home/webops_deploy/charmworld/charmworld/jobs/supervisord.conf

and changing

to

command=bin/ingest-queued --run-forever —clear —prefix=~charmers/charms/trusty

The supervisorctl job would need to be stopped and restarted.


I am very happy to hear you have had some success.  

Best,

Brad


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ubuntu.com/archives/juju/attachments/20140602/5ea4f163/attachment.pgp>


More information about the Juju mailing list