/srv/irclogs.ubuntu.com/2018/05/30/#cloud-init.txt

=== powersj_ is now known as powersj
rezrooHi04:38
rezrooI have a ubuntu-16.04 on google cloud platform, and I give it a multi-mime userdata which I know works on aws. cloud-init configuration seems fine on the server and cloud-init version is 18.2. It executes the first portion which is #cloud-config format but doesn't execute the text/x-shellscript part. Any idea why? I've check /var/log and I don't find any errors. I'm executing a simple 'touch somefile.txt' and there's no file on04:42
=== catmando_ is now known as catmando
=== cyphermo1 is now known as cyphermox
=== r-daneel_ is now known as r-daneel
Odd_Blokepowersj: I'm struggling to work out how to make this "get the SSH key on to the instance" change in an appropriate manner.15:16
Odd_Blokepowersj: I was wondering if you might be able to implement a basic disable_root test (which would enable SSHing to the instance under test from the instance itself), and then I can expand on that once the test framework functionality is in place?15:17
powersjOdd_Bloke: I'm not sure I see other tests re-using that functionality15:51
powersjOdd_Bloke: can you show me what you have?15:51
Odd_Blokepowersj: I haven't got anything, because I couldn't work out where to add it.15:52
Odd_Bloke(AFAICT, I can't just do it for one test, because tests don't define any Python code that runs on the testing host, so the framework would need to change somehow.)15:54
blackboxswrezroo: stderr of scripts get emitted to /var/log/cloud-init-output.log so there may be error messages hiding in there. If you think there is a bug (because you say is works on aws but not on gce) you could file a bug with "ubuntu-bug cloud-init" on the commandline with the details16:14
blackboxswrharper: I'll need to steal you for a little bit today on the netplan match question for Azure. when's a good time?17:11
cyphermoxblackboxsw: sorry, what's this about?17:43
blackboxswcyphermox: cloud-init uses to netplan's match: macaddress as we expect that mac will be persistent and unique for a single device even despite any logical versus persistnet network naming. this causes an issue for azure instances which end up dropping the original nic and attaching a new nic to the instance.  cloud-init doesn't regenerate netplan network config for this instance, because azure doesn't expose a new UUID17:47
blackboxswfor the instance (which would trigger a netplan config regeneration), so cloud-init doesn't update network config containing the mac address of the new device17:47
* blackboxsw needs to understand azure's use-case for dropping existing nic and replacing with a new nic. As this feels like an infrequent use-case.17:48
rharperblackboxsw: I'm back now18:33
rharpernow is fine for chat18:33
blackboxswgood, deal, grabbing a quick coffee18:33
blackboxswrharper: jumping into cloud-init hangout18:38
rharperk18:38
rharperblackboxsw: hangout or meet ?18:39
rezrooblackboxsw: I filed a bug with google. I don't think it's ubuntu's fault. I think gce uses cloud-init in how it provisions ubuntu in it's infrastructure in such a way that subsequent x-shellscripts from the user don't run. If I understand it correctly these are only run once, and if gce runs its own shellscript then there would be a marker in /var/lib/cloud/instance that would stop another script to run. I'm 19:11
mgerdtsI'm starting down the path of backports to trusty.  git clone ; git checkout -b trusty-joyent remotes/origin/ubuntu/trusty; make deb22:24
mgerdtsAnd it wants to use bzr.  Ugh.  Never done that before22:24
dpb1mgerdts: :)22:24
mgerdtsI can't find any instructions that help me check out this branch from bzr.  README.rst in that branch has instructions that are too terse for a first time bzr user.  Any hints?22:24
mgerdtsOr should I realize that it is after 5 pm and go find a beer instead?  I'm really ok if that is the right answer tonight.  :)22:25
dpb1mgerdts: which branch?22:27
dpb1mgerdts: can you point me at the README.rst?22:27
mgerdtsubuntu/trusty22:28
mgerdtshttps://github.com/cloud-init/cloud-init/blob/ubuntu/trusty/HACKING.rst22:29
mgerdtssorry, HACKING.rst22:29
mgerdtsIt was missing the launchpad-login step, so did that, then got a key that works with launchpad, added that to my keyring22:32
mgerdtshttps://hastebin.com/fiqulimuwi.rb22:33
dpb1thanks that helps22:53
dpb1ah, I see22:54
dpb1we switched to git22:54
dpb1so, your first step there is failing, you are trying to checkout in effect the 'trunk' branch of the repository, but that is now in git.22:55
dpb1I know that for trusty, things are still in flux, as you'll notice there is no branch in the upstream git repo for 'ubuntu/trusty'.22:58
dpb1like there is for 'ubuntu/xenial'22:58
dpb1mgerdts: tl;dr, for trusty, I think you should get that beer and ask when folks are around tomorrow. :)22:59
mgerdtsGood plan.  :)23:00

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