Re: Re : Vagrant boxes with Juju now available

2014-03-14 Thread Sebastian
Winael, try this:

sshuttle -r vagrant@localhost: 10.0.3.0/24

Abs,
Sebas.


2013-12-10 3:21 GMT-02:00 Winael win...@ubuntu-fr.org:

 Plop,

 Hi everyone,

 Ben's been working on providing Vagrant images with Juju built in:
 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html

 This is particularly important for those of you on Windows or OSX we
 share the /vagrant directory, allowing you to quickly hack on your
 charm locally and deploy to running Ubuntu Cloud instances just as you
 would to a provider. (Except without the cost!)

 Please feel free to send feedback to this list!

 Yesterday I follow the tuto cause I wanna quickly test Juju for
 professionnal needs. Everything was find, I has my Juju GUI, until I tried
 to deploy some charms.

 I deployed a mysql one and a mediawiki. I take a look to the IP adress it
 gaves me : 10.0.3.23

 I opened my host browser, and try to connect to the IP. It failed. After a
 little discussion on IRC, @utlemming told me that I have to use sshuttle to
 transfert the 10.0.23.0/24 network to my real one.

 I use the command line

 sshuttle -e 'ssh -o UserKnownHostsFile=/dev/null vagrant@localhost:'
 10.0.3.0/24


 (The command line seems to be no persistant by the way)

 But I'm still not able to connect to my mediawiki with 10.0.3.23

 Anybody could help ? I would demonstrate how Juju could help us at work
 but for now...

 Thx in advance guys, you do a ream great job

 --
 Jorge Castro
 Canonical Ltd.http://juju.ubuntu.com/ - Automate your Cloud Infrastructure


 Cheers
 Winael
 http://aliaz.com/winael

 --
 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: Re : Vagrant boxes with Juju now available

2014-03-14 Thread Charles Butler
Winael,

Correct. Sebastian's call out on the command is correct. This has been
reflected in the Vagrant OSX walkthrough that landed earlier this week. I
haven't updated the existing document as the -e pipe is intended to prevent
the ssh keys from getting cached and throwing the warning about a possible
MITM attack dialogue. Until I get a solid working solution that wont throw
that error I've abstained from rewriting that bit of the docs.

Keep your eyes peeled for another update in the coming week(s)


On Fri, Mar 14, 2014 at 2:28 PM, Sebastian sebas5...@gmail.com wrote:

 Winael, try this:

 sshuttle -r vagrant@localhost: 10.0.3.0/24

 Abs,
 Sebas.


 2013-12-10 3:21 GMT-02:00 Winael win...@ubuntu-fr.org:

  Plop,


 Hi everyone,

 Ben's been working on providing Vagrant images with Juju built in:
 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html

 This is particularly important for those of you on Windows or OSX we
 share the /vagrant directory, allowing you to quickly hack on your
 charm locally and deploy to running Ubuntu Cloud instances just as you
 would to a provider. (Except without the cost!)

 Please feel free to send feedback to this list!

 Yesterday I follow the tuto cause I wanna quickly test Juju for
 professionnal needs. Everything was find, I has my Juju GUI, until I tried
 to deploy some charms.

 I deployed a mysql one and a mediawiki. I take a look to the IP adress it
 gaves me : 10.0.3.23

 I opened my host browser, and try to connect to the IP. It failed. After
 a little discussion on IRC, @utlemming told me that I have to use sshuttle
 to transfert the 10.0.23.0/24 network to my real one.

 I use the command line

 sshuttle -e 'ssh -o UserKnownHostsFile=/dev/null vagrant@localhost:'
 10.0.3.0/24


 (The command line seems to be no persistant by the way)

 But I'm still not able to connect to my mediawiki with 10.0.3.23

 Anybody could help ? I would demonstrate how Juju could help us at work
 but for now...

 Thx in advance guys, you do a ream great job

 --
 Jorge Castro
 Canonical Ltd.http://juju.ubuntu.com/ - Automate your Cloud Infrastructure


 Cheers
 Winael
 http://aliaz.com/winael

 --
 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


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


Re: Vagrant boxes with Juju now available

2013-12-08 Thread Tim Penhey
On 07/12/13 07:46, Daniele Stroppa wrote:
 John, David,
 
 the reason why I'm destroying the service and re-deploy it's because I'm
 testing/debugging my charm's hooks, specifically the install hook in
 this case. 
 
 My understanding is that 'juju upgrade-charm' will trigger the
 upgrade-charm hook, right? But I believe the install and upgrade-charm
 hooks are not always the same, correct? 
 
 So, in this case using the upgrade option on juju deploy (juju deploy
 --upgrade --repository /vagrant/charms local:precise/node-app) actually
 does the job.

