Re: using a bundle with manually added machines (redux)

2016-12-29 Thread Vance Morris
I'm going to assume that it's not working for me because I'm not using a cloud 
provider and instead manually adding the machines to Juju prior to deploying 
the bundle.

I would think that this is a supported approach, but maybe I'm outside the 
bounds here...

Thanks,
Vance

-Merlijn Sebrechts <merlijn.sebrec...@gmail.com> wrote: -
To: Vance Morris/Dallas/IBM@IBMUS
From: Merlijn Sebrechts <merlijn.sebrec...@gmail.com>
Date: 12/29/2016 11:09AM
Cc: "juju@lists.ubuntu.com" <juju@lists.ubuntu.com>
Subject: Re: using a bundle with manually added machines (redux)

Sorry, didn't see that, I was on my phone.

The bundle looks correct to me, and everything seems in order when I import it 
into demo.jujucharms.com so I'm not sure why it doesn't work for you..

2016-12-29 17:13 GMT+01:00 Vance Morris <vmor...@us.ibm.com>:
Greets Merlijn,
 
 The bundle was attached to the original message, sorry I didn't call it out.
 
 See here: 
https://lists.ubuntu.com/archives/juju/attachments/20161229/8b65108b/attachment.obj
 
 Thanks,
 Vance
 
 
 -Merlijn Sebrechts <merlijn.sebrec...@gmail.com> wrote: -
 To: Vance Morris/Dallas/IBM@IBMUS
 From: Merlijn Sebrechts <merlijn.sebrec...@gmail.com>
 Date: 12/29/2016 08:33AM
 Cc: "juju@lists.ubuntu.com" <juju@lists.ubuntu.com>
 Subject: Re: using a bundle with manually added machines (redux)
 

 Defining the machines and defining the correct machines for each application 
using `to` should work.
 
 The error message looks like some applications don't define machines so juju 
tries to create new machines which obviously fails. Is it possible to share the 
bundle that produces this error message and show the command you use to deploy 
that bundle?
 
 Note that if an application has multiple units, you must specify multiple 
machines to deploy to.
 
 Op donderdag 29 december 2016 heeft Vance Morris <vmor...@us.ibm.com> het 
volgende geschreven:
 > Whoops, sorry for that last message -- let's try this again!
 >
 > Hi all,
 >
 > Is it possible to use a bundle.yaml in conjunction with manually added 
 > machines?
 >
 > $ juju version
 > 2.0.2-xenial-s390x
 >
 > $ juju status
 > << snip >>
 > Machine  StateDNS   Inst id   Series  AZ
 > 0started  REDACTED  manual:REDACTED   xenial
 > 1started  REDACTED  manual:REDACTED   xenial
 > 2started  REDACTED  manual:REDACTED   xenial
 > << snip >>
 >
 > When I go to deploy a bundle that defines machines 0, 1, and 2 and describes 
 > deployment of services to these machines, the charms are deployed, but no 
 > units are created.
 >
 > ERROR cannot deploy bundle: cannot create machine for holding aodh, 
 > ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql, 
 > neutron-api, neutron-gateway, nova-cloud-controller, nova-compute, 
 > openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1 
 > units: cannot add a new machine: use "juju add-machine ssh:[user@]" to 
 > provision machines
 >
 > If I manually deploy charms to the manually added machines, it's happy to 
 > oblige. Any suggestions?
 >
 >
 > Sincerely,
 >
 > Vance Morris
 > 1-720-349-9450
 > vmor...@us.ibm.com
 >
 
 
 


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


Re: using a bundle with manually added machines (redux)

2016-12-29 Thread Merlijn Sebrechts
Sorry, didn't see that, I was on my phone.

The bundle looks correct to me, and everything seems in order when I import
it into demo.jujucharms.com so I'm not sure why it doesn't work for you..

2016-12-29 17:13 GMT+01:00 Vance Morris <vmor...@us.ibm.com>:

