/srv/irclogs.ubuntu.com/2014/01/16/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
=== CyberJacob|Away is now known as CyberJacob
=== mwhudson is now known as zz_mwhudson
=== jam1 is now known as jam
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
rvbajtv1: default zone branch is up for review https://code.launchpad.net/~rvb/maas/default-zone/+merge/20063509:56
rvbajtv1: I'm reviewing your maas-test branch now09:56
jtv1Thanks.  I'll have a look at yours.09:56
rvbaTa.09:57
rvbajtv1: gmb there is still something left to do with the AZ stuff: update the documentation (to account for the default zone thingy) and add a node saying this feature is only available in the version published in Trusty.10:55
rvbas/node/note/10:55
jtv1Ah great.10:57
tomixxxhi regarding )<matsubara>tomixxx, https://help.ubuntu.com/community/Installation/FromUSBStick#live-usb from yesterday: does this mean i have to INSTALL ubuntu on my nodes ?13:29
=== jtv1 is now known as jtv
jtvtomixxx: no, you shouldn't have to do that.  Misunderstanding?13:32
jtvOn your servers though, yes please.  :-)13:32
jtvroaksoax: turns out we got unlucky and cut the Trusty package just when we had that one script briefly in the wrong package.  What do I need to do to set that right?13:33
tomixxxjtv: i have one server and 2 nodes. the server has both, windows 7 and ubuntu server tls 12.04.3 installed, the 2 nodes have only windows 7 installed13:34
roaksoaxjtv: i already have the fix for it. it is just a simple Conflicts/Breaks13:35
jtvtomixxx: maas installs ubuntu on the nodes remotely (by netbooting them into install images)13:35
tomixxxjtv: y, but woke-on-lan is not working correclty, so my maas-server cannot boot the nodes13:35
jtvThat's annoying.  If they can still netboot, you can turn them on manually — but it's not going to be as nice.13:36
jtv(Wake-on-LAN also has the problem that it can't power nodes down again)13:37
tomixxxbut if i start the nodes manually, nothing happens, except windows 7 is starting13:37
tomixxxand the nodes tay "commissioning" in maas web interface13:37
jtvAre they set up to boot off PXE?13:37
tomixxxgood point13:38
jtvWhat happens there is: MAAS has tried to power the node up, and expects the node to netboot off the server.13:38
tomixxxi understand, i will check boot order of my nodes13:38
jtvVery important.  :)13:38
jtvBTW be aware that that will install the system right over the nodes' existing OS.13:38
jtvSo make sure there's nothing on those nodes' disks that you want to keep!13:39
tomixxxkk13:39
tomixxxhmm i cannot select booting from network in bios/boot options13:42
jtvOuch.13:42
jtvDoes it say why not?  Or is the option just not there?13:42
tomixxxoption is not there13:43
jtvMaybe the BIOS has a separate option where you need to enable netbooting first, before it shows up in the boot order at all?13:43
tomixxxkk, will check13:43
tomixxxthere is an option "onboard lan boot rom" -> "disabled"13:46
tomixxxoh, sth going on here after "enabled" this option13:48
jtv?13:49
jtvNew entry in boot order?13:49
tomixxxjtv: is it ok if i have now sth like the following: 1.) ubuntuI686nov10, 2.) ubuntuI686feb10,...5.) Acronis Partition.... boot:13:50
jtvThat's the boot loader?13:51
jtvWhat matters is the boot order in the BIOS though.13:51
tomixxx(btw, there was no new entry in boot order but i disabled all other and there is an option "enable other boots option"13:51
tomixxxok, so this does not come from maas?13:51
jtvI don't think so...  Are you seeing that list in your BIOS?  Or in your boot loader?13:52
tomixxxno, normally not13:52
tomixxxbtw: which power type i should select when i turn on the nodes manually?13:52
tomixxxcurrently, i have "wake-on-lan" selected13:52
jtvKeep that one.13:52
tomixxxok13:52
jtvI'm still curious where you got that list... you said you have something like 1) ubuntuI686nov10, 2.) ubuntuI686feb10 etc.  Is that in the BIOS boot-order settings?  Or elsewhere?13:53
tomixxxah13:53
tomixxxi just shut down the node, turn on again and now i can select "network: MBA v.12.2.5 slot 0200" in the screen "please select boot device"13:54
jtvAhh13:54
matsubaratomixxx, nope, I was suggesting that you use the live usb stick to test the wake-on-lan in your network before you try again with MAAS13:54
tomixxxmatsubara: kk, but jtv told me that it might work with manually booting the nodes, so i try it now manually13:56
jtvWhich reminds me...  I bet there's a BIOS option for enabling wake-on-lan as well.13:57
tomixxxwhen i choose booting from "network: MBA v.12.2.5 slot 0200" i come into the same selection than before:1.) ubuntuI686nov10, 2.) ubuntuI686feb10,...5.) Acronis Partition.... boot:13:58
tomixxxbut its not the "please select boot device" screen13:58
tomixxxa screen that tells about the "SystemImager autoinstalls system v3.8.2"14:00
tomixxxit seems these come from other servers of my university network14:00
jtvYou've got other DHCP servers on the same network?14:01
tomixxxy14:01
tomixxxin my maas i have the interface "unamanged"14:01
jtvThen you also need to do some configuring on the DHCP server.14:02
tomixxxso i have to configure DHCP in the maas-webinterface?14:02
jtvDefinitely the best option, yes.14:03
jtvIt does mean that your nodes have to be on a network of their own, where MAAS provides them with their DHCP.14:03
jtvBut if you're running multiple bootp servers for different purposes on the same network, I imagine things could get a bit confused.14:03
tomixxxarchitecture is, that my 2 nodes are connected to my one maas-server with a SWITCH and the SWITCH is connected with the network of the university14:04
jtvIt should be possible to configure the DHCP server to say "when you netboot, please netboot from the maas server."  But it sounds as if that might interfere with your network setup.14:06
tomixxxa question: which MAC address do i have to enter in the "wake-on-lan" dialoge when editing a node14:07
tomixxx?14:07
tomixxxthe mac address of the node or the mac address of the maas-server?14:07
jtvtomixxx: the node's.14:12
tomixxxok14:12
tomixxxso, should i try to set DHCP settings in maas-server?14:16
jtvIf you have a network that you can serve DHCP on, yes.  But be careful not to serve DHCP arbitrarily on the university network!14:17
jtvSysadmins don't take kindly to that sort of thing.  :)14:18
jtvEverything may seem to work just fine, but then machines elsewhere start renewing their DHCP leases, and getting ones from your server instead of the one that's meant to manage the network.14:18
jtvOr a machine that's meant to netboot off the departmental server tries to boot off the maas pxe server, and won't boot...14:19
tomixxxouch ok14:20
jtvA "rogue" DHCP server (as it's called) is a really serious problem, unless the network is carefully managed to prevent it.14:20
tomixxxso, i guess its better to let cluster interface "unmanaged" ?14:21
jtvThe best thing to do is to have the maas on a separate network, behind a router, and let maas manage the interface.14:22
jtvIf that's not possible, be aware that you'll need to tweak the configuration of the DHCP server that's already there.14:23
tomixxxdo i have to enable wake-on-lan in bios only on the nodes or also on the maas-server?14:23
jtvYou only need that on the nodes.14:23
tomixxxok...14:23
jtvThe server is really a pretty conventional thing.14:23
tomixxxso, what could be the best next step now?14:26
jtvTalk to the network admins.  What you need is either:14:27
jtv(a) A network where your maas server can act as the DHCP server, without affecting the network.14:27
jtvOr14:27
jtv(b) *If* it isn't a problem for the network, a configuration change on the existing DHCP server, to tell clients that want to netboot that they should netboot off the maas server.14:28
tomixxxkk14:29
jtvUnfortunately you're in a kind of gap between two kinds of use: "private network" and "dedicated network."14:30
tomixxxk14:31
tomixxxok, following hotfix idea:14:36
tomixxxwhat is, if i remove the network cable which go out of my swith to the uni network?14:36
tomixxxthen i have my private network, not?14:37
jtvThe nodes will have to install packages.14:37
tomixxxk14:37
tomixxxand therefore, the need i-net connection...14:37
jtvNow, if you could do it so that your maas server was still on the uni network, it'd work.14:37
jtvBecause the nodes should only talk to a proxy running on the maas server, never directly to the internet.14:37
tomixxxand is it possible to pre-install the OS on the maas-server while internect connection is available, and then put away the outgoing network cable?14:38
jtvIn principle, yes.  But not easy yet.  There is something we could try.14:39
jtvFor commissioning, as I recall, the nodes only need some lldp packages.14:39
roaksoaxjtv: did you hit the upgrade bug?14:39
jtvroaksoax: not me, but Raphers did.14:40
roaksoaxcool14:40
roaksoaxjtv: note that the file will now be present in both maas-region and maas-cluster i think (because python-maas-provisioning server will be isntalled in both)14:40
jtvtomixxx: so, if on any machine you could set the http_proxy to be the MAAS server, and then install those same packages, you should be able at least to get through commissioning without hitting the internet...  In principle;14:40
jtvroaksoax: that's fine, thanks.  We don't actually use it yet for anything inside maas itself, but we need it for maas-test.14:41
matsubaratomixxx, how many network interfaces do you have in the MAAS server?14:42
tomixxxmatsubara: maas-webinterface is showing me one cluster-controller with two interface: eth0 and another one, without a name14:43
jtvAhh yes, good one!  The server could act as a bridge.14:43
matsubaratomixxx, so, connect one of the interfaces to your uni network, the other to the switch and both nodes to the switch14:43
matsubarathat way you can test your MAAS stuff without breaking hell into the uni's network14:43
roaksoaxjtv: you moved it from maas-dhcp right?14:44
jtvYup.14:44
jtvThinking nobody would be releasing it juuuuust then.  :)14:44
tomixxxmatsubara: if i do  ifconfig in terminal, the second interface is called "lo" and link encap is local loopback14:45
tomixxxso, is this really a interface?14:45
roaksoaxjtv: in reality this would only be a problem if someone installs what's currently in trusty and upgrades to something else (and technically, upgrades to something that's in trusty).14:45
roaksoaxsince I'm not expecting anyone using trusty just yet... that shouldn't really be a problem14:45
roaksoaxbut just in case, i'm adding this fix14:45
jtvI figured there's probably a testing setup somewhere that could be hurt by this.14:45
jtvIf not, yes, I'm perfectly willing to forget the whole thing!  You'll know more about this than I do.14:46
roaksoaxjtv: https://code.launchpad.net/~andreserl/maas/packaging_upgrade_fix_dhcp/+merge/20193714:47
matsubaratomixxx, ifconfig -a, I think will show you all the interfaces. even the ones that are down14:47
jtvGrr... why do developers never listen to my suggestion for tab password completion?  It would save so much time!14:47
matsubarayou probably want eth0 and eth1 or something like that14:47
tomixxxmatsubara: i only have "eth0" and the mentioned "lo"14:48
tomixxxafter executing ifconfig -a14:48
jtvSo not enough to build your own private kingdom.  :/14:49
matsubaratomixxx, yeah, only one interface then :-(14:49
tomixxxkk14:49
jtvStill, ethernet cards in a large network shouldn't be hard to get!14:49
matsubaraindeed, even an ethernet usb adapter should be pretty easy to find14:49
jtvI'm not suggesting that you open the machine of a colleague who's not in right now and take one, but...14:49
tomixxxin this room, there are only 3 nodes ^^ ofc, i additionally i have my laptop if this help sth...14:50
jtvSee if the admins have one lying around?14:50
tomixxxok, i have got a network interface card from my sysadmin15:13
tomixxxi will plug it now into the maas-server15:13
tomixxxok, card is plugged in now15:24
tomixxxok, maas server and 2 nodes are now connected to the switch. the cable from the switch to the uni network is UNPLUGGED. a new cable goes from the 2nd interface of the maas-server to the university network15:29
tickingtomixxx: hrhr, this is the exact same setup that we run as well15:29
tickingnat all the things15:30
tickingtomixxx: which university are you at?15:31
tomixxxuniversity of klagenfurt15:31
tomixxxin austria15:31
tickingcool, university bremen here (northern germany)15:32
tomixxxhehe15:32
tomixxxturned on the maas-server again, do i have to do sth when it says "waiting for network configuraiton" ?15:33
tomixxxah sorry15:33
tomixxxif i do "ifconfig -a", i can see eth0 and eth115:35
matsubaratomixxx, you can run dpkg-reconfigure maas-region-controller to reconfigure MAAS. it'll ask what's the address of the pxe address, complete it with the value you get from the interface not connected to the uni network15:37
tomixxxmatsubara: it seems, network cards now have no IP so far15:38
matsubarahmm but before you do that you might need t configure your internal network appropriately first15:38
tomixxxi cannot connect to i-net15:38
tomixxxbut when i set dhcp settings in maas-server, i have already configrued my internal network, not?15:39
matsubaratomixxx, right, so first you need to configure the network. Open /etc/network/interfaces and do something like this: http://pastebin.ubuntu.com/6762617/15:42
matsubaraassuming eth0 is the interface connected to the switch and eth1 is the interface connected to the uni network15:42
matsubaratomixxx, then you sudo service networking restart and check with ifconfig if the IP is properly set for each interface.15:43
tomixxxok, first i have another problem: if i start windows i can see there is no driver installed for the new network card15:44
tomixxx(i have both, windows and ubuntu installed on the maas-server ;)15:45
matsubaratomixxx, Linux in general have pretty good support for network interfaces, so usually you don't need to install anything else.15:46
matsubaratomixxx, so, booting up into windows doesn't really help configure the MAAS server15:46
tomixxxkk15:46
tomixxxi was a windows user all the time, so when things get unfamiliar, i tend to boot windows again15:47
matsubaratomixxx, https://help.ubuntu.com/13.10/serverguide/networking.html has plenty of information on how to configure the network15:48
tomixxxbut a question: what is if i dont know if eth0 is the card which is connected to switch?15:48
matsubaratomixxx, well, you can just try and if doesn't work, you reverse the order. The basic idea is to have the interface that's connected to the uni network set up to use dhcp and the interface connected to the switch with a static address16:00
tomixxxhmm ok, currently i have edited /etc/network/interfaces and both set to dhcp16:01
tomixxxbut i-net not working so far16:01
matsubaratomixxx, does it get an IP at all? Also, another thing to keep in mind is, if your uni dhcp server is serving IP address in the same range of the static address things won't work.16:04
tomixxxi have started now sudo ifup eth1 resp. eth016:05
tomixxxi guess i need this?16:05
tomixxxwhen i say sudo ifup eth0, response was: "interface eth0 already configured", sudo ifup eth1 still not finished...16:06
tomixxxjesus, what about the promissed 20-minute-install time for the whole cloud as written on the ubuntu website ;)16:08
tomixxxinteresting: when i do ifconifg -a, i cann see sth like "eth0:avahi" and "eth1:avahi"16:10
tomixxxadditionally16:10
tomixxxto the 2 interfaces16:10
tomixxxbut i have still no internet on my maas-server :( and it seems the interfaces only have ipv6 addresses16:12
matsubaratomixxx, I'd suggest get some help from the sysadmin that got you the new interface card. The uni's admins knows how the uni network really works and once you get that configured we can get back to MAAS16:17
tomixxxy, u are right, this has nothing to do with maas what iam posting here...16:19
tomixxxinteresting thing, if i plug network cable from the uni to the onboard-ethernet-card, internet works16:29
tickingtomixxx: btw you might want to be carefull, when activating dhcp16:40
tickingthe sysadmins might come and hurt you if you break university wide dhcp, because you broadcast in the same range they do16:41
tickingyou want to set up nat16:41
tickinghttps://help.ubuntu.com/community/Router16:41
tickingyou can check which card is which by calling ifconfig in the terminal16:42
tomixxxat the moment, i have the problem that one of my two network cards does not find correct drivers16:42
tomixxxok guys16:47
tomixxxeth0 ---- dhcp to uni, internet works16:47
tomixxxeth1 ----- static ip as suggested 192.168.1.116:47
tomixxxin maas-web-interface,  i guess i have to delete eth0 from cluster-controller and add eth1, right?16:52
tomixxxmatsubara, jtv, someone online?16:54
matsubaratomixxx, I'm here but a bit busy at the moment. Would you mind bringing this up in the maas mailing list or askubuntu? That way the solution will be archived and others might be able to jump in to help as well.16:57
matsubaratomixxx, but you're right, delete eth0 from the cluster-controller and add eth1 and make it manage dhcp for you.16:58
=== bjf[afk] is now known as bjf
=== zz_mwhudson is now known as mwhudson
CarlosCgreetings, I am going to be using maas for our deployments for our clusters and wanted to see if there is a more "architecture" friendly document for maas20:37
CarlosCI really want to understand the regional controller / cluster/ cluster controller better20:37
roaksoaxCarlosC: this might help: http://www.roaksoax.com/2013/05/getting-started-with-maas-and-juju21:05
CarlosCroaksoax: very nice, thanks21:07
CarlosClet me digest this and I'm sure there will be more questions to follow ;-)21:07
CarlosCok...so a cluster is the smallest unit for managing nodes...how is HA achieved at the region controller level?21:21
=== CyberJacob is now known as CyberJacob|Away

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