You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Johann Hoehn <jo...@ecommerce.com> on 2013/02/01 17:07:22 UTC
Puppet user-data
Hi,
Is anyone using user-data as described on
http://geek.jasonhancock.com/2011/11/09/cloudstack-userdata-into-puppet-facts/
?
I can see the settings in the user_vm table in the database, but the
virtual router doesn't return any info. I'm using CloudStack 4.0.0 and
Puppet 3.0.2.
Another guy on #cloudstack irc channel has this working on 3.0.x. Was
the feature broken in the new version?
I'd appreciate any insight that can be provided. Thanks.
--johann
RE: Puppet user-data
Posted by Paul Angus <pa...@shapeblue.com>.
Hi Andreas,
I've been doing a bit of work around userdata lately;
Assuming you've used something like Jason Hancock's blog to write the user-data to the virtual router (remember it HAS to be base64 encoded)
Then you can run something like:
USERDATA=`curl http://[Virtual_Router_IP]/latest/user-data`
On the guest instance to retrieve it.
The trickier parts are
1. Parsing the data to get what you want out of the single string (we've developed an xml-like structure for the string to make it multi-purpose)
And
2. Getting the IP address of the virtual router you want in the first place - easy enough if you are using a single network, but much more complex if you have multiple networks and hence multiple Virtual Routers...
Regards,
Paul Angus
S: +44 20 3603 0540 | M: +447711418784
paul.angus@shapeblue.com
-----Original Message-----
From: David Nalley [mailto:david@gnsa.us]
Sent: 07 February 2013 14:38
To: cloudstack-users@incubator.apache.org
Subject: Re: Puppet user-data
On Thu, Feb 7, 2013 at 5:07 AM, Fuchs, Andreas (SwissTXT)
<An...@swisstxt.ch> wrote:
> Are there advantages or disadvantages of pulling userdate from the virtual router compared the get things from the cloudstack API?
> Which is the preffered way?
>
So I've seen others use group (which is queryable via the API) - but
that puts CloudStack closer to an ENC, as you need to query CloudStack
for the Group an instance is in, as opposed to using factor at catalog
compilation time. I tend to think that makes groups a bit less
flexible than user data.
ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.
________________________________
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.
Re: Puppet user-data
Posted by David Nalley <da...@gnsa.us>.
On Thu, Feb 7, 2013 at 5:07 AM, Fuchs, Andreas (SwissTXT)
<An...@swisstxt.ch> wrote:
> Are there advantages or disadvantages of pulling userdate from the virtual router compared the get things from the cloudstack API?
> Which is the preffered way?
>
So I've seen others use group (which is queryable via the API) - but
that puts CloudStack closer to an ENC, as you need to query CloudStack
for the Group an instance is in, as opposed to using factor at catalog
compilation time. I tend to think that makes groups a bit less
flexible than user data.
RE: Puppet user-data
Posted by "Fuchs, Andreas (SwissTXT)" <An...@swisstxt.ch>.
Are there advantages or disadvantages of pulling userdate from the virtual router compared the get things from the cloudstack API?
Which is the preffered way?
-----Original Message-----
From: Johann Hoehn [mailto:johann.hoehn@ecommerce.com]
Sent: Freitag, 1. Februar 2013 17:07
To: cloudstack-users@incubator.apache.org
Subject: Puppet user-data
Hi,
Is anyone using user-data as described on http://geek.jasonhancock.com/2011/11/09/cloudstack-userdata-into-puppet-facts/
?
I can see the settings in the user_vm table in the database, but the virtual router doesn't return any info. I'm using CloudStack 4.0.0 and Puppet 3.0.2.
Another guy on #cloudstack irc channel has this working on 3.0.x. Was the feature broken in the new version?
I'd appreciate any insight that can be provided. Thanks.
--johann
Re: Puppet user-data
Posted by David Nalley <da...@gnsa.us>.
On Fri, Feb 1, 2013 at 6:00 PM, Edison Su <Ed...@citrix.com> wrote:
>
>
>> -----Original Message-----
>> From: Johann Hoehn [mailto:johann.hoehn@ecommerce.com]
>> Sent: Friday, February 01, 2013 11:22 AM
>> To: cloudstack-users@incubator.apache.org
>> Subject: Re: Puppet user-data
>>
>> On 02/01/2013 01:16 PM, Johann Hoehn wrote:
>> > On 02/01/2013 12:58 PM, Edison Su wrote:
>> >> If you restart router VM or user VM, will the user data be populated
>> >> into virtual routerVM?
>> >>
>> > Hi,
>> >
>> > Yes that does fix it to return data. How can I alter the virtual
>> > router so that it will regularly pull the data instead of requiring a
>> > restart?
>> >
>> >
>> > --johann
>> Hi,
>>
>> Slight correction. It seems to only happen when the virtual router is created.
>
> Yes, there is a bug, if VR is created and update user data will not be populated into VR until VR is restarted or user VM is restarted.
>>
Bug ID?
--David
RE: Puppet user-data
Posted by Edison Su <Ed...@citrix.com>.
> -----Original Message-----
> From: Johann Hoehn [mailto:johann.hoehn@ecommerce.com]
> Sent: Friday, February 01, 2013 11:22 AM
> To: cloudstack-users@incubator.apache.org
> Subject: Re: Puppet user-data
>
> On 02/01/2013 01:16 PM, Johann Hoehn wrote:
> > On 02/01/2013 12:58 PM, Edison Su wrote:
> >> If you restart router VM or user VM, will the user data be populated
> >> into virtual routerVM?
> >>
> > Hi,
> >
> > Yes that does fix it to return data. How can I alter the virtual
> > router so that it will regularly pull the data instead of requiring a
> > restart?
> >
> >
> > --johann
> Hi,
>
> Slight correction. It seems to only happen when the virtual router is created.
Yes, there is a bug, if VR is created and update user data will not be populated into VR until VR is restarted or user VM is restarted.
>
>
> -johann
Re: Puppet user-data
Posted by Johann Hoehn <jo...@ecommerce.com>.
On 02/01/2013 01:16 PM, Johann Hoehn wrote:
> On 02/01/2013 12:58 PM, Edison Su wrote:
>> If you restart router VM or user VM, will the user data be populated
>> into virtual routerVM?
>>
> Hi,
>
> Yes that does fix it to return data. How can I alter the virtual
> router so that it will regularly pull the data instead of requiring a
> restart?
>
>
> --johann
Hi,
Slight correction. It seems to only happen when the virtual router is
created.
-johann
Re: Puppet user-data
Posted by Johann Hoehn <jo...@ecommerce.com>.
On 02/01/2013 12:58 PM, Edison Su wrote:
> If you restart router VM or user VM, will the user data be populated into virtual routerVM?
>
Hi,
Yes that does fix it to return data. How can I alter the virtual router
so that it will regularly pull the data instead of requiring a restart?
--johann
RE: Puppet user-data
Posted by Edison Su <Ed...@citrix.com>.
If you restart router VM or user VM, will the user data be populated into virtual routerVM?
> -----Original Message-----
> From: Johann Hoehn [mailto:johann.hoehn@ecommerce.com]
> Sent: Friday, February 01, 2013 8:07 AM
> To: cloudstack-users@incubator.apache.org
> Subject: Puppet user-data
>
> Hi,
>
> Is anyone using user-data as described on
> http://geek.jasonhancock.com/2011/11/09/cloudstack-userdata-into-
> puppet-facts/
> ?
>
> I can see the settings in the user_vm table in the database, but the virtual
> router doesn't return any info. I'm using CloudStack 4.0.0 and Puppet 3.0.2.
>
> Another guy on #cloudstack irc channel has this working on 3.0.x. Was the
> feature broken in the new version?
>
> I'd appreciate any insight that can be provided. Thanks.
>
>
> --johann
Re: Puppet user-data
Posted by Andrei Mikhailovsky <an...@arhont.com>.
Johann,
I've got the same issue with 4.0.0. It is on my todo list which i've not got to yet.
Would appreciate any feedback if you find a solution.
Cheers,
Andrei
----- Original Message -----
From: "Johann Hoehn" <jo...@ecommerce.com>
To: cloudstack-users@incubator.apache.org
Sent: Friday, 1 February, 2013 4:07:22 PM
Subject: Puppet user-data
Hi,
Is anyone using user-data as described on
http://geek.jasonhancock.com/2011/11/09/cloudstack-userdata-into-puppet-facts/
?
I can see the settings in the user_vm table in the database, but the
virtual router doesn't return any info. I'm using CloudStack 4.0.0 and
Puppet 3.0.2.
Another guy on #cloudstack irc channel has this working on 3.0.x. Was
the feature broken in the new version?
I'd appreciate any insight that can be provided. Thanks.
--johann