/srv/irclogs.ubuntu.com/2014/06/26/#maas.txt

=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
rvbabigjools: reviewing your 'api-reserve-sticky-ip' branch now.07:35
bigjoolsrvba: thanks07:35
bigjoolsit should be called "part1" really07:35
rvbaYeah, I figured :)07:35
bigjoolsrvba: do we pass mac address in to any API call anywhere?07:36
rvbabigjools: when creating a node I believe.07:36
bigjoolsah I see somewhere else07:37
bigjoolsjust making sure I am going to be consistent with the parameter name07:37
rvbaGood thinking.  This hasn't been our forte thus far.07:38
rvbabigjools: about your branch: Do we really want to remove STICKY mappings when a node is deleted?  I thought they were mean to be completely under the user's control (i.e. "Pre-assigned and permanent until removed [*by the user*]").07:52
bigjoolsrvba: you need to re-read the types of IP addresses07:52
bigjoolsyou're talking about a different type07:52
rvbaWell, that's what I'm doing now.  It's not helping.07:53
bigjoolsUSER_RESERVED in this case07:53
bigjoolsI keep asking people for a way to make this distinction clearer and nobody helps, they just complain :(07:53
rvbaheh07:53
rvbaLet me re-read the discussion about this in maas-devel then…07:54
bigjoolsrvba: STICKY is just a permanent IP for a node07:54
bigjoolsas opposed to the auto ones you normally get07:55
rvbaThe docstring says: "# Pre-assigned and permanent until removed."07:55
rvbaRemoved by who?07:55
rvbaI guess everything is sort of "Permanent until removed" :)07:55
rvbaIt's a bit like "Alive until dead."07:56
g0ldr4k3hello everyone07:57
g0ldr4k3I'd like to know, after to have created a region controller with 2 cluster controller accepted and added 4 nodes per each cluster, in the region's UI I see only 2 cluster without the nodes associated on them. a question but which is the Region works is it can see just the custer and I can't manage the nodes? thanks08:04
=== vladk is now known as vladk|offline
jtvg0ldr4k3: the Clusters page only shows the clusters, not the nodes.  There's a separate Nodes page.08:31
g0ldr4k3and what is the Region Controller's goal in a MaaS infrastructure?08:33
g0ldr4k3if I can see just the CCs but not their nodes08:34
jtvThe region controller is the central server.  The cluster controllers are closer to the nodes.08:40
jtvBut the region controller also serves the UI.08:40
jtvYou should see the nodes in the UI.08:40
g0ldr4k3It's my opinion but I think that RC should manage all the infrastructure, is as a main manager08:41
bigjoolspatches welcome08:41
g0ldr4k3in this case I 've only 2 CC each ones with 2/4 nodes and it's easy to manage that because the nodes are flew, in the case we have more of them How can manage that???08:43
g0ldr4k3RC should make this function......08:44
bigjoolseverything you need is on the RC,08:48
g0ldr4k3bigjools: my infrastructure is realized using 1 RC and 2 CC. each CC have 2 or more nodes installed and manage via virtio. both CC are accepted on the RC....my question is this, if the RC is the main controller it'd manage all infrastructure, why in its ui I can see just the CC an I cant manage their nodes08:51
g0ldr4k3bigjools: in this case I 've only 2 CC each ones with 2/4 nodes and it's easy to manage that because the nodes are flew, in the case we have more of them How can manage that??? RC should make this function, I mean I think that......08:52
bigjoolsg0ldr4k3: if you click the Nodes tab at the top, does it list any nodes?08:56
bigjoolsif you don't see node then your 4 nodes have not successfully enlisted into maas08:58
bigjoolsthere could be many reasons for that, such as not configured to PXE boot, firewall problems, internet problems and so on08:59
g0ldr4k3nothing, I can see the nodes only on the CC. and their works well08:59
bigjoolsstart by looking in the /var/log/maas/ logs08:59
bigjoolsthe CC does not "show" nodes, so I don;t know what you are looking at08:59
bigjoolsplease examine the logs08:59
bigjoolsit's my EOD here so someone else can help you08:59
g0ldr4k32 CCs work well with their nodes enlisted and allocated, the RC see only the CC but not their nodes......what is the RC's goal seeing just the CC, that's it? it's possible to manage also the nodes by RC?09:03
g0ldr4k3anyone can answer me?is there a way to manage the nodes of each single CC via RC? or RC can view only the CC on its web ui?09:18
allenapg0ldr4k3: I’m reading the history then I’ll try to answer.09:20
g0ldr4k3allennap:  thanks09:21
allenapg0ldr4k3: It sounds like you’ve installed 4 virtual machines on each machine that also runs each of your 2 cluster controllers, right?09:26
allenapg0ldr4k3: You then need to tell MAAS about those virtual machines.09:27
g0ldr4k3allenap: no, I've 3 VM - 1 is RC and 2 are CC. on each CC I've enlisted 2 nodes.09:28
g0ldr4k3then in the RC I've added the 2 CC.09:28
allenapg0ldr4k3: How did you enlist them?09:28
g0ldr4k3my question is: if the RC is the main Svr and its goal is to manage the infrastructure why I see only the CC and their respective nodes no?09:29
g0ldr4k3I've created first the CCs and enlisted and allocated the node. then I've create a RC and added the 2 CC09:30
g0ldr4k3allenap: i think RC should manage all infrastructure and not only accepted the CC and that's all.09:34
allenapg0ldr4k3: You can’t enlist a node with a CC on its own; the CC must be associated with the RC before enlistment can happen.09:35
allenapg0ldr4k3: Now that the CC is associated with the RC, try enlisting again.09:35
g0ldr4k3you right, but it's not clear as explaining or as way to operate. As you said I'd have to make first RC then 2 CC and then enlisted the nodes via RC, is it right? if I've already 2 or more CC and I can manage the their respective nodes (enlisted, allocated and running) and then added CC to RC I'd should see the CC with their nodes!!!09:41
g0ldr4k3allenap:  you right, but it's not clear as explaining or as way to operate. As you said I'd have to make first RC then 2 CC and then enlisted the nodes via RC, is it right? if I've already 2 or more CC and I can manage the their respective nodes (enlisted, allocated and running) and then added CC to RC I'd should see the CC with their nodes!!!09:45
allenapg0ldr4k3: There are 3 ways to add a node to MAAS, but all of them require a CC registered with an RC. There’s “auto-enlistment” where the node PXE boots under MAAS’s control, there’s manual enlistment where you use the Add Node button or the command-line, and there are also probes for specialist hardware.09:47
g0ldr4k3ok, in my case I've used the first one where the nodes can use the PXE boot09:48
g0ldr4k3allenap: so, let's me know, the best way to realize that is to create first a RC then the CCs and then make the enlist of the nodes via RC?09:50
allenapg0ldr4k3: Yes. When you create the CCs, make sure they’re registered with the RC. When you register the CC you’ll need to import the boot images (there’s a button for it in the UI). Then you can enlist via PXE. The machine you’re enlisting should boot then shutdown, and the node should then be visible in the UI.10:04
=== vladk|offline is now known as vladk
g0ldr4k3I know the steps of the enlist of the nodes, but I can't image that the procedure to create that infrastructure is that! in this way I can view the nodes and the CC but now Ive another q why in the CC tab I see that but the association of the nodes no?10:08
g0ldr4k3allenap:  I know the steps of the enlist of the nodes, but I can't image that the procedure to create that infrastructure is that! in this way I can view the nodes and the CC but now Ive another q why in the CC tab I see that but the association of the nodes no?10:10
g0ldr4k3allenap: I mean the CC are added to RC enlisted the nodes but I can't see the association of nodes to CC.10:11
g0ldr4k3allenap: and in my case where I've already RC and CC working how can I enlist the nodes registered on each single CC on RC?10:13
allenapg0ldr4k3: I’m not sure I understand. A node cannot be registered to a CC. The CCs act like a proxy for the RC; they can’t do much without the RC.10:15
g0ldr4k3allenap: I'm sorry I made a mistake, I want say that once enlisted the nodes and viewed them on RC why in the Cluster' tab on RC not see that nodes are associated on CC?10:18
anarcaHello, MAAS'm new and I'm having a lot of problems because I get to put the nodes in Ready state10:19
g0ldr4k3anarca: now you've to allocated to start the ubuntu installer10:20
anarcaI have one server MAAS and six nodes but these nodes are in state Commissioning10:22
anarcaI need to put in Ready state to begin with juju10:24
g0ldr4k3anarca: ok now you have to change their status from Commissiong in Ready to make that your nodes should have PXE boot active or you have to run it manually....10:25
anarcaBecause  juju bootstrap tells me that there is no valid node10:26
anarcaI've added manually10:27
g0ldr4k3anarca: I'm sorry but I  can help you with JUJU there is a guide explains how to make that https://juju.ubuntu.com/docs/10:27
anarcaMy problem in this moment is with MAAS nodes10:28
g0ldr4k3maybe the problem is in the authentication of the nodes JUJU works with MaaS using ssh and PXE10:28
g0ldr4k3allenap:  and in my case where I've already RC and CC working how can I enlist the nodes registered on each single CC on RC?10:29
=== roadmr is now known as roadmr_afk
anarcaMy current problem is how to change the status of the nodes of Commissioning to Ready10:30
g0ldr4k3anarca: manually if you added your nodes not using PXE boot10:31
anarcaI have done so through their mac address and its status is commissionig10:33
g0ldr4k3now start them again10:33
anarcaDo I reset the MAAS server?10:35
anarca Sorry, it's my first contact with this10:35
g0ldr4k3allenap: in my case where I've already RC and CC working and nodes added to CC, how can I enlist the nodes registered on each single CC on RC?10:36
g0ldr4k3anarca: no I've to start manually the nodes no using MaaS10:37
allenapg0ldr4k3: That’s not how MAAS works. A node doesn’t get enlisted with a CC then an RC, it’s either enlisted or not. The CC does not track state or nodes; that’s all done in the RC.10:38
=== vladk is now known as vladk|offline
g0ldr4k3allenp: ok for that, in my case is there a way to see the nodes enlisted on RC? or I've to remove that from each single CC and then enlist them using RC.10:41
=== vladk|offline is now known as vladk
bigjoolsg0ldr4k3: please read http://maas.ubuntu.com/docs/nodes.html10:44
g0ldr4k3bigjools: I've already made that... my problem is another. I've a RC and 2 CC, each CC have 2 node enlisted on it,then I've added 2 CC on RC but I don't see the nodes status on RC10:46
bigjoolsyes, you already said that10:47
bigjoolsand we have said that you cannot "enlist" a node on a CC10:47
g0ldr4k3allenap: or best say,  how can I see the status of each single node on RC? I've to remove the Node from each CC and then make the same procedure to enlist them on RC10:47
bigjoolsplease read the docment, it explains how to add nodes10:47
g0ldr4k3I'm sorry but I can understand how MaaS works.....10:49
bigjoolshttp://maas.ubuntu.com/docs/orientation.html10:49
anarcaI read it but i do not understand, sorry10:50
bigjoolsif you cannot understand the document then maas is probably not for you10:51
g0ldr4k3bigjools: that's right, if I see the picture I understand that CC manage the node and the a RC manage all infrastructure!!!!10:51
g0ldr4k3the node are added to CC10:52
anarcaMaybe but unfortunately I did not choose my work10:54
g0ldr4k3bigjools: maybe who created that or wrote that guide had to explain well the infrastructure of MaaS....10:56
allenapg0ldr4k3: The nodes are *not* added to the CC. The CCs are mostly stateless proxies for the RC. You cannot add a node to a CC.10:57
g0ldr4k3 bigjools: because as illustrated not explain what you said....10:57
g0ldr4k3allenap: now it's clear but If I see the picture illustrated in the link I see that the nodes are added to CC10:58
g0ldr4k3allenap: and than RC manage that....10:58
g0ldr4k3allenap and bigjools: the guide reported also this "For small (in terms of number of nodes) setups, you will probably just install the Region controller and a cluster controller on the same server - it is only worth having multiple region controllers if you need to organise your nodes into different subnets (e.g. if you have a lot of nodes). If you install the maas package, it will include both a region controller and a cluster control10:59
g0ldr4k3ler, and they will be automatically set up to work together."10:59
=== vladk is now known as vladk|offline
g0ldr4k3allenap: have you tried to install RC package on a base ubuntu svr without CC package ot separate the environment? during the installer there is a error ""psql: could not connect to server: No such file or directory Is the │" why???11:02
g0ldr4k3allenap: if the RC enlist the all nodes my question is which is the CC's function?11:04
=== vladk|offline is now known as vladk
allenapg0ldr4k3: I don’t know why you’ve seen that error. Sorry about that. If you have time please file a bug.11:08
allenapg0ldr4k3: A CC encompasses a DHCP server, a DNS server, a TFTP server, and boot resources. The RC controls those things by sending jobs to the CC.11:10
=== roadmr_afk is now known as roadmr
AskUbuntuMAAS/juju not cleaning up nodes | http://askubuntu.com/q/48839611:24
gmballenap, rvba: A branch for to review, per favore: https://code.launchpad.net/~gmb/maas/fix-get_all_interface_addresses/+merge/22460011:34
allenapgmb: I’ll take it.11:38
gmbta11:38
allenapgmb: +1, simple as dat.11:40
gmbTa :)11:40
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
g0ldr4k3 allenap: thanks for your support now more thinks are more clear for me!!12:04
g0ldr4k3allenap: this different is not explain in that guide...12:05
g0ldr4k3allenap: try to install RC on a base ubuntu svr and CC on another Svr to separate the system and you'll see that on the RC will have that error during the installer.12:07
=== vladk is now known as vladk|offline
anarca_Hello g0ldr4k3, I'll explain the process I've done:   Working with VirtualBox, I have created a machine that will be my MAAS server on which I installed ubuntu 13.04 server and also the desktop.   After I have created more than 6 VM will my nodes and I've installed ubuntu 13.04 server.   I have manually added the mac address of these nodes to the MAAS server and I can not change the status of the nodes.12:14
anarca_I followed this guide http://www.ubuntu.com/download/cloud/install-ubuntu-cloud12:16
cobradevili think i have figured out my issues with using a local mirror12:29
gmballenap: You’ll love this; there’s a bug in netifaces, I think: http://pastebin.ubuntu.com/7705634/12:29
gmballenap: Check out ‘addr’]12:29
cobradevilwhen entering my own mirror in the maas interface it does not work when commisioning a node12:30
cobradevilafter investigating i see that when not entering my own proxy it will use the proxy from the maas install squid-dep-proxy12:30
cobradeviland that one is not configured for using a local mirror12:31
cobradevilthis is related to: https://bugs.launchpad.net/maas/+bug/1288502 and https://bugs.launchpad.net/maas/+bug/130026612:31
ubot5Ubuntu bug 1288502 in MAAS "archive and proxy settings not honoured for commissioning" [High,Triaged]12:31
ubot5Ubuntu bug 1300266 in MAAS "squid-deb-proxy returns 403 when admin configures a custom APT archive" [High,Triaged]12:31
cobradevilwhen adding my own mirror to /etc/squid-deb-proxy/mirror-dstdomain.acl.d it works and the cloud-init runs ok and the status gets updated to ready12:34
allenapgmb: Oh nice. We can work around that, but maybe we can fix it upstream too.12:55
* allenap looks12:55
gmballenap: I’ve worked around it for now. Haven’t looked at upstream yet.12:56
=== vladk|offline is now known as vladk
allenapgmb: The %eth0 bit seems to be returned by getnameinfo(3). I don’t understand why though.13:20
allenapgmb: I think it’s related to http://tools.ietf.org/html/rfc4007 and http://tools.ietf.org/html/rfc6874.13:25
gmballenap: I’ll read those after, but I’ll take your word for it :).13:28
allenapgmb: Yeah, I’m going to print them out and shred them ;) Actually, I’m going to hope they’re mentioned in IPv6 Essentials.13:28
blake_rallenap: gmb: rvba: could I get a review of this https://code.launchpad.net/~blake-rouse/maas/global-licensekey-model/+merge/22428413:42
rvbablake_r: sure, I'll have a look now.13:45
blake_rrvba: thanks13:45
=== vladk is now known as vladk|offline
rvbablake_r: "Got this structure from somewhere else in MAAS." → don't hesitate to fix that as well as a drive-by fix.  Always good to raise the quality of the overall code base, little by little, every time it's possible.14:15
blake_rrvba: okay let me find it again14:16
blake_rrvba: it was in bootimage, but i think it was done for a reason, because of get_by_natural_key14:17
=== CyberJacob is now known as CyberJacob|Away
=== Solution-X|AFK is now known as Solution-X
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== roadmr is now known as roadmr_afk
=== CyberJacob|Away is now known as CyberJacob
=== mfa298__ is now known as mfa298
dpb1Hi -- is there a MAAS version that will retry poweron of AMT?  What I have seems to just give up after one failed attempt20:07
blake_rdpb1: you can modify the template to retry if you like20:11
blake_rdpb1: /etc/maas/templates/power/amt.template20:11
dpb1blake_r: thanks.  any reason maas won't do this externally?  seems weird that it allocates a machine to me that it can't turn on20:12
dpb1blake_r: for instance, it could have given me a different machine.20:13
blake_rdpb1: wip https://bugs.launchpad.net/maas/+bug/127322220:15
ubot5Ubuntu bug 1273222 in MAAS "MAAS doesn't check return values of power actions" [High,Triaged]20:16
dpb1blake_r: great20:17
dpb1thanks20:17
dpb1hey, anyone know about this: 500 No Host option provided at /usr/bin/amttool line 126. -- seems like maas is failing to lookup addresses in arp, and then just calling the script with no hostname/ip filled into the template.21:01
dpb1I've confrimed that is at least one failure mode here (from inspection)21:11
=== Guest8558 is now known as wallyworld
dpb1FYI I filed: https://bugs.launchpad.net/maas/+bug/133486321:53
ubot5Ubuntu bug 1334863 in MAAS "amt arp lookup seems flaky" [Undecided,New]21:53
roaksoaxdpb1: amt itself is flaky. you nee dto modify the bios somewhere to increase the timeout time IIRC22:06
dpb1roaksoax: we have.  doesn't invalidate the bug. :)22:08
dpb1roaksoax: we've switched to using IP and skipping ARP, I'll see if we get better results.22:08
roaksoaxdpb1: yup, depending on ARP is definitely not the way to go. If it is not in the ARP cache, then it won't work. Using IP'22:09
roaksoaxdpb1: yup, depending on ARP is definitely not the way to go. If it is not in the ARP cache, then it won't work. Using IP's is definitely more reliable22:09
dpb1cool22:10
rharpermaas + trusty + some hp box where biosdevname switches eth0 -> em1  -- this breaks the installed network config which sets up eth0 into br0 for juju;  if you then attempt to run a container on that host, the container fails to launch because it's configured to use br0 (which only shows up if eth0 exists)22:21
rharperanyone seen this?22:21
allenapgmb, rvba: An IPv6-enabled TFTP server: lp:~allenap/maas/ipv6-tftp-compat. Note that I’ve only tested that it binds to IPv6 addresses, I’ve not actually tested transferring data! I’ll do that tomorrow. Now, for me, sleep.22:25
allenapgmb, rvba: Diff: http://paste.ubuntu.com/7708255/22:28
=== Guest28217 is now known as wallyworld
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
AskUbuntuMAAS Connection Refused 8000 | http://askubuntu.com/q/48866523:52

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