/srv/irclogs.ubuntu.com/2015/06/09/#maas.txt

=== cgseller_is_away is now known as imthewherd
=== zz_CyberJacob is now known as CyberJacob
masumotokHello, I am newvie for maas, now I got an error  "maas <profie>  boot-resources  import". In /var/log/maas/maas.log, I got "[WARNING] Finished importing boot images, the region does not have any boot images available.". The http-proxy exists in my network and thus, it requires user/password authentication. I would like to set HTTP_PROXY to maas. Does anyone know how?06:55
=== CyberJacob is now known as zz_CyberJacob
=== wojdev_ is now known as wojdev
masumotokMAAS seems like not accepting "http_proxy=http://<username>:<password>/ipaddr:port" style parameter, as declared <http://askubuntu.com/questions/618657/maas-cant-download-boot-images>. Anyone know the tips?07:56
mupBug #1463378 opened: Downloaded di-initrd on trusty/amd64 overrides /etc/network/interfaces <canonical-bootstack> <MAAS:New> <https://launchpad.net/bugs/1463378>12:08
vibolHello!..14:00
vibolI'm importing boot image on Maas but the static in web gui still in "Qeued in download"14:00
kikovibol, 1.5 or 1.7?14:01
viboler.. sorr please wait14:01
viboli'm installion from ppa:maas-maintainer/stable14:01
vibol@@ anyway really sorry how to check maas version @kiko ?14:04
vibol1.7.5 @kiko14:05
kikohmm14:07
kikointeresting14:07
kikovibol, are you behind a proxy?14:07
viboli'm no...14:07
vibolbut i notices14:07
vibolsome repositry of my ubuntu kinda slow14:07
kikoif you look at *.log in /var/log/maas you'll get an idea of what is happening14:07
kikoif there are timeouts or similar14:08
vibolhttp://paste.ubuntu.com/11672885/14:11
vibol [INFO] Started importing boot image14:11
vibol[WARNING] Finished importing boot images, the region does not have any boot images available.14:11
vibolWARNING] No boot images have been imported from the region.14:11
vibolStill have no idea @kiko14:11
kikovibol, the region controller downloads the images first, and then the cluster controller downloads them from the region14:13
kikovibol, so what's happening is that the region controller is unable to download the images14:14
kikovibol, can you confirm you can access the internet from the region controller machine?14:14
vibolI don't have reqion controllor machine yet maybe @@14:14
vibolshould i install maas-region-controller etc ?14:15
kikovibol, i.e. can you go to streams.ubuntu.com https://cloud-images.ubuntu.com/releases/streams/v1/ ?14:15
kikoah14:15
vibolyeb it accessable14:15
kikovibol, you probably do have the region controller package installed in a single machine then14:15
kikothe region controller hosts the UI14:15
kikoso if you have web UI the region controller is running14:16
viboli'm follow from ubuntu.com/cloud14:16
kikoI assume you did an apt-get install maas, yes?14:16
vibolyeb14:16
vibol!!14:16
kikookay14:16
kikoso for some reason the maas region isn't able to download images14:17
kikowhat does maas.host/images say?14:17
vibolkiko ... but.14:18
vibol"maas-region-controller is already the newest version."14:18
kikovibol, yes, you're fine14:18
kikothe region is present14:18
kikoso the issue is to do with the region not being able to download for whatever reason14:18
vibolyeb14:19
kikovibol, was this a fresh install?14:19
vibolyeb..14:19
vibolfirst i install ubuntu server and start add ppa14:19
vibolapt install maas14:19
viboli follow on http://www.ubuntu.com/download/cloud/install-ubuntu-openstack14:19
kikookay14:20
vibolin /var/log/maas14:20
vibolonly file apache2  maas-django.log  maas.log  oops  proxy  pserv.log  rsyslog14:20
vibolare present14:20
viboli'm install ubuntu on vmware to do this...14:21
vibol@kiko i'm thank for you hlep14:32
vibol80% maybe internet connection14:32
kikovibol, do you get a spinner on the /images page?14:36
kikoperhaps share a screenshot?14:36
viboli have access http://maas.ubuntu.com/images/ephemeral-v2/releases/ in the log14:37
vibolbut i can't download any file14:37
kikovibol, oh, what happens if you download?15:03
vibolserver error15:03
vibolit from my ips i think15:03
vibol@kiko15:05
kikovibol, so that's your problem right there. I wonder why15:06
kikovibol, ah, perhaps you have a transparent proxy affecting your traffic?15:06
vibolhmm i'm not really sure15:07
vibolbut i don't use any proxy right here15:07
viboli try to use another connection to confrim the problem but i need to be at my school lol...15:07
=== imthewherd is now known as cgseller_is_away
bdxHows it going everyone?18:36
bdxI'm wondering if someone can aid me in identifying the root-path-string of the iscsi service running on maas18:36
bdx????^^^^18:37
kikobdx, hmm, maybe we can, but why do you want to know? :)18:37
bdxkiko: I think I found what may work by running sudo iscsiadm -m discovery -t st -p <maas-server-ip>18:38
kikobdx, are you having to gateway the iscsi traffic? or something else?18:39
bdxkiko: I am trying desperately to get maas to work with our companys existing dns/dhcp configuration18:39
kikoah.18:39
kikothat is indeed a common challenge18:39
kikoI'm clueless, though -- why do you need the iSCSI root-path? oh, because that's what the DHCP server needs to supply back?18:40
kikobdx, have you tried looking at the generated dhcpd.conf?18:40
kikoand fragments?18:40
bdxkiko: exactly18:40
bdxyea....thats what I have based my external dhcp config off of18:41
kikobut that's missing, is that it? it's in the host maps?18:41
* kiko can't remember18:41
bdxI can get nodes to enlist and commission successfully18:41
bdxhttps://www.dropbox.com/s/916u59gqoetlt7a/Screenshot%202015-06-09%2011.42.18.png?dl=018:42
bdxkiko: I'm thinking its got to be 10.16.0.2:3260,1 iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-trusty-daily18:44
kikobdx, have you tried looking at the console of a node booting? but that does look correct18:45
bdxkiko: yes.... I can verify that the logs and console show the iscsi url18:48
bdxI am now thinking because the node enlists and commissions, that iscsi-root-path might not even be my issue18:49
kikookay, try kicking off a run and seeing if it works18:49
bdxmy bad18:49
bdxyea18:49
bdxI am at a total loss18:49
bdxI have been trying at this for quite a while...like a few weeks18:49
kikowow, you should have come asking for help earlier!18:50
kikoanyway, tell us where you are stuck next18:50
bdxkiko: so...I can successfully enlist and commission nodes in maas18:51
bdxI am using pfsense for dhcp and have it configured to update my dns when it hands out addresses18:51
kikoso far so good18:51
kikowhat's up with deploying?18:51
bdxkiko: when I deploy a node that is in "ready" state in maas, the node seems to commission itself, and power off....soon after I get a "deployment failed" status18:53
kikobdx, okay, you need to look at the node log or console to see what's up18:53
bdxkiko: Ok...the console shows that of commissioning a node18:54
kikowell, you're not commissioning any more18:54
kikonow you're deploying18:54
kikocommissioning doesn't touch the drives18:54
bdxyea....but the node is commissioning when I try to deploy18:55
bdxok18:55
kikoah18:55
kikothat is an interesting hint18:55
kikoblake_r, what do we supply to the node when we are deploying in terms of iscsi path?18:55
kikobdx, if you can find that out (do you have a parallel install with managed dhcp/dns) then we don't need to wait for blake_r18:56
blake_rkiko: the DHCP or DNS server does not provide this information, it comes from the PXE request18:56
blake_rkiko: that information is sent to the linux kernel using kernel parameters in the pxelinux.cfg that the server requests once it loads pxelinux.018:57
kikoblake_r, okay, so we basically write out a pxelinux.cfg that is specific to commissioning or deployment?18:58
blake_rkiko: its includes the maas server ip address and the iscsi target to mount18:58
kikoblake_r, I wonder if bdx is trying to do something he doesn't need to18:58
blake_rkiko: yes it is specific, based on the state of the node and the node18:58
kikogotcha18:58
kikobdx, ^^18:58
bdxkiko, blake_r: what could this indicate in my situation?18:59
kikobdx, where are you putting the iscsi target and why?18:59
bdxkiko: no where yet19:00
kikobdx, how do you know it's commissioning instead of deploying?19:00
bdxkiko, blake_r: because the console shows what it shows when I commission a node19:00
blake_rbdx: commissiong and deploying look the same watching the console of the node, its very similar19:01
blake_rbdx: they both load ubuntu over pxe19:01
bdxtotally....I have been using maas for dhcp/dns in my test lab for a while...I'v watched the commissioning and boot console many a time:-)19:02
bdxI am now trying to move the setup to our production environment where external dhcp/dns must be used19:03
kikobdx, can you take a screenshot of the console in both commissioning and deployment so we can spot the issue?19:04
kikoideally including what pxelinux is doing19:04
kikoperhaps that's more like a movie :)19:04
bdxkiko, blake_r: I can't say for sure that the node is "commissioning" instead of "deploying".....the console just shows the output of a commissioning ....but it could be a deploy that gets interrupted im thinking19:05
kikoyes19:05
kikothough the console will tell you what is going wrong -- i.e. for instance, the node is unable to download packages, etc19:05
bdxyeah....give me a minute....what is easiest...periscope, meerkat, youknow?19:06
bdxI guess youtube probably19:06
kikoI don't actually know, but it needs to be readable 8)19:06
bdxok....I'll take a video ...give me 519:06
kikosure19:11
bdxkiko, blake_r: here is a video of a node commissioning https://files.darkhorse.com/_RLGdv3A9r2RStR19:20
bdxkiko: blake_r: here is a deployment https://files.darkhorse.com/_vZGMW6SjX2lSPR19:20
kikobdx, hmm, so slow for me to download.. 10 mins!19:25
bdxiphone -> hdvideo19:29
bdxill render them smaller here19:29
bdxhttps://files.darkhorse.com/_rWG14-Ti-23SnR19:30
bdxhttps://files.darkhorse.com/_GQH8XCCdS2FS5R19:31
kiko2/3 gone, now I will wait!19:31
bdxlol19:31
blake_rbdx: the extract of the image failes19:33
blake_rbdx: check MAAS you should have an installation log19:33
blake_rbdx: on the node details page19:34
blake_rbdx: it will give you the error19:34
bdxomg I've overlooked the install log button for so long....grrr19:35
blake_r10.0.3.1 is that your MAAS server address that a node can access?19:35
blake_rbdx: says no route to host19:36
bdxno...that is a lxcbr0 created by juju....omg the install log shows all19:36
bdxhttp://paste.ubuntu.com/11678270/19:36
bdxI wonder why it is trying to use that19:36
blake_rsudo dpkg-reconfigure maas-cluster-controller19:36
blake_rcheck that19:36
kikoyep19:36
bdxit is set correctly to "http://10.16.0.2/MAAS"19:37
kikobdx, does grep 10.0.3.1 /etc/maas return anything?19:38
blake_rI think maas gets that ip address from the initial PXE request from the client19:38
bdxpossibly I should just delete the unused interface for 10.0.3.0/24 in my cluster interfaces19:38
blake_rit looks at the ip address the request comes in on19:38
blake_ris it routed through the bridge?19:38
bdxhttps://www.dropbox.com/s/8re057l9pgw8guj/Screenshot%202015-06-09%2012.38.40.png?dl=019:39
kikoblake_r, that can't make sense, the video shows the node booting on the 10.16 network no?19:40
kiko10.16.0.115 is the IP it got, the server is 10.16.0.419:40
kikobdx, does grep 10.0.3.1 /etc/maas return anything?19:40
blake_rkiko: ah no I am wrong19:40
blake_rkiko: this actually comes from the region19:41
kikoah19:41
blake_rkiko: its because he has it them all set to unmanaged19:42
blake_rkiko: the region is then trying to say okay from this node, where should we say to get the images19:42
bdxkiko, blake_r: I removed lxcbr0 - 10.0.3.0 net from the maas server a while ago.... although it looks like I never removed it from the maas cluster interfaces19:42
blake_rkiko: since noe are managed it just makes the best guess.....19:43
bdxkiko, blake_r: I should probably remove 10.0.3.0 from my cluster interfaces and retry a deploy yea?19:43
kikoblake_r, of course19:43
blake_rkiko: which is not the correct guess19:43
blake_rbdx: yes19:43
kikobdx, how do we tell maas to give it this interface, specifically :)19:43
blake_rkiko: the region does it best, but since its not managing the DHCP it cannot determine what ip address this node has, since the DHCP is not managed by maas19:44
bdxkiko, blake_r: seeing as the interface is unmanaged and it never posed an issue while maas was managing dns/dhcp....I guess I never payed it any attention19:44
blake_rbdx: just delete all interfaces, except the one you want the nodes to communicate on19:45
bdxdone.19:45
blake_rbdx: yeah I bet that will work for you, let me know19:45
bdxwill do... omp19:45
bdxblake_r, kiko: It worked19:56
blake_rbdx: great!19:56
bdx:-):-)19:56
bdxI am so releived...this has been plaguing me....and to think the install log was starring me in the face the whole time19:57
bdxkiko, blake_r: THANK YOU19:58
bdxx1019:58
bdxx100019:58
blake_rbdx: your welcome19:58
bdxkiko, blake_r: It seems the node was given the hostname "ubuntu"19:59
bdxkiko, blake_r: Is this something I should resolve with a cloud-init post-deploy config script or a modification to the preseed?20:00
blake_rbdx: no cloud-init and maas already do that for you20:00
blake_rbdx: it should get the same name as the name in MAAS20:00
blake_rbdx: are you able to ssh in to the machine?20:00
blake_rbdx: cloud-init might have failed20:00
bdxyeah...by hostname20:01
bdxssh ubuntu@ubuntu.tfawint.com20:01
blake_ron the machine is the hostname "ubuntu" or just in your dns server?20:01
blake_rwhats the output of hostname on the server?20:01
bdxahhh...when I ssh into the machine it shows its hostname from maas....just dns gets an entry for ubuntu.tfawint.com instead of excited-battle.tfawint.com20:02
blake_ryeah that is something to do with your dns server then20:02
blake_rsince your not using maas dns20:02
bdxI see....the dns server was getting the correct fqdn entries created when a node commissions20:03
blake_rthat is probably because the server DHCP before it sets it hostname20:04
blake_rit needs an IP address before it can contact MAAS for cloud-init data20:04
blake_ra reboot of the server might fix your DNS server20:04
bdxtotally....I'll reboot all servers and see what I can't figure out on my own.....I'll let you guys know if I get stuck again.....thanks again for your help20:06
bdxblake_r: rebooting the deployed node forced the correct entry to be created with the correct fqdn!20:10
blake_rbdx: awesome20:11
kikobdx, cool, happy you sorted it out20:18
kikoblake_r, should I file a bug to cover that use case? it is so obvious in hindsight20:18
blake_rkiko: yeah20:18
kikokrad20:18
kikoblake_r, do you know where the code that "guesses" the interface is?20:20
kikoblake_r, I'm trying to get some context to help me file a bug summary with less than 200 lines20:20
blake_rkiko: yep20:21
blake_rkiko: one second20:21
blake_rkiko: http://bazaar.launchpad.net/~maas-committers/maas/trunk/view/head:/src/maasserver/preseed.py#L58820:21
kikohow about20:22
kiko"Deploying from a multi-homed cluster controller with external DHCP/DNS fails by giving the machine the wrong IP for the cluster controller"20:22
kikothat comment is interesting20:22
blake_rmulti-homes? I would say, "with multiple unmanaged interfaces"20:23
bdxblake_r, kilo: wow, so the multiple unmanaged interfaces is a documented bug then?20:27
bdxkiko*20:27
kikonot documented yet20:27
kikobut soon :)20:27
kikobdx, I'm curious why a machine on 10.16.0.0 couldn't reach the lxcbr0 interface. was it firewalled off?20:27
kikooh, it doesn't route though the cluster controller, that's why20:28
bdxkiko: I had deleted lxcbr0 a while back...it hasn't existed for > 2 months20:28
bdxat the os level20:29
kikoI see20:29
kikois the cluster controller the router?20:29
kikoif it isn't, it wouldn't have worked anyway :)20:29
bdxno....I have vlans trunked in on my maas-controller eth0....from when I was trying to deploy openstack and use multiple nets.20:30
bdxkiko, blake_r: unfortunately I have not had any luck deploying anything when using > 1 interface managed by maas20:32
kikobdx, interesting, that may be yet another bug20:32
mupBug #1463555 opened: Deploying from a multi-homed cluster controller with external DHCP/DNS fails by giving the machine the wrong IP for the cluster controller <MAAS:New> <https://launchpad.net/bugs/1463555>20:33
blake_rbdx: can you give more detail information on what you mean?20:33
bdxkiko, blake_r: My workaround was to use external dhcp for all nets that maas was not managing.20:33
kikobdx, blake_r: it may stem from the same naive algorithm that code uses20:34
blake_rkiko: maybe'20:35
kikoit seems to think it's a good idea to search through the IPs on the cluster20:35
blake_rbdx: can you give an example configuration20:35
kikoinstead of trying to match the IP the node is asking on20:35
kikothat's a recipe for badness20:35
blake_rkiko: yeah we actually know the ip address the node is requesting on the cluster, that just needs to be passed to the region to generate the preseed20:36
kikoexactly20:36
kikoblake_r, add a comment to that effect in the bug maybe20:36
kikoand bdx your comments welcome as well20:36
bdxkiko, blake_r: Lets say I have storage nodes that need secondary interfaces on a replication net....If I were to add maas managed dhcp on the net which the nodes secondary interface lives...in order to have that interface get an ip when the node boots ....20:36
bdxkiko, blake_r: enlistment and commissioning completely fail20:37
bdxkiko: thanks20:38
blake_rbdx: so you have MAAS providing DHCP on two interfaces? in different subnets, and that fails if a node is on both those interfaces?20:38
blake_rbdx: do you have any logs or anything for this error?20:39
bdxblake_r: true true20:39
bdxblake_r: I could have them fairly easily20:39
blake_rbdx: that would be helpful, if you could file a bug with that information20:40
bdxblake_r, kiko: I'll file a bug concerning that issue.....I feel this is one of the biggest disconnects between juju <-> maas. Juju encourages through charm config params the use of multiple networks in many charms20:42
kikoright, which MAAS doesn't get very right20:42
kikoblake_r, again, I think it may stem from the same bad code20:42
bdxtrue20:42
kikoif we try and hunt through interfaces without taking into account the requesting IP..20:42
kikookay I need to split20:42
* kiko waves20:43
=== jfarschman is now known as MilesDenver
=== kev is now known as Guest95002
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver

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