> Greets Merlijn,
>
> The bundle was attached to the original message, sorry I didn't call it
> out.
>
> See here: https://lists.ubuntu.com/archives/juju/attachments/
> 20161229/8b65108b/attachment.obj
>
> Thanks,
> Vance
>
>
> -Merlijn Sebrechts <merlijn.sebrec...@gmail.com> wrote: -
> To: Vance Morris/Dallas/IBM@IBMUS
> From: Merlijn Sebrechts <merlijn.sebrec...@gmail.com>
> Date: 12/29/2016 08:33AM
> Cc: "juju@lists.ubuntu.com" <juju@lists.ubuntu.com>
> Subject: Re: using a bundle with manually added machines (redux)
>
> Defining the machines and defining the correct machines for each
> application using `to` should work.
>
> The error message looks like some applications don't define machines so
> juju tries to create new machines which obviously fails. Is it possible to
> share the bundle that produces this error message and show the command you
> use to deploy that bundle?
>
> Note that if an application has multiple units, you must specify multiple
> machines to deploy to.
>
> Op donderdag 29 december 2016 heeft Vance Morris <vmor...@us.ibm.com> het
> volgende geschreven:
> > Whoops, sorry for that last message -- let's try this again!
> >
> > Hi all,
> >
> > Is it possible to use a bundle.yaml in conjunction with manually added
> machines?
> >
> > $ juju version
> > 2.0.2-xenial-s390x
> >
> > $ juju status
> > << snip >>
> > Machine  StateDNS   Inst id   Series  AZ
> > 0started  REDACTED  manual:REDACTED   xenial
> > 1started  REDACTED  manual:REDACTED   xenial
> > 2started  REDACTED  manual:REDACTED   xenial
> > << snip >>
> >
> > When I go to deploy a bundle that defines machines 0, 1, and 2 and
> describes deployment of services to these machines, the charms are
> deployed, but no units are created.
> >
> > ERROR cannot deploy bundle: cannot create machine for holding aodh,
> ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql,
> neutron-api, neutron-gateway, nova-cloud-controller, nova-compute,
> openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1
> units: cannot add a new machine: use "juju add-machine ssh:[user@]"
> to provision machines
> >
> > If I manually deploy charms to the manually added machines, it's happy
> to oblige. Any suggestions?
> >
> >
> > Sincerely,
> >
> > Vance Morris
> > 1-720-349-9450
> > vmor...@us.ibm.com
> >
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Getting access to config in actions

2016-12-29 Thread Tom Barber
Thanks Marco I'll have a prod about.

On Thu, Dec 29, 2016 at 5:02 PM, Marco Ceppi 
wrote:

> Hook config is only setable by operators, not charms. If the-crawldb-uri
> isn't a config option specified in config.yaml and a value set by running
> `juju set` then the behavior you described is expected.
>
> I'd recommend using the kv module in charm-helpers to persist data between
> hooks. https://pythonhosted.org/charmhelpers/api/charmhelpers.
> core.unitdata.html
>
> Marco
>
> On Thu, Dec 29, 2016, 11:54 AM Tom Barber  wrote:
>
>> Not sure if I'm doing something stupid here or not.
>>
>> If I do something like:
>>
>>
>>   config = hookenv.config()
>>   config['the-crawldb-uri'] = 'test'# s.connection_string()
>>   print("set value is" +config['the-crawldb-uri'])
>>
>> in a reactive python charm, I want to be able to access that value in an
>> action which I seem to fail miserably on, anything config related like:
>>
>> juju run --unit sparkler/0 "config-get the-crawldb-uri"
>> or
>>
>> from charmhelpers.core import hookenv
>>
>> def main():
>> out = hookenv.config('the-crawldb-uri')
>> print("uri is "+out)
>>
>> just returns null. But if I manually set a value in a config block and
>> call config-get it returns the value, so how do I bridge that gap?
>>
>>
>>
>>
>> --
>> Tom Barber
>> CTO Spicule LTD
>> t...@spicule.co.uk
>>
>> http://spicule.co.uk
>>
>> @spiculeim 
>>
>> Schedule a meeting with me 
>>
>> GB: +44(0)5603641316 <+44%2056%200364%201316>
>> US: +18448141689 <(844)%20814-1689>
>>
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>


-- 
Tom Barber
CTO Spicule LTD
t...@spicule.co.uk

http://spicule.co.uk

@spiculeim 

Schedule a meeting with me 

GB: +44(0)5603641316
US: +18448141689
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Getting access to config in actions

2016-12-29 Thread Marco Ceppi
Hook config is only setable by operators, not charms. If the-crawldb-uri
isn't a config option specified in config.yaml and a value set by running
`juju set` then the behavior you described is expected.

