/srv/irclogs.ubuntu.com/2016/11/23/#maas.txt

pmatulisnate_, ask and see00:00
nate_I've been trying to follow the instructions here: https://jujucharms.com/docs/stable/getting-started00:01
nate_But even juju bootstrap localhost lxd-test fails due to the proxy. I can't find any documentation for setting juju to use a proxy, thus I also am unable to deploy to any maas nodes.00:02
vmorrisnate_: i have some info on this00:02
nate_Excellent! I would love to hear it00:03
vmorrisnate_: when you bootstrap your juju controller, use --config=config.yaml where config.yaml contains something like...00:03
vmorrishttp://paste.ubuntu.com/23519637/00:04
vmorristhen all of your juju created machines will pick up the proxy environment variables00:04
pmatulis'--config http-proxy' is prolly what you want00:05
nate_Awesome! Thank you for that. Yes, I need http-proxy, but I need everything listed in that yaml file. I will test this out and let you know how that goes. Is there a default place I can put that to make Juju automatically use those?00:06
pmatulisi don't think so00:08
vmorrisnate_ you can set 'juju model-defaults' though you've gotta have the controller bootstrapped... so you can do it during bootstrap or after00:08
vmorrisbut i agree with pmatulis00:09
nate_So before I've done anything I just need to manually enter it. Got it00:09
vmorrisnate_ actually i'm curious now, you might be able to set model-defaults to something and not have to set the config every time you bootstrap00:11
vmorrisseems to be the purpose of that option00:11
nate_I tried that once before, but it wouldn't let me do it without a model created00:11
vmorris'model-config' or 'model-defaults' ?00:12
vmorrisbecause 'model-defaults' seems to apply to a cloud00:12
vmorrisah 2nd look, i think you're right about that..00:13
nate_I can only do that once I've registered a controller, but I can't register a controller without setting the proxy00:13
vmorrisyep, you'll have to do what I do I suppose then.. pass it in with the config at bootstrap00:14
nate_vmorris unfortunately it didn't work. I still get the error "failed to bootstrap model: cannot start bootstrap instance: unable to get LXD image for ubuntu-xenial: Get https://cloud-images.ubuntu.../index.json: lookup cloud-images.ubuntu.com on... no such host00:15
nate_It appears it doesn't like my corporate DNS? I can't really tell if it's the DNS or the proxy that's the problem.00:16
vmorrisnate_ was this on localhost lxd or the maas cluster?00:16
nate_This was localhost lxd00:16
vmorrisdo you have connectivity to cloud-images.ubuntu.com from there?00:16
vmorrisor do you need to pass through the proxy as well?00:17
vmorrislike, can you run "lxc launch ubuntu-daily:xenial" ?00:18
nate_Using curl I can access cloud-images.ubuntu.com from the maas server (which is localhost), and it's almost certainly using the corporate proxy from my environment variables to do that00:18
nate_But lxc launch ubuntu-daily:xenial failed00:19
nate_Same no such host error00:19
vmorriscan you run 'lxc profile list'00:21
pmatulisnate_, maybe DNS is broken. try 'host cloud-images.ubuntu.com'00:22
nate_NXDOMAIN not found00:22
pmatulisthere you go00:22
nate_But why would it work with curl?00:22
pmatulismaybe it's sucking in a variable somehow00:23
vmorrishttp vs https?00:23
nate_I tested curl with both http and https and they both work fine00:23
vmorrisah nah that wouldn't cause the dns issue00:24
nate_So DNS is broken in some cases, but working in others00:24
vmorrisin my setup here, i had to create my own dns forwarder too :/00:25
pmatulisnate_, if host command gives you brokenness then you really need to debug that. try pointing to what's in /etc/resolv.conf00:26
pmatulishost <name> <resolv.conf-IP>00:26
vmorrisbut that was because maas-controller needed it, lxd localhost shouldn't be an issue00:26
nate_By the way, the maas cluster is fully provisioned, and maas itself isn't having any dns issues00:27
nate_Using the DNS in /etc/resolv.conf, host still returns not found00:28
nate_Yet it's the same IP that was used by curl for DNS00:28
pmatulistry another name? other than cloud-....?00:29
vmorriscurl --dns-ipv4-addr <resolv.conf-IP> cloud-images.ubuntu.com00:30
vmorrisjust to confirm that00:30
nate_curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.00:30
nate_It appears I don't have that feature00:31
vmorrisbummer00:31
vmorrishost google.com ?00:33
nate_Not found00:33
nate_But curl google.com works00:34
nate_maas also has no DNS issues running on this server, and I know it's using the same DNS IP that I am00:35
vmorrisdig google.com ?00:37
nate_It made it00:38
vmorrisi'll guess that 'dig cloud-images.ubuntu.com' also works --00:38
nate_...actually, no, neither worked, sorry00:40
vmorrisaha00:40
nate_; <<>> DiG 9.10.3-P4-Ubuntu <<>> cloud-images.ubuntu.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 10183 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 100:40
nate_ANSWER: 0 means no response, right?00:40
vmorriscorrect00:40
nate_The AUTHORITY section lists the closest corporate DNS to the proxy00:41
nate_And an exchange server00:41
vmorrisat the bottom, you should see SERVER: -- does this match what you have in /etc/resolv.conf?00:42
vmorrisi can't imagine why it wouldn't..00:44
nate_Yes it does.00:44
nate_I just tested this on another ubuntu machine and got the same results. Curl is successful, but host can't find anything00:44
nate_It appears this is the case for all Linux boxes on my intranet.00:45
vmorriscloud-images.ubuntu.com is 91.189.88.141... can you try, just for kicks, 'curl http://91.189.88.141' ?00:46
nate_Yes, that works, same results as curl cloud-images.ubuntu.com00:46
vmorrisah right00:47
vmorrishost 91.189.88.141 ?00:47
vmorrisit's possible that your corporate DNS is not setup for forwarding requests to ubuntu.com :/00:48
nate_Host 141.88.189.91.in-addr.arpa. not found: 3(NXDOMAIN)00:48
vmorrisI should say, forwarding lookup requests to another server for "ubuntu.com"00:50
nate_But then why would curl work fine? I can also access it in the browser with no issues, and maas successfully downloaded images from there as well00:51
vmorrisyeah, it's a strange problem00:52
vmorrisdoes wget work?00:55
pmatulisnate_, try tcpdump on UDP 53 to see what nameserver curl is using. how does it compare to that in resolv.conf00:56
nate_Yes, wget works great.00:57
nate_tcpdump defaults to openstack0 now... That's odd00:58
vmorrisyeah, dump udp 5300:59
nate_Alright. Lots of stuff coming through.01:00
nate_NXDomain does use the same DNS as resolv.conf01:00
vmorrissee if it's different when you run curl vs host01:01
nate_host uses A01:02
nate_I don't actually see anything in there from curl01:02
vmorrisah yeah doesn't curl cache dns?01:03
vmorrishttp://stackoverflow.com/questions/25672005/curl-how-to-set-up-ttl-for-dns-cache-how-to-clear-the-curl-cache01:04
vmorrisdefaults to 60 seconds? i think you'd have noticed a problem by now01:04
nate_Yeah... Though it's odd that curl doesn't show up in my dump01:04
nate_The dns is always getting asked for ntp.ubuntu.com.maas though01:06
nate_And ntp.ubuntu.com as well. So I assume it doesn't have trouble with ubuntu.com01:06
blahdeblahI thought the resolver wasn't supposed to use the search domain for anything containing dots01:07
vmorrispretty strange nate_ ... best of luck sorting it out :/01:09
nate_Thank you!01:10
pmatulisnate_, try strace on curl to see what it's doing (reading files, etc)01:14
nate_pmatulis the output is enormous01:19
nate_I did a search for my DNS IP01:20
nate_I found sin_addr=inet_addr("my.dns.ip.addr")},16) = 001:21
nate_Lots of other connections made to that IP in strace01:22
pmatulisnate_, yet tcpdump does not concur with that right? do you have multiple network interfaces? maybe you applied tcpdump on the wrong one01:35
nate_One network interface that actually goes to the internet, so the success of curl indicates it's using the right one01:35
nate_And the dump didn't have the domain name in it when I ran curl, so I'm not sure01:36
pmatulistry a dump with the failing host command. where does it want to go?01:38
pmatulisand what, exactly, is the full contents of resolv.conf ?01:38
pmatulisto assist with troubleshooting, i'm quite certain that the host command uses neither /etc/nsswitch.conf nor /etc/hosts01:42
balahey02:44
balacan i use maas to provision ubuntu desktop version on bare metal ?02:44
roaksoaxbala: you could install extra packages to install ubuntu destop02:50
roaksoaxbala: or you can use lp:curtinator to create a desktop image02:50
balathank you roaksoax02:51
balacan you share any link which has information installing additional packages for desktop02:52
mupBug #1644071 opened: [SRU] MAAS 2.1.2 <maas (Ubuntu):New> <maas (Ubuntu Xenial):New> <maas (Ubuntu Yakkety):New> <https://launchpad.net/bugs/1644071>02:56
pmatulis'sudo apt install ubuntu-desktop' ? seems that's what worked years ago anyway bala02:56
roaksoaxbala: you could modify /etc/maas/preseeds/curtin_userdata to include something like: http://paste.ubuntu.com/23520222/02:56
=== junaid1 is now known as junaidali
=== junaidali is now known as list
=== list is now known as junaidali
=== junaid is now known as junaidali
=== frankban|afk is now known as frankban
=== zz_CyberJacob is now known as CyberJacob
=== CyberJacob is now known as zz_CyberJacob
mupBug #1644219 opened: MAAS web ui does not display bond parameters <MAAS:New> <https://launchpad.net/bugs/1644219>12:58
mupBug #1644229 opened: MAAS 2.1.1 - Failed to deploy CentOS7 <MAAS:New> <https://launchpad.net/bugs/1644229>13:40
mupBug # changed: 1609975, 1613862, 1621635, 162943014:10
mupBug #1640298 changed: multiple subnets dhcp shared-network does not work with dhcp-relay <MAAS:New> <https://launchpad.net/bugs/1640298>14:40
=== zz_CyberJacob is now known as CyberJacob
mupBug #1644316 opened: maas ui rejects tags containing "." w/o explanation <error-surface> <MAAS:Triaged> <https://launchpad.net/bugs/1644316>17:45
=== frankban is now known as frankban|afk
mupBug #1644345 opened: The region should verify database migrations on start <MAAS:Triaged> <https://launchpad.net/bugs/1644345>19:45
junaidalii have a fresh maas (2.1.2) setup, getting a bunch of errors on commissiong "maasserver.preseed.TemplateNotFoundError: commissioning". Any idea, what might be the issue here?20:51
junaidalithis error too "maasserver.preseed.TemplateNotFoundError: enlist"20:51
junaidalithere aren't any files in /etc/preseeds directory. I think i should try re-installing maas20:54
pmatulisjunaidali, interesting. in 2.1 commissioning templates were removed from their old location20:57
pmatulisroaksoax, ^^^ related to our previous convo?20:58
junaidalipmatulis: where can I find the template file?20:59
junaidalifiles*20:59
pmatulisjunaidali, i think the best bet is to open a bug. i don't know enough to guide you21:03
pmatulishttps://bugs.launchpad.net/maas/+filebug21:03
pmatulisremember to include logs (/var/log/maas/{rackd,regiond,maas}.log)21:05
junaidalithanks pmatulis , opening a bug..21:07
pmatuliswelcome21:08
mupBug #1644354 opened: Unable to enlist or commission new nodes with template related errors <MAAS:New> <https://launchpad.net/bugs/1644354>21:40

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