juju deploy and charm origin, borked?

Zygmunt Krynicki zygmunt.krynicki at canonical.com
Mon Mar 25 20:40:13 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is a continuation of my first impressions of using the new juju
(go-based) with HP cloud.

Color me confused, have a look:

zyga at g580:~$ cat ~/.juju/environments.yaml
default: hpcloud
environments:
  hpcloud:

    [ snip ]

    # override if your workstation is running a different series to
which you are deploying
    # default-series: precise
    default-series: precise
    default-image-id: "75845"

    [ snip ]

zyga at g580:~$ juju deploy ubuntu
error: cannot get latest charm revision: charm info errors for
"cs:raring/ubuntu": entry not found

Why did juju want to use raring? If I was using fedora, would it try
to deploy the same version as my fedora system?

As a user, I expected to get a vanilla ubuntu 12.04 aka precise

I must be doing something wrong, let's see what --help says:

[------------start of quote-------------]
zyga at g580:~$ juju deploy ubuntu --help
usage: juju deploy [options] <charm name> [<service name>]
purpose: deploy a new service

options:
- --config  (= )
    path to yaml-formatted service config
- -e, --environment (= "")
    juju environment to operate in
- -n, --num-units  (= 1)
    number of service units to deploy for principal charms
- --repository (= "")
    local charm repository
- -u, --upgrade  (= false)
    increment local charm directory revision

<charm name> can be a charm URL, or an unambiguously condensed form of it;
assuming a current default series of "precise", the following forms
will be
accepted.

For cs:precise/mysql
  mysql
  precise/mysql

For cs:~user/precise/mysql
  cs:~user/mysql

For local:precise/mysql
  local:mysql

In all cases, a versioned charm URL will be expanded as expected (for
example,
mysql-33 becomes cs:precise/mysql-33).

<service name>, if omitted, will be derived from <charm name>.
[------------end of quote-------------]

So unless I don't understand basic English it should have been
identical to juju deploy cs:precise/ubuntu because my configuration
has 'default-series' equal to 'precise'.

Indeed, I can deploy that explicitly, as shown here:

zyga at g580:~$ juju deploy cs:precise/ubuntu

Thanks
ZK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRULYtAAoJECiU6TooxntHC/EQAIcdAScGwzEwmy/QiKAnVGKq
zyA+16Uyw5DEfJaLvLVON6ygYWMk6sVPdsncPYh1rQDKtl236zFlT51vmyeOJ7B0
v1YN4oCl1UgedG0JflvGAxJKISfO7zQF1Nvi8CTHlD3c5uDIv1DMEZ//z9WqETqa
gEGDoZ2+zBY3o/ux+iE9bAz+7WiW6QHrEbrD5F7gRVAMrbGwvyI2kUBmmmJj5dX0
5k0f7AP1wbu4kq+Tdqk479+h49Ujs17D3HhUV/CMZd3ZRadD/zCo6ctQptF1i/aw
yRIkSM7wsnen/bvDo+Fk/ZxVQf49kFJFJ7l9GRCcfn8jtR/tgU7zS0UBiUn56r24
FD9MlW3XI9WrbnCZMgv/Do3zg3KWJfSO8KK3d3mK1I+4p+KUXpflBlIJ/4MQ+5FM
fNwOfBzKGg6k1AMYvr8NN0OBVN4sG4rQ7/pK1YZN0uSOlAxZ/FlDTDNsi0jAi01M
LZVOkc3Yt+zJUxTi09VWOg0nOnr1YzwP+htDWfF7WTsoj8KN3i3RfRL9lHUX0IqP
ddRsbTDQFy2eloAaGpLA3hhdTx+2otOHt3BajoOgtqJ7PDzQ1WHTWeTMecyXsn8k
o7eR/65hhYY3qGO1BL9quTftrc+sq51Y8zeOSCkUrc3vWmRfX0lwFjTKDzC7v1y/
Udq4R93eQMTw65Z8u+pJ
=EznF
-----END PGP SIGNATURE-----



More information about the Juju mailing list