On the road-map we have plans around making the charm development cycle
easier with the local provider.

Ideas are still being fully crystallized, but hopefully we'll have
something cool for 14.04.

Cheers,
Tim


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


Re: Vagrant boxes with Juju now available

2013-12-06 Thread Daniele Stroppa
One more thing I noticed while working on a charm. After a debug-hooks
session, I modified some files in my local charm repo (/vagrant/charms),
destroyed the service that was deployed and re-deploy it from the local
repo with modified files. However, the latest changes were not picked up
and the charm was still using a previous version of the hooks. The only way
I've found for juju to pick up the latest changes is to destroy the
environment and bootstrap it again.

It looks like juju caches the content of the /vagrant folder at bootstrap
(just a wild guess).

This happens using both the boxes with Juju built-in or a plain Ubuntu box.

Daniele



On Thu, Dec 5, 2013 at 11:33 PM, Antonio Rosales 
antonio.rosa...@canonical.com wrote:

 On Thu, Dec 5, 2013 at 2:14 PM, Daniele Stroppa
 daniele.stro...@joyent.com wrote:
  Thanks Antonio, using a 12.04 box fixed the issue, the shared folder
  /vagrant is accessible.

 Great to hear, and thanks again for the feedback and follow up.

 -Antonio

 
  Daniele
 
 
  On Thu, Dec 5, 2013 at 7:08 PM, Antonio Rosales
  antonio.rosa...@canonical.com wrote:
 
  On Thu, Dec 5, 2013 at 9:59 AM, Daniele Stroppa
  daniele.stro...@joyent.com wrote:
   Hi Jorge,
  
   I've tried the Vagrant boxes and they look great.
  
   However, I'm having a small issue. I've spin up a Saucy (amd64) box,
   boots
   up fine, I can access the GUI and 'juju status' shows the 'juju-gui'
   service
   deployed. If I try to deploy my charm from /vagrant (juju deploy
   --repository /vagrant/charms local:precise/node-app) it just gets
 stuck,
   nothing happens and I need to Ctrl-C to go back to the console. Same
   happens
   if I do a simple 'ls /vagrant'. (This works in a plain Ubuntu box with
   Juju
   installed).
 
  Talking with Ben you may be running into:
  https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1239384
 
  Thus the recommendation is to use a 12.04 vbox image with latest
  vagrant and current vbox.
 
  Let us know if this helps resolve the issue you are seeing, and thanks
  for the feedback.
 
  -thanks,
  Antonio
 
  
   Any suggestions?
  
   My Environment:
   Mac OS X 10.8.5
   VirtualBox 4.2.18
   Vagrant 1.3.3
  
   Thanks,
   Daniele
  
  
   On Tue, Dec 3, 2013 at 6:04 PM, Jorge O. Castro jo...@ubuntu.com
   wrote:
  
   Hi everyone,
  
   Ben's been working on providing Vagrant images with Juju built in:
  
  
  
  
 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html
  
   This is particularly important for those of you on Windows or OSX we
   share the /vagrant directory, allowing you to quickly hack on your
   charm locally and deploy to running Ubuntu Cloud instances just as
 you
   would to a provider. (Except without the cost!)
  
   Please feel free to send feedback to this list!
  
   --
   Jorge Castro
   Canonical Ltd.
   http://juju.ubuntu.com/ - Automate your Cloud Infrastructure
  
   --
   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
  
 
 

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


Re: Vagrant boxes with Juju now available

2013-12-06 Thread David Britton
On Fri, Dec 6, 2013 at 10:16 AM, John Arbash Meinel
j...@arbash-meinel.comwrote:


 You probably want to look at juju upgrade-charm. When you deploy, we
 take the contents of the local repository and zip it up to store in
 the environment and deploy from there. You need to upgrade-charm to
 copy in a new version and tell the system that you want to switch to it.


Also, if you have destroyed a service, you can't do upgrade-charm, at that
point, you want to make sure your revision file in your charm directory
contains a higher number as juju remembers the charms it deploys.  The
--upgrade flag on juju deploy can automate that for you, in that case.

See the discussion in this bug, as this behavior surprised me too:

https://bugs.launchpad.net/juju-core/+bug/1205466

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


