/srv/irclogs.ubuntu.com/2015/03/20/#cloud-init.txt

=== harlowja_ is now known as harlowja_away
=== nk121_ is now known as nk121
nk121write-files occasionally fails for me, the only i can find is07:58
nk1212015-03-20 07:35:14,540 - util.py[WARNING]: Running write-files (<module 'cloudinit.config.cc_write_files' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_write_files.pyc'>) failed07:58
nk121any ideas on how to debug?07:58
ndoneganHi, currently have cloud-init setup so it will ONLY try EC2. Unfortunately as we have found out, EC2 when using a certain provider's net product is not as reliable as we'd like, so we've been seeing the "likely bad things to come!" message a bit too often :(11:28
ndoneganAt the moment, I've made a copy of the FallBack/None data source which can take in a "user_data" from the config and do things like stop the service that's supposed to start from starting etc.11:29
ndoneganIs there any neater way of doing this?11:30
ndoneganAnd now I spot that Fallback can use data from the config!11:41
zilbersteingood day #cloud-init16:01
zilbersteinI have a problem setting timezone on virtual machine with cloud-init16:01
zilbersteinI pass `timezone` key in meta-data16:02
zilbersteinbut cloud-init reports in log the following16:02
zilbersteinMar 20 11:53:57 localhost [CLOUDINIT] cc_timezone.py[DEBUG]: Skipping module named timezone, no 'timezone' specified16:02
zilbersteinit is specified in /etc/cloud/cloud.cfg16:03
zilberstein- timezone16:04
smoserzilberstein, the '-' ?16:12
smoseroh. i see.16:12
zilbersteinsmoser, what - stands for ?16:12
smoserwhat metadata did you send ?16:13
smoserit really should work:16:13
smoser#cloud-config16:13
smosertimezone: foo16:13
=== harlowja_away is now known as harlowja_
nk121hi smoser, any ideas on how to debug write-files? sometimes my files write, and sometimes they don't. the yaml appears valid (it loads in python yaml parser at least). the only error message i could find: 2015-03-20 07:35:14,540 - util.py[WARNING]: Running write-files (<module 'cloudinit.config.cc_write_files' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_write_files.pyc'>) failed20:14
smosernk121, probably /var/log/cloud-init.log has something20:15
smosera stack trace probably20:15
smoserif not, you can alway srun that module by hand:20:16
smoser sudo cloud-init --debug single --frequency=always --name=write_files20:16
streslerI want to start work on a new datasource that I'll eventually want to submit to here http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files/1084/cloudinit/sources 21:16
streslerMy question is, what is the best way to test this? Can I drop it into the directory layout somewhere while I'm working on it, or do I need to roll a build to test it ? 21:17
nk121smoser: cool, i think i found the isssue. i'm creating an acount via system_info.default_user.name (basically to change it from "ubuntu"), and the file i'm writing has owner NEWUSER:NEWUSER, which when I log into the system that user/group exists. the error from write_files is OSError: Unknown user or group: 'getpwnam(): name not found:   so perhaps that user isn't created yet?21:19
harlowja_smoser seems like we are good to go21:25
harlowja_[self._process.terminate,21:25
harlowja_                          self._process.terminate,21:25
harlowja_                          self._process.kill]21:25
harlowja_oops21:25
harlowja_https://openstacksummitmay2015vancouver.sched.org/event/b52d0c99f65d7713c61524b5a380812b?iframe=no&w=&sidebar=yes&bg=no#.VQyQD2avL-921:25
harlowja_that one ^21:25
harlowja_lol21:25

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