=== kentb__ is now known as kentb [12:05] roaksoax, 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? [13:16] jtv, well, i dont know how easy or difficult wget and oauth would be. [13:16] is this as a one time thing or are you looking for general solution? [13:18] from an ephemeral instance, cloud-init's MAAS datasource can be run from the command line. [13:33] smoser: I'm looking to have the commissioning script make one authenticated GET request to the metadata service. No general solution needed, really. [13:34] i think the MAAS datasource can possibly do what you want [13:35] jtv, [13:36] python /usr/share/pyshared/cloudinit/sources/DataSourceMAAS.py [13:36] the argument to '--config' is a file in /etc/cloud/cloud.cfg.d/*cmdl* [13:36] and inside that file is the url you need also [13:37] smoser: I guess that's in the cloud-init source tree? [13:38] if you're booted into an ephemeral image, its ther for you. [13:38] And I guess I just wrap it in some python to invoke it? [13:39] i dont know why wrap in python [13:39] Well it's not an executable, is it? [13:40] Or is it? There's no hashbang... [13:40] oh. just run it with python [13:41] it has a main [13:41] I see. Sounds perfect! [14:18] jtv, http://paste.ubuntu.com/1429760/ [14:18] I've been wanting to write that for a while, so there it is. [14:19] maybe i'll send it to maas-devel [14:32] smoser: 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:35] jtv, 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:37] smoser: 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. [15:55] anyone here deployed larger 20+ MAAS systems locally and not in the 'cloud'? [17:37] Aram: hey, any joy with the DHCP/IP issue? [17:37] Aram: I've just been reminded of bug 1064291, which might be relevant to the design of the go-juju maas provider [17:37] Launchpad bug 1064291 in Release Notes for Ubuntu "Default constraints make no sense on MAAS" [Undecided,New] https://launchpad.net/bugs/1064291 === ehw_ is now known as ehw === ppetraki_ is now known as ppetraki