/srv/irclogs.ubuntu.com/2015/04/28/#cloud-init.txt

=== rangerpb is now known as rangerpbzzzz
=== harlowja_ is now known as harlowja_away
=== shardy_z is now known as shardy
jeffgus_hi all,06:17
jeffgus_is anyone else having issues with cloud-init on rhel7.1?06:17
jeffgus_it doesn't seem to be processing the template correctly06:17
jeffgus_as in the chef template06:17
jeffgus_when i downgrade the version it works06:17
jeffgus_0.7.5-6 works06:18
jeffgus_0.7.6-2 doesn't work06:18
=== rangerpbzzzz is now known as rangerpb
smoserclaudiupopa, what was the c-i you were showoing me earlier?15:10
smoserlink to github?15:10
claudiupopasmoser: https://github.com/PCManticore/argus-ci15:12
smoserthansk15:12
claudiupopadevelop branch is where the work goes atm.15:12
claudiupopanp.15:13
smoserJayF, on a OnMetal the smallest, what is the disk there? 15:35
smoserwhere did you come up with a 32GB disk drive15:35
JayFit's a 32GB SATADOM16:02
JayFbasically an SD card with a SATA port attached is the easiest way to describe it16:02
nrezinornhello, is this a good channel to ask for some quick help?  I wrote a cloud-config file that works on cent6, doesnt work on cent7 - and currently the cent7 partially works, but fails to run the 'runcmd:' section :(  16:46
=== harlowja_away is now known as harlowja_
plathropIs anyone here successfully using cloud-config for creating initial users on Ubuntu Trusty?18:28
harlowja_nrezinorn can u describe what u are seeing, and maybe get a /var/log/cloud-init.log (that doesn't contain sensitive info)18:49
harlowja_another option, get full debug log that we can use also18:50
harlowja_if u put the following in your yaml u should force on debugging18:50
harlowja_# Print debug output to console so that it is accessible from 'nova console-log'.18:50
harlowja_log_cfgs: []18:50
harlowja_something must be up :-P18:50
nrezinornsure i can do that, let me upload all my configs to GHE or something :)18:51
nrezinorni dont see anything logged after spinning things up (to verify cloud-init)18:51
harlowja_hmmm18:51
harlowja_ya, thats weird then :-/18:51
harlowja_if u see nothing, thats odd :-/18:51
nrezinornthe wierd thing to me, is it loads some parts of the config file18:51
nrezinornit drops the SSH keys, etc18:52
harlowja_odd18:52
nrezinornbut simply fails to run the runcmd section and its failing to run the packages section18:52
nrezinornit only fails on centos7, centos6 works perfectly!18:52
harlowja_weird18:52
harlowja_using that logging trick might help18:52
nrezinorngive me a few to do the logging trick, then i will share what i have so you can see18:53
harlowja_k18:53
nrezinornyour log_cfgs has given me a ton of debug info18:55
nrezinornill just look through it all , thanks  :)18:55
nrezinornit doesnt even try to load the modue for runcmd  , it does try bootcmd though18:57
harlowja_so that makes me wondering if your /etc/cloud/cloud.cfg isn't listing runcmd19:04
harlowja_if thats so, then there's your problem :-P19:04
nrezinornoh its in there :)  like is why i said im confused because my centos6 cloud-config file *should* also work on centos7 19:05
harlowja_k, odd19:05
harlowja_hopefully all the debug junk has something useful :)19:05
nrezinornall i can glean from it is "it didnt try to parse runcmd" 19:05
harlowja_hmmm, no idea then19:06
nrezinornwelcome to my last few days ;)19:07
harlowja_ha19:09
nrezinornharlowja_: https://github.com/Nrezinorn/cloud-init  maybe you can spot some glaring syntax error between c6 and c7 cloud-config?19:21
harlowja_kk19:22
harlowja_soo the thing i do notice is that none of those logs are for the 'config' stage19:23
harlowja_but only for init and init-local stage19:23
harlowja_*there are 3 -4 stages of cloud-init19:23
harlowja_1) init/init-local19:23
harlowja_2) config19:23
harlowja_3) final19:23
harlowja_runcmd is under http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/config/cloud.cfg#L42 (section 2)19:23
harlowja_stage/section19:24
nrezinornthose stages are set in  /etc/cloud/cloud.cfg for defaults?19:24
harlowja_ya, but i'm wondering why u don't have logs for those other stages19:24
harlowja_all of your log files end with  cloud-init mode 'init'19:24
nrezinorncloud init was intsall via rpm, default settings19:25
harlowja_or running 'init-local' 19:25
harlowja_ya, so for some reason yours maybe isn't running the later stages, not sure why19:25
harlowja_who build that rpm :-P19:25
nrezinornlet me check my KS config to see if something is messing with those cfg files after install (i dont think they are, so its a stock rpm install)19:25
harlowja_redhat?19:25
nrezinornhttps://github.com/Nrezinorn/cloud-init/blob/master/cloud-init.txt i knew you'd ask!19:25
nrezinorni can ask the centos mail list 19:26
harlowja_ya, so centos folks i guess19:26
harlowja_ya, some reason its not really running the rest of the stages (it appears)19:26
harlowja_which may mean its misconfiguered (systemd issues?)19:26
nrezinornthis rpm was built last sept and i know our openstack has c7 images, and all the stuff works there19:26
harlowja_i think http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files/head:/systemd/ (those are the systemd scripts, but idk if they used that or something else)19:26
harlowja_ya, so maybe u need to investigate if its really running those stages (systemd i think has this info, not sure)19:27
nrezinornis its nots runing the stages, that is an RPM issue or i need to fix it during kickstart19:27
nrezinorni would think an rpm install would take care of all that is needed :P19:28
harlowja_ha19:28
harlowja_if only :-P19:28
nrezinornim going to blame systemd here ;)  that is what people do right?  19:29
harlowja_:)19:30
* nrezinorn stumbles though using systemd 19:30
nrezinorni really should learn this stuff.  i use arch @ home, but i never log into my system at home, pretty much ever!19:30
nrezinornloos like cloud-config service is dead.  19:31
harlowja_hmm, that might be the issue :-P19:53
smoserblaming systemd is always safe.19:54
smoserif runcmd didn't run, i'd suspect that cloud-final didnt run19:54
smoser(dont knwo if we saw that above or not).19:54
nrezinornso i looked into this more and it looks like it is a self-inflicted wound :(19:58
devicenullso, before I go about re-inventing the wheel... I work for a cloud provider, and we're currently using cloud-init to handle all the provisioning required to handle machines off to customers20:09
devicenullhowever, some of our customers want to be able to provide their own user-data scripts, which is what we're currently using to configure instances20:10
devicenullis there a simple way to run multiple cloud-config scripts?20:10
devicenullatm it feels like I need to move all of 'our' provisioning outside of cloud-init, so I can leave it available for the users20:12
smoserdevicenull, 2 options21:00
smosera.) you could consume the users's user-data and stuff it into a mime-multipart message with your parts at the beginning or the end (later trumps earlier)21:01
smoserb.) vendor-data21:01
smoservendor-data was designed exactly for "cloud provider" providing stuff to cloud-init, and not interfering with user-data.21:01
smoservendor-data is supported in openstack.21:01
smoserfor other datasources we may have to modify cloud-init, but if you're a public cloud and willing to work a bit, that can be achieved even back into stable ubuntu.21:02
devicenullah21:03
devicenullwe use the ec2 metadata source, but the openstack one looks fairly compatible21:03
kwadronautit is 21:04
devicenullthat looks like it's a pretty good solution then21:05
kwadronaut(or rather openstack offers ec2-compatibility, haven't run in corner cases in quite a while)21:05

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