/srv/irclogs.ubuntu.com/2014/12/15/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== racedo_ is now known as racedo
=== racedo_ is now known as racedo
=== jfarschman is now known as MilesDenver
thebozzHi guys, we're having trouble deploying Openstack over MAAS using openstack-install. We're using this tutorial: http://www.ubuntu.com/download/cloud/install-ubuntu-openstack . We're at step 4, and we're getting this output: http://pastebin.com/Byaxct7c17:40
X-Robblake_r: since I'm writing script for you, is there anythign else you'd like the HDD detection stuff to do? 8)18:58
X-Robouput in JSON or something?18:58
blake_rX-Rob: I already have a script that will perform what I need18:59
blake_rX-Rob: http://paste.ubuntu.com/9531708/18:59
X-Robblake_r: and you're handinging multi-level block devices? like the /dev/cciss/c0d0 ones?18:59
blake_rX-Rob: can you give that a try to see if that pulls the required data?19:00
X-Robooh, lsblk19:00
X-Robthat works too19:00
blake_rX-Rob: can you check that the information it pulls looks correct, and that the path is correct for that type of device19:01
X-Robblake_r: yeah, trying now19:01
X-Robdevice node not found from udevadm19:03
X-Roblets see what it wants19:03
blake_rthebozz: also give #ubuntu-server a try as well, they might be able to help you more with the cloud installer as this channel is only for MAAS19:03
thebozzblake_r: thanks, I'll try there too.19:03
X-Robblake_r: also, seriously, you guys need an option 'ENABLE PROXY FOR DEPLOYED CLIENTS'19:03
X-RobI ended up rebuilding my root-tgz to add it to /etc/bash.bashrc19:04
X-Robbut I digress19:04
blake_rX-Rob: if you set the http_proxy on the settings page, the deployed nodes will use it19:04
X-Robblake_r: wat. Really? Holy shit. Anyway, lemme do this disk stuff first19:04
blake_rX-Rob: haha.19:04
blake_rX-Rob: really19:04
X-Robhttps://www.irccloud.com/pastebin/QHjV316V19:05
X-Robblake_r: so you need to replace any !'s with /'s in the device before you run udevadm19:05
X-Robthis is the problem with these stupid RAID drivers.19:06
blake_rX-Rob: udevadm info -q all -n c0d019:06
blake_rX-Rob: doesn;t work?19:06
X-Robhttps://www.irccloud.com/pastebin/k50bZxcY19:07
blake_rah I see19:07
X-RobNo, it tries to use cciss!c0d019:07
X-Robwhich is what is reported by lsblk19:07
blake_rX-Rob: udevadm info -q all -n cciss/c0d019:07
blake_rX-Rob: does that work without the "/dev"19:07
X-Robblake_r: yes19:07
X-Robsorry, force of habit me typing /dev19:08
blake_rX-Rob: can you give this one a try to see if this fixes the issue19:09
blake_rX-Rob: http://paste.ubuntu.com/9531799/19:09
X-Robhttps://www.irccloud.com/pastebin/kNfKnHRR19:10
X-Robthat looks prefect to me19:11
X-Robperfect19:11
blake_rX-Rob: what do you think about fix the name as well19:11
blake_rX-Rob: should it stay with the "!" or "/"19:11
X-Robblake_r: no, the name is correct, the sysdev all uses !19:11
blake_rX-Rob: okay19:11
blake_rX-Rob: thanks for helping me out19:11
X-Robno probs19:12
X-Robthe one other thing you may want to do is explicitly EXCLUDE the virtual disk that's being used to comission the machine19:12
blake_rX-Rob: ah, true19:12
X-Robthere was a bug about that one that I found too19:13
X-Robhttps://www.irccloud.com/pastebin/GWAF2M0H19:14
X-RobI'm guessing that 'VIRTUAL-DISK' as a string and a size less than 5MB would be a good 'this is the installer disk, don't use me' checkj19:14
blake_rX-Rob: should be able to check using iscsi commands as well19:15
X-RobNod.19:16
X-RobAnd now, when you've finished, you can go and lodge bugs against landscape, as that's using a lshw parser to determine disk sizes and types, too.19:18
X-RobThat was when I threw my hands up in the air and gave up19:18
X-RobI would be going as far as removing any nodes with disk attributes from the lshw output, to catch anyone else who's trying to use it19:19
X-Robbut that's just me, and I'm a bastard.19:19
blake_rHaha.19:20
blake_rLandscape will need to be updated to use this information19:20
X-RobOK, so, two questions. 1: I'm pretty sure the proxy settings don't actually get passed onto the clients. The field says " This will also be passed onto provisioned nodes instead of the default proxy (the region controller proxy)."19:21
X-RobTheir stuff wasn't getting proxied, when I was deploying them.19:21
blake_rWhat version of MAAS?19:21
X-Rob2: How do you run a script after a machine is provisioned?19:21
blake_r1.7?19:22
X-Robyeah19:22
X-Robthere doesn't seem to  be an easy way to tell the version from the GUI19:22
blake_rIt should be using the proxy, as we run are machines in the CI through the proxy19:22
blake_rX-Rob: no there is not an easy way in the GUI19:22
X-Robblake_r: This is just me, from experience, saying that putting it in the GUI is a good idea.19:23
X-RobI'm one of the devs of FreePBX19:23
blake_rX-Rob: if you want to run a script after it is provisioned you need to use the maas command line19:23
blake_rX-Rob: agreed it should be terhe19:23
X-RobAnd having it easily visible to end users makes our life a lot easier19:24
X-Robblake_r: so what command line? I really, honestly, went crawling through the documentation looking for this19:24
blake_rX-Rob: maas login admin http://localhost/MAAS $apikey19:24
blake_rX-Rob: maas admin node start $system_id user_data=$(base64 < test.sh)19:27
X-Robahha19:27
X-Robso there's no 'Run this script every time a machine is started' option?19:27
X-RobAs a global setting19:28
blake_rX-Rob: no as MAAS is designed to be similar to a cloud, so any user can request a machine and set a script19:28
blake_rX-Rob: you can upload a commissioning script that will run when you commission the node19:28
X-Robyeah, but that doesn't help with me wanting to run a script on EVERY machine after it's started19:29
X-RobThis is probably a feature request.19:29
blake_rYeah if you need that type of feature please make a bug, as we currently dont support that19:30
blake_rActually we do19:30
blake_rSorry but its not that simple19:30
X-RobThis came about because I wanted to add 'export http_proxy=http://172.16.0.1:3128' to /etc/bash.bashrc19:30
X-Robof every machine19:30
blake_rYou can modify the /etc/maas/preseeds/curtin_userdata19:31
blake_rLook at the late_commands you can have a command run at the end of the installation19:31
X-RobI found that, but was unsure of the syntax.19:32
X-Robwould it just be '  add_proxy: sh -c "/bin/echo 'http_proxy=http://172.16.0.1:3132 >> /etc/bash.bashrc''19:34
X-Rob?19:35
blake_rno19:35
blake_rhttp://paste.ubuntu.com/9532088/19:35
blake_ryou need the "curtin in-target --" so its placed into the installed system19:35
X-Robaaah19:35
X-Robblake_r: is there somewhere I can document this?19:35
blake_rX-Rob: https://bugs.launchpad.net/curtin/+bug/135108519:37
ubot5Launchpad bug 1351085 in curtin "documentation is out of date and sparse" [High,Confirmed]19:37
blake_rX-Rob: we know its something that needs to be improved19:37
X-RobI was hoping for a git repo so I could acutally write it and do a pull request19:38
blake_rX-Rob: you can do a MP on the curtin project but it uses "bzr"19:38
X-RobWhich I've never used19:38
X-RobI'd just got to http://maas.ubuntu.com/docs/hacking.html19:39
=== beisner- is now known as beisner

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