Squid-reverseproxy test plan

2015-02-19 Thread Nicolás Pace
Hi all,
I've defined a test plan for the Squid-reverseproxy charm.
I would like to know your thoughts about the scenaries, and propose any
other that you might thought important.
https://bugs.launchpad.net/charms/+source/squid-reverseproxy/+bug/1423520

Regards,

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


Re: problem with amulet and ssh

2015-02-18 Thread Nicolás Pace
This problem can be eluded by removing the ~/.ssh/known_hosts and
/root/.ssh/known_hosts files.

Regards,

On Fri, Feb 13, 2015 at 3:12 PM, Marco Ceppi marco.ce...@canonical.com
wrote:

 Thanks Nicolás for brining this to our attention and Stuart for shedding
 light on how deep this bug runs. While it's true we're kind of tied to
 doing what Juju does, that doesn't mean we can't look at ways to alleviate
 this in Amulet to avoid tests to prevent them from failing.

 On Fri, Feb 13, 2015 at 12:38 PM, Stuart Bishop 
 stuart.bis...@canonical.com wrote:

 On 13 February 2015 at 09:42, Nicolás Pace nicop...@gmail.com wrote:
  Hi guys,
  I'm having a problem with amulet.
  i implemented a test with this chunk of code inside:
 
  logstash_indexer_agent = d.sentry.unit['logstash-indexer/0']
  curl_response = logstash_indexer_agent.run(curl
  http://127.0.0.1:9200/index/_search?size=1;)[0]
  print(curl_response)
 
  that print is throwing this:
  http://paste.ubuntu.com/10197382/
 
  I found a fixed bug that appears to be similar to this one:
  https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1283198
 
  Any idea what could it be?

 Good timing. This one bit me enough times today that I linked the
 original bug from 2011 to Amulet.
 https://bugs.launchpad.net/juju/+bug/802117.

 What is happening is juju pollutes both ~/.ssh/known_hosts and
 ~root/.ssh/known_hosts with provisioned host keys and they are never
 cleaned up. When the IP addresses gets recycled, which seems to happen
 a few times a day recently, all sorts of things start randomly
 failing. Particularly test suites that need to 'juju ssh' or 'juju
 run' stuff automatically.

 The simple fix is having juju pass an option to ssh to not use the
 user's known_hosts files, instead a file specific to the environment.
 Extra points for having juju clean out keys when machines are
 destroyed.

 --
 Stuart Bishop stuart.bis...@canonical.com

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





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


problem with amulet and ssh

2015-02-12 Thread Nicolás Pace
Hi guys,
I'm having a problem with amulet.
i implemented a test with this chunk of code inside:

logstash_indexer_agent = d.sentry.unit['logstash-indexer/0']
curl_response = logstash_indexer_agent.run(curl
http://127.0.0.1:9200/index/_search?size=1;)[0]
print(curl_response)

that print is throwing this:
http://paste.ubuntu.com/10197382/

I found a fixed bug that appears to be similar to this one:
https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1283198

Any idea what could it be?

Thanks!

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


Re: destroy local environment

2015-02-09 Thread Nicolás Pace
On Mon, Feb 9, 2015 at 6:01 PM, Nicolás Pace nicop...@gmail.com wrote:

 hi guys...

 how can i destroy my local lxc environment, without using 'juju
 destroy-environment local' (it is not responding, as i got out of disk
 space :S)


Just to complete the answer, lazyPower answered me.
What i did was juju destroy-environment local -y --force
then, there was a hanged lxc environment, so i  did lxc-destroy it.
That was all i needed.

Regards,


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


destroy local environment

2015-02-09 Thread Nicolás Pace
hi guys...

how can i destroy my local lxc environment, without using 'juju
destroy-environment local' (it is not responding, as i got out of disk
space :S)

Regards,
-- 
Ing. Nicolás Pace
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Jenkins test plan

2015-01-30 Thread Nicolás Pace
On Wed, Jan 28, 2015 at 5:23 PM, Jorge Niedbalski 
jorge.niedbal...@canonical.com wrote:

 Hi Nicolás

 On Wednesday, January 28, 2015, Nicolás Pace nicop...@gmail.com wrote:

 Hi Guys,
 I posted an issue on jenkins charm, that describes my test plan for it.
 I would like to know your thoughts about it.
 https://bugs.launchpad.net/charms/+source/jenkins/+bug/1415525


 Thanks for the interest on contribute on this charm, I just wanted to let
 you know that there's a major Python rewrite of this charm
 https://code.launchpad.net/~hopem/charms/trusty/jenkins/python-redux/+merge/247569
 That includes a major test coverage improvement.


Thanks Jorge for your heads-up on this major rewrite.
i'll wait till it get's merged to implement tests for this charm.

Regards,

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


Nagios test plan

