/srv/irclogs.ubuntu.com/2012/07/20/#maas.txt

=== matsubara is now known as matsubara-afk
realnorth_anyone here have a link or know what environment variables I can feed juju?13:28
realnorth_also is it possible to choose which server to add a charm to?13:28
=== realnorth_ is now known as realnorth
melmothrealnorth, i have been told that jitsu has a -deploy-to option13:31
melmothbut i never try it yet13:31
smoseri'm guessing just about everyone is sleeping, lifeless and bigjools at least. allenap maybe around?13:33
smoseri hadnt' followed all the dns thread13:33
allenapsmoser: Hi there, what's up?13:33
smoserbut i thought that lifeless suggested doing ec2 like names, which i think is generally useful.13:33
smoserbut then others didn't like that because of "no human friendly hostname"13:34
smoserwouldn't cnames fix that?13:34
smoserand having dhcp hand out the hostname as the human-friendly-cname?13:34
allenapsmoser: Yes. One of the questions I had was: what do names with the IP address in add beyond just using IP addresses?13:34
allenaprvba: ^ maybe you can help too?13:35
smosernot much i guess.13:35
smoserbut if you add in the cname, then you have both, dont you?13:35
allenapYeah.13:35
allenapFor smaller clouds, having a nice name is more useful. For massive clouds it's a burden.13:36
smoserrandom bit of info . i think that there was some dns service that just converted "v.x.y.z.somedomain.com' to v.x.y.z Ip address for you13:37
smoseri tihnk ii think you'd just allow it as configurable.13:37
smoseran dif someone sets the "hostname " for something then they get it.13:37
smoserwho cares.13:38
rvbasmoser: so a node would have an ec2 like name and a "human" CNAME then?13:38
smoseryeah.13:38
smoserwell, that was my thought.13:38
smoserreverse looking up its IP would get the ec2-like name13:38
smoserbut who cares.13:38
rvbaright13:38
rvbaThe main problem with writing DNS config files is with reverse config files (because of the classful/classless pb) so yeah, that sounds like something we should definitely look into.13:39
smoserif you allow the api to set the hostname of a node, then someone can easily take a DB that has "MAC:preferred-hostname" and populate maas from that.13:39
rvbaallenap: actually, we sort of mentioned that on the call this morning: having "two" hostnames: the ec2 like one and the manual one.13:40
rvbaBut we thought about that on the DB level.  As smoser said, CNAME is exactly that at the DNS level.13:40
allenapYeah. We also mooted allowing nodes to specify their preferred hostname in the DHCP request and making that a CNAME of the "ugly" name.13:41
allenapBut that doesn't cope with collisions well.13:42
smoserwell, its easily fixable anyway.13:42
smoserthe only place that that has value is when maas is not running the dhcp/dns server13:42
smoserand it assumes that something gave this system a relevant IP address based on its mac address.13:43
smoserer.. relavant hostname based on mac13:43
smoserand whatever that something is can then be just dumped/queried. and a tool then update the node once its in maas.13:43
rvbaallenap: collisions are not really a problem if we can write the reverse zone files using only ec2 hostnames.13:44
smosercollisions are an issue if maas isn't serving the dhcp13:44
rvbaallenap: for each zone, we compute the superset classful network and we write the full reverse zone file for that with ec2-like names.13:44
allenaprvba: I mean collisions of the "nice" names if done by dhcp; two nodes could ask for the same thing.13:44
rvbaRight, that's another problem.  I was thinking about the clasless network collision.13:45
rvbaMaybe the term "collision" is not really proper for that.13:45
allenapI think my brain has had enough of that stuff for this week ;)13:45
rvbasmoser: that's a great idea I think.  Maybe there is something I'm missing but it definitely looks like the missing piece of the puzzle.13:59
roaksoaxallenap: howdy :) so I was looking at your recen changes and was wondeirng, wher's that maas-provision binary?14:23
rvbasmoser: I tried to summarize why I think your idea is great in the email I just sent.  We would have the full forward/reverse DNS config written using ec2-like names.  Then on top of that we could use nsupdate to add CNAME record to accommodate custom hostnames.14:25
rvbarecords*14:25
smoserrvba, thanks.14:25
smoserwe expose "friendly-hostname" setting in maas via api14:25
smoserright?14:25
rvbaYes we do.14:26
smoserso my 'mac-addr:friendly-hostname' population script is easy.14:26
smoser(ie, it takes a file full of lines with 'mac-addr friendly-hostname' and just iterates over it calling maas and setting the hostname for each node based on mac14:27
smoser)14:27
allenaproaksoax: It's a front-end for several commands. It will probably evolve into the front-end for all of MAAS (so that we no longer expose twistd or django-admin).14:27
rvbasmoser: yes, that would work.14:27
roaksoaxallenap: right, but where is it? do we need a wrapper for it (like we did with maas binary)? (see debian/extras/maas in packaging branch)14:28
rvbasmoser: hum, the key we use in the api is the system_id.14:28
roaksoaxrvba: that is indeed a good idea as I was mentioning to smoser14:28
roaksoaxbut that means that servers wont have <rack>.<city>.<blahblah>.domain.com14:28
roaksoaxwhich might come handy14:28
roaksoaxwhen you do inventory14:29
roaksoaxthat's why I think we should consult this with sysadmins14:29
rvbaWell, we might provide a way to set the custom hostname based on tags.14:29
rvbaSo that would be possible.14:29
smoserrvba, somehow i can surely get a node by its mac-id, no?14:30
rvbaLet me check.14:30
smosererr.. get a system_id by its mac_id.14:30
roaksoaxrvba: right, there's various possiblities to approach the issues yes14:30
roaksoaxwe need to consider invetory from now on14:30
roaksoaxand we need to consider Administrators, and Datacenters and the standards they use14:30
roaksoaxand provide a sokution based on that14:30
roaksoaxwe can't simply impose them something we believe is better when they already follow standards14:31
rvbasmoser: no, system_id is the key really.  But that's something we could add very easily.14:31
smoserrvba, well i think its essential, really.14:33
rvbasmoser: I completely agree.14:33
rvbasmoser: please file a bug.14:33
rvbasmoser: that's something really easy to add.14:34
rvbaThe mac is the information that the outside world knows so it makes sense.14:34
roaksoaxallenap: btw is that part of the maas cli?14:35
allenaproaksoax: It is, and it will need a wrapper. It's very simple though: python -m provisioningserver14:37
roaksoaxallenap: right, and what is the maas-cli stuff14:39
roaksoaxallenap: err apiclient14:39
allenaproaksoax: Don't know :-/14:39
roaksoaxok :)14:43
roaksoaxrvba: ping16:17
roaksoaxrvba: do you how how could you effectively run yui tests?16:17
rvbaroaksoax: the yui tests are run as part of the test suite but you can run only the yui tests.16:20
roaksoaxrvba: right, I'm looking towards running them in the actual yui3 source package from the archives16:20
roaksoaxrvba: so I was wondering how is it that you run them?16:20
roaksoaxand get the ooutput of them as?16:21
rvbaIn MAAS, we use SST to do that (see src/maasserver/tests/test_js.py).16:21
smoserrvba, bug 102715416:30
ubot5Launchpad bug 1027154 in maas (Ubuntu) "need way to get system based on mac address" [Undecided,New] https://launchpad.net/bugs/102715416:30
rvbasmoser: ta16:31
roaksoaxrvba: cool thanks!16:32
smoseranyone able to +1 this:20:12
smoserhttps://code.launchpad.net/~smoser/maas/vdenv-fix-mawk/+merge/11606720:12
smoserroaksoax, ^20:12
roaksoaxsmoser: give me a sec :)20:12
roaksoaxsmoser: done!20:16

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