/srv/irclogs.ubuntu.com/2013/10/08/#maas.txt

bigjoolshack the api source that deals with maas-enlist00:00
bigjoolslog the request there00:00
roaksoaxbigjools: this is not maas-enlist btw00:00
roaksoaxthis is maas0singla00:00
roaksoaxmaas-signal00:00
bigjoolsyeah00:00
bigjoolsthat hits metadata service IIRC?00:00
roaksoaxyeah00:01
=== freeflying_away is now known as freeflying
bigjoolsroaksoax: any luck?00:29
kurt_Any ideas why tags aren't working? http://pastebin.ubuntu.com/6207405/00:31
=== freeflying is now known as freeflying_away
roaksoaxbigjools: nope00:32
roaksoaxbigjools: i gave up00:32
bigjoolsroaksoax: urgh00:32
bigjoolsroaksoax: I'll see if we can extend that logging to the metadata api00:32
bigjoolsroaksoax: but surely a logger.info() hack will show you the data we need00:33
roaksoaxbigjools: i uploaded the paclage to experimwntal ppa00:33
roaksoaxthat includes the00:33
roaksoaxmoonshotbstudd00:33
roaksoaxstuff00:33
roaksoaxanyway i gotta go00:33
roaksoaxwill be back later00:33
bigjoolsroaksoax: ok00:33
bigjoolskurt_: are you sure the system id is right00:34
kurt_I'll pastebin00:34
kurt_bigjools: good call.  I'm working with two different test systems. Thanks00:37
stokachuim still having issues getting the maas instance to power off/start a node via virsh00:37
stokachuive tested that i can virsh --connect qemu+ssh://ubuntu@10.x.x.x/system from the maas instance and can see the nodes00:38
stokachuand starting/stopping from there works00:38
stokachussh keys are deployed from maas instance to host as well00:39
stokachukeys are added to my preferences00:39
smoserstokachu, is your problem that maas can't power the nodes on?00:42
stokachusmoser: yea00:42
smoserare yo usure ?00:42
stokachusmoser: i click start node from the UI and nothing happens00:42
stokachuif i use virsh from maas instance i can start it there00:42
stokachuive looked through all the logs and don't actually see where it attempts to power the node on00:42
smoseryou can do that as the 'maas' user ?00:43
stokachusmoser: yea running virsh --connect qemu+ssh://ubuntu@10.x.x.x/system from the maas instance works00:43
smoserno00:43
smoseras the maas user00:43
smosersudo -Hu maas virsh --connect ...00:44
stokachulemme try00:44
smoserin saucy the virsh.template is /etc/maas/templates/power/virsh.template00:44
smoserit might be elsewhere on raring.00:44
stokachuit prompts for a password so i dont have ssh keys copied for that user00:44
smoserright. so 2 options then.00:45
smosera.) get the maas user able to connect without prompt00:45
smoserb.) change that template file in issue_virsh_command() to do sudo -Hu someuser00:46
smoserand make someuser able to connect00:46
stokachuok, and where in the logs could i find errors like this?00:46
stokachulike where it seems to be waiting on input00:46
stokachuis that a celery thing?00:47
smoseri dont know where you'd see logs liek this. probably would be in cluster-controller.00:47
smoserit may be that its just still blocked int hat script00:47
smoserand there *is* no long00:47
smoserno log00:47
smoserfwiw, http://bazaar.launchpad.net/~virtual-maasers/charms/precise/virtual-maas/trunk/view/head:/scripts/setup-maas00:48
smosersee line 230 there. thats how we hacked it. 229 -> 24300:48
stokachuah ok00:49
smoserbut you shoudl prbably be able to get the maas user able to ssh itself like that00:50
stokachusmoser: yea i need to set a shell for the maas user and all that00:50
smoserright.00:50
stokachuok lemme do that now and see00:51
stokachusmoser: http://askubuntu.com/questions/292061/how-to-configure-maas-to-be-able-to-boot-virtual-machines found this as well00:56
stokachumaybe we should add that into the official docs for maas on libvirt00:56
smoserthat is a well written answer.00:57
stokachuthats the way i just did it and it worked00:58
smoserroaksoax, bigjools ... is there a way to create a non-admin user non-interactively ?02:06
smoser i guess i can just create admin and the drop staff or something.02:06
bigjoolssmoser: don't think there is02:07
roaksoaxno idea02:07
roaksoaxbigjools: any luck?03:36
bigjoolsroaksoax: well I was waiting for you to implement my suggestion03:36
roaksoaxbigjools: lol what's your suggestion again?03:37
bigjoolslogger.info() in the relevant API call03:37
bigjoolsdump the request03:37
bigjoolseither that or you just tcpdump03:37
roaksoaxbigjools: well unfortunately i lost access to the environment03:39
roaksoaxso i guess nothing will get done today03:39
bigjoolsdamn03:39
bigjoolswell we can reproduce elsewhere03:39
roaksoaxbigjools: yeah03:39
roaksoaxbigjools: one with ipmi03:39
bigjoolsat least if it's not reproducible it's a little less urgent03:39
roaksoaxsmoser: do we have anything available?03:39
roaksoaxbigjools: do we have somewhere to reproduce this?03:57
bigjoolsroaksoax: qa lab?03:57
bigjoolsgarage maas?03:57
roaksoaxbigjools: garage maas is a no03:57
roaksoaxbigjools: i have an idea04:00
roaksoaxwill try to reproduce locally faking ipmi discovery04:00
bigjoolsroaksoax: we need an SRU for python-tx-tftp (0.1~bzr31-0ubuntu8)04:05
bigjoolsfor precise04:05
roaksoaxbigjools: cloud archive04:05
bigjoolsis it in there already?04:05
roaksoaxshould be yes04:05
bigjoolsand is this the excuse for not doing SRUs now? :)04:05
roaksoaxbigjools: not, but the reason of the cloud-archive is we want to avoid the headaches of sru's right?04:06
bigjoolsI thought it was to get around changes that were not SRUable04:07
bigjoolsthat said, I don't know if that tftp one is or not04:07
roaksoaxbigjools: probably04:08
roaksoaxwell let's think about it post release04:08
bigjoolsyeah, better time :)04:12
kurt_bigjools: why can't maas-cli support multiple value pairs for tags? i.e. maas-cli maas tag nodes cntrlr-node, quantum-node OR cntrl-node quantum-node etc.04:26
roaksoaxbigjools: reproduced locally04:27
roaksoaxbigjools: so how can I see logs again?04:27
bigjoolsroaksoax: good, yet bad :(04:27
bigjoolsroaksoax: edit the maas-signal function to log the request04:27
roaksoaxbigjools:  payload = geturl(url, creds=creds, headers=headers, data=data) >04:30
roaksoax?04:30
bigjoolskurt_: because it wasn't implemented that way I guess04:30
kurt_doesn't it make sense to do that?04:30
bigjoolsroaksoax: hang on04:30
bigjoolskurt_: probably, but it is what it is04:30
kurt_too much to ask for an enhancement?04:31
bigjoolsfeel free to file a bug04:31
kurt_ok dokey04:31
bigjoolsnot sure if/when it would get looked at04:31
bigjoolsbut the source is open.... ;)04:31
kurt_i'm almost certain there are bigger fish04:31
kurt_:)04:31
bigjoolsI can agree there04:32
kurt_about your question about how to detect VMWare, I was going to respond in email.  But since you are here…how is kvm detected?04:33
roaksoaxbigjools: i think we could log where we receive the mparticular request04:33
roaksoaxon the metadata server side04:34
bigjoolsroaksoax: I am making you a patch04:34
roaksoaxok04:34
kurt_bigjools: never mind.  I just added info to the bug.04:34
bigjoolsroaksoax: untested, but: http://pastebin.com/zVdmRAPD04:36
roaksoaxbigjools: nothing logged :/04:41
bigjools!04:41
bigjoolsrestarted apache?04:41
roaksoaxdid that04:41
roaksoaxrestarting machine04:41
bigjoolswtf04:41
bigjoolsroaksoax: https://bugs.launchpad.net/maas/+bug/123215404:52
ubot5Ubuntu bug 1232154 in MAAS "Logs seem incomplete" [Critical,Triaged]04:52
bigjoolssomething is screwed04:52
bigjoolstry using print() instead of logger04:52
roaksoaxyeah is saw a few MP's related to loggers04:52
roaksoaxbigjools: ok so tomorrow i'll confirm this bug is in trunk without the moonshot stuff04:54
roaksoaxbigjools: but this really shouldn't be affected by mnoonshot04:54
roaksoaxbigjools: lp:~andreserl/maas/moonshot_enablement04:54
bigjoolsyeah04:54
bigjoolsI agree04:54
bigjoolsroaksoax: having said that, the daily tests in the QA lab would have been blowing up04:55
roaksoaxbigjools: yeah/ I'm wondering if it is because enlistment works, then commissioning for some reason keeps the same credentials04:56
roaksoaxi'll debug this tomorrow though04:56
bigjoolsroaksoax: it's possible that is exactly what is happening04:59
bigjoolsa bug was fixed where something was getting overwritten unnecessarily IIRC04:59
roaksoaxmaybe that's related04:59
roaksoaxwe'll see04:59
roaksoaxbigjools: so it seems the mparameters are not being passed05:04
roaksoax    raise MAASAPIBadRequest("power_type %s, power_params %s" % (power_type, power_parameters))05:04
roaksoaxMAASAPIBadRequest: power_type ipmi, power_params None05:04
bigjoolsroaksoax: where is that code?05:05
roaksoaxbigjools: api.py05:06
roaksoaxstore_node_xyz05:06
roaksoaxmaasserver/api.py05:06
roaksoaxstore_node_power_parameters05:06
bigjoolsso maas-signal is broken?05:06
roaksoaxbigjools: maybe! i'll debug this tomorrow against the latest trunk (without my enablement branch)05:07
bigjoolsok05:08
roaksoaxbigjools: ok05:09
roaksoaxi know what the issue is05:09
* roaksoax is blind05:09
roaksoaxroaksoax: params["power_parameters"] = json.dumps(power_parms)05:09
roaksoaxthat's what was missing :(05:09
bigjoolsroaksoax: missing where?05:09
roaksoaxbigjools: in my enablement branch :)05:09
bigjoolsroaksoax: lol05:09
bigjoolssorry for laughing :)05:09
bigjoolsroaksoax: TESTS!05:10
roaksoaxbigjools: yeah I haven't gotten to that part yet05:10
bigjoolscan you see why we are anal about tests? :)05:10
roaksoaxbigjools: lol05:12
roaksoaxbigjools: anyway, sorry for the noise05:12
* roaksoax bed05:12
bigjoolsroaksoax: sleep well!05:12
roaksoax2 more months till vacation05:12
roaksoaxyaaaaaaaay05:12
bigjools:)05:14
=== CyberJacob|Away is now known as CyberJacob
=== rbasak_ is now known as rbasak
mgzhow does the maas api versioning work?10:30
mgzbug 1236734 mentiones that ip_addresses doesn't exist in the raring maas, can I not check that based on maas version somehow?10:30
ubot5bug 1236734 in juju-core "juju 1.15.1 polls maas API continually" [Undecided,New] https://launchpad.net/bugs/123673410:30
bbcmicrocomputerbe great if someone could take a look at bug 123678610:34
ubot5bug 1236786 in MAAS "ISO fails installing maas-dhcp" [Undecided,New] https://launchpad.net/bugs/123678610:34
bbcmicrocomputerit breaks the install CD currently10:34
=== freeflying_away is now known as freeflying
rvbaroaksoax: hi, could you please have a look at bug 1236786?10:47
ubot5bug 1236786 in MAAS "ISO fails installing maas-dhcp" [Undecided,New] https://launchpad.net/bugs/123678610:47
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
roaksoaxrvba: there's really no information for me to figure out what's wrong on that bug, I'd need logs13:19
roaksoaxsmoser: bug #123678613:20
ubot5bug 1236786 in MAAS "ISO fails installing maas-dhcp" [Undecided,New] https://launchpad.net/bugs/123678613:20
roaksoaxbbcmicrocomputer: ^^13:20
rvbaroaksoax: thanks for looking into it.13:21
=== freeflying is now known as freeflying_away
roaksoaxsmoser: ok so the fix for the apache2 thing works in saucy13:58
roaksoaxi have not tested packaging13:58
roaksoaxin precise13:58
roaksoaxbut saucy works13:58
roaksoaxrvba: around?14:14
rvbaroaksoax: yes14:15
roaksoaxrvba: so any updates on the maas-import-ephemerals stuff?14:15
rvbaroaksoax: well, yes; making progress but it's not yet done.  Julian wanted Jeroen to make a few changes to the migration stuff…  sorry I can't be more precise than that.14:16
roaksoaxrvba: so there's no way we will have something for today ig uess then?14:17
rvbaroaksoax: no, not today.  Hopefully tomorrow.14:17
roaksoaxrvba: alright.. tomorrow is really our last day to upload stuff14:17
roaksoaxsmoser: ^^14:17
bbcmicrocomputerroaksoax: added syslog with debug mode to bug 123678614:46
ubot5bug 1236786 in MAAS "ISO fails installing maas-dhcp" [Undecided,New] https://launchpad.net/bugs/123678614:46
roaksoaxbbcmicrocomputer: what's the workaround you had?14:51
bbcmicrocomputerroaksoax: I was mounting securityfs on /target/sys/kernel/security, then installing, but in the preseed/late_command option14:53
bbcmicrocomputerroaksoax: although you can't use that here14:53
roaksoaxbbcmicrocomputer: right cause judging from the logs... it doesn't really tell me what's failing exactly14:53
roaksoaxbbcmicrocomputer: can you try this though?14:54
roaksoaxbbcmicrocomputer: http://paste.ubuntu.com/6209648/14:54
roaksoaxbbcmicrocomputer: that should probably deal with it14:55
roaksoaxsince invoke-rc.d is denied execution (which is expected) maybe that's causing the failure14:55
bbcmicrocomputeryeah it's not obvious, 'Warning: unable to find a suitable fs in /proc/mounts, is it mounted?' comes from apparmor_parser inside maas-dhcp postinst I believe14:55
bbcmicrocomputerwhich returns exit status of 114:55
roaksoaxbbcmicrocomputer: righ14:56
bbcmicrocomputerthen we would just run preseed/late_command as 'in-target sh -c \"mount -t securityfs none /sys/kernel/security; apt-get -y install maas-dhcp"'14:56
bbcmicrocomputerand that would work14:57
roaksoaxbbcmicrocomputer: right, so have you looked at any other package that can be installed during the installed that uses apparmor_parser?14:57
bbcmicrocomputerroaksoax: nope14:58
roaksoaxbbcmicrocomputer: because i'm pretty sure there are other packages that are installed during the installer that install an apparmor profiel14:58
roaksoaxso i don't think that would be a cause of issues14:58
bbcmicrocomputerok14:58
roaksoaxbbcmicrocomputer: let me see what's happening in that postinst though14:59
bbcmicrocomputerok, thanks14:59
roaksoaxbbcmicrocomputer: taking for ever to download the latest ISO15:10
roaksoaxbbcmicrocomputer: is it possible for you to quickly edit the postinst script15:10
roaksoaxbbcmicrocomputer: before it gets run and add a set -x ?15:10
roaksoaxso it outputs what's actually doing?15:10
bbcmicrocomputerroaksoax: sure, I figure something15:11
roaksoaxbbcmicrocomputer: thank you!15:11
roaksoaxbbcmicrocomputer: so I'm pretty sure this would avoid the issue on the cd install: http://paste.ubuntu.com/6209795/15:34
roaksoaxbbcmicrocomputer: but dunno what the effect would be15:35
bbcmicrocomputerroaksoax: I can try, I'm just collecting the previous output :)15:36
bbcmicrocomputerroaksoax: the install cycle takes 10 mins on my machine :(15:37
roaksoaxboomer15:38
roaksoaxbbcmicrocomputer: that seems to be the correct fix. bind9 for example does this: debian/bind9.postinst:        apparmor_parser -r "$APP_PROFILE" || true15:42
roaksoaxbbcmicrocomputer: so adding the|| true would allow this to work on CD isntall15:42
bbcmicrocomputerroaksoax: yep15:44
bbcmicrocomputerroaksoax: I'll try15:44
roaksoaxjust confirmed the theory with jdstrand15:44
roaksoaxso I'll make the fix15:44
bbcmicrocomputerroaksoax: I've added the output to the ticket15:45
bbcmicrocomputerdebug output, which gives up on that line, yes15:45
roaksoaxbbcmicrocomputer: ok, i just tested it15:49
roaksoaxbbcmicrocomputer: it works15:49
bbcmicrocomputerroaksoax: cool15:49
bbcmicrocomputerroaksoax: how long will it take for that fixed package to make it into the archive?15:54
roaksoaxbbcmicrocomputer: tomorrow15:55
roaksoaxbbcmicrocomputer: i'm not gonna upload anything until the final changes to trunk land15:55
bbcmicrocomputerroaksoax: ok, cool, thanks15:55
stokachudoes maas utilize fast-path installation yet?16:09
stokachui see python-curtin16:09
stokachubut there aren't any preseed template defined for it16:09
stokachui see curtin and curtin_userdata should i just extend userdata to contain post_Scripts?16:15
=== teknico1 is now known as teknico
stokachuhas curtin/xinstall been tested with preseed_xinstall+generic?18:51
stokachuso far its not picking up the preseeds18:51
roaksoaxstokachu: yes it has19:17
stokachuroaksoax: i see where curtin_userdata has a spot for late_commands19:18
stokachubut i dont see how preseed_xinstall is coming into play19:18
roaksoaxstokachu: it does, i haven't test it19:18
roaksoaxstokachu: preseed_xinstall is only a "preview"19:18
stokachuso whats the format of curtin_userdata if i wanted to add multiple commands19:18
roaksoaxstokachu: you'd need to check with smoser :) I haven't got that far just yet19:19
stokachuroaksoax: http://paste.ubuntu.com/6210689/19:19
stokachuok19:19
roaksoaxstokachu: but judging for the pb, i'd say something like: http://pastebin.ubuntu.com/6210707/19:23
stokachuroaksoax: gotcha trying that now19:24
stokachuhmm tried something like http://paste.ubuntu.com/6210716/ and it didn't work.. ill just wait for smoser to come back19:26
smoserstokachu, here.19:27
stokachu:)19:27
smoseryou rad too far19:27
smoserpreseed_xinstall is not invovled period.19:27
stokachuthat was from the docs on maas.ubuntu.com19:27
stokachuhttp://maas.ubuntu.com/docs/development/preseeds.html19:27
smoserk. docs suck.19:28
stokachusmoser: so ive been messing with curtin_userdata19:28
stokachuhttp://paste.ubuntu.com/6210716/ trying to get late_commands to work19:28
stokachufastpath installs and it's definately fast19:28
stokachu12 seconds19:28
smoserright. so curtin_userdata is what you'd modify.19:29
smoserwhat do you need to do19:29
stokachuhttp://paste.ubuntu.com/6210716/ check that snippet19:29
stokachujust want to download and run a shells cript in the late command19:29
stokachui was using http://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/doc/topics/overview.rst as a reference19:32
smoserstokachu, right. thts not unreasonable.19:33
stokachusmoser: is my config correct with the late_commands?19:33
smoserstokachu, yeah, its not unreasonable.19:35
smoserhttp://paste.ubuntu.com/6210737/19:35
smosermight work also19:35
stokachusmoser: nice let me try that19:36
smoseryou're just replacing the builtin "configure network" command19:36
smoserwhich is19:36
smoser'network_commands': {'builtin': ['curtin', 'net-meta', 'auto']}19:36
smoserstokachu, are you getting installs ?19:36
smoseryour 12 seconds doesn't seem reasonble.19:37
stokachusmoser: so it installs and i can ssh to it19:37
stokachuand i create a file to make sure it is destroyed on new node installs and its gone19:37
smoserwow.19:37
smoserwell thats fast!19:37
stokachuthe logs indicate that its pulling the curtin images19:37
stokachudude its super fast... 25minutes using the old way, 12 seconds using curtin19:38
stokachukeep in mind this is in a kvm though19:38
smoseryeah.19:38
stokachuso bare metal may be different19:38
smoserand with unsafeio also19:38
stokachuyea19:38
smoserstill i hadn't seen that fast.19:38
stokachu:)19:38
stokachutrying the install now to see if the network gets picked up19:39
smoserthe goal is for when maas knows about networking is for it to do basically what i told you to do there.19:39
stokachusmoser: http://imgur.com/ytjNstd19:40
smoserand it didn't land in saucy, but the goal was/is also to have a 'user-install-data' snippet.19:40
smoserthat can be provided to maas.19:40
stokachuah ok19:40
smoserand it goes in as a config to curtin19:40
smoserso you'd no thave to be able to modify the preseed, and could change your mind on every install.19:40
stokachuthats awesome19:40
stokachuthe install didn't pick up the vlansetup script i have though :(19:40
smoseryou should configure console output on your vms.19:41
smoserhm..19:41
smoserserial console output log to a file19:42
smoseris what i meant.19:42
stokachuhttp://paste.ubuntu.com/6210772/ thats my script19:42
smoserso you dont have ot deal with crappy vnc for watching19:42
stokachusmoser: yea i am going to set that up today as well19:42
smoseroh. well, fwiw, what i gave you above was not to be executed.19:42
smoserjust to be downloaded.19:42
stokachuah19:42
smoserthat would be what you have in /etc/network/interfaces19:43
smoser:)19:43
stokachuahh19:43
stokachuis $OUTPUT_INTERFACES defined or should i change that to /etc/network/interfaces?19:43
smoserOUTPUT_INTERFACES should be defined by curtin when it executes the command.19:44
stokachuok19:44
smoserto execute, something like:19:46
smoser mine: ['sh', '-c', 'wget "$1" -O - | sh', '--', 'http://192.168.122.206/vlansetup']19:46
stokachusmoser: thanks ill try that19:46
smoserbut you'll have to change your script so that it writes to $OUTPUT_INTERFACES19:46
smoseror19:46
smoseryeah, you'll have ot do that reasonably. writing to /target/etc/network/interfaces wont work19:47
smoserfor 2 reasons19:47
smosera.) i dont think it will be mounted at target19:47
smoserb.) the i think it'd get copied over. (or might fail later if there i sno OUTPUT_INTERFACES)19:47
stokachuok thats cool, ill mess around with it some more today and see what i can come up with19:48
stokachuat least this gets me in the right spot for curtin19:48
stokachusmoser: thanks :)19:48
smoserno, clearly your devcycle is pretty fast here.19:48
smosernow.19:48
smoserbut if you want, you can use curtin trunk there is a 'launch' that will boot kvm install to a disk and stop19:49
stokachusmoser: niceee that would be handy19:49
smoserbut it doesn't reboot yet :)19:49
stokachuthats ok it would still easier19:50
smosersee doc/devel/README.txt19:50
smoserand feel free to add a '--then-boot-it-dummy' flag19:50
roaksoaxsmoser: when are we going to have saucy images?19:51
stokachucool ill check that out today too19:51
smoserroaksoax, saucy images ephemeral ?19:51
smoserthey're there.19:51
roaksoaxsmoser: released?19:51
roaksoaxsmoser: or daily's?19:52
smoserhttp://paste.ubuntu.com/6210816/19:53
roaksoaxsmoser: cool thanks19:53
roaksoaxsmoser: btw... so we need to decide what to do with the moonshot and maas-enlist and ipmitool19:53
stokachuin my /etc/network/interfaces file after a node start i see ## This file is generated by cloud-initramfs-dyn-netconf20:08
stokachucould that be overriding my customizations?20:08
lifelessooh dynamic network confic20:20
lifelesssmoser: ^ is that new ?20:20
smoserlifeless, /etc/network/interfaces.d is new in saucy.20:29
smoserthat config there is for 'curtin' which is the "fast path installer" in saucy.20:29
lifelesshttps://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/dhcp-all-interfaces20:32
lifelessis a related thing we did20:32
smoseryeah, curtin does that too.20:33
smoserits kind of garbage though20:33
smoseras dhcp eth020:33
smoserthen wait some length of time20:33
smoserwhich might be to short20:33
smoserkinda sucks.20:33
lifelessyeah20:34
smoserhttp://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/curtin/net/__init__.py20:34
smoser'is_connected'  at least is sane.20:34
smoserstokachu, progress ?20:40
stokachusmoser: everytime i boot the node it just seems like /etc/network/interfaces is unchanged20:41
stokachui changed the script to output a interfaces file20:41
stokachuand i added a config_hook20:41
smoserhm..20:41
smoseri'll play some20:41
stokachuhttp://paste.ubuntu.com/6211001/20:41
stokachuthats what i have so far20:41
stokachuhttp://paste.ubuntu.com/6211003/ thats my interfaces file20:42
smoserhm..20:44
stokachuam i supposed to copy the /etc/network/interfaces file in the config_hook?20:44
stokachudocs suggest that unless told so it just keeps the interfaces file in memory20:45
smosercurtin shoudl copy OUTPUT_INTERFACES to the target /etc/network/interfaces20:46
stokachuautomatically right?20:46
smoserright.20:46
stokachuhmmm20:46
stokachusmoser: could it be and then getting overwritten by cloud-initramfs-dyn-netconf?20:47
smoserit shouldn't. that only wirtes /run/interfaces20:49
smoserright?20:49
stokachuit added the comment in /etc/network/interfaces20:49
smoserhm..20:56
smoseractually, no.20:57
smoserthat came from the ephemeral image boot20:57
smoserand was the copied to OUTPUT_INTERFACES and then copied back in i think.20:57
stokachuso that would've been earlier in the install right?20:58
smoserlet me see.20:58
smoserok.20:59
smoserso wrt http://paste.ubuntu.com/6211001/20:59
smoseri'm not sure why netowrk_commands wouldn' twork.20:59
stokachuok21:00
smoserconfig_hook is wrong if thats what doc says21:00
stokachusmoser: it wasn't really clear to me how to use it21:00
stokachuconfig_hook: {{TARGET_MP}}/opt/curtin/config-hook21:01
stokachubut then it talks about helpers21:01
stokachuso wasn't sure the syntax21:01
smoseryeah, so that probalby just rong21:02
smoseryou should be able to do:21:06
smoserhook_commands:21:06
smoser myhook: [sh, -c, 'something']21:07
smoser['curtin in-target echo "8021q" >> /etc/modules']21:07
smoseris probably wrong though21:07
stokachuok, i didnt see any documentation for hook_commands21:07
smoserhtat will try to execute a program called 'curtin in-target echo "8021q" >> /etc/modules'21:07
stokachuthere is final_commands21:07
smoserstokachu, documentation lags a bit.21:07
stokachuok21:07
smoserfinal_commands replaced by late_commands.21:08
stokachugotcha21:08
smoserstokachu, i'm sorry that doc is behind.21:15
smoseri have a system set up and i'll try to figure out a working ocnfig to do what you want.21:16
stokachusmoser: thats ok, i plan on submitting MP's21:16
stokachusmoser: i'd appreciate it, ill be hacking away at it in parallel21:16
stokachusmoser: fwiw i tested the hook_commands and didn't see "8021q" added in /etc/modules21:17
smoserwell, see above.21:17
smoserit wouldnt work like that.21:17
smoserit should have failed21:17
smoser'curtin in-target echo "8021q" >> /etc/modules'21:18
smosernot: ['curtin in-target echo "8021q" >> /etc/modules']21:18
stokachuok21:18
smoserthe first i think will get invoked under 'sh' as a convenience21:18
smoserbut if the value is an array21:18
smoserthen it will invoke it with execve21:18
smoserwhich is going to try to run 'curtin in-target echo....' as a program in the PATH.21:19
smoserie, not with sh.21:19
stokachuah ok21:19
smoserstokachu, i'm out for a bit. i'll be back in sometime later.21:20
stokachusmoser: no worries21:21
stokachuthanks again21:21

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