=== praneshp_ is now known as praneshp | ||
=== harlowja is now known as harlowja_away | ||
=== Wulf4 is now known as Wulf | ||
=== zz_gondoi is now known as gondoi | ||
=== harlowja_away is now known as harlowja | ||
jmickle | hi all | 17:40 |
---|---|---|
jmickle | if anyone is around i have 2 questions probably config related that i have been racking my brain on | 17:40 |
jmickle | if someone could assist it would be greatly appreciated | 17:40 |
smoser | jmickle, whats up ? | 17:49 |
smoser | in general, "don't ask to ask, just ask" | 17:49 |
smoser | if someone sees your question and knows how to reply they will. | 17:49 |
jmickle | hey smoser first thanks for responding and sure thing i didnt know how it worked in here so i didnt want to be rude | 17:49 |
jmickle | smoser: I am running cloud-init on centos with openstack and when it runs it does not seem to be adding the user to sudo | 17:49 |
jmickle | also growpart does not seem to be running although when i run growpart manually after logging in and rebooting it works | 17:50 |
smoser | on an older kernel to make it all "just work", you'll need a drakut module cloud-initramfs-growroot | 17:51 |
smoser | on 3.8 and later, cloud-init can do it all on mounted filesystems. | 17:51 |
smoser | i think though that reboot would probably get you what you needed. | 17:51 |
jmickle | interesting ok | 17:52 |
jmickle | what about sudo ? it seems to be running the add ssh key | 17:52 |
jmickle | but not adding the sudo line for the user | 17:52 |
jmickle | though i did turn off the disable root login | 17:52 |
smoser | can you paste cloud-init config ? /etc/cloud/cloud.cfg and anything in /etc/cloud/cloud.cfg.d/* | 17:52 |
jmickle | the only thing i changed was disable root: 1 to 0 | 17:52 |
smoser | root login should be disabled by default. | 17:52 |
smoser | oh. i see. | 17:53 |
jmickle | yeah i turned it off temporarily because i had a networkign issue at first | 17:53 |
jmickle | and keys werent getting added | 17:53 |
jmickle | so i needed to login with the root | 17:53 |
jmickle | could that be why? | 17:53 |
smoser | nah. it should still do it. | 17:53 |
smoser | what cloud-init version ? | 17:54 |
jmickle | 0.7.4 | 17:54 |
smoser | - RH: require sudo >= 1.7.2p2-3 (with sudoers.d/) | 17:54 |
smoser | htats just to verifiy that its not writing the file but sudo not caring | 17:55 |
jmickle | im sorry i lost you | 17:55 |
jmickle | you mean use cloud-init >= 1.7.2? | 17:55 |
smoser | sudo | 17:55 |
smoser | rpm -qi sudo | 17:55 |
jmickle | ah | 17:56 |
jmickle | 1.8.6p3 | 17:56 |
smoser | k. that would seem san.e | 17:56 |
smoser | http://paste.ubuntu.com/7634815/ | 17:56 |
smoser | so your config has to have a 'sudo' line for the user | 17:56 |
smoser | (default_user) | 17:56 |
jmickle | got it which the default config from epel does not | 17:56 |
jmickle | ok | 17:56 |
smoser | and also see the new style | 17:56 |
smoser | users: | 17:56 |
smoser | - default | 17:56 |
smoser | rather than | 17:56 |
smoser | user: <foo> | 17:57 |
jmickle | ok | 17:57 |
jmickle | thank you so much | 17:57 |
jmickle | il try the reboot with the grow part | 17:58 |
jmickle | maybe it is running and just needs a reboot to kick in or something | 17:58 |
smoser | if you run growpart on kernel < 3.8 | 17:59 |
smoser | you have to reboot | 17:59 |
jmickle | ok yeah centos 6.5 is 2.6 | 17:59 |
jmickle | ty so much | 17:59 |
smoser | the fix is to add that dracut module | 17:59 |
smoser | and then it resizes in the initramfs | 18:00 |
smoser | when the filesystem is not mounted | 18:00 |
jmickle | ok do you have an example of that or documentation for it by chance? | 18:00 |
smoser | (older kernels will not allow updates to partition tables of "physical disks" that have filesystems mounted on them) | 18:00 |
jmickle | or is it in that config? | 18:00 |
jmickle | ok | 18:01 |
smoser | http://docs.openstack.org/image-guide/content/ch_openstack_images.html | 18:01 |
smoser | https://apps.fedoraproject.org/packages/cloud-initramfs-tools/changelog | 18:02 |
jmickle | ty | 18:04 |
=== praneshp_ is now known as praneshp | ||
jmickle | is there a way to pass the hostname into the node-name variable in cloud init config for chef? | 21:19 |
=== praneshp_ is now known as praneshp | ||
=== gondoi is now known as zz_gondoi | ||
=== praneshp_ is now known as praneshp |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!