2015-01-29 Thread Nicolás Pace
Hi Guys,
I posted an issue on nagios charm, that describes my test plan for it.
I would like to know your thoughts about it.
https://bugs.launchpad.net/charms/+source/nagios/+bug/1416031

Regards,

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


Re: Nagios test plan

2015-01-29 Thread Nicolás Pace
On Thu, Jan 29, 2015 at 2:45 PM, Nicolás Pace nicop...@gmail.com wrote:

 Hi Guys,
 I posted an issue on nagios charm, that describes my test plan for it.
 I would like to know your thoughts about it.
 https://bugs.launchpad.net/charms/+source/nagios/+bug/1416031


Also did a test plan for it's companion charm, nrpe:
https://bugs.launchpad.net/charms/+source/nrpe/+bug/1416053

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


Re: vhost-config apache2 hook

2015-01-29 Thread Nicolás Pace
On Thu, Jan 29, 2015 at 12:45 PM, David Britton david.brit...@canonical.com
 wrote:

 On Wed, Jan 28, 2015 at 11:56:12AM -0300, Nicolás Pace wrote:
  On Tue, Jan 27, 2015 at 5:50 PM, David Britton 
 david.brit...@canonical.com
 
  I've used juju debug-hooks apache2/0 to debug the
  vhost-config-relation-changed hook.
  When i call relation-get , i get:
  private-address: 10.0.3.137
  vhosts: '- {port: 80, template:
 
 CiMgRW5zdXJlIHRoYXQgQXBhY2hlIGxpc3RlbnMgb24gcG9ydCA4MApMaXN0ZW4gODAKIyBMaXN0ZW4gZm9yIHZpcnR1YWwgaG9zdCByZXF1ZXN0cyBvbiBhbGwgSVAgYWRkcmVzc2VzCk5hbWVWaXJ0dWFsSG9zdCAqOjgwCgo8VmlydHVhbEhvc3QgKjo4MD4KRG9jdW1lbnRSb290IC91c3Ivc2hhcmUvZG9jL2FwYWNoZTIvCjwvVmlydHVhbEhvc3Q+}
 
  It seems ok (at least it is exactly as landscape charm), but apache2 is
 not
  using this info somehow (i've looked over the hook's code too, and it
  should).
 

 Hi Again --

 Sorry I'm not more help in this one, but I'll need more to go on.

 In debug hooks on apache2, I would suggest editing the hooks/hooks.py
 script and putting in 'pdb' statements and stepping through the code to
 see what is going on.  For some reason what you are passing back is not
 correct, examining the code and response.


That's a good idea... i'll try to debug the apache2 hooks.py code to see
what's happening in there.


 One thought is making sure the port is a string as shows in the README?


I tried in both ways.
The problem is that it is not returning any error... is like the info is
not being read by the hook.

Regards,

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


Gunicorn test plan

2015-01-29 Thread Nicolás Pace
Hi Guys,

i defined a test plan that i would like you to look over and tell me your
thoughts.
https://bugs.launchpad.net/charms/+source/gunicorn/+bug/1416085

Thanks,

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


python-django test plan

2015-01-29 Thread Nicolás Pace
Hi guys,
I've defined a test plan for the Python-Django charm.
I would like to know your thoughts about the scenaries, and propose any
other that you might thought important.
https://bugs.launchpad.net/charms/+source/python-django/+bug/1416108

Thanks,

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


Re: vhost-config apache2 hook

2015-01-28 Thread Nicolás Pace
On Tue, Jan 27, 2015 at 5:50 PM, David Britton david.brit...@canonical.com
wrote:

 On Tue, Jan 27, 2015 at 04:58:29PM -0300, Nicolás Pace wrote:
  Hi,

 Hi Nicolás,


Hi David,
thanks for your answer!


 
  Any idea where to go from here?

 Have you tried doing 'juju debug-hooks unit'?  This helps me greatly
 when trying to figure out why hooks aren't working.  You can manually
 fire the hook off and make sure data is set/received correctly (on the
 sender and receiver end!)

   https://juju.ubuntu.com/docs/authors-hook-debug.html


I've used juju debug-hooks apache2/0 to debug the
vhost-config-relation-changed hook.
When i call relation-get , i get:
private-address: 10.0.3.137
vhosts: '- {port: 80, template:
CiMgRW5zdXJlIHRoYXQgQXBhY2hlIGxpc3RlbnMgb24gcG9ydCA4MApMaXN0ZW4gODAKIyBMaXN0ZW4gZm9yIHZpcnR1YWwgaG9zdCByZXF1ZXN0cyBvbiBhbGwgSVAgYWRkcmVzc2VzCk5hbWVWaXJ0dWFsSG9zdCAqOjgwCgo8VmlydHVhbEhvc3QgKjo4MD4KRG9jdW1lbnRSb290IC91c3Ivc2hhcmUvZG9jL2FwYWNoZTIvCjwvVmlydHVhbEhvc3Q+}

