/srv/irclogs.ubuntu.com/2016/05/26/#maas.txt

mupBug #1585841 opened: It would be great if MAAS can support ZFS on the 'Storage' configuration part <MAAS:New> <https://launchpad.net/bugs/1585841>02:08
mupBug #1585878 opened: It does not remove the DHCP and DNS configurations on MAAS after juju removes LXD container(machine). <MAAS:New> <https://launchpad.net/bugs/1585878>06:29
jojdenwhy newly created vm using pxe boot is not listing in the maas06:32
mupBug #1585878 opened: It does not remove the DHCP and DNS configurations on MAAS after juju removes LXD container(machine). <MAAS:New> <https://launchpad.net/bugs/1585878>06:53
jojdenhi roaksoax06:54
mupBug #1585878 changed: Removing a container does not remove the underlying MAAS device representing the container unless the host is also removed. <juju-core:Triaged> <https://launchpad.net/bugs/1585878>07:17
jojdenroaksoax http://askubuntu.com/questions/777665/why-newly-created-vm-using-pxe-boot-is-not-listing-in-the-maas07:18
=== frankban|afk is now known as frankban
=== frankban is now known as frankban|afk
=== frankban|afk is now known as frankban
huatsNobody  to help me a bit with that "out-of-sync" image thing that I am facing ?08:00
mupBug #1586000 opened: Make terminology clearer through tooltips <MAAS:New> <https://launchpad.net/bugs/1586000>11:36
mupBug #1586006 opened: Rearrange DHCP information on VLAN details page <MAAS:New> <https://launchpad.net/bugs/1586006>12:06
kikohuats, sure, what's up?13:39
kikoterje, the thing is that the whole cluster interfaces API changed13:40
kikoterje, check out the new API under /docs2.013:40
kikomahmoh, never seen that before, did you figure it out?13:40
roaksoaxjojden: 2016-05-26 06:24:26,012 - url_helper.py[WARNING]: Calling 'http://10.20.0.12/latest/meta-data/instance-id' failed [0/120s]: bad status code [404] -> is 10.20.0.12 the IP of your region controller ?13:45
huatsHi kiko .14:06
huatsI have added a custom image14:06
huatsand sice I am facing an image "out-of-sync"14:06
huatsand I don't seen how to fix that14:06
huats(and how course the custom image is not usable...)14:06
kikohuats, any crashes showing up in /var/log/maas* or syslog?14:07
kikohuats, if you remove the image does it work again?14:07
huatsactually I can use the "old" image14:07
huatsit is just the new one that is not "showing up"14:08
kikohuats, images are uploaded first to the region, and then copied to the cluster filesystem14:08
kikohuats, so it's likely your image is not syncing down14:08
huatsprobably14:08
kikobut why, the logs may be able to tell us14:08
huatsok14:08
huatsI am ooking14:09
mahmohkiko: no, it was technically terj-e's problem, just bubbling it up for him14:35
huatskiko: sorry I had to switch to something else14:53
huatsI don't see any error in the logs :(14:53
mupBug #1426010 changed: Tests using Selenium are all failing <tech-debt> <tests> <MAAS:Fix Released by allenap> <https://launchpad.net/bugs/1426010>15:55
mupBug #1459168 changed: Start-up stacktrace: IntegrityError: duplicate key value violates unique constraint "maasserver_config_name_uniq" DETAIL:  Key (name)=(rpc_shared_secret) already exists. <stacktrace> <start-up> <MAAS:Invalid> <https://launchpad.net/bugs/1459168>15:55
=== frankban is now known as frankban|afk
shewlessHello. I have a network that I would like to change the "DNS" IP on (it's currently blank) but I don't see an easy way to edit the subnet from the UI (I can only delete it). Is there a way to do this from the server level?18:03
shewlesssorry. I mean a subnet.. MAAS 2.018:04
kikoshewless, the API lets you do this; I believe 2.0 final will give you UI, right roaksoax?18:09
pacavacaHi, kiko. Last week me and some other guy were asking here how to create custom ubuntu/centos images, with custom configs and packages installed (custom fs snapshot). You said that someone may write a public answer to that. So, I'm just wondering, maybe it's published somewhere already. Thanks.18:14
kikopacavaca, still on my todo, but a short answer for custom ubuntu is lp:curtinator18:15
kikothat's roadmr's project which helps roll custom ubuntu images18:15
pacavacacool, will check it out. thank you18:15
roadmrpacavaca: with curtinator you can build maas-installable images from stock Ubuntu ISOs, as long as you can express your config in a standard preseed, you should be able to hack curtinator into doing what you need18:16
pacavacaroadmr: am I right that it downloads ubuntu iso then installs it on some kvm vm then takes an fs snapshot, mixes it with preseed scripts and then packs everythin in a tarball, which is something maas can consume?18:31
kikoyep18:32
roadmrpacavaca: somewhat. You need to provide the iso locally (just wget it ;). Also, the preseeds are applied at *install* time18:32
roadmrpacavaca: so it'll boot the provided ISO in a kvm, pointed to the given preseed, and when the install finishes it'll package the resulting filesystem contents in a tarball for maas18:33
roadmrpacavaca: the main maas-related thing it does is install cloud-init, but you can hack the preseed to install more packages and maybe write custom files18:33
pacavacaI see. That sounds like what I need. Thank you18:34
roadmrcheers!18:35
kikoyou rock roadmr18:40
roadmrthanks :) I'm glad curtinator is proving helpful18:40
shewlesskiko: thanks. another question:18:57
shewlessI'm trying to make my "fqdn" of my hosts be something specific (say: node-name.foo.com) instead of node-name.maas18:58
shewlessI don't care if .maas is still there.. basically I have a "maas" fiber and a "foo.com" fiber.. and different subnets for both18:58
shewlessright now I have the dns servers and IPs and everything working (the foo.com subnet is statically assinged)18:59
shewlessI'm also using the DNS forwarder option18:59
shewlessall is good except the nodes "hostname -f" still reports node-name.maas instead of node-name.foo.com18:59
roaksoaxshewless: if you are using 1.9, you change the DNS zone / domain in the cluster controller18:59
shewlessroaksoax: 2.019:00
roaksoaxshewless: if you are using 2.0, you add a new DNS domain, change the domain in the machine itself, and deploy19:00
shewlessroaksoax: I tried that but it seems to map the domain name of the machine to the wrong subnet19:00
shewlessI'm not sure how to change that part19:00
roaksoaxshewless: <hostname>.<domain> will always map against the IP of the PXE interface19:01
roaksoaxshewless: <interface>.<hostname>.<domain> PTR records are available against all of the interfaces19:02
shewlessroaksoax: right I don't want the domain to map to the pxe interface19:02
roaksoaxshewless: you wont be able to change that unfortunately19:02
shewlessI'm not sure what you mean by "interface.hostname.domain" - do you think that would work and how do I do it?19:02
roaksoaxshewless: for example, your node interfaces is this:19:03
roaksoaxeth0 fabric-0 untagged subnet-1 X.X.X.X19:03
roaksoaxeth1 fabric-1 vlan10  subnet-10 Y.y.y.y19:04
roaksoaxshewless: X.X.X.X -> node01.foo.com19:04
roaksoaxshewless: X.X.X.X -> eth0.node01.foo.com19:04
roaksoaxshewless: Y.Y.Y.Y -> eth1.node01.food.com19:04
roaksoaxshewless: Y.Y.Y.Y -> eth1.node01.foo.com19:04
shewlessokay how do I do that? that seems to be what I want19:05
roaksoaxshewless: that's done automatically19:05
shewlessoh wait.. you actually have to have the interface name in the dns?19:05
roaksoaxshewless: yes19:05
shewlessroaksoax: I tried adding a DHCP snippet to the "PXE" subnet... option domain-name 'foo.com" which actually worked from a lease perspective.. but the "lo" interface still has a domain name of "maas"19:05
roaksoaxshewless: go to 'DNS' section19:05
shewlessroaksoax: k19:06
roaksoaxshewless: add a domain 'foo.com'19:06
shewlessdid19:06
roaksoaxshewless: go to the machine details page19:06
shewless(none authoritative)19:06
roaksoaxshewless: click on the hostname, and change node.maas to node.foo.com19:06
shewlessroaksoax: did19:06
shewlessroaksoax: but the dns maps to the PXE interface19:06
roaksoaxshewless: yes, that will never change19:07
roaksoaxshewless: we always map the <hostname>.<domain> to the PXE interface19:07
roaksoaxshewless: so eth0 (PXE) - X.X.X.X - node01.foo.com | eth0.node01.foo.com19:07
shewlessroaksoak: okay. So I need to solve my problem in a different way19:07
shewlessroaksoax: I'm trying to deploy a "production" server on my network with a provisioned IP and a DNS name that is managed by an external DNS server. I think this would be common right?19:08
shewlessroaksoak: so my network guy says "assign static IP y.y.y.y" and I've added a dns record of node.foo.com for you19:09
shewlessroaksoak: right now it's all good (I have maas statically assign IP and update the DNS server) except the fqdn is wrong19:09
roaksoaxshewless: I see your point now. Right, we don't have a way to change that actually19:10
shewlessroaksoak: IE: hostname -f returns "node01.maas".  So I'm so close :)19:10
shewlessif we could make it so "lo" on the nodes doesn't have the domain option set to maas I think it would work with my DHCP snippet19:11
shewlessany chance we could change that?19:11
roaksoaxshewless: i think you could do it via preseeds, as in change the hostname automatically19:13
roaksoaxshewless: like writing a script to change the hostname to what you want19:13
shewlessroaksoax: that could work. I've never done a preseed before. any hints ? :)19:14
roaksoaxshewless: let me get my environment back up and reproduce what you are trying to do19:15
shewlessroaksoax: I think I literally just need to execute this command: echo $(cat /etc/hostname).foo.com > /etc/hostname19:17
shewlessroaksoax: before boot.  If it's after boot I'd also need to run "hostname" to change the rest19:18
roaksoaxshewless: in /etc/maas/preseeds/curtin_userdata try something like thois:http://paste.ubuntu.com/16715744/19:20
shewlessraoksoax: thanks I'll give that a try. I can just edit that file manually?19:25
roaksoaxshewless: yeah19:28
roaksoaxshewless: that's the preseed19:28
roaksoaxshewless: let me konw if that works19:35
roaksoaxshewless: and how are you finding the DHCP snippet feature btw ?19:35
shewlessroaksoax: will let you know. the DHCP snippet worked exactly as expected for the subnet19:39
shewlessroaksoax: for the "node" it just didn't add the snippet at all.. no error.. just didn't add it19:40
shewlessroaksoax: do I have to restart any services to get the preseed to work or just re deploy19:43
roaksoaxshewless: just redeploy IIRC19:43
shewlessroaksoax: trying now.. will keep you posted19:44
shewlessroaksoax: didn't seem to work.. /etc/hostname is not changed19:51
shewlessroaksoax: here is the rsyslog: http://paste.ubuntu.com/1671651519:54
roaksoaxshewless: it doesn't seem like it failed ?19:56
shewlessroaksoax.. you are right... I didn't see anything that appeared to fail19:56
shewlessroaksoax: but at the same time it didn't appear to work19:57
shewlessroaksoax: can I run the userdata thing manually after the fact to see if it worked?20:01
roaksoaxshewless:20:19
roaksoaxroot@acerbic-rufus:/home/ubuntu# echo $(cat /etc/hostname).foo.com > /etc/hostname20:19
roaksoaxroot@acerbic-rufus:/home/ubuntu# hostname -f20:19
roaksoaxacerbic-rufus.maas20:19
roaksoaxshewless: even doing it manually doesn't work20:19
roaksoaxshewless: do you need the hostname of the machine to reflect the hostname ?20:22
shewlessroaksoax: if you check /etc/hostname you'll see it's changed.. on next boot it would work.. or you can do "sudo hostname `cat /etc/hostname`" if you don't want to wait20:22
shewlessroaksoax: but the point is I can see that the preseed didn't change the /etc/hostname file at all for me20:23
roaksoaxshewless: i think that may be because cloud-init change the hostname after first boot20:23
roaksoaxor at least I think that's what is happening20:23
roaksoaxshewless: so you absolutely need the machine to be deploed with such hostname ?20:23
shewlessroaksoax: I agree I saw a bunch of hostname stuff in cloud.cfg on the box20:26
shewlessroaksoax: I do need it. Right now I'm just manually doing it20:26
roaksoaxshewless: the other thing you could do20:26
roaksoaxshewless: is to write a script that change sit or similar20:27
roaksoaxshewless: after cloud-init writes it20:27
roaksoaxshewless: ohhh I have an idea20:28
roaksoaxshewless: let me test it though20:28
shewlessroaksoax: sounds good20:29
roaksoaxshewless: wont work. I was thinking of giving an IP to second NIC, and assigning a DNS name like nodeXX.foo.com20:34
roaksoaxshewless: so you wouldn;t need external DHCP/DNS20:34
roaksoaxshewless: but that won't set the machine's hostname to <hostname>.foo.com20:34
roaksoaxshewless: i'l talk to the team and see if we can prpovide the ability to selcet which interface would get the actualy hostname you are looking for20:35
roaksoaxshewless: but that wont happen till next week20:35
shewlessroaksoax: thanks for the help.  In the mean time I'll just manually set the hostname. I appreciate your help20:36
roaksoaxsorry i couldn't be of more help though20:36
aslaenHello I am not sure I did wrong but I can't get a node to provision.  I have MaaS installed correctly and when I PXE boot a node it pulls IP from MaaS, and starts to bootstrap, but then it stops at "yay system is up!" and doesn't complete the process.22:45
aslaenany ideas?22:45

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