2.0 as default on main repos?

2016-08-03 Thread José Antonio Rey
Hello everyone,

I am deploying some production servers and am seeing a weird behavior:

2.0~beta12-0ubuntu1.16.04.1 is the default for the 'main' repositories of
archive.ubuntu.com

1.25.6-0ubuntu1~16.04.1~juju1 is the default for ppa:juju/stable

Is this intended? Doesn't feel right to me.

Thanks in advance for the insight!
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Juju as a snap

2016-08-03 Thread Jorge O. Castro
On Tue, Aug 2, 2016 at 5:00 PM, Nicholas Skaggs
 wrote:
> Feedback is welcome and appreciated! If you are running ubuntu 16.04 you
> already have snappy installed. Give it a try!

I just wanted to also point out that this enables the Juju client to
run on Fedora/CentOS/SUSE/Arch/Gentoo or any other distro which has
snapd support.

If you run into problems with these configurations please report bugs.

-- 
Jorge Castro
Canonical Ltd.
http://jujucharms.com/ - The fastest way to model your service

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


[Review Queue] collectd, and prometheus

2016-08-03 Thread Matt Bruzek
I reviewed the collectd and prometheus charms today. The reactive code is
very well written and both charms deployed correctly.

The charms still had the basic auto-generated tests, and the readme files
were VERY minimal. Both charms would fail the lint step on bundletester
(our automated testing tool), so I sent the review findings to the authors
and expect they will be easy fixes for the authors.

Very well written charm code, if you are looking for an example of some
great reactive code look no further than:
https://jujucharms.com/u/prometheus-charmers/collectd
https://jujucharms.com/u/prometheus-charmers/prometheus

That is all,

   - Matt Bruzek 
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: [ANN] New juju-deployer-0.9.0, python-jujuclient-0.53.1

2016-08-03 Thread Charles Butler
With quick turn around this is now available for immediate testing in the
charmbox:devel flavor of images

docker pull jujusolutions/charmbox:devel

You can get started right away with some volume mounts to bring in your
charm's and $JUJU_DATA location. We on the ~containers team have a bash
alias to make this somewhat trivial:

I apologize in advance for the number of flags to make this feasible,
however its a vanilla juju workspace on every invocation.

docker run --rm \
  -ti  \
  -h charmbox.juju.solutions \
  -v $HOME/.juju-work:/home/ubuntu/.local/share/juju \
  -v $HOME/projects/work/interfaces:/home/ubuntu/interfaces \
  -v $HOME/projects/work/layers:/home/ubuntu/layers \
  -v $HOME/projects/work/builds:/home/ubuntu/builds \
  -v $HOME/projects/work/bundles:/home/ubuntu/bundles \
  -v $PWD:/home/ubuntu/pwd \
  jujusolutions/charmbox:devel

>From here you should be able to enter into any charm/bundle directory and
kick off a test against a boostrapped juju2 controller:

juju bootstrap amazon aws
bundletester -F -l DEBUG -v

If you encounter any issues, let us know on the issue tracker:

https://github.com/juju-solutions/charmbox/issues

Thanks and happy testing!

On Wed, Aug 3, 2016 at 11:01 AM Tim Van Steenburgh <
tim.van.steenbu...@canonical.com> wrote:

