[03:22] Does anyone know of a way to test maas/curtin preseed files via a VM or something? It takes way long to wait for a bare metal system to come up and go through motions, just to bomb on a syntax error at the end [05:45] Using 2.0.0+bzr5189-0ubuntu1 is there a way to pull up the snippets history? I rebooted my maas box and when it came up the dhcpd.conf that I had been using for a month was gone and no snippets showed in the UI anymore.. === frankban|afk is now known as frankban === Guest95404 is now known as ahasenack === ahasenack is now known as Guest59736 === ubuntu is now known as Guest74698 [16:03] I am having hell of a time trying to figure out how to escape some things in preseed files. Would someone please send me in the right direction? [16:03] ["curtin", "in-target", "--", "sh", "-c", "sed -i /etc/beegfs/beegfs-client.conf -e \"s/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/\""] [16:04] I have tried a hundred different ways to escape this and it fails every time [16:04] Stdout: b"sed: -e expression #1, char 51: unknown option to `s'\n" [16:07] solefald: I would write out the expression you want in the command line... in your case ... [16:08] curtin in-target -- sh -c sed -i /etc/beegfs/beegfs-client.conf -e"s/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/" [16:08] then use python to do it for you... [16:09] @lutostag thank you. while we are here, what is the difference with writing things like "curtin in-target -- sh -c sed -i " and ["curtin", "in-target", "--", "sh", "-c", "blahblah"]? i see the first method used when you need to echo something out [16:09] solefald: http://pastebin.ubuntu.com/23379588/ [16:10] solefald: so each item in the list is passed as a separate argument to the command [16:10] hm.. thank you [16:11] typically you only will have spaces within an item if it is quoted [16:11] Bug #1636559 opened: ssh connection drops from deployed node [16:12] solefald: https://stackoverflow.com/questions/11801098/calling-app-from-subprocess-call-with-arguments is the closest explanation I found that might be helpful [16:13] lutostag: thank you for the explanation. Trying it out now [16:17] Bug #1636559 changed: ssh connection drops from deployed node [16:20] Bug #1636559 opened: ssh connection drops from deployed node [16:36] solefald: ['curtin', 'in-target', '--', 'sh', '-c', 'sed', '-i', '/etc/beegfs/beegfs-client.conf', '-e', 's/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/'] -- looks like I missed a space when I copied your cmd [16:37] yep, saw that. thank you. i just tested and it bombs like that too with invalid sed syntax [16:38] solefald: my latest? [16:39] yep. [16:39] Installation failed with exception: Unexpected error while running command. [16:39] Command: ['curtin', 'in-target', '--', 'sh', '-c', 'sed', '-i', '/etc/beegfs/beegfs-client.conf', '-e', 's/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/'] [16:39] Exit code: 4 [16:39] Reason: - [16:39] solefald: hmm, looks like your sed is off a bit [16:40] yeah is supposed to be sed -i "s/blah/blah/" /path/to/file [16:40] I would do the sed like $ sed -i 's/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/' /etc/beegfs... [16:40] yep! [16:40] i've been doing that for years. then i found this page yesterdays [16:40] https://www.stackevolution.com/node/17 [16:40] puppet_02_onboot: ["curtin", "in-target", "--", "sh", "-c", "sed -i /etc/default/puppet -e 's/START=no/START=yes/'"] [16:41] which is rather odd, but i decided to try that because everything else i've tried failed. [16:41] solefald: ah, and I think I got the command wrong again... [16:42] and 's/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/' may need double quotes because of the regex [16:43] also i just tried on the command line and it did not work with (.*) but worked with .* so im testing that now [16:43] yeah, I think after all this it should be... [16:43] ['curtin', 'in-target', '--', 'sh', '-c', 'sed -i "s/^sysMgmtdHost(.*)$/sysMgmtdHost = 10.99.11.124/" /etc/beegfs/beegfs-client.conf'] [16:44] ['curtin', 'in-target', '--', 'sh', '-c', 'sed -i "s/^sysMgmtdHost.*$/sysMgmtdHost = 10.99.11.124/" /etc/beegfs/beegfs-client.conf'] [16:45] thank you. this is going to be my next try [16:45] i wish there was a way to validate all of this without having to deploy the box every 5 minutes [16:51] solefald: without the curtin prefix bit it seems to work...http://pastebin.ubuntu.com/23379738/ [16:51] so should be close [16:52] yep! seems like it worked! let me fix the others. i have like 15 similar lines in there [17:06] i would like to know how to modify the dns records for the maas region controller itself -- the first interface that it has got picked up and set as the IP in DNS - I would rather it be the address on one of the other interfaces [17:12] lutostag: that worked! now i am trying to figure out what to do with ["curtin", "in-target", "--", "sh", "-c", 'sed -i "s/^connInterfacesFile.*$/connInterfacesFile = /etc/beegfs/interfaces/" /etc/beegfs/beegfs-client.conf'] [17:12] because it does not like when i scape / with \ or change / delimiters to @ [17:12] solefald: sed uses whatever directly follows 's' as the delemiter... [17:13] so I would... [17:13] ["curtin", "in-target", "--", "sh", "-c", 'sed -i "s_^connInterfacesFile.*$_connInterfacesFile = /etc/beegfs/interfaces_" /etc/beegfs/beegfs-client.conf'] [17:13] ill try underscores. @'s did not work [17:13] Command: ['curtin', 'in-target', '--', 'sh', '-c', 'sed -i "s@^connInterfacesFile.*$@connInterfacesFile = /etc/beegfs/interfaces@" /etc/beegfs/beegfs-client.conf'] [17:14] solefald: did the @ work on the command line directly? [17:14] yep [17:16] hmm, $@ is a thing in bash-land, maybe that made it sad [17:16] but then again so is $_ ... [17:18] okay, dpkg-reconfigure maas-region-controller let me change the ip address that maas has configured, but it's still showing up as the old address in the DNS table [17:22] vmorris: the DNS table where? has the TTL expired? [17:22] lutostag: the DNS table in the MAAS gui still contains the old IP address for the maas-region server, i've restarted following the dpkg-reconfigure [17:23] roaksoax: ^^ === zz_CyberJacob is now known as CyberJacob [17:31] lutostag roaksoax: this is maas 2.0.0+bzr5189-0ubuntu1~16.04.1 [17:45] soooo, i'm just going to edit /etc/bind/maas/zone.maas and reverse since I can't seem to find any appropriate place to edit the thing otherwise [17:58] just fyi, that didn't help === frankban is now known as frankban|afk [18:50] lamont: ^^ [18:50] vmorris: i think you'd just need to change settings via API [18:50] but lamont may be able to answer that better [18:55] vmorris: it likely requires a restart of the region before DNS updates will have the new address [18:55] which you've done. hrm [18:56] lamont: thanks but I tried this [18:56] lamot: manually altering the records was only temporary, they were restored following the restart as wel [18:56] is there a bug filed? [18:56] well* soo.. i'm reinstalling the controller without that interface enabled [18:56] none that i'm aware of [18:57] it's likely just a symptom of my configuration here [19:02] roaksoax, is there a way in MAAS to limit what nodes a user can control? === LoRez_ is now known as LoRez [19:39] Bug #1636601 opened: Can 'break' a 'New' node but cannot 'fix' it [19:39] Bug #1636602 opened: Tool to restart all MAAS processes [19:52] yeah [20:08] Hello everyone: I've got a new instance of maas 2 up and trying to configure nodes... however the ephemeral image loads and just sits there... I see cloud-init trying to talk to meta-data but failing... is that expected? [20:16] anyone? [20:18] just poking around it looks like it's getting the wrong cloud-config-url from MAAS... it's using localhost instead of a hostname or ip [20:19] bladernr`: nope [20:19] brandor5: check /etc/maas/rackd.conf what does it say there ? [20:20] roaksoax: it is using localhost there... should that be fixed by install? [20:20] and is there a proper way to fix it other than vi [20:20] brandor5: no, if localhost is there, it will chose the value in /etc/maas/regiond.conf under maas_url [20:21] brandor5: so you have two options [20:21] 1. fix /etc/maas/rackd.conf to point to the proper IP [20:21] or [20:21] 2. fix /etc/maas/regiond.conf and leave rackd.conf as localhost [20:21] brandor5: we reocmmend you do 1 [20:21] roaksoax: awesome, thanks! [20:23] roaksoax: is there a service that needs to be restarted to take that change in? [20:29] brandor5: yes [20:41] roaksoax: which service :D [20:45] brandor5, probably maas-rackd [20:45] systemctl restart maas-rackds [20:45] (no s at the end) [20:46] brendand: ah that's it, I'm not used to systemd on ubuntu yet.... was looking for services in /etc/init.d [20:46] brandor5: maas-rackd yes [20:46] thank you [20:53] roaksoax, thanks! [21:02] does curtin run late commands in alphabetical order? [21:05] my commands are named like this - packages_0X_blah: , beegfs_0X_blah:, test_0X_blah: [22:57] Bug #1573690 changed: In the domain details pages, sometimes names have links to nodes when they should not [23:06] Bug #1573690 opened: In the domain details pages, sometimes names have links to nodes when they should not [23:12] Bug #1573690 changed: In the domain details pages, sometimes names have links to nodes when they should not