/srv/irclogs.ubuntu.com/2012/12/13/#maas.txt

=== kentb__ is now known as kentb
jtvroaksoax, smoser: hi there...  do you happen to know a good example, by any chance, of how to make an authenticated http (GET) request to the metadata server from the commissioning script?  I know we have the python code in there, but are the credentials in a format that we can easily put to use in wget?12:05
smoserjtv, well,  i dont know how easy or difficult wget and oauth would be.13:16
smoseris this as a one time thing  or are you looking for general solution?13:16
smoserfrom an ephemeral instance, cloud-init's MAAS datasource can be run from the command line.13:18
jtvsmoser: I'm looking to have the commissioning script make one authenticated GET request to the metadata service.  No general solution needed, really.13:33
smoseri think the MAAS datasource can possibly do what you want13:34
smoserjtv,13:35
smoserpython /usr/share/pyshared/cloudinit/sources/DataSourceMAAS.py13:36
smoserthe argument to '--config' is a file in /etc/cloud/cloud.cfg.d/*cmdl*13:36
smoserand inside that file is the url you need also13:36
jtvsmoser: I guess that's in the cloud-init source tree?13:37
smoserif you're booted into an ephemeral image, its ther for you.13:38
jtvAnd I guess I just wrap it in some python to invoke it?13:38
smoseri dont know why wrap in python13:39
jtvWell it's not an executable, is it?13:39
jtvOr is it?  There's no hashbang...13:40
smoseroh. just run it with python13:40
smoserit has a main13:41
jtvI see.  Sounds perfect!13:41
smoserjtv, http://paste.ubuntu.com/1429760/14:18
smoserI've been wanting to write that for a while, so there it is.14:18
smosermaybe i'll send it to maas-devel14:19
jtvsmoser: thanks.  I hope I'll be able to look into it tomorrow.  (Unwell at the moment, so we'll have to see how it develops)14:32
smoserjtv, but if you're looking for a way to make 'GET' requests in the ephemeral image, then the thing we want to get to is having a client in there that can easily do that (ie, add 'GET' support to maas-signal).14:35
jtvsmoser: I guess you mean extracting some shared functionality.  That probably makes sense.  Wouldn't necessarily be something you'd still want to call maas-signal though.14:37
freed0anyone here deployed larger 20+ MAAS systems locally and not in the 'cloud'?15:55
rbasakAram: hey, any joy with the DHCP/IP issue?17:37
rbasakAram: I've just been reminded of bug 1064291, which might be relevant to the design of the go-juju maas provider17:37
ubot5Launchpad bug 1064291 in Release Notes for Ubuntu "Default constraints make no sense on MAAS" [Undecided,New] https://launchpad.net/bugs/106429117:37
=== ehw_ is now known as ehw
=== ppetraki_ is now known as ppetraki

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!