/srv/irclogs.ubuntu.com/2013/10/18/#cloud-init.txt

tmclaugh[work]hi, i see that runcmd runs ar an "rc.local like" level.  Is there any way to run commands before other modules?16:11
tmclaugh[work]We're having some issues with yum repos and that's causing our puppet installation to fail.16:11
tmclaugh[work]we tried adding a 'yum makecache' before the installation of puppet as a precaution but it doesn't help since the command is executed after the attempt to install puppet.16:12
smoserwell, tmclaugh didn't stick around long enough17:27
ChocoboHi.  So I am having a small problem with persistent network naming rules and I think I need to delete the persistent net name rules in /etc/udev/rules.d/.  I am thinking about creating a per-instance script to do that.  Is there a better way?18:49
smoserChocobo, what is your hypervisor?19:05
smoserbecause persistent naming network rules should work correctly.19:06
smoserthey basically turn off for known MAC that are virtual19:06
smoserby mac-id allocation19:06
Chocobosmoser: kvm19:15
smoseron debian or ubuntu the default mac addrs should not get perisstent rules created.19:16
smoserunless youre creating macs yourself and not doing it correctly19:16
smosers/creating macs /creating mac addresses/19:17
Chocobosmoser: Ahh, I am using it to make a CentOS image.19:18
smoserhm..19:18
smoseri think udev has that function uptream19:18
smoserprobably just too old there.19:18
smoseror maybe locally patched in ubuntu or debian19:18
ChocoboI already have the official ubuntu image.  I should check and see how it is done.   I don't see anything in /lib/udev/rules.d/75-persistent-net-generator.rules that looks like it would match the virtual nic's MAC19:19
ChocoboI acutally don't mind having persisting nic names per instance (vm's can have multiple nics)19:20
smoserChocobo, it works right19:24
smosermostly.19:24
smoserie, virtio bus will do the right thing generally.19:24
smoseryou can get crazy and mess it up with plug unplug and such19:25
smoserbut generlly it enumerates them in a consistent way19:25
smoserChocobo, some related bugs with info19:26
smoserhttps://blueprints.launchpad.net/ubuntu/+spec/t-cloud-server-cloud-images19:26
smosershoot19:26
smoserpaste fail19:26
smoserhttps://bugs.launchpad.net/ubuntu/+source/udev/+bug/71941819:26
ChocoboSo this rule: ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}="" <--- that would match something like fa:16:3e:c1:c0:12  correct?19:30
ChocoboHow strange.  CentOS has the same rule but it still writes the rule out.19:46
smoserChocobo, i dont know.20:06
smoserctracey, is there some reason why you'd not want 'tee' ?20:28
smoserhttps://bugs.launchpad.net/cloud-init/+bug/124170120:28
smoseras in20:28
smoseroutput: {all: '| tee -a /var/log/cloud-init-output.log'}20:28
smoserthe package command being logged makes quite reaosnable sense20:29
smoserbut is thre a reason that capturing output generically is insufficient ?20:30

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