faizal | Hi | 14:24 |
---|---|---|
faizal | Any one online | 14:25 |
faizal | Need a help | 14:25 |
strikov | faizal: Just ask. You'll get the answer (sooner or later) if someone knows it :) | 14:27 |
faizal | Ok | 14:27 |
faizal | We are using cloud init to create users in all our servers. .I have written the cloud config script and uploaded it to s3. ..then I wrote a wrapper shell script which will download the cloud config script from the s3 and will run the command "cloudinit init " | 14:31 |
faizal | Our plan is to put this wrapper script in cron job and run every 30 min | 14:32 |
faizal | So if we want to add a user we will just edit the cloud config script and upload to s3 | 14:32 |
faizal | The problem I am facing is | 14:33 |
faizal | When I run the script manually it is working fine | 14:33 |
faizal | But from cron job it is showing some error | 14:34 |
Odd_Bloke | faizal: Can you pastebin the error somewhere? | 14:34 |
faizal | Where can I paste | 14:36 |
Odd_Bloke | faizal: http://paste.ubuntu.com/ | 14:36 |
Odd_Bloke | faizal: (It's worth noting that cloud-init is designed to run when initialising a server, it's not really intended for this use case.) | 14:36 |
Odd_Bloke | But I'm happy to see if I can unblock you. | 14:36 |
faizal | Pasted | 14:38 |
Odd_Bloke | faizal: You need to give us the link. :) | 14:38 |
faizal | 10449492 | 14:38 |
faizal | Can you see | 14:39 |
Odd_Bloke | faizal: I can; in future just put the whole URL in the channel. :) | 14:40 |
Odd_Bloke | faizal: And could you also paste your configuration? | 14:40 |
faizal | Ok | 14:40 |
faizal | http://paste.ubuntu.com/10449576/ | 14:44 |
Odd_Bloke | faizal: Which user was failing to create? | 14:45 |
faizal | When i run the command manually the user is getting created | 14:46 |
faizal | But from crontab it Is showing error | 14:47 |
faizal | It is not creating any user when running from cronjob | 14:49 |
Odd_Bloke | faizal: Sorry, let me rephrase: all of the users in that configuration have already been created, so I'm not sure what in the configuration is causing failure. | 14:50 |
faizal | I added a new user named "newuser" in the cloud config and ran the script from cronjob | 14:52 |
faizal | That newuser is not getting created when running from cronjob but is getting created when running manually | 14:53 |
Odd_Bloke | faizal: Oh, you know what, this is probably a PATH issue. | 14:53 |
Odd_Bloke | faizal: You'll have useradd in your PATH when you run it manually, but PATH won't be set in cron. | 14:54 |
faizal | ohh | 14:54 |
faizal | So how to fix | 14:55 |
faizal | Any clue | 14:55 |
Odd_Bloke | faizal: Set PATH in your crontab. | 14:56 |
faizal | Can you tell me how. ..I am just a beginner in Linux | 14:57 |
faizal | Got it | 15:02 |
faizal | Thanks odd_bloke | 15:02 |
faizal | Its working fine now | 15:02 |
Odd_Bloke | faizal: :) | 15:03 |
faizal | You saved my weekend | 15:03 |
Odd_Bloke | faizal: You might want to look at configuration management software rather than cloud-init for this sort of ongoing usecase. | 15:03 |
Odd_Bloke | faizal: But I'm glad I could help. :) | 15:03 |
faizal | Yeah | 15:03 |
larsks | Odd_Bloke++ :) | 15:03 |
faizal | This was a task from my manger and I am a new joinee | 15:04 |
faizal | You saved me | 15:04 |
faizal | :-) | 15:05 |
smoser | well, as faizal has quit, it doens't help so much, but with cloud-init 2.0 we do want to have some mechanism for accomplishing what he wants. | 15:24 |
Odd_Bloke | smoser: Presumably we'd want to be able to do it against a cloud's metadata source. | 15:25 |
Odd_Bloke | (Rather than an arbitrary source, like faizal was using) | 15:26 |
smoser | one way or another, information in some format would get to cloud-init and it would act on it. | 15:31 |
smoser | i odnt think s3 is terrible, its a datastore, and can be addressed over https also. | 15:31 |
smoser | so : cloud-init set-config https://foo.bar/wark | 15:32 |
smoser | doesn't seem so bad. | 15:32 |
smoser | but it is treating cloud-init like puppet in a lot of ways. | 15:32 |
smoser | and i'm not so sure how far down this hole we'll go | 15:32 |
Odd_Bloke | Yeah, that would be my concern. | 15:43 |
harmw | my god, the Horizon spice console is looking horrible | 19:54 |
harmw | :p | 19:54 |
harmw | smoser: was cirros building on 14.04, or still at 12? | 20:45 |
smoser | i think 0.3 builds on 12.04 | 20:45 |
harmw | hm hm | 20:45 |
harmw | ok | 20:45 |
smoser | but i think i mvoed it to 14.04 in a 0.4 branch | 20:45 |
harmw | I want to setup a new builvm, to get back to playing with it a littl | 20:46 |
harmw | and as much as I'd like to play in docker, I'm going the qemu-way first :p | 20:46 |
smoser | i think i'd go from lp:~smoser/cirros/buildroot-upgrade | 20:48 |
harmw | ah yeas, I was looking for that | 20:48 |
harmw | and that builds on 14? | 20:48 |
harmw | smoser: wasn't there some magic just-build-the-damn-thing script? | 21:13 |
harmw | (or did I create that myself, once) | 21:13 |
smoser | looking | 21:17 |
smoser | http://bazaar.launchpad.net/~smoser/cirros/buildroot-upgrade/view/head:/doc/create-release.txt | 21:17 |
harmw | looking that,didn't you make build-release or something? | 21:18 |
harmw | oh | 21:18 |
harmw | stupid | 21:19 |
harmw | thats actually being refrenced from inside that .txt | 21:19 |
harmw | VER=0.3.3 && ./bin/build-release $VER 2>&1 | tee build-$VER.log | 21:23 |
harmw | ok | 21:24 |
smoser | right. | 21:24 |
harmw | hm, what's this... the vm is suffering from bitrot, so it seems | 21:24 |
smoser | the vm ? | 21:25 |
harmw | instance | 21:25 |
smoser | you just launch new ones all the time :) | 21:25 |
harmw | no no, I have one ubuntu 1404 instance :) | 21:26 |
harmw | and it's corrupting my downloads | 21:26 |
harmw | hm, mtu 1450 seems to go better (instead of 1400) | 21:28 |
harmw | smoser: you have access to some PPC64 hardware right? | 21:33 |
harmw | thats IBM PowerPC, right? | 21:33 |
smoser | i do, yeah. | 21:33 |
smoser | https://code.launchpad.net/~smoser/cirros/powerpc at one point was close. | 21:34 |
harmw | we have Power6 and 7 at work | 21:34 |
harmw | would it be conventient to have access to either one of those archs to build, say, cirros? | 21:35 |
smoser | well, cirros is cross-building. | 21:40 |
smoser | so it would build on x86_64 is fine. | 21:40 |
smoser | i think that both of those arches should support 'ppc64 kernel' | 21:40 |
smoser | at somepoint i'd like to have a ppc64el one also, and that would only run on power8 | 21:41 |
harmw | ok | 21:41 |
harmw | but those are all crosscompiled | 21:42 |
smoser | right. buildroot is always crosscompile | 21:56 |
smoser | so from a build perspective, powerX are not terribly useful | 21:57 |
smoser | but for testing they are | 21:57 |
harmw | yup | 21:57 |
smoser | i got to run. later man. have fun. | 22:01 |
harmw | :) | 22:01 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!