> These new releases work with the latest juju-2.0 betas while maintaining
> compatibility with juju-1.25.
>
> They are currently available on PyPI and in ppa:tvansteenburgh/ppa, and
> will likely be copied to ppa:juju/stable in the near future.
>
> Find bugs? File here:
> https://bugs.launchpad.net/python-jujuclient
> https://bugs.launchpad.net/juju-deployer
>
>
> Bundletester (https://github.com/juju-solutions/bundletester) works with
> the latest juju-2.0 betas if the latest versions of juju-deployer and
> python-jujuclient are installed.
>
> The Amulet charm testing library (http://pythonhosted.org/amulet/) has
> juju-2.0 support in master, but is awaiting a release that contains that
> support. Watch this space for an announcement of that release.
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju Charmer
Canonical Group Ltd.
Ubuntu - Linux for human beings | www.ubuntu.com
Juju - The fastest way to model your service | www.jujucharms.com
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: [ANN] New juju-deployer-0.9.0, python-jujuclient-0.53.1

2016-08-03 Thread Adam Israel
Excellent news! Thanks, Tim.

On Wed, Aug 3, 2016 at 12:04 PM Charles Butler 
wrote:

> Thanks for the heads up Tim.
>
> I'll get a build pressed for charmbox:devel to get these latest test
> additions in there right now while I'm context switching.
>
> Thanks a bunch for the effort, I know this has been a bit of an uphill
> project. To see the light at the end of the tunnel is very welcome!
>
> All the best,
>
> Charles
>
> On Wed, Aug 3, 2016 at 11:01 AM Tim Van Steenburgh <
> tim.van.steenbu...@canonical.com> wrote:
>
>> These new releases work with the latest juju-2.0 betas while maintaining
>> compatibility with juju-1.25.
>>
>> They are currently available on PyPI and in ppa:tvansteenburgh/ppa, and
>> will likely be copied to ppa:juju/stable in the near future.
>>
>> Find bugs? File here:
>> https://bugs.launchpad.net/python-jujuclient
>> https://bugs.launchpad.net/juju-deployer
>>
>>
>> Bundletester (https://github.com/juju-solutions/bundletester) works with
>> the latest juju-2.0 betas if the latest versions of juju-deployer and
>> python-jujuclient are installed.
>>
>> The Amulet charm testing library (http://pythonhosted.org/amulet/) has
>> juju-2.0 support in master, but is awaiting a release that contains that
>> support. Watch this space for an announcement of that release.
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
> --
> Juju Charmer
> Canonical Group Ltd.
> Ubuntu - Linux for human beings | www.ubuntu.com
> Juju - The fastest way to model your service | www.jujucharms.com
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


[ANN] New juju-deployer-0.9.0, python-jujuclient-0.53.1

2016-08-03 Thread Tim Van Steenburgh
These new releases work with the latest juju-2.0 betas while maintaining
compatibility with juju-1.25.

They are currently available on PyPI and in ppa:tvansteenburgh/ppa, and
will likely be copied to ppa:juju/stable in the near future.

Find bugs? File here:
https://bugs.launchpad.net/python-jujuclient
https://bugs.launchpad.net/juju-deployer


Bundletester (https://github.com/juju-solutions/bundletester) works with
the latest juju-2.0 betas if the latest versions of juju-deployer and
python-jujuclient are installed.

The Amulet charm testing library (http://pythonhosted.org/amulet/) has
juju-2.0 support in master, but is awaiting a release that contains that
support. Watch this space for an announcement of that release.
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: [ANN] New juju-deployer-0.9.0, python-jujuclient-0.53.1

2016-08-03 Thread Charles Butler
Thanks for the heads up Tim.

I'll get a build pressed for charmbox:devel to get these latest test
additions in there right now while I'm context switching.

Thanks a bunch for the effort, I know this has been a bit of an uphill
project. To see the light at the end of the tunnel is very welcome!

All the best,

Charles

On Wed, Aug 3, 2016 at 11:01 AM Tim Van Steenburgh <
tim.van.steenbu...@canonical.com> wrote:

> These new releases work with the latest juju-2.0 betas while maintaining
> compatibility with juju-1.25.
>
> They are currently available on PyPI and in ppa:tvansteenburgh/ppa, and
> will likely be copied to ppa:juju/stable in the near future.
>
> Find bugs? File here:
> https://bugs.launchpad.net/python-jujuclient
> https://bugs.launchpad.net/juju-deployer
>
>
> Bundletester (https://github.com/juju-solutions/bundletester) works with
> the latest juju-2.0 betas if the latest versions of juju-deployer and
> python-jujuclient are installed.
>
> The Amulet charm testing library (http://pythonhosted.org/amulet/) has
> juju-2.0 support in master, but is awaiting a release that contains that
> support. Watch this space for an announcement of that release.
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju Charmer
Canonical Group Ltd.
Ubuntu - Linux for human beings | www.ubuntu.com
Juju - The fastest way to model your service | www.jujucharms.com
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Do you docker? How about layer-docker? Learn how in this weeks post

2016-08-03 Thread Charles Butler
Greetings everyone,

I spent some time hacking up a deep dive on how to work with layer-docker,
the darling layer from the ~containers team making onboarding users looking
to use docker in their juju experience even easier.

http://dasroot.net/posts/2016-08-03-layer-docker-deep-dive/

This breaks down a multi-factor application comprising of:


   - A Python webapp which lets you vote between two options
   - A Redis queue which collects new votes
   - A .Net worker which consumes votes from redis and stores them in a
   database.
   - A Postgres database backed by a Docker volume
   - A Node.js webapp which shows the results of the voting in real time

You'll learn how to deploy this "bundle" (i didn't include bundle
instructions) as a stand-alone charm for evaluation purposes, and then how
to connect to external services for proper scale out production workloads
where data persistence and horizontal scalability is a key factor.

I wrote this post in tandem with doing the charming work. If you notice any
issues please either file a comment on the post, ping me here on the
mailing list, or file a bug against any of the mentioned repositories in
the post. (except the core vote-app-example from docker inc, they didn't
help in this post, so it's likely to get closed as wontfix).

This is also a prelim document that I plan on extracting for the juju docs,
if this was helpful, I'd love to know that too!

Thanks and all the best,

Charles
-- 
Juju Charmer
Canonical Group Ltd.
Ubuntu - Linux for human beings | www.ubuntu.com
Juju - The fastest way to model your service | www.jujucharms.com
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Juju as a snap

2016-08-03 Thread Nicholas Skaggs

For now, it's here:

https://github.com/nskaggs/snap-juju

Indeed as Marco pointed out, it should get upstreamed into the juju 
repo. The needed interfaces and issues with strict mode are discussed in 
the README there as well.


Nicholas

On 08/02/2016 05:11 PM, Tom Barber wrote:
I saw you guys discussing this on #juju the other day, great stuff! 
For those of us interested, is the snap source in a repo somewhere we 
can take a peak at?


Cheers

Tom

--

Director Meteorite.bi - Saiku Analytics Founder
Tel: +44(0)5603641316

(Thanks to the Saiku community we reached our Kickstart 
 
goal, but you can always help by sponsoring the project 
)


On 2 August 2016 at 22:00, Nicholas Skaggs 
mailto:nicholas.ska...@canonical.com>> 
wrote:


The Juju client has been snappified and pushed to the juju store.
Note for now it's just an amd64 build.

snap install juju --beta --devmode

The beta channel contains the latest beta, 2.0-beta13. This is a
sneak preview of further builds, including the latest crack
available in the edge channel as development happens.

Note, that you will need to use juju add-credential to re-add your
credentials for the snap -- credentials are not shared with the
debian package. Also, should you have the debian package (from the
archive or ppa) installed, it has priority in PATH for 'juju'.
Uninstall the package, or run the snap directly by calling
/snap/bin/juju.

Feedback is welcome and appreciated! If you are running ubuntu
16.04 you already have snappy installed. Give it a try!

Nicholas


-- 
Juju mailing list

Juju@lists.ubuntu.com 
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/juju





--
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Juju as a snap

2016-08-03 Thread Stuart Bishop
On 3 August 2016 at 04:00, Nicholas Skaggs 
wrote:

> The Juju client has been snappified and pushed to the juju store. Note for
> now it's just an amd64 build.
>
> snap install juju --beta --devmode
>
> The beta channel contains the latest beta, 2.0-beta13. This is a sneak
> preview of further builds, including the latest crack available in the edge
> channel as development happens.
>
> Note, that you will need to use juju add-credential to re-add your
> credentials for the snap -- credentials are not shared with the debian
> package. Also, should you have the debian package (from the archive or ppa)
> installed, it has priority in PATH for 'juju'. Uninstall the package, or
> run the snap directly by calling /snap/bin/juju.
>
> Feedback is welcome and appreciated! If you are running ubuntu 16.04 you
> already have snappy installed. Give it a try!


Any idea how plugins will work once you get this confined? I think plugins
will also need to be snapped and connected by an interface somehow (esp. as
deb packaged plugins would likely drag in a non-snap'd juju).

(Got my lxd environment bootstrapped, so working fine here!)


-- 
Stuart Bishop 
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju