/srv/irclogs.ubuntu.com/2016/06/29/#maas.txt

pacavaca_Am I right expecting MAAS in this case http://d.pr/i/1j30X to set default gateway to be the gateway of a single configured network and persist it in /etc/network/interfaces ?03:07
pacavaca_Ok, seems I've figured it out. Not sure if it's a bug or feature, I'll just leave it here: http://d.pr/i/1kvpd03:51
=== frankban|afk is now known as frankban
jojdenhii07:24
jojdenhttp://askubuntu.com/questions/792289/bson-data-iteration07:24
jojdenwhen i call the resp = self.client.get(u"nodes/%s/" % node_id, "details")07:28
jojdenprint  resp.read()07:29
jojdenI am getting following o/p07:29
jojdenhttp://pastebin.com/QXEqEgn107:29
jojdenhow can i iterate this07:29
jojdenhttp://askubuntu.com/questions/792637/get-node-details07:32
brendandjojden, that's the lshw output, what are you trying to do with it? i didn't quite understand what you meant by 'iterate it'?08:56
jojdenI want to iterate each node details from that08:58
jojdenAnd that is combination of lldp and lshw o/p right ?08:58
jojdenbrendand08:58
brendandi'm not sure what lldp is, but yeah it looks like that09:00
brendandjojden, i'd need to check if the api provides a way to specify the output to be in json format but that would be the most straightforward. otherwise you need to use an xml parser, which are a bit of a pain to use for the most part09:02
jojdenyes09:02
jojdenhttps://maas.ubuntu.com/docs/api.html09:02
jojdenhere in API it saying that the o/p will be BSON istead of JSON09:03
brendandjojden, what are you trying to do exactly?09:03
jojdenReturns a {detail_type: xml, ...} map, where detail_type is something like “lldp” or “lshw”.09:03
jojdenNote that this is returned as BSON and not JSON. This is for efficiency, but mainly because JSON can’t do binary content without applying additional encoding like base-64.09:03
jojdenWhat I need is, I need to iterate businfo, physid, description etc09:05
jojdenAlso if I have lldp details, then I need to iterate that also09:06
brendandjojden, oh right. while the content returned is BSON the lshw and lldp output are still in xml09:09
jojdenyes09:09
mupBug #1597266 opened: MAAS - multiple DNS zones with the same duplicated zone name <cpec> <maas> <MAAS:New> <https://launchpad.net/bugs/1597266>10:24
mupBug #1597266 changed: MAAS - multiple DNS zones with the same duplicated zone name <cpec> <maas> <MAAS:New> <https://launchpad.net/bugs/1597266>10:30
mupBug #1597266 opened: MAAS - multiple DNS zones with the same duplicated zone name <cpec> <maas> <MAAS:New> <https://launchpad.net/bugs/1597266>10:42
f1gjamhey guys, im releaseing a server and i have enabled erase disk in settings. Is there anyway i can track the progress of the erase task?12:07
valeechf1gjam: does /var/log/maas/rsyslog/[host].log show anything?12:22
f1gjamthis is MaaS 1.912:22
f1gjamrsyslog is empty12:22
f1gjam:'(12:22
valeechf1gjam: sorry, that was all I had :) I am pretty new to maas12:25
mupBug #1597324 opened: [2.0b8] Unable to set default gateway interface <MAAS:New> <https://launchpad.net/bugs/1597324>12:36
mupBug #1597324 changed: [2.0b8] Unable to set default gateway interface <MAAS:New> <https://launchpad.net/bugs/1597324>12:48
mupBug #1597324 opened: [2.0b8] Unable to set default gateway interface <MAAS:New> <https://launchpad.net/bugs/1597324>12:54
secatehi there13:01
secatehas anyone attempted to use "set-default-gateway" in a recent build of MAAS?13:02
secateI should have said; has anyone had success using "set-default-gateway" in a recent build of MAAS? :)13:02
kikoI've heard of problems with it13:09
kikompontillo may know more13:09
f1gjamKiko any idea how to see how far disk erasing has gone?13:10
kikof1gjam, blake_r_ would know, but what /I/ know is that it takes a LONG time13:11
secatethanks kiko13:11
kikof1gjam, we have a feature request for this cycle to use SATA SE which would make it faster for most models13:11
secateI used it in an earlier release (can't remember if it was 1.9x or 2.0ax) but I'm testing beta8 now and it's not working13:12
secatefiled a bug @ https://bugs.launchpad.net/maas/+bug/159732413:12
kikosecate, thanks13:15
mpontillothanks secate, I'll take a look13:18
f1gjamkiko thanks mate, so it was a bad idea to do it :(13:35
kikof1gjam, if it helps, you can just abort it and move on :)13:35
f1gjamonly problem now is to find out why landscape stops13:36
kikof1gjam, it won't cause any problems to stop the process half-way13:36
f1gjamat 70%13:36
mupBug #1597345 opened: maas 1.9.3: twistd high cpu usage <kanban-cross-team> <landscape> <MAAS:New> <https://launchpad.net/bugs/1597345>13:37
mupBug #1597345 changed: maas 1.9.3: twistd high cpu usage <kanban-cross-team> <landscape> <MAAS:New> <https://launchpad.net/bugs/1597345>13:40
mupBug #1597345 opened: maas 1.9.3: twistd high cpu usage <kanban-cross-team> <landscape> <MAAS:New> <https://launchpad.net/bugs/1597345>13:43
secatempontillo: no worries, if you need anything more from me just let me know13:45
sjlis there a way maas can configure a node's IP without DHCP?  Trying to avoid having to require every tenant's network to support DHCP.15:02
kikosjl, we need DHCP for the commissioning/deployment process, but not after that15:43
kikosjl, can you explain what you're looking for?15:43
sjlwe are expecting maas to configure our tenant machines networking (at most can have 3 ip's (private, public, and storage)), and with the exception of storage, each tenant has their own private and public vlan15:48
sjlhaving to have a rack controller listen on every tenant vlan seems too heavy, and also introduce an attack vector into maas.15:49
sjlatm looking at advanced curtin, which looks promising but requires some digging15:52
kikosjl, with MAAS 1.9 and 2.0 you can attribute IPs without DHCP15:56
kikosjl, they get written into the curtin config directly15:56
kikohave you tried that functionality?15:56
kikosjl, that works for each interface the machine has15:56
sjldon't think so, that looks like what I need!15:56
sjlOn a machine in the Ready state, I've changed its interface IP from "Auto assign" to "Static assign" but that static IP is still provided to the node via DHCP15:58
sjlis that what you meant?15:58
sjlor at least the static IP was DHCP Offered during PXE15:59
sjlkiko, hmm perhaps I've setup maas region controller incorrectly.  The vlan (untagged) I'm trying to allocate a static IP from is setup with DHCP in maas.  let me try a new vlan without DHCP enabled in maas, and see what happens.16:07
kikosjl, ah16:08
kikosjl, so PXE always uses DHCP16:08
kikosjl, but once installed the machine no longer PXE boots16:08
sjldoes maas 2.0 have an api method of configuring a node's vlan interfaces like this curtin example? https://github.com/battlemidget/astokes.org/blob/master/lib/posts/2013-10-09-customizing-fastpath-curtin-installations.md16:40
=== frankban is now known as frankban|afk
mattraehi, i'm using MAAS 2.0 beta 8. when i check the box in settings for 'Enable the use of an APT and HTTP/HTTPS proxy', on the deployed nodes I am seeing the proxy added to the apt configuration.. but i don't see any http_proxy or https_proxy enviornment variables being set on the nodes16:56
mattraeshould I expect to see http_proxy and https_proxy set on the deployed nodes?16:56
mattraei don't see http_proxy or https_proxy added in /etc/environment either16:58
nturnersmoser, so it turns out all I had to do to turn my AMI-compatible raw image into one that MaaS can deploy and boot was to create a shell script that just exits with success and put it in the image as  /curtin/curtin-hooks.18:06
nturner(and tar up the img file)18:07
nturnerOf course, while it now boots, cloud-config does not appear to be finding a maas data source (it claims to be looking).18:08
nturnerAnyone know if there is any special cloud-init configuration (or minimum version) needed for it to integrate with maas?18:08
nturnerI'm using the version currently in CentOS (0.7.5-10.el6.centos.2)18:09
smosernturner, well, that is what your /curtin/curtin-hooks would do18:10
smoserit is executed and can then seed the configuration of this instance into cloud-init in the installed system.18:10
nturnerDo you mean something like write a new cloud.cfg to tell it where the maas controller is?18:14
nturnerDoes MaaS not provide some kind of user-data API (like EC2) where the data returned depends on the machine making the request?18:16
mupBug #1597460 opened: MAAS 1.9 should only download filetypes from a SimpleStream is can process <MAAS:Triaged by ltrager> <https://launchpad.net/bugs/1597460>18:16
sjlare there any other docs that talk about advanced maas networking like this blog: https://insights.ubuntu.com/2016/01/31/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/18:28
nturnerOK, I see from DataSourceMAAS.py that it will read data files (in /var/lib/cloud/seed/maas?) if they exist, but also expects to have a metadata_url from which to fetch metadata. ..18:29
sjlin particular sample api client calls that do the same thing?18:29
nturnerDoes this metadata_url need to be manually configured?18:29
nturnerOK, I see /etc/cloud/cloud.cfg.d/90_dpkg_maas.cfg does exactly this on a 'normally' installed Ubuntu guest... getting closer...18:42
mupBug #1597498 opened: Failure to deploy due to iSCSI errors with daily images <MAAS:New> <https://launchpad.net/bugs/1597498>20:05
f1gjamhey guys how can i see why i cant access the landscape web page?20:05
f1gjami can ping the box20:05
f1gjameven telnet to prt 80 and 44320:05
f1gjambut when trying to open in a browser it just hangs20:05
f1gjamok i sovled that problem :)20:06
bbaqarhey guys .. is there any way to connect a bridge to a VLAN interface i have created using maas? i.e. bond0.120 -> br-mgmt20:23
pacavaca_Is there a way for user to Acquire & Power On the node without re-imaging?20:55
jheggepacavaca_: I still haven't figured out what the Acquire state is for but with the API I'd guess you can power on any commissioned node (with power type set at least)21:01
pacavaca_jhegge: Acquired stated means one more thing I think: machine has an owner associated with it, which is important for the use case I'm trying to implement. Also you can't really power-on the machine even through cli until it's "Allocated"21:04
nacchey folks, was just cleaning up some bugs and ran across: LP: #1321885. AIUI, it was fixed in MAAS and the other marked-as-affected packages are actually false and can either be deleted or maked as invalid?21:07
jheggepacavaca_: Allocated sets an owner, too, so Acquire is change owner to my user. I was just going to check something but all my MAAS VMs just tanked VMWare...21:12
pacavaca_I think "Allocate" is what's called "Acquire" in UI21:13
pacavaca_but simply calling "power-on" still triggers the re-imaging process21:15
jheggepacavaca_: Okay, that's confused me, I've been using the API lately, allocating.  Now, when I allocate with API, I didn't see a re-imaging, just a change from Ready to Allocated.  I've not used power-on separately (yet), just straight to deploy.21:19
jheggepacavaca_: I was just thinking though that power-on w/o imaging and nothing installed could result in the machine booting the existing local disk.  MAAS would sort let it get away then.21:20
pacavaca_jhegge: I thought so too, but that's not what's happening. I'm trying a different flow right now: allocate -> mark broken -> power on -> mark fixed. Let's see whether it'll still boot into new image or not.21:21
nturnerwoohoo! success!21:30
nturnerThe process is pretty straightforward once I understood it. Essentially, all my custom curtin hook had to do was grab the resource specified on the kernel command line and stick it into a file in /etc/cloud/cloud.cfg.d.21:31
nturnerSo simple that one wonders if cloud-init should just check /proc/cmdline for a cloud-config-url itself...21:33
nturner(Maybe newer versions do?)21:33
nturnerAnyway, thanks smoser for the pointers (and you know, all your work on this slick system).21:34
mupBug #1597541 opened: cannot configure node networkings with multiple gateways <MAAS:Triaged> <https://launchpad.net/bugs/1597541>22:23
pacavaca_What's the process of forking a project on launchpad? Or, in other words, how can I have my own version of MAAS with some small changes (which may not be welcomed in the main repo, but I still need them)? Is it possible to fork -> make the changes -> get custom .deb packages installable from ppa in rather easy way?22:52

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