Re: Vagrant boxes with Juju now available

2013-12-05 Thread Daniele Stroppa
Hi Jorge,

I've tried the Vagrant boxes and they look great.

However, I'm having a small issue. I've spin up a Saucy (amd64) box, boots
up fine, I can access the GUI and 'juju status' shows the 'juju-gui'
service deployed. If I try to deploy my charm from /vagrant (juju deploy
--repository /vagrant/charms local:precise/node-app) it just gets stuck,
nothing happens and I need to Ctrl-C to go back to the console. Same
happens if I do a simple 'ls /vagrant'. (This works in a plain Ubuntu box
with Juju installed).

Any suggestions?

My Environment:
Mac OS X 10.8.5
VirtualBox 4.2.18
Vagrant 1.3.3

Thanks,
Daniele


On Tue, Dec 3, 2013 at 6:04 PM, Jorge O. Castro jo...@ubuntu.com wrote:

 Hi everyone,

 Ben's been working on providing Vagrant images with Juju built in:

 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html

 This is particularly important for those of you on Windows or OSX we
 share the /vagrant directory, allowing you to quickly hack on your
 charm locally and deploy to running Ubuntu Cloud instances just as you
 would to a provider. (Except without the cost!)

 Please feel free to send feedback to this list!

 --
 Jorge Castro
 Canonical Ltd.
 http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

 --
 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: Vagrant boxes with Juju now available

2013-12-05 Thread Antonio Rosales
On Thu, Dec 5, 2013 at 9:59 AM, Daniele Stroppa
daniele.stro...@joyent.com wrote:
 Hi Jorge,

 I've tried the Vagrant boxes and they look great.

 However, I'm having a small issue. I've spin up a Saucy (amd64) box, boots
 up fine, I can access the GUI and 'juju status' shows the 'juju-gui' service
 deployed. If I try to deploy my charm from /vagrant (juju deploy
 --repository /vagrant/charms local:precise/node-app) it just gets stuck,
 nothing happens and I need to Ctrl-C to go back to the console. Same happens
 if I do a simple 'ls /vagrant'. (This works in a plain Ubuntu box with Juju
 installed).

Talking with Ben you may be running into:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1239384

Thus the recommendation is to use a 12.04 vbox image with latest
vagrant and current vbox.

Let us know if this helps resolve the issue you are seeing, and thanks
for the feedback.

-thanks,
Antonio


 Any suggestions?

 My Environment:
 Mac OS X 10.8.5
 VirtualBox 4.2.18
 Vagrant 1.3.3

 Thanks,
 Daniele


 On Tue, Dec 3, 2013 at 6:04 PM, Jorge O. Castro jo...@ubuntu.com wrote:

 Hi everyone,

 Ben's been working on providing Vagrant images with Juju built in:


 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html

 This is particularly important for those of you on Windows or OSX we
 share the /vagrant directory, allowing you to quickly hack on your
 charm locally and deploy to running Ubuntu Cloud instances just as you
 would to a provider. (Except without the cost!)

 Please feel free to send feedback to this list!

 --
 Jorge Castro
 Canonical Ltd.
 http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

 --
 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


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


Re: Vagrant boxes with Juju now available

2013-12-05 Thread Daniele Stroppa
Thanks Antonio, using a 12.04 box fixed the issue, the shared folder
/vagrant is accessible.

Daniele


On Thu, Dec 5, 2013 at 7:08 PM, Antonio Rosales 
antonio.rosa...@canonical.com wrote:

 On Thu, Dec 5, 2013 at 9:59 AM, Daniele Stroppa
 daniele.stro...@joyent.com wrote:
  Hi Jorge,
 
  I've tried the Vagrant boxes and they look great.
 
  However, I'm having a small issue. I've spin up a Saucy (amd64) box,
 boots
  up fine, I can access the GUI and 'juju status' shows the 'juju-gui'
 service
  deployed. If I try to deploy my charm from /vagrant (juju deploy
  --repository /vagrant/charms local:precise/node-app) it just gets stuck,
  nothing happens and I need to Ctrl-C to go back to the console. Same
 happens
  if I do a simple 'ls /vagrant'. (This works in a plain Ubuntu box with
 Juju
  installed).

 Talking with Ben you may be running into:
 https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1239384

 Thus the recommendation is to use a 12.04 vbox image with latest
 vagrant and current vbox.

 Let us know if this helps resolve the issue you are seeing, and thanks
 for the feedback.

 -thanks,
 Antonio

 
  Any suggestions?
 
  My Environment:
  Mac OS X 10.8.5
  VirtualBox 4.2.18
  Vagrant 1.3.3
 
  Thanks,
  Daniele
 
 
  On Tue, Dec 3, 2013 at 6:04 PM, Jorge O. Castro jo...@ubuntu.com
 wrote:
 
  Hi everyone,
 
  Ben's been working on providing Vagrant images with Juju built in:
 
 
 
 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html
 
  This is particularly important for those of you on Windows or OSX we
  share the /vagrant directory, allowing you to quickly hack on your
  charm locally and deploy to running Ubuntu Cloud instances just as you
  would to a provider. (Except without the cost!)
 
  Please feel free to send feedback to this list!
 
  --
  Jorge Castro
  Canonical Ltd.
  http://juju.ubuntu.com/ - Automate your Cloud Infrastructure
 
  --
  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
 

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