It seems ok (at least it is exactly as landscape charm), but apache2 is not
using this info somehow (i've looked over the hook's code too, and it
should).


 My other bit of advice is to check out the landscape charm.  While much
 more complicated than an example, it does successfully use the
 vhost-config hook:

   https://code.launchpad.net/~landscape/landscape-charm/stable


I've already checked it, it was a good reference.
I've corrected the relation_set,

I'm a bit lost here.
Any idea?

Thanks in advance!

-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: setting charm configs on relation

2015-01-14 Thread Nicolás Pace
Thanks guys for answering me.

It would be great that the generic vhost-config-relation allows lets the
related charm to require certain parameters.
Do you think that it would be a good improvement for the apache2 charm?

Regards,

On Tue, Jan 13, 2015 at 3:45 PM, Charles Butler 
charles.but...@canonical.com wrote:

 Jose is correct. There currently is not a way to really expose install
 these packages as a relationship exchange. Things like this are intended
 to be scoped by the -joined relationship, and are typically scoped by the
 context of the relationship. For example if you're joining a cache-server
 relationship, you may install a script-compression module for apache/nginx.
 (as an oversimplified example)

 I think there's a lot of confusion around relationships and interfaces in
 the current juju docs and experience - and will be working towards
 publishing a writeup on it as well as refactoring the docs this cycle to
 get that work included with a basic state chart, and data-exchange diagram
 to illustrate some sample scenarios.

 Thanks for the question Nicolas!

 On Tue, Jan 13, 2015 at 11:22 AM, Nicolás Pace nicop...@gmail.com wrote:

 Hi guys,

 I'm working in a charm to test the apache2 charm:
 https://code.launchpad.net/~nicopace/+junk/simplewebservercharm
 For my vhost-config-relation hook, i need to tell apache to install some
 modules.
 I now how to do it from the commandline: juju set apache2
 enable_modules=proxy headers
 How can i do this from my hook using amulet?

 Thanks,


 --
 Ing. Nicolás Pace
 http://www.linkedin.com/in/nickar/
 http://www.unixono.com.ar/

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




 --
 All the best,

 Charles Butler charles.but...@canonical.com - Juju Charmer
 Come see the future of datacenter orchestration: http://jujucharms.com




-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: apache2 vhost-config relation problem

2015-01-13 Thread Nicolás Pace
On Mon, Jan 12, 2015 at 8:08 PM, José Antonio Rey j...@ubuntu.com wrote:

 Hey Nico,

 Michael is right over here. Both the apache2 charm and your test charm
 *require* the vhost-config relation. A relation can only be established
 if one charm requires and the other provides. You should be able to
 change this on the metadata.yaml.


Oh, thanks for that!
I corrected it and it worked!



 If you have any questions on how to implement this, please make sure to
 contact us!

 On 01/12/2015 06:04 PM, Michael Nelson wrote:
  On Tue, Jan 13, 2015 at 9:10 AM, Nicolás Pace nicop...@gmail.com
 wrote:
  Hi!
  First of all, thanks for such a great tool!
  I've been implementing a simple charm to test apache2 vhost-config
 relation:
  https://code.launchpad.net/~nicopace/+junk/simplewebservercharm
  I can add both the apache2 and simplewebserver charm, but when i add the
  relation, it says:
  $ juju add-relation apache2:vhost-config simplewebserver:vhost-config
  ERROR no relations found
 
  Hi Nicolas. I'm not 100%, but it looks like you've trying to relate
  two charms which both *require* the vhost-config relation (ie. without
  looking at the detail, I'm guessing your charm needs to provide that,
  not require it).
 
  -Michael
 
 
  Any ideas?
 
  Thanks
 
  --
  Ing. Nicolás Pace
  http://www.linkedin.com/in/nickar/
  http://www.unixono.com.ar/
 
  --
  Juju mailing list
  Juju@lists.ubuntu.com
  Modify settings or unsubscribe at:
  https://lists.ubuntu.com/mailman/listinfo/juju
 
 

 --
 José Antonio Rey




-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


setting charm configs on relation

2015-01-13 Thread Nicolás Pace
Hi guys,

I'm working in a charm to test the apache2 charm:
https://code.launchpad.net/~nicopace/+junk/simplewebservercharm
For my vhost-config-relation hook, i need to tell apache to install some
modules.
I now how to do it from the commandline: juju set apache2
enable_modules=proxy headers
How can i do this from my hook using amulet?

Thanks,


-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


apache2 vhost-config relation problem

2015-01-12 Thread Nicolás Pace
Hi!
First of all, thanks for such a great tool!
I've been implementing a simple charm to test apache2 vhost-config
relation: https://code.launchpad.net/~nicopace/+junk/simplewebservercharm
I can add both the apache2 and simplewebserver charm, but when i add the
relation, it says:
$ juju add-relation apache2:vhost-config simplewebserver:vhost-config
ERROR no relations found

Any ideas?

Thanks

-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju