Re: failed to deploy wordpress via local

2014-10-08 Thread Vasiliy Tolstov
2014-10-08 15:59 GMT+04:00 Jorge O. Castro :
> I filed this so we can fix the error to not be so cryptic:
> https://bugs.launchpad.net/juju-core/+bug/1378792
>
> My proposed solution is also not good, any suggestions on the bug
> would be welcome


I think that the proposed solution is good.

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: failed to deploy wordpress via local

2014-10-08 Thread Jorge O. Castro
On Tue, Oct 7, 2014 at 3:00 AM, Andrew Wilkins
 wrote:
> Deploying units on machine 0 is disallowed to prevent users from breaking
> their personal use/development environment.

I filed this so we can fix the error to not be so cryptic:
https://bugs.launchpad.net/juju-core/+bug/1378792

My proposed solution is also not good, any suggestions on the bug
would be welcome!


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


Re: failed to deploy wordpress via local

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 19:14 GMT+04:00 Andrew Wilkins :
> Juju does have an API; it's how the juju CLI and GUI manage the environment.
> The API is websocket-based. There's clients for at least Go (in the main
> tree), and Python (https://pypi.python.org/pypi/jujuclient/).
> I'm unsure of what you want to do, so I can't say whether the API will
> actually help you do it.


I need something like json api. To call from php code for example.

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Andrew Wilkins
On Tue, Oct 7, 2014 at 3:46 PM, Vasiliy Tolstov  wrote:

> 2014-10-07 11:00 GMT+04:00 Andrew Wilkins :
> > he local provider's "machine 0" is the host itself, which is typically a
> > laptop or desktop computer. Deploying units on machine 0 is disallowed to
> > prevent users from breaking their personal use/development environment.
> >
>
> I think that this is good
>
> >> i'm use link:
> >> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
> >>
> >>
> >> how can i solve issues?
> >> I need to run all services on one unit.
> >
> >
> > I suggest using the manual provider instead:
> > https://juju.ubuntu.com/docs/config-manual.html
> > You would install the Juju client on your laptop/desktop, then create a
> > "manual" config in environments.yaml pointing at your VPS. After
> > bootstrapping, you can then deploy units directly to that machine.
>
> Nice. Does jujud have api? Or how can i from my own panel can say
> deploy this app using this credentials?


Juju does have an API; it's how the juju CLI and GUI manage the environment.
The API is websocket-based. There's clients for at least Go (in the main
tree), and Python (https://pypi.python.org/pypi/jujuclient/).
I'm unsure of what you want to do, so I can't say whether the API will
actually help you do it.

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 11:00 GMT+04:00 Andrew Wilkins :
> he local provider's "machine 0" is the host itself, which is typically a
> laptop or desktop computer. Deploying units on machine 0 is disallowed to
> prevent users from breaking their personal use/development environment.
>

I think that this is good

>> i'm use link:
>> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
>>
>>
>> how can i solve issues?
>> I need to run all services on one unit.
>
>
> I suggest using the manual provider instead:
> https://juju.ubuntu.com/docs/config-manual.html
> You would install the Juju client on your laptop/desktop, then create a
> "manual" config in environments.yaml pointing at your VPS. After
> bootstrapping, you can then deploy units directly to that machine.

Nice. Does jujud have api? Or how can i from my own panel can say
deploy this app using this credentials?


-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Andrew Wilkins
On Mon, Oct 6, 2014 at 11:31 PM, Vasiliy Tolstov 
wrote:

> Hi. I'm try to deploy wordpress on local vps node (kvm virt).
> i'm install juju stable from ppa, install juju-local and doing
> bootstrap, switch local
>
> when i'm try to get step for single node juju deploy --to 0 wordpress
> i get errors that says:
> ERROR cannot assign unit "wordpress/0" to machine 0: machine "0"
> cannot host units
>

The local provider's "machine 0" is the host itself, which is typically a
laptop or desktop computer. Deploying units on machine 0 is disallowed to
prevent users from breaking their personal use/development environment.

i'm use link:
> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
>
>
> how can i solve issues?
> I need to run all services on one unit.


I suggest using the manual provider instead:
https://juju.ubuntu.com/docs/config-manual.html
You would install the Juju client on your laptop/desktop, then create a
"manual" config in environments.yaml pointing at your VPS. After
bootstrapping, you can then deploy units directly to that machine.

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


Re: failed to deploy wordpress via local

2014-10-06 Thread Christopher Glass
Hi Vasiliy,

I'm not entirely familiar with the KVM aspect of this, but I'm used to
deploying stuff on LXC with the local provider. Maybe somebody with
more KVM+juju experience can chime in.

Try deploying your first charm normally (without --to). That should
create a "machine1" VM, then you can deploy subsequent charms to it
using "--to 1".

The trick is that the local provider does not actually create a
machine 0 (it's using the host as a "fake" machine 0). That means when
you bootstrap the local provider it does not spin up a bootstrap VM
(which is desirable IMHO), and you can't therefore use it do deploy
additional charms.

Hope this helps

- Chris

On Tue, Oct 7, 2014 at 12:31 AM, Vasiliy Tolstov  wrote:
> Hi. I'm try to deploy wordpress on local vps node (kvm virt).
> i'm install juju stable from ppa, install juju-local and doing
> bootstrap, switch local
>
> when i'm try to get step for single node juju deploy --to 0 wordpress
> i get errors that says:
> ERROR cannot assign unit "wordpress/0" to machine 0: machine "0"
> cannot host units
>
> i'm use link:
> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
>
>
> how can i solve issues?
> I need to run all services on one unit.
>
> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
> jabber: v...@selfip.ru
>
> --
> 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