/srv/irclogs.ubuntu.com/2014/07/04/#maas.txt

=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
CaguaxI am deploying juju on my maas server. I am having an issue with DNS. When I bootstrap the server that is getting bootstrap is getting the ip of the maas server as DNS. I will like to specify The DNS. Any one knows how to do this ?01:12
bigjoolsCaguax: edit the dhcp template01:16
bigjoolsCaguax: did you see myanswer?01:25
Caguaxbigjools: what populates  'dns_server'  on the dhcp.template option domain-name-servers {{dhcp_subnet['dns_servers']}};01:26
bigjoolsCaguax: just remove everything from {{ to }} and put your desired IP in01:26
bigjoolsnormally the region calculates the value depending on your region's external facing IP01:27
Caguaxbigjools: ok, I think that would do the trick, but should named be running ?01:28
bigjoolsCaguax: if you installed maas-dns, it starts it up01:28
bigjoolsif you're using an external DNS service, you don't need that01:28
Caguaxbigjools: I think I did install maas-dns...any way I can verify ?01:28
bigjoolsdpkg -l maas-dns01:29
Caguaxbigjools: I ran apt-get install maas-dns and it return 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.01:29
bigjoolsit's installed01:29
bigjoolsit's not hurting anything01:30
CaguaxI thought that when I choose to manage an interface and use dhcp+dns, the maas server will be use as a relay. I am just trying to understand why is not working when I use manage interface w/ dhcp+dns and the dns server ip that is hand off is the maas server ip01:34
bigjoolswhat is not working, exactly?01:34
bigjoolsand which version of maas are you using?01:35
CaguaxWhen I deploy a node the ip that it uses for dns is the maas server. And the node can't resolve names. I am using the latest from trusty01:40
bigjoolsit should work fine if you set dhcp+dns management on the cluster interface01:41
bigjoolsummm01:41
bigjoolscan you check the zone file and see if it's correct01:41
CaguaxYep that what I thought...but I am missing something :(01:41
bigjoolsit should have a CNAME in it for the node01:41
Caguaxit does..let be try to bootstrap juju and try again01:48
Caguaxzone.cisco.com:luflores-juju IN CNAME 10-122-229-11301:48
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
Caguaxbigjools: you still there ?03:15
bigjoolsCaguax: yeah03:23
Caguaxbigjools: The is that I am getting ServFail, this tcpdump...http://paste.openstack.org/show/85464/03:31
bigjoolsthat's pretty unintelligible03:33
Caguaxbigjools: My maas server is 10.122.229.25 and the upstream DNS is 172.18.106.25...It looks like it gets response but it is not pass to the node 10.122.229.11303:33
bigjoolshow are you querying the dns server?03:33
CaguaxI ssh to the node (10.122.229.113) and do a nslookup www.cisco.com03:34
bigjoolsdid you set the forwarders on the maas dns server?03:37
CaguaxYes, 'Upstream DNS used to resolved domain not managed by this MAAS'03:38
Caguaxand it looks it use it, base on the tcpdump03:39
bigjoolsok03:40
bigjoolsummm, not sure what's up then, the dns server is configured ok03:41
bigjoolsdoesn't seem like a maas problem per-se03:41
bigjoolscan you do the same lookup from the 10.122.229.25 host itself?03:41
CaguaxYes, on the MAAS server it work fine03:47
bigjoolsso you may have a firewall problem?03:47
Caguaxhttps://gist.github.com/luflores/eae5459783c3914be01003:47
bigjoolscan you do any local lookups on the node?03:47
CaguaxMAAS and Node are on the same lan, no FWs03:48
bigjoolsI have the same set up here and it all works ok so I'm not sure how I can help :(03:49
bigjoolscan you look up the node's own DNS from itself?03:49
Caguaxon the node nslookup to localhost fails too...here how it looks03:51
Caguaxhttps://gist.github.com/luflores/decfdb9a6d05262e109903:51
Caguaxbigjools: Thanks for all the help so far....it is kinda later here...I am going to sleep this one off and cont. tomorrow03:54
Caguaxthanks gain03:54
bigjoolsCaguax: ok np03:55
bigjoolsCaguax: wait - the node is looking up on localhost?03:55
bigjoolsah03:55
bigjoolsCaguax: can you do "nslookup luflores-juju" on luflores-juju03:55
CaguaxThat fails too :(03:56
bigjoolsthere's your problem then03:56
bigjoolsthere must be some firewalling or something else getting in the way, replies are not getting back to your node03:56
CaguaxLet me think about it....and troubleshoot it a bit more03:57
CaguaxI'll connect later tomorrow now post my findings03:58
bigjoolsok.  I am UTC+10 so I won't be around early, assuming you're a Californian :)03:58
CaguaxI am US East Coast :)04:00
Caguaxso bit late here04:00
bigjoolsoh, well, yes it is late then04:01
Caguaxgood night :)04:01
bigjoolsnight04:01
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== vladk is now known as vladk|offline
rvbabigjools: I was wondering where the error message "Static IP Address with this Ip already exists." was coming from… but now I realized it a message generate by Django because the field 'ip' on StaticIPAddress is unique…07:14
rvbait's*07:15
bigjoolsrvba: yes I guessed it was a Django message from the weird capitalisation07:15
rvbaYep :)07:15
bigjoolshence my questions to Andreas07:15
=== vladk|offline is now known as vladk
rvbabigjools: https://code.launchpad.net/~rvb/maas/fix-cap-static-ip/+merge/22560607:22
bigjoolsrvba: approved with remark :)07:24
rvbabigjools: yeah, I hesitated to make it just 'IP'.  But it doesn't seem right to me.07:24
bigjoolsrvba: it seems perfect to me07:25
rvbaIP = the protocol07:25
bigjoolsit's the field verbose name07:25
rvbaIP address = … the IP address07:25
bigjoolsnot the works of Shakespeare07:26
bigjools;)07:26
rvbaheh07:26
rvbaWell, okay…  I don't care so much as long as it's properly capitalized.07:26
=== jfarschman is now known as MilesDenver
=== CyberJacob is now known as CyberJacob|Away
=== jfarschman is now known as MilesDenver
rvbajtv: gmb: I found other spurious test failures but they happen infrequently: maybe you'll see what's wrong by looking at the stacktrace: http://paste.ubuntu.com/7745766/ and http://paste.ubuntu.com/7741493/09:08
* gmb looks09:08
gmbrvba: That looks like an isolation problem at first glance.09:09
gmbBut I don’t know OTTOMH why it’s happening.09:09
rvbagmb: that would explain why I can't seem to recreate the problems when I run just the failing test.09:10
gmbYeah.09:10
rvbaOn the other hand, the entire DB should be wiped out between tests.09:11
gmbIndeed.09:15
=== jfarschman is now known as MilesDenver
bigjoolsright test case being used?09:45
gmbjtv: I’ve updated https://code.launchpad.net/~gmb/maas/fix-guess_server_address/+merge/225164, if you have the time or brain power.09:47
rvbabigjools: yes, it's using APITestCase which derives from MAASServerTestCase.09:49
=== jfarschman is now known as MilesDenver
gmbrvba: Are you still investigating that isolation weirdness?11:03
gmbAny luck?11:03
rvbagmb: no, I want to test my DNS thingy first.  (I've been running the test in isolation for hours and it didn't fail so it *really* looks like an isolation problem)11:04
gmbrvba: I’m r-o-u-f -ing the test module, but still nothing.11:05
* gmb switches to r-o-u-f -ing maasserver.tests11:06
rvbaI'll go back to r-o-u-f -ing make test11:06
* gmb lunch11:11
gmbMight as well since this is just loop-de-looping11:12
bigjoolsrvba, gmb, allenap, jtv: how are things looking for a beta of 1.6 on Monay?11:36
bigjoolsMonday.  /me whacks D key11:36
rvbaallenap: what about the problem Andreas had?  The one about having to re-download all the images?11:37
jtvbigjools: I can hold the branch I've got ready, and land it after.11:37
jtv(It's not ready for production until the follow-up branches land.)11:38
bigjoolsjtv: ok11:38
bigjoolsjtv: I will cut a new release branch anyway11:38
rvbabigjools: I think we need to do a bit more upgrade testing (I'm doing part of this QA right now) to be confident the release is going to be solid.  But I guess that's probably okay for a beta release.  What do you say?11:39
bigjoolsrvba: yes11:39
bigjoolsthat's the intention of a beta11:39
bigjoolsI need to know in more detail what happened to boot resources between 1.5 and 1.611:39
rvbaI agree.  Hence my question to allenap who was looking into it (I think).11:40
=== jfarschman is now known as MilesDenver
allenaprvba: I’ve not been able to figure out why that might have happened during upgrade. Nothing in the code or packaging looks likely to have done it, but I’ll try to recreate it this afternoon.11:43
rvbaallenap: cool, thanks.11:43
allenaprvba, bigjools: It’s not nice, but I don’t think it’s a blocker.11:43
bigjoolswhat happened apart from moving the config out?11:44
bigjoolsanything?11:44
rvbaWhen Andreas upgraded he apparently "lost" all the alread-downloaded images.11:45
rvbaalready*11:45
bigjoolsno I mean in the coe11:45
bigjoolscode11:45
bigjoolsdammit D key11:45
allenapbigjools: An extra layer was added to the directory hierarchy for boot resources apparently.11:45
bigjoolsoh - OS?11:45
bigjoolsand no migration script was written I suppose11:46
allenapI’m trying to figure that out.11:46
bigjoolsok thanks allenap11:47
rvbaallenap: I just upgraded from 1.5.1 to 1.6 (I'm testing something related to DNS) and I "lost" my images too.12:11
rvbaallenap: when I hit "import boot images", I got all the images reported *instantly*… which seems to indicate the images can be found where they are, it's just a matter of forcing a report or something.12:18
allenaprvba: That’s good, and makes sense. Now, what do we do about that for 1.6? Can we prompt MAAS to do a report from the command-line, and thus the postinst?12:22
rvbaallenap: something doesn't make sense to me: why are the existing images (in the DB) wiped out during upgrade?12:22
allenaprvba: My guess is that the importer needs to run again to create the new directory structure... which would mean we have to run the importer (not just the reporter).12:25
rvbaallenap: hang on, I forgot something: to speed things up I have a script that keeps a copy of the bootresource dir and restores it each time I install a new MAAS package.  I guess this means I didn't really test what a real user would experiment.12:27
rvbaallenap: I guess you need to try a real upgrade to see what happens.12:28
allenaprvba: Okay.12:28
rvbaallenap: if you try it on canonistack, do not forget to move /var/lib/maas/boot-resources to /mnt otherwise you won't be able to import the images (/ is too small for that).12:32
allenaprvba: Ta. I’m going to try it at home first.12:33
rvba(I usually use canonistack when testing things related to the images because the import is much faster there)12:33
allenaprvba: It always takes me about 5 hours to actually get a usable instance there :-.12:34
allenap:-/ even12:34
rvbaI really need to polish and then publish the scripts I use for this.  All it takes is one command and 5 minutes of waiting.12:35
=== jfarschman is now known as MilesDenver
* gmb -> afk for a bit12:49
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== vladk is now known as vladk|offline
LiveOneHI!14:29
=== wallyworld is now known as Guest27426
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
d4rkn3tHello everyone, please I need help on MaaS, and bind9. The problem is when I try to make the bootstrap of the node via Juju the command ssh has an error in the connection session, Bind not resolve the hostname. If I try to use ssh with the node's IP it works. Is there someone can help me, please?15:23
rvbad4rkn3t: Can you test if the MAAS DNS server can resolve your node's hostname by running this on the MAAS server:  `host <hostname>.<domain> localhost`15:34
d4rkn3trvba:  I've not set a domain, I've set just the hostname on /etc/hosts file on Region Controller.15:36
rvbad4rkn3t: Do you mean that you're not using MAAS' DNS server?15:36
d4rkn3tI use it, I've set it on the cluster section the interface in "Manage DHCP and DNS"15:38
d4rkn3trvba: and I see the zone in /etc/bind/maas/..... If I try to add the hostname with its IP on hosts file it works15:39
rvbad4rkn3t: the point of the DNS server is that you don't have to fiddle with /etc/hosts.15:40
rvbad4rkn3t: the domain by default is '.maas'.15:41
d4rkn3tit's right,15:41
d4rkn3tif I edit a zone I see this "@   IN    SOA maas. nobody.example.com. (15:42
d4rkn3t              0000000115 ; serial15:42
d4rkn3t              600 ; Refresh15:42
d4rkn3t              1800 ; Retry15:42
d4rkn3t              604800 ; Expire15:42
d4rkn3t              300 ; TTL15:42
d4rkn3t              )15:42
d4rkn3t"15:42
rvbaMAAS manages the zone file itself.  You shouldn't have to change it manually.15:42
d4rkn3tyou right, but it not works I've also try to start the node without use Juju trying to connect via ssh used one time the IP, and it's works, then used hostname and it's not works15:44
rvbaBack to my original suggestion, can you try running the command I pasted above?15:46
d4rkn3trvba: ok, the command used in juju is this "ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/richardsith/.juju/ssh/juju_id_rsa -i /home/richardsith/.ssh/id_rsa ubuntu@MaaSCCSvr1Node1 /bin/bash"15:48
d4rkn3tif I try to run it changing the hostname "@MaaSCCSvr1Node1" with its IP the ssh connection works15:49
LiveOneHi.. u suggest using MAAS and JuJu to manage Openstack ?  good route for baremetal offsite dedicated severs15:49
LiveOneprivate/public15:49
rvbad4rkn3t: I understand; now we need to make sure MAAS' DNS server is working as expected; to do that I suggest running the command I pasted above.15:50
d4rkn3trvba: ops without "@"15:50
d4rkn3thost MaaSCCSvr1Node1. localhost15:52
d4rkn3tUsing domain server:15:52
d4rkn3tName: localhost15:52
d4rkn3tAddress: ::1#5315:52
d4rkn3tAliases:15:52
d4rkn3tHost MaaSCCSvr1Node1. not found: 3(NXDOMAIN)15:52
rvbad4rkn3t: you need to use the default domain 'maas'.  host MaaSCCSvr1Node1.maas localhost15:53
d4rkn3trvba: ops sorry the result is this "host MaaSCCSvr1Node1.maas localhost15:53
d4rkn3tUsing domain server:15:53
d4rkn3tName: localhost15:53
d4rkn3tAddress: ::1#5315:53
d4rkn3tAliases:15:53
d4rkn3tMaaSCCSvr1Node1.maas is an alias for 1-1-2-21.maas.15:53
d4rkn3t1-1-2-21.maas has address 1.1.2.2115:53
d4rkn3t"15:53
rvbaOkay, so the DNS server works fine.15:53
d4rkn3trvba: where is the problem????15:54
rvbaNow, on the machine where you run Juju, you need to edit /etc/resolv.conf to add 'nameserver <IP of the MAAS server>'15:54
rvbaThis way, Juju will use MAAS' DNS server to resolve the node's IPs.15:55
d4rkn3tI've done it15:56
d4rkn3tbut Juju and MaaS are installed on the same machine15:56
rvbad4rkn3t: it's not clear to me why Juju doesn't seem to be using the domain 'maas' but an easy workaround is to add 'search maas' at the top of your resolv.conf file.15:59
rvbad4rkn3t: if they are on the same machine then you need to put 'nameserver 127.0.0.1' in resolv.conf16:01
d4rkn3tI'm trying to change the nameserver16:04
d4rkn3twait, I want to explain which the virtual environment is: I've created a VM as Region Cluster and 2 VM as Cluster Controller then I've added 2 node to RC. After to changed their status in ready I've installed juju on RC and run the command to bootstrap the node16:10
d4rkn3trvba: I've resolved that....I've added 127.0.0.1 on RC and then add .maas on FQDN....thanks a lot for your support16:30
=== jfarschman is now known as MilesDenver
rvbad4rkn3t: welcome16:40
=== jfarschman is now known as MilesDenver
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== roadmr is now known as roadmr_afk
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== roadmr_afk is now known as roadmr
=== jfarschman is now known as MilesDenver
=== vladk is now known as vladk|offline
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== CyberJacob|Away is now known as CyberJacob

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