Alternative charm store location?

John George john.george at canonical.com
Fri Mar 6 21:16:02 UTC 2015


To support testing of the latest charm store API, Juju needs to connect to
api.jujucharms.com. However, BaseURL is set to https://store.juju.ubuntu.com
in https://github.com/juju/charm/blob/v4/repo.go

One approach might be to simply add an entry to /etc/hosts, on the system
used for driving the tests, so that store.juju.ubuntu.com resolves to
api.jujucharms.com. The problem here is that the certificate returned is
from jujucharms.com and fails validation. For example:
    juju deploy -e local-trusty foo
    ERROR Get
https://store.juju.ubuntu.com/charm-info?charms=cs%3Atrusty%2Ffoo: x509:
certificate is valid for *.jujucharms.com, jujucharms.com, not
store.juju.ubuntu.com

1. Is there a way to pass Juju an alternative store location and override
what's set in repo.go?

2. Ask IS to expand the certificates X509v3 Subject Alternative Name list
to include store.juju.ubuntu.com.

3. Ask IS to install the store.juju.ubuntu.com certificate on
api.staging.jujucharms.com to support testing with the current Juju.

Other suggestions?

Thanks,
John George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150306/f59995f6/attachment.html>


More information about the Juju-dev mailing list