/srv/irclogs.ubuntu.com/2013/03/06/#ubuntu-server.txt

=== wedgwood_away is now known as wedgwood
=== Guest48399 is now known as sweettea
=== wedgwood is now known as wedgwood_away
ruben231hi guys, i have installed apache2 on my ubuntu 10.04 LTS but problem when i reboot it wont start automatically i need to induce it with command before it starts /etc/init.d/apache2 restart <<<<<-------------------any idea how to solve this..?01:17
sarnoldruben231: try "chkconfig apache2 on" -- stolen from http://manpages.ubuntu.com/manpages/precise/man8/chkconfig.8.html   ...01:28
=== Jikai is now known as Jikan
=== fire is now known as firewall
=== locust is now known as Guest33613
rocketLooking for a regular expression channel03:43
patdk-lap#regexp ?03:47
=== hacosta is now known as hacosta__
=== blkperl_ is now known as blkperl
=== hacosta__ is now known as hacosta
=== smb` is now known as smb
=== ewook_ is now known as ewook
jamespagerbasak, I hit the rebuild button last night for mongodb and its now fine09:21
jamespagerbasak, probably something transitory I suspect09:21
rbasakjamespage: OK, great. I'll leave it then.09:22
rbasakI still wish I had a way to get sbuild to match the buildd exactly for build dep resolution :-/09:22
=== dijit_ is now known as dijit
Ngis cloud-init supposed to execute all the cloud config files in /etc/cloud/cloud.cfg.d?11:05
Ngas in, always? I'm firing up a test instance in a local kvm without any cloud infrastructure and the config file I've added seems to be ignored11:06
jamespageadam_g, some comments on the rabbitmq-server HA merge11:12
jamespagebut hacluster and mysql LGTM to merged11:12
lynxmanNg: as far as I remember you need to trigger cloud-init metadata execution for that to be read, but my information might be clearly outdated11:19
Nghmm11:19
lynxmanNg: cloud-init reads the metadata instructions and stores them in /var/lib/cloud somewhere, then that is used to execute the rest, should need to look at the code to see if that has changed11:21
xnoxroaksoax: jamespage: sorry for missing the HA session.12:05
xnoxroaksoax: jamespage: debian release team are unhappy about the current state of redhat-cluster, corosync, clvm and friends. To the point where they are aggresively trying to remove those from debian archive now, on the basis that all of those packages have not been updated in a while.12:06
xnoxSurprisingly clvm is more or less up to date, it's the others that are lagging.12:06
xnoxbut it's the clvm that was first to be removed from wheezy.12:06
xnoxroaksoax: jamespage: is there an action plan to update / maintain this set of packages? if yes, are we willing to do so via Debian or not?12:07
zorkyanyone here who have any knowledge on juju charm concerning zentyal?12:14
jcastronot offhand12:16
jcastrois it broken?12:16
xnoxjamespage: thanks for taking over mongodb =)12:16
zorkyjcastro, theres a problem for us. anyhow. we can't seem to get access beyond the zentyal web interface. The password is unknown. something to do with kerberos password12:18
jcastrohave you set the password?12:18
jcastrojuju set zentyal-single password="foo"12:19
jcastroaccording to the readme for a single node thing12:19
Sparky-UKHi, does anyone know why (my) snmpd does not increment result for NIC's (particularly eth0) on ubuntu 12.04, counters update if i restart the service tho12:23
zorkyjcastro, yes we tried to set the password to our own choosing. just tried setting the password from the command juju set zentyal-single password="foo" but still no access12:24
jcastrozorky: hmmm, well, all I can offer is the author's contact info12:25
jcastrohttps://launchpad.net/~christophe.sauthier12:25
jcastroHe knows the zentyal guys very well, so hopefully that'll get you on the right track?12:25
maveasI'm about to write a upstart script for openerp, which relies on postgres, but I'm uncertain about upstart emits during sysvinit scripts. Does upstart emits event from a successfully started sysvinit script?12:30
maveasWhich translates to.. can I use the old sysvinit script for postgres or should I write an upstart script?12:31
maveasfor postgres too?12:32
zorkyjcastro, Will do, thats for the info :)12:32
zorkyjcastro, Thanks*12:32
vezqmaveas: I find sysvinit works more reliably12:37
maveasvezq: Explain?12:38
vezqmaveas: maybe just more familiar with sysvinit12:39
vezqfor example having different start and stop commands seem not to be trivial with upstart12:39
maveasvezq: How different? With variables or?12:41
mkanderI want to pay someone to setup raid on my ubuntu server that runs on lvm (default). Anyone interested? Thanks for the help!12:43
maveasvezq: I am asking because I am still quite new with init (sysv+upstart)12:44
vezqmaveas: just running any different command with upstart12:44
vezqI'm not that familiar with upstart either12:45
vezqmkander: RAID should be configured before LVM12:46
vezqmkander: I might be able to help if needed12:46
mkandervezq: It is already set up unfortunately12:47
mkanderbeen running like this for a year, but now I want added security12:47
vezqmkander: then it's about the only way to recreate the server...12:47
xnoxmkander: just follow https://help.ubuntu.com/12.04/serverguide/advanced-installation.html12:47
maveasIt is possible to do scripts in upstart so I don't see any problems there. It is possible to do pre-start, post-start, pre-stop and post-stop script beside the start script12:47
mkandervezq: Reinstall everything? Hmm hope there is another way12:48
vezqmkander: yep I don't really see any other way12:48
mkandermust be possible to install a raid 1 seperately and then move everything there or something12:49
maveasRAID or no RAID that is the question..12:50
vezqmkander: sure but might be easier to copy data to safety, delete current stuff, create raid etc.12:50
xnoxmkander: if you have enought disks plugged in, you can configure & setup raid1, then lvm, and then move everything from the non-raid disk across, setup/update bootloader and reboot and hopefully be golden.12:50
mkanderxnox: Yes must be something like that...12:58
setrahi13:11
setraLooking for an automation tool which runs on a ubuntu server to handle bash script commandline GUIs which can not be automated through parameter, rather than that need user interaction.13:13
melmothsetra, your question is unclear... The way i understand it, is "i m looking at a universal graphical interface wrapper for any exisiting shell script"13:16
melmothwich i doubt exist13:16
lynxmanjcastro: o/13:32
jcastrolynxman: yo yo!13:34
lynxmanjcastro: very well done yesterday sir13:36
jcastrooh you were watching?13:37
jamespagexnox: np on mongodb - I'm adding some DEP-8 tests (and probably enabling SSL support) in the next few days as well13:44
blazindropgood day I have a problem with MAAS on ubuntu 12.10. MAAS status page continually says "No boot images have been imported yet...." I've ran maas-import-pxe-files multiple times but this still displays.13:44
jamespagexnox: re the cluster suite generally - I'd defer to roaksoax on that as he's much closer to me13:45
jamespageblazindrop, hmm - I've seen that as well - its lying13:45
blazindropjamespage, I thought it may be but wasn't sure13:45
blazindropjamespage, trying a new install from maas master in a few minutes so will find out the hard way :)13:45
jamespageblazindrop, well I guess there is the possibility that in your instance its not but I would suspect now13:45
jamespagenow/not13:45
blazindropjamespage, ok13:45
jcastrolynxman: I am looking forward to the webscale session soon13:48
jcastro\o/ come on nginx in main!13:48
jamespagejcastro, now you are making me feel guilty13:49
jamespagethat BP has not had alot of love this cycle13:49
jcastroI know13:49
jcastrowe got clinted.13:49
jcastrobut it's ok, I always have hopes for you to pick up the slack!13:50
* jcastro snickers13:50
Davieyjcastro: Did you just volunteer ?13:50
lynxmanjcastro: I was! :) nginx in main is schweet13:50
lynxmanDaviey: I think he did?13:50
jcastroDaviey: meh, it's in the charm store, that's just as good right? :)13:50
setramelmoth, I have a bash script I run on a server console which installs a lot of tools automated to fit my needs, but there are sometimes user interaction needed to move on. this I would like to eliminate13:51
* Daviey marks blueprint complete, and cancels the vUDS session13:51
setrawith an automatic tool like xdotool which does not work since there is no desktop/window anywhere13:51
melmothsetra, ok, i think i understand the use case.13:52
melmothsetra, what about using something like expect , or expect like (there s an expect like module for python) ?13:52
melmothhttp://pexpect.sourceforge.net/pexpect.html13:53
Jeeves__ debconf-set-selections13:53
=== Jeeves__ is now known as Jeeves_
setramelmoth, yes expect is what I found, but I'm not sure how to incorporate it, since I did not find an example for an application like squirrelmail-configure...13:53
setrado I need to be a python expert?13:54
Jeeves_setra: debconf-set-selections allows you to set the answers dpkg wants to ask you in advance13:54
melmothyou ll need to be fluent in wichever tool you want to use. Expect requires tcl knowledge.13:54
melmoththe python module let you do the same with python (but...requires you to know python :) )13:54
setramelmoth, just got in touch with bash since I thought I can solve it all, but bummer...13:55
melmothif your only problem is some pakcage reconfigure stuff, Jeeves_ is right, you want to have a look at preseed and debconf selection13:55
* melmoth sing it s a long way to the top if you wanna rock n roll.13:56
Jeeves_setra: Correctly built packages should all use debconf, iirc.13:57
Jeeves_So you can just set stuff using debconf13:57
Jeeves_from bash13:57
setraJeeves_, thx that solves 95% for me...13:57
Jeeves_echo "kerio-connect     kerio-connect/force-config      boolean false" | debconf-set-selections13:57
jamespageDaviey, which session are you running as we appear to have a conflict13:58
Jeeves_Quite easy, if you ask me.13:58
setraJeeves_, straight forward13:58
Jeeves_`debconf-get-selections | grep 'packagename'` shows you which vars are available for setting13:59
setramelmoth, so now you know why I struggle a little, for another 5% putting a undefined amount of time in expect...btw, do you got an example for handling an application in a console from a bash script.13:59
melmoththere was an example using python expect module in th elink i posted above (a simple scp command line prompting for user/password)14:00
setramelmoth, thx14:01
dvHi all. I have a question on MAAS / JuJu14:04
dvSuppose i said `deploy mysql` and it now serves 100 reqs per sec14:04
Davieyjamespage: sorry, i am FPI14:06
dvWhat will happen with my 4-node cluster after adding three new nodes and removal of three other?14:06
roaksoaxxnox: hi! i thought madkiss was taking care of corosync pacemaer etc etc14:14
roaksoaxxnox: our update plans is to basically drop redhat cluster14:14
roaksoaxand clvm too14:14
xnoxroaksoax: ok. drop clvm without replacement? just use resource agents / something else?14:15
roaksoaxxnox: afaik upstream was dropping ra's and stuff14:17
xnoxroaksoax: "upsream" as in Debian or RedHat? RedHat say it's all still supported, just unmaintained in Debian.14:18
roaksoaxxnox: looing from where i read that14:19
xnoxroaksoax: sorry, what does "looing" mean?14:21
* xnox is not a native speaker.14:21
roaksoaxxnox: if we upgrade, we would be doing option 3: http://theclusterguy.clusterlabs.org/post/34605496260/can-pacemaker-1-1-8-be-used-with14:21
roaksoaxlooking*14:21
roaksoaxxnox: currently, both debian an ubuntu support option 214:21
xnoxok.14:22
roaksoaxxnox: nd afaik the package versions are similar14:22
roaksoaxand debian has newer of the stack in experimental14:22
xnoxroaksoax: so do you want anything from the lvm2 package? ship  / don't ship clvm package / status quo?14:22
xnox(currently I kept clvm package around)14:22
roaksoaxso the reason of not upgrading to latest software is a technical decision that would drop support for ofs214:22
roaksoaxand as i was pointed out  couple months ago14:22
roaksoaxclvm ws to be dropped for no due to lack of support iirc14:23
roaksoaxthat's why i need to find where i read that frm14:23
roaksoaxhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=69767614:24
uvirtbotDebian bug 697676 in lvm2 "lvm2: cLVM binary package is missing" [Serious,Open]14:24
roaksoaxwhich you are currently aware of14:24
jcastrosmoser: we have like 3 hours from the end of UDS to the LUG talk, so we should be fine.14:27
roaksoaxxnox: err i gave you a wrong link: http://theclusterguy.clusterlabs.org/post/34604901720/pacemaker-and-cluster-filesystems14:28
dvBob_: Yes, i knew it, just wanted dv14:35
dvsry not relevant14:35
=== wedgwood_away is now known as wedgwood
blazindropjamespage, looks like that is just a false positive alert about pxe images not loaded. so far I have a MAAS slave booting fine15:02
zuljamespage:  can you have a look please? http://paste.ubuntu.com/5590733/16:03
jamespagezul: "This is a transitional dummy package> It can be safely removed."16:07
jamespagetypo16:07
jamespage> -> .16:07
zuljamespage:  doh16:08
jamespagezul, typos:16:08
jamespageReplaces: pyhton-oslo-config (<< 2013.1~b5~)16:08
jamespageBreaks: pyhton-oslo-config (<< 2013.1~b5~)16:08
jamespagespelt wrong16:08
zuljamespage:  doh got it16:08
jamespagezul, I'd personally add a comment re the package renaming and transitional package in the changelog as well16:09
jamespagei.e. why thats happening16:09
zuljamespage:  done16:09
jamespagezul: please fix the watch file as well - it needs to take into account the package rename16:11
zuljamespage:  k16:11
zuljamespage:  this probably should be vcs controlled like the openstack packages me think16:12
jamespagezul: not quite sure what you mean?16:12
zuljamespage:  ie like python-glanceclient16:12
jamespagezul, you want to set it up in the CI?16:14
jamespageor just have a non-distro packaging branch?16:14
zuljamespage:  i think it should be in the ci so we can catch breakages16:14
zuljamespage:  lp:~openstack-ubuntu-testing/oslo/grizzl16:39
zuljamespage:  er lp:~openstack-ubuntu-testing/oslo/grizzly16:40
jiboumansjjohansen: are you around? I could use your input on a kernel/UDP issue i'm having.17:44
jjohansenjiboumans: what is the problem?17:44
jiboumansjjohansen: prefixing this with "I'm a total newbie C/socket programmer", I'm trying to figure out if I can make a write(udp_fd, str, len) call faster - it's taking 50 microsecs on my VM, and this is for a patch inside Redis (in memory store), where the actual processed commands take 40-100 microsecs in total.17:46
jiboumansthis is to send stats off to Statsd on localhost, so I'm ok playing a bit fast & loose with losing a stat here & there if it gains some speed in the process.17:47
jiboumansin short, the stat collecting is slowing the rest down so much (relatively speaking) it's prohibitive to run it.17:47
sarnoldjiboumans: 50 _microseconds_ or 50 _milliseconds_?17:48
jiboumansmicroseconds17:48
sarnoldjiboumans: you may wish to try timing a tight loop of umask() or something similar to see what syscall overhead is expected to be. that sounds pretty snappy to me.17:48
jjohansenjiboumans: there isn't a lot you can do to optimize at the syscall level. What networking does your VM use17:49
jiboumanssarnold: in absolute numbers it's pretty snappy indeed, but relatively speaking it throttles the redis througput to about a third. Obviously the call is doing more than just copying the string into kernel memory, and if I could get it to return when that was done and handle the sending 'later' at the risk of losing some error handling, i'd be fine with that.17:50
jiboumansjjohansen: this is to 127.0.0.1, so it doesn't go off box. I'm assuming it'd use loopback for that.17:51
jjohansenjiboumans: you can try doing async io, http://www.ibm.com/developerworks/library/l-async/ has a decent introduction to it17:53
jiboumansjjohansen: here's the code https://github.com/jib/redis/compare/2.6...statsd-support-2.6#L4R57 (linked to connect). The send is on line 162.17:53
jiboumansjjohansen: hmm, that looks different than the O_ASYNC/O_NONBLOCKING flags, right?17:54
jjohansenjiboumans: yes17:55
jiboumansjjohansen: i'll give that a try. is this linux kernel only thing?17:57
sarnoldI think there's a POSIX spec for aio but I wouldn't be surprised if implementers are few..18:00
jjohansenjiboumans: I am not sure what the status of aio is on other kernels but it is a posix spec18:00
jiboumansjjohansen: will have to dig into this then.. pretty sure redis folks wnat to keep building on BSD etc too.18:01
jiboumansbut first, let's test that it goes faster indeed. thanks for the pointer!18:01
jiboumansjjohansen: i may be doing something very silly, but I'm getting this error when calling aio_write: redis/src/statsd.c:191: undefined reference to `aio_write64'. Looking in /usr/local/include, I can't find any definitions for aio_write64 indeed. Does this come from an extra kernel module or so? I have libaio-dev & libaio1 installed.18:26
jiboumansmanpage suggests I only need <aio.h>, and that does provide the struct needed, but no definition of aio_write.. bit puzzled.18:27
sarnoldjiboumans: my aio_write64 is protected by #ifdef __USE_LARGEFILE6418:28
jjohansenjiboumans: its in the aio.h include here as sarnold says its protected by an ifdef18:30
jjohansenjiboumans: aio.h is installed by libc6-dev:amd64:18:30
jiboumanshmm, i dont even see it in the /source/ though. Never mind the #ifdef not exposing it.18:31
* jiboumans checks versions18:31
jiboumansii  linux-libc-dev 2.6.32-41.89 Linux Kernel Headers for development18:31
jiboumans(this is on lucid btw, I should have probably mentioned this earlier)18:32
jiboumanshmm, looking at the right aio.h may help.. there are many.18:34
jiboumanssarnold, jjohansen: so, what should i be doing at this point? I'm a tad lost.18:35
SpamapSjiboumans: o/18:37
jiboumansSpamapS: howdy!18:37
SpamapSjiboumans: still plugging away on ye olde lucid eh?18:37
SpamapShaven't you heard, the cool kids just run raring now18:38
SpamapSforever18:38
jiboumanson daily snapshots right?18:38
sarnoldjiboumans: heh, sorry, haven't used it beyond toys in ages :/18:38
jcastrooh hey jiboumans!18:38
jiboumansdamn i wish i were cool18:38
SpamapSjiboumans: snapshots are for pussies.18:38
SpamapSjiboumans: while apt-get update ; apt-get dist-upgrade -y ; done18:38
SpamapSNO WAITING18:39
jiboumansjcastro: howdy sir!18:39
jiboumanssarnold: thanks for trying. I'd expected to at least have a working aio_write definition in there though :)18:41
sarnoldjiboumans: indeed :)18:41
jjohansenjiboumans: sorry I haven't played with it either18:50
jiboumansjjohansen: let me ask you this then, should __USE_LARGEFILE64 be undefined? What sets it for ubuntu kernels?18:51
jiboumans(sarnold got the cause for the error right with that)18:52
sarnoldjiboumans: Wouldn't it be something you've got to set in your makefiles, similar to __GNU_SOURCE or related feature macros?18:52
sarnold(i'll admit a strong weakness here...)18:53
jiboumanssarnold: by all intents and purposes, i shouldn't be allowed to code C, so i'm relying on y'alls input here :)18:53
sarnoldjiboumans: hehe :D18:53
jjohansenjiboumans: define  _GNU_SOURCE in your source18:57
jiboumansjjohansen: kernel source yeah? i'm obviously out of my depth here.18:59
jiboumansand if ubuntu kernels don't build with this, i'm assuming a lot of 'm don't.. meaning aio_write wouldn't work for them either? sad face.18:59
jjohansenjiboumans: no, at the top of your C prog, put18:59
jjohansen #define _GNU_SOURCE 118:59
jjohansenand then do your includes18:59
jiboumansah interesting. in the redis src there's a "#define _GNU_SOURCE" - no value. wonder why they did that19:01
* jiboumans chagnes and tries19:01
jiboumansstill undefined reference to aio_write64. i'll dig further - thanks for pointing me in the right direction jjohansen, sarnold.19:03
sarnoldjiboumans: oh man :/ good luck :)19:04
zuladam_g: https://code.launchpad.net/~zulcss/glance/glance-fix-ups/+merge/15204820:11
keithzgArghh, why am I having such a hard time configuring an IMAP server? Fail, me.20:54
keithzg...wait, IMAP authentication works fine if I'm using a local user? Why wouldn't users auth'd via LDAP work, since PAM is being used for auth and thus ostensibly querying LDAP?20:59
sarnoldkeithzg: does your /etc/pam.d/<imap service name> config file allow ldap?20:59
keithzgsarnold: I don't see anything in /etc/pam.d that'd be related, actually (I'm trying Courier at the moment, btw)21:02
sarnoldcourier-imap: /etc/pam.d/imap21:03
sarnoldkeithzg: does that file look sane?21:03
keithzgsarnod: oh, durr, don't know how I didn't see that. But yeah, it looks sane to me, @include lines for common-auth, common-account, common-password and common-session.21:04
sarnoldkeithzg: and do the common-files work for e.g. ssh or ftp or lightdm or login or su or sudo or .. some other easily-testable service? :)21:05
keithzgI can certainly ssh into them; the server is headless so can't try lightdm. But it also works if I ssh in as a local account then 'su username' with that user's password.21:07
keithzgsarnold: Although auth *does* take a troublingly long time (lag of several seconds at least)21:09
sarnoldkeithzg: hrm, failing dns queries are often a source of noticable lag.. are you logging reverse-lookup names instead of ips in your connection logs?21:10
keithzgsarnold: I must admit I'm not sure what you're referring to; do you mean mail.log?21:15
keithzgsarnold: if that's the case, I'm seeing bits like "connect from siddhartha.gmcl.internal[10.1.187.23]" and "LOGIN, user=blahblah, ip=[::ffff:10.1.187.23], port=[60758], protocol=IMAP"21:15
sarnoldkeithzg: that'd be the 'siddhartha.gmcl.internal' portion21:16
sarnoldkeithzg: though in that case it succeeded :) hehe -- how long does it take to run 'host 10.1.187.23' on that machine? or nearby IPs?21:17
keithzgsarnold: a long lag as I installed bind9-host, heh, but about 1 second to actually resolve IP to name or vice-versa21:22
keithzgsarnold: I have a suspicion the auth delay is thanks to the virtual server that's running being periodically snapshotted to discreet external-file snapshots; it's really helpful for backup purposes, but unfortunately the version of kvm-qemu that ships with 12.04 isn't new enough to blockpull the snapshots back to collapse them, thus eventually leading to an extremely long backing chain, heh.21:22
sarnoldkeithzg: ooooof.21:23
sarnoldkeithzg: that sounds painful :)21:23
keithzgsarnold: yeahhhh, I'm probably going to eventually give in an upgrade to a non-LTS!21:23
keithzgOther possible option is I could transfer the VMs to a 12.10 or later box, blockpull, and then copy them back. Kindof an ugly way of doing it, though (and far from automatic or foolproof)21:24
sarnoldkeithzg: It might be worth considering an SRU for that new feature, it sounds useful...21:26
keithzgsarnold: not a bad idea a'tall21:31
keithzgsarnold: hmm, if I try a manual login via telnet I get "* BYE Temporary problem, please try again later"21:35
sarnoldkeithzg: o_O21:35
sarnoldthat's .. odd21:35
* keithzg is the king of strange and confusing errors ;)21:39
keithzgYeesh this is an extremely hard issue to Google for, since most people using LDAP and IMAP are doing rather different and far more complex things than I.21:51
keithzgIs it possible that Courier cannot authenticate via ldap through the 'authpam' module, and would have to actually use its own discrete 'authldap' module? That'd be rather annoying for my use-case, sigh.22:02
Seveaskeithzg, it's been a while since I used courier, but I'm pretty sure I used pam (and pam used ldap)22:19
keithzgSeveas: Okay, that's good to know. So this *should* be working, then.22:19
Seveaskeithzg, what does authtest say? And does tcpdump see any ldap bind attempts?22:23
Seveaskeithzg, I've always found http://www.courier-mta.org/authlib/README.authdebug.html helpful in debugging courier auth issues (and I've had a few...)22:30
keithzgSeveas: oh, thanks! I'll check that page out.22:33
keithzg...alas, everything relevant in there I have already tried.22:35
keithzgSeveas: authtest sadly albeit predictably gives the same error as mail.log show, ie. "Authentication FAILED: Input/output error". Working on tcpdump, I feel like I'm missing something since I don't see anything at all when I try to connect, even though on the client end I'm getting responses to my telnet commands.22:35
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== The_Pugilist is now known as DaveR

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