=== frankban|afk is now known as frankban | ||
KpuCko | hello, can somebody help me with "maas latest meta-data instance-id failed bad status code 404" | 06:41 |
---|---|---|
KpuCko | oke, i've fixed the problem, the ip of the maas controller used for pxe boot is setted to the wrong value | 06:56 |
KpuCko | with dpkg-reconfigure i fixed the issue | 06:56 |
mup | Bug #1606948 opened: [trunk] Filter scrolling for according always shows despite only having 1 item <MAAS:New> <MAAS 2.0:New> <MAAS trunk:New> <https://launchpad.net/bugs/1606948> | 14:38 |
mup | Bug #1606999 opened: reporting messages can slow down operations greatly <cloud-init:New> <curtin:New> <MAAS:New> <https://launchpad.net/bugs/1606999> | 17:35 |
Braven36 | hello | 19:00 |
Braven36 | is there anyone is the channel? | 19:02 |
roaksoax | Braven36: for the most part, yes! :) | 19:02 |
Braven36 | Cool | 19:03 |
Braven36 | Do you work with maas alot? | 19:04 |
roaksoax | Braven36: i do | 19:06 |
roaksoax | Braven36: how can I help? | 19:06 |
Braven36 | Curtin, I do not think I full understand how it works | 19:07 |
Braven36 | I thought last_command: would run when the OS boots up for the first time. But that does not appears to be the case | 19:08 |
Braven36 | Do you know of any good document for the curtin? | 19:13 |
Braven36 | Did I lose you roaksoax | 19:20 |
roaksoax | Braven36: sorry,testing RC3 atm | 19:22 |
roaksoax | Braven36: will late_commands in curtin run during the installation process, but after the image has been copied onto the disk and everything is ready to continue | 19:23 |
roaksoax | Braven36: if you see in /etc/maas/preseeds/curtin_userdata you can see sections that say "curtin", "in-target", "--", "XYZ" | 19:24 |
roaksoax | Braven36: that is telling curtin, do XYZ inside the installed OS | 19:24 |
Braven36 | I am try to run a disk config script. | 19:25 |
roaksoax | Braven36: do you have an example ? | 19:26 |
Braven36 | of the script or what I put in the file | 19:26 |
roaksoax | Braven36: well that depends on what you want to do | 19:27 |
roaksoax | if you want to run a shell script | 19:27 |
roaksoax | you'd do stuff similar to "curtin", "in-target", "==", | 19:28 |
roaksoax | you'd do stuff similar to "curtin", "in-target", "==", "sh", "-c", "whatever-shell-you-want (e.g. run a script, do stuff like command1 && command2, etc" | 19:28 |
Braven36 | I did that and seen the script run. Then installation failed. | 19:29 |
Braven36 | I see you are using "==" instead of -- | 19:29 |
roaksoax | Braven36: that's a typo on my side | 19:30 |
roaksoax | Braven36:another way of doing it: driver_00_key_get: curtin in-target -- sh -c "/bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg" | 19:30 |
Braven36 | There not much documentation out there about it. So I feel like I missing something that everyone else knows. | 19:31 |
Braven36 | so in the example above. You do not need to use the "," | 19:32 |
roaksoax | Braven36: i think that's just two ways of doing the same thing | 19:32 |
roaksoax | Braven36: /etc/maas/curtin_userdata would give you examples | 19:32 |
roaksoax | smoser: do you have curtin docs already available ? | 19:33 |
smoser | there are some curtin docs at http://people.canonical.com/~rharper/curtin/# | 19:33 |
roaksoax | smoser: thanks! | 19:33 |
roaksoax | smoser: can cloud-init do this too? http://people.canonical.com/~rharper/curtin/topics/reporting.html#configuration ? | 19:35 |
Braven36 | interesting. I have not seen this yet | 19:35 |
smoser | cloud-init doesn ot postfiles | 19:35 |
smoser | but yes, it reports | 19:35 |
roaksoax | smoser: ah bummer, I was looking to be able to post cloud-init-output back to maas for storage | 19:36 |
Braven36 | how does cloud-init fit into Maas? | 19:36 |
roaksoax | Braven36: the ephemeral environmetn (commissioning, deploying) is driven by cloud-init | 19:41 |
Braven36 | Cloud-init reads the curtin file to deploy the server? | 19:42 |
Braven36 | I see a lot info on #cloud-config files. I also see #cloud-config at the top the curtin file | 19:45 |
roaksoax | Braven36: cloud-init drives curtin | 19:50 |
Braven36 | late-command is ran after the first reboot. | 19:55 |
roaksoax | Braven36: late_command is run during the install. In mimics what d-i does | 19:59 |
Braven36 | I am new this stuff. So curtin is all I know. is there a away to setup a script to run on boot | 20:03 |
Braven36 | and it only run once | 20:03 |
roaksoax | Braven36: you can modify the late_command to write whatever you need on your installed system, so that on first boot it runs what you need to run | 20:12 |
roaksoax | that's the usual way you can customize things | 20:12 |
Braven36 | maybe it failed some where else... my script setup disk for a hadoop data node. | 20:14 |
roaksoax | Braven36: what do you mean by setup disk ? | 20:15 |
Braven36 | there are 4 disk. in server. 1 is for the Os dev/sda and the others are for data | 20:15 |
Braven36 | The Fstab need to have the uuid of disk. | 20:16 |
Braven36 | or I mean Partition | 20:17 |
roaksoax | Braven36: why don't you partition the disk in MAAS ? | 20:26 |
roaksoax | Braven36: are you using MAAS 2.0 ? | 20:26 |
Braven36 | no.. I am using maas 1.0 | 20:49 |
Braven36 | hardware did not support 2.0 =( | 20:49 |
=== wolverin_ is now known as wolverineav | ||
mup | Bug #1607112 opened: [2.0rc2] package installation fails when default gateway is not set <MAAS:New> <https://launchpad.net/bugs/1607112> | 22:39 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!