Re: Vagrant boxes with Juju now available

2013-12-05 Thread Antonio Rosales
On Thu, Dec 5, 2013 at 2:14 PM, Daniele Stroppa
daniele.stro...@joyent.com wrote:
 Thanks Antonio, using a 12.04 box fixed the issue, the shared folder
 /vagrant is accessible.

Great to hear, and thanks again for the feedback and follow up.

-Antonio


 Daniele


 On Thu, Dec 5, 2013 at 7:08 PM, Antonio Rosales
 antonio.rosa...@canonical.com wrote:

 On Thu, Dec 5, 2013 at 9:59 AM, Daniele Stroppa
 daniele.stro...@joyent.com wrote:
  Hi Jorge,
 
  I've tried the Vagrant boxes and they look great.
 
  However, I'm having a small issue. I've spin up a Saucy (amd64) box,
  boots
  up fine, I can access the GUI and 'juju status' shows the 'juju-gui'
  service
  deployed. If I try to deploy my charm from /vagrant (juju deploy
  --repository /vagrant/charms local:precise/node-app) it just gets stuck,
  nothing happens and I need to Ctrl-C to go back to the console. Same
  happens
  if I do a simple 'ls /vagrant'. (This works in a plain Ubuntu box with
  Juju
  installed).

 Talking with Ben you may be running into:
 https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1239384

 Thus the recommendation is to use a 12.04 vbox image with latest
 vagrant and current vbox.

 Let us know if this helps resolve the issue you are seeing, and thanks
 for the feedback.

 -thanks,
 Antonio

 
  Any suggestions?
 
  My Environment:
  Mac OS X 10.8.5
  VirtualBox 4.2.18
  Vagrant 1.3.3
 
  Thanks,
  Daniele
 
 
  On Tue, Dec 3, 2013 at 6:04 PM, Jorge O. Castro jo...@ubuntu.com
  wrote:
 
  Hi everyone,
 
  Ben's been working on providing Vagrant images with Juju built in:
 
 
 
  http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html
 
  This is particularly important for those of you on Windows or OSX we
  share the /vagrant directory, allowing you to quickly hack on your
  charm locally and deploy to running Ubuntu Cloud instances just as you
  would to a provider. (Except without the cost!)
 
  Please feel free to send feedback to this list!
 
  --
  Jorge Castro
  Canonical Ltd.
  http://juju.ubuntu.com/ - Automate your Cloud Infrastructure
 
  --
  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
 



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


Re: Vagrant boxes with Juju now available

2013-12-03 Thread Ramez Hanna
On Wed, Dec 4, 2013 at 1:50 AM, juju-requ...@lists.ubuntu.com wrote:

 From: Jorge O. Castro jo...@ubuntu.com
 To: juju juju@lists.ubuntu.com
 Subject: Vagrant boxes with Juju now available
 Message-ID:
 ca+6nwtugjranqsffdhsqrqprtyf24--qe1ryy7vxxvlaj1-...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 Hi everyone,

 Ben's been working on providing Vagrant images with Juju built in:

 http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html

 This is particularly important for those of you on Windows or OSX we
 share the /vagrant directory, allowing you to quickly hack on your
 charm locally and deploy to running Ubuntu Cloud instances just as you
 would to a provider. (Except without the cost!)

 Please feel free to send feedback to this list!

 --
 Jorge Castro
 Canonical Ltd.
 http://juju.ubuntu.com/ - Automate your Cloud Infrastructure


This is cool Jorge, thanks
I have been working on charms for our internal app, and now I can
share that with the devs as they all use macs
-- 
BR
RH

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