I'd recommend using the kv module in charm-helpers to persist data between
hooks.
https://pythonhosted.org/charmhelpers/api/charmhelpers.core.unitdata.html

Marco

On Thu, Dec 29, 2016, 11:54 AM Tom Barber  wrote:

> Not sure if I'm doing something stupid here or not.
>
> If I do something like:
>
>
>   config = hookenv.config()
>   config['the-crawldb-uri'] = 'test'# s.connection_string()
>   print("set value is" +config['the-crawldb-uri'])
>
> in a reactive python charm, I want to be able to access that value in an
> action which I seem to fail miserably on, anything config related like:
>
> juju run --unit sparkler/0 "config-get the-crawldb-uri"
> or
>
> from charmhelpers.core import hookenv
>
> def main():
> out = hookenv.config('the-crawldb-uri')
> print("uri is "+out)
>
> just returns null. But if I manually set a value in a config block and
> call config-get it returns the value, so how do I bridge that gap?
>
>
>
>
> --
> Tom Barber
> CTO Spicule LTD
> t...@spicule.co.uk
>
> http://spicule.co.uk
>
> @spiculeim 
>
> Schedule a meeting with me 
>
> GB: +44(0)5603641316
> US: +18448141689
>
>
> --
> 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


Getting access to config in actions

2016-12-29 Thread Tom Barber
Not sure if I'm doing something stupid here or not.

If I do something like:


  config = hookenv.config()
  config['the-crawldb-uri'] = 'test'# s.connection_string()
  print("set value is" +config['the-crawldb-uri'])

in a reactive python charm, I want to be able to access that value in an
action which I seem to fail miserably on, anything config related like:

juju run --unit sparkler/0 "config-get the-crawldb-uri"
or

from charmhelpers.core import hookenv

def main():
out = hookenv.config('the-crawldb-uri')
print("uri is "+out)

just returns null. But if I manually set a value in a config block and call
config-get it returns the value, so how do I bridge that gap?




-- 
Tom Barber
CTO Spicule LTD
t...@spicule.co.uk

http://spicule.co.uk

@spiculeim 

Schedule a meeting with me 

GB: +44(0)5603641316
US: +18448141689
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: using a bundle with manually added machines (redux)

2016-12-29 Thread Vance Morris
Greets Merlijn,

The bundle was attached to the original message, sorry I didn't call it out.

See here: 
https://lists.ubuntu.com/archives/juju/attachments/20161229/8b65108b/attachment.obj

Thanks,
Vance


-Merlijn Sebrechts <merlijn.sebrec...@gmail.com> wrote: -
To: Vance Morris/Dallas/IBM@IBMUS
From: Merlijn Sebrechts <merlijn.sebrec...@gmail.com>
Date: 12/29/2016 08:33AM
Cc: "juju@lists.ubuntu.com" <juju@lists.ubuntu.com>
Subject: Re: using a bundle with manually added machines (redux)

Defining the machines and defining the correct machines for each application 
using `to` should work.

The error message looks like some applications don't define machines so juju 
tries to create new machines which obviously fails. Is it possible to share the 
bundle that produces this error message and show the command you use to deploy 
that bundle?

Note that if an application has multiple units, you must specify multiple 
machines to deploy to.

Op donderdag 29 december 2016 heeft Vance Morris <vmor...@us.ibm.com> het 
volgende geschreven:
> Whoops, sorry for that last message -- let's try this again!
>
> Hi all,
>
> Is it possible to use a bundle.yaml in conjunction with manually added 
> machines?
>
> $ juju version
> 2.0.2-xenial-s390x
>
> $ juju status
> << snip >>
> Machine  StateDNS   Inst id   Series  AZ
> 0started  REDACTED  manual:REDACTED   xenial
> 1started  REDACTED  manual:REDACTED   xenial
> 2started  REDACTED  manual:REDACTED   xenial
> << snip >>
>
> When I go to deploy a bundle that defines machines 0, 1, and 2 and describes 
> deployment of services to these machines, the charms are deployed, but no 
> units are created.
>
> ERROR cannot deploy bundle: cannot create machine for holding aodh, 
> ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql, 
> neutron-api, neutron-gateway, nova-cloud-controller, nova-compute, 
> openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1 units: 
> cannot add a new machine: use "juju add-machine ssh:[user@]" to 
> provision machines
>
> If I manually deploy charms to the manually added machines, it's happy to 
> oblige. Any suggestions?
>
>
> Sincerely,
>
> Vance Morris
> 1-720-349-9450
> vmor...@us.ibm.com
> 


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


Re: using a bundle with manually added machines (redux)

2016-12-29 Thread Merlijn Sebrechts
Defining the machines and defining the correct machines for each
application using `to` should work.

The error message looks like some applications don't define machines so
juju tries to create new machines which obviously fails. Is it possible to
share the bundle that produces this error message and show the command you
use to deploy that bundle?

Note that if an application has multiple units, you must specify multiple
machines to deploy to.

Op donderdag 29 december 2016 heeft Vance Morris  het
volgende geschreven:
> Whoops, sorry for that last message -- let's try this again!
>
> Hi all,
>
> Is it possible to use a bundle.yaml in conjunction with manually added
machines?
>
> $ juju version
> 2.0.2-xenial-s390x
>
> $ juju status
> << snip >>
> Machine  StateDNS   Inst id   Series  AZ
> 0started  REDACTED  manual:REDACTED   xenial
> 1started  REDACTED  manual:REDACTED   xenial
> 2started  REDACTED  manual:REDACTED   xenial
> << snip >>
>
> When I go to deploy a bundle that defines machines 0, 1, and 2 and
describes deployment of services to these machines, the charms are
deployed, but no units are created.
>
> ERROR cannot deploy bundle: cannot create machine for holding aodh,
ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql,
neutron-api, neutron-gateway, nova-cloud-controller, nova-compute,
openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1
units: cannot add a new machine: use "juju add-machine ssh:[user@]"
to provision machines
>
> If I manually deploy charms to the manually added machines, it's happy to
oblige. Any suggestions?
>
>
> Sincerely,
>
> Vance Morris
> 1-720-349-9450
> vmor...@us.ibm.com
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


using a bundle with manually added machines (redux)

2016-12-29 Thread Vance Morris
Whoops, sorry for that last message -- let's try this again!

Hi all,

Is it possible to use a bundle.yaml in conjunction with manually added machines?

$ juju version
2.0.2-xenial-s390x

$ juju status
<< snip >>
Machine  StateDNS   Inst id   Series  AZ
0started  REDACTED  manual:REDACTED   xenial  
1started  REDACTED  manual:REDACTED   xenial  
2started  REDACTED  manual:REDACTED   xenial 
<< snip >>

When I go to deploy a bundle that defines machines 0, 1, and 2 and describes 
deployment of services to these machines, the charms are deployed, but no units 
are created.
 
ERROR cannot deploy bundle: cannot create machine for holding aodh, ceilometer, 
ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql, neutron-api, 
neutron-gateway, nova-cloud-controller, nova-compute, openstack-dashboard, 
rabbitmq-server, swift-proxy and swift-storage-z1 units: cannot add a new 
machine: use "juju add-machine ssh:[user@]" to provision machines

If I manually deploy charms to the manually added machines, it's happy to 
oblige. Any suggestions?


Sincerely,

Vance Morris
1-720-349-9450
vmor...@us.ibm.com


xenial-mitaka-soltest.yaml
Description: Binary data
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


using a bundle with manually added machines

2016-12-29 Thread Vance Morris
Hi all,
 
Is it possible to use a bundle.yaml in conjunction with manually added machines?
 
$ juju version2.0.2-xenial-s390x
 
$ juju status
<< snip >>
Machine  State    DNS  Inst id  Series  AZ0    started  REDACTED  manual:REDACTED   xenial  1    started  REDACTED  manual:REDACTED   xenial  2    started  REDACTED  manual:REDACTED   xenial  
<< snip >>
 
When I go to deploy a bundle that defines machines 0, 1, and 2 and describes deployment of services to these machines, the charms are deployed, but no units are created.
 ERROR cannot deploy bundle: cannot create machine for holding aodh, ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql, neutron-api, neutron-gateway, nova-cloud-controller, nova-compute, openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1 units: cannot add a new machine: use "juju add-machine ssh:[user@]" to provision machines
 
If I manually deploy charms to the manually added machines, it's happy to oblige.
 
 
VANCE MORRIS

Phone:  1-720-349-9450
E-mail: vmor...@us.ibm.com    1177 S Belt Line Rd
Coppell, TX 75019-4642
United States


xenial-mitaka-soltest.yaml
Description: Binary data
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju