/srv/irclogs.ubuntu.com/2015/05/14/#ubuntu-server.txt

=== ahasenac` is now known as ahasenack
=== zz_DenBeiren is now known as DenBeiren
=== markthomas is now known as markthomas|away
Rob__so err, is dhcp with nfsboot broken on 14.04?02:10
Rob__perhaps net module aren't being loaded before dhcp...02:12
Patrickdkdunno02:15
Patrickdkiscsi root works02:15
Rob__Patrickdk, it works if i manually specify an ip02:18
jshsmnI was wondering when the VEMOM patched qemu/kvm will be available in the icehouse cloud archive04:35
sarnoldjshsmn: I think the 2.0.0+dfsg-2ubuntu1.11~cloud0 packages in the cloud archive are the updated packages04:40
sarnold.. at least I see them here, http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/q/qemu/ and this says 2.0.0+dfsg-2ubuntu1.11 is the fixed version: http://www.ubuntu.com/usn/usn-2608-1/04:41
sarnoldI'm not sure why the ~cloud0 rebuild though04:41
sarnoldjamespage,Odd_Blok1, why the ~cloud0 rebuilds in the cloud archives? :)04:44
jshsmnI'm not seeing that package in the  http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/icehouse main04:48
xavpaice_I don't see it, maybe the mirrors aren't synced yet?04:48
xavpaice_ha, +104:48
jshsmnI see it shows up in proposed as well04:52
sarnoldI see... strange.04:53
sarnoldjamespage,Odd_Blok1, why hasn't the qemu update migrated to precise-updates/icehouse main yet?04:54
sarnoldbedtime for me, sorry I don't have answers for you jshsmn.04:54
jshsmnsarnold: Thanks for your time :)04:54
sbeattiejshsmn: according to http://reqorts.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/icehouse_versions.html it should be there, now.06:16
jshsmnsbeattie: thanks, I see it now06:34
=== gema_ is now known as gema
=== chmurifree is now known as chmuri
VexenaAnyone knows/uses a good android app that monitors your ubuntu server and gives you notifications if something goes wrong?09:24
=== ashleyd is now known as ashd
=== ashleyd is now known as ashd
=== ashleyd is now known as ashd
=== ashleyd is now known as ashd
=== ashleyd is now known as ashd
=== Lcawte is now known as Lcawte|Away
=== ashleyd is now known as ashd
carandraughi! I'm creating a virtual machine using Ubuntu's vmbuilder. It started 1 hour and half ago. I have no idea how long it usually takes, but I thought it would be faster. I found people online saying that it hangs for them, and one reply saying that it really takes time. But ps tells me that it's sleeping (S+)13:20
smoserstrikov, http://paste.ubuntu.com/11130592/13:39
smoserthat will run seemingly indefinitely on a instance of utopic13:40
smoserbut fails pretty much immediately on vivid13:40
strikovsmoser: define 'pretty much immediately' please13:59
strikovsmoser: 1.5k commands is too early?14:00
smoseroh.14:02
smoserreally.14:02
smoserit was failing < 10014:02
smosernice.14:03
smoserthere.14:03
smoseri just caught it on that vivid instance run 7314:03
smoserrun byobu there.14:03
smoserstrikov, ^14:05
strikovsmoser: heh14:05
strikov[90418.02] 2639: pt114:05
strikovBLKRRPART: Device or resource busy14:05
strikovfailed[1]: ptwrite/blockdev: partition 114:05
smoseron utopic ?14:05
strikovvivid14:05
smoserah. yeah.14:06
smosermake sure we're not running it at same time :)14:06
strikovso basically we need to check for blockdev's return code14:06
smoserthat'd be kind of unfair14:06
strikovah, i see14:06
smoserwell, no...14:06
smoserblockdev shoudln't return fail because nothing should have that busy14:06
smoserie, we could have checked that return code, certainly. and you're right, that we did not in curtin14:07
smoserbut it shouldnt fail. if it does its a race.14:07
smosernote, that very obnoxiously, there is no way to tell sfdisk < 2.26 to *not* call blockdev14:07
smoserthat is really why i dropped using it and in that script use dd14:07
strikovsmoser: my point was mostly about blockder --rereadpt14:08
smoserand in sfdisk 2.26 and later, it doesn't call that at all.14:08
smoserright... but we need to do that. and there should *not* be anyuthing making that "busy"14:08
strikovit may silently return error (busy) but we ignore it and run settle14:08
smoserthe fact that something is busy is udev handle on it (blockdev possibly) having not finished.14:08
strikovsmoser: let's try partprobe <dev> instead of blockdev14:09
strikovjust for checking14:09
smoserapw, rbasak lets put all conversation here. ^14:10
smoser<rbasak> smoser: just been looking at the udev source. I'm pretty sure it's racy. Not sure if what we're trying to do is supported behaviour.14:10
smoser<rbasak> I believe there's a race in that "udevadm settle" can return before udevd sees an event that the kernel has queued.14:10
smoserrbasak, well, apw implied that the kernel does not return from blockdev until it has added the event to the queue14:11
rbasaksmoser: so event_queue_update() in udevd.c is the thing that informs "udevadm settle" via a sentinel file AFAICS.14:11
apwsmoser, that BLKRRPART just tells you you oculdn't change the partitiont table because one of the parititons was busy14:11
smoserright14:11
smoserbut it should not be busy.14:11
rbasaksmoser: it is only called a while after epoll_wait() returns.14:11
apwthat doesn't tell you that the partition change worked and you waited and moved on before it was done14:11
smoserthe only reason it is busy is udev re-acting to previous things.14:12
smoserapw, maybe i'm just assumign something wrong. but what i'm saying is 'udevadm settle' should have completlye finished with those events.14:13
rbasakAn added complication is that "udevadm settle" does "ping" the udevd control socket first, but I don't think this necessarily eliminates the race.14:13
smoserand thus nothing should be using that device14:13
apwright, but you can only rely on udev settle to settle any events, that doesn't mean nothing was spawned in the background14:13
rbasaksmoser: I think your busy thing is a red herring. Probably caused by a udev rule.14:13
rbasakIt might need to be fixed too, but there's still a separate race.14:14
smoserapw, right. if that is the case, that udev just takes the events anad forks somthing, then i would have to wait until all those things were finished.14:14
apwif for example we sent a dbus message to something else and it opened things14:14
smoserbut... how could i know that.14:14
smoserits quite possibl eyou're right.14:14
smoserbut how would i know "i'm all done now".14:14
apwsmoser, i would be wondering if LVM is installed in the image14:14
smoserthats what i want.14:14
apwand i am not sure you have any cirtain way of doing that14:15
rbasaksmoser: I think you need much finer control of what udev does during your partition creation time. Effectively the only udev hooks should be your own ones under your own direct control.14:15
rbasaksmoser: you don't really want other general distro stuff doing anything when you create the partition. Maybe even suspend udevd during that time or something.14:15
smoserrbasak, well i dont think its a red-hearing.14:15
smoserits the problem.14:15
rbasakIt's only part of the problem. I still think there's a separate race despite that.14:15
rbasakInside udevd.14:16
apwrbasak, what makes you think that14:16
smoserif i went on and tried to 'mkfs.ext4' at that point (after partitioning), then mkfs could find it busy also.14:16
rbasakapw: I think "udevadm settle" can racily be blind to an event queued to udevd immediately before it is called.14:16
rbasakapw: as an implementation detail in the communication between udevd and "udevadm settle".14:17
rbasakI'm not absolutely certain though. There's an extra thing in the implementation that complicates things a little.14:17
smoserso... if udev gets an event, and then forks a bunch of stuff into background, then 'udevadm settle' is pretty worthless.14:17
smoserapw, so... lvm is not in either image.14:18
apwso the quesition is whether that is the reason14:18
smoserbut bcache is in vivid14:18
smoserwhich could be doing that.14:18
smoserwell, i just purged bcache-tools from the image and recreated in vivid14:20
smoserso its not specifically that14:20
rbasaksmoser: write "ps axf" to a file just before you call partition2? Then when you get the failure you should have a process listing showing what had the partition device open.14:22
rbasaksmoser: also maybe lsof.14:22
MuntHello there folks, I’m running a pptp vpn on my home server in order to hide my home ip from the big bad internet.    is there a more “standard” way of doing this ?   my way seems a bit convoluted14:22
apwyeah i was going to say an lsof would be most useful14:22
rbasakAs long as the race stays for the time that takes.14:22
apwyep as long as that14:23
apwsmoser, rbasak, it occurs to me that in the new world order things interact with udev in a different way14:23
apwthey can consume the incoming events directly, by monitoring the udev queue directory14:24
apwdirectly14:24
apwi am pretty sure that systemd does this, and would start jobs based on those events14:25
rbasakapw: does the udev queue directory actually contain content?14:25
rbasakapw: AFAICT /run/udev/queue is just a file that is empty when stuff is in the queue, and not there when there's nothing in the queue.14:25
rbasakOr are you talking about something else/14:25
rbasak?14:25
apwrbasak, i am not quite sure how it works, but many things consume the event stream directly via libudev14:25
apwrbasak, i am talking about the events that udev emits14:26
apwnot the ones it is consuming14:26
rbasakI see14:26
apwbut things consume those and run things, and those would not be something udevadm settle would know about14:26
smoserwell, adding 'ps' and 'lsof' to 'fail' doesnt help much. cant catch anything interesting in it.14:26
rbasakYeah anything that basically does what "udevadm monitor" does can essentially do that.14:26
apwand i am thinking of systemd in particular whihc has a number of device specific jobs14:27
rbasaksmoser: try logging ps and lsof *before* the failure.14:27
smoserapw, can i get finer granularity on uptime anywhere?14:27
rbasakAfter the failure will be too late.14:27
rbasakWell, could be too late.14:27
rbasakIf you log before and the race goes away, then we know we've been too slow.14:27
smoserrbasak, right. its too late, but running it before is going to be useless and slow everything down.14:28
apwsys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device                            loaded active plugged   M4-CT256M4SSD2 EFI\x20System\x20Partition14:28
apwand for example on my box that systemd unit was created on my system, so clearly it is listening14:28
smoserok. so lets say i dont care *why* this exists14:28
smoserwhat could i do that would not be racy.14:29
smoserwhat can i block until14:29
rbasakpkill -STOP udevd14:29
rbasakDo your thing14:29
rbasakpkill -CONT udevd14:29
apwoh ugg14:29
smoserbut i need it14:29
smoserbecause it is going to create /dev/<dev>114:29
smoserudev is what creates that.14:30
rbasakI know it's ugly.14:30
smoserand i really dont want to get to managing my own events. or replacing udev.14:30
rbasakBut you don't technically need that. Create a device node somewhere else. You know what it'll be.14:30
apwthat osounds dangerous14:30
smoserwell, even then i still have to know.14:30
smoserand yeah... its not really safe either if udev is telling other things they should possibly mess with the block device14:31
smoseras it will still be busy14:31
smoserthe path in /dev/ is not what is busy...14:31
rbasakOr, what if you inotify watch for the device node to arrive instead?14:31
smoserstill might be busy.14:31
apwthe device is there ok now, it is busy14:31
apwcan't you just retry if it is busy14:31
rbasakIt's only busy in smoser's test14:32
apwwhat is it in the real sceanario14:32
rbasakIn reality it isn't busy when writing the partition table, righit?14:32
rbasakBlat partition table, wait for partition device node to appear, write to partition device ndoe.14:32
rbasakBlat partition table, ask kernel to reload, wait for partition device node to appear, write to partition device node.14:32
smoserwell, the thing we caught was that after partitioning, when going to 'mkfs' the partition did not exist14:33
rbasakIn a way, it's cleaner and better abstracted away from udev to just wait for the device node to appear.14:33
smoserrbasak, i dont follow. i dont think your suggestion is safe from udve.14:33
smoserbecause 'write to device node' is "mkfs.ext4"14:33
smoserand that checks "is this busy"14:34
smoserand even if it didnt' check, and just did it... the fact that it is busy means something is (possibly) doing something to that.14:34
rbasakNo it doesn't. This is Unix - no locks.14:34
rbasakIf the partition device node exists, you can write to it.14:34
rbasakAs long as it matches the partition table you're safe. And I don't think that's an issue, is it?14:34
smoserbut i'm not guaranteed something else isn't using it.14:34
rbasakYou aren't getting EBUSY on the kernel re-read partition table ioctl in practice.14:35
rbasakIf something else is using it it probably doesn't matter anyway. I seriously doubt anything would be *writing* to it.14:35
smoseri doubt that too.14:35
smoserbut whatever is causing me to get EBUSY could also be causing mkfs to get that.14:35
smoserright?14:35
apwit is almost curtainly something trying to identify that device14:36
smoserits probably blockdev14:36
smoseri suspect14:36
smoserand udev doing /dev/by-id/14:36
rbasaksmoser: but you're not getting EBUSY in reality. I don't think you risk that unless you change the partition table twice in quick succession, which you're not doing.14:36
rbasaksmoser: the race you have in your test is that you change it twice in quick succession, and the first change causes stuff to read the partitions which causes the second change attempt to fail.14:37
rbasaksmoser: that's not happening in reality, is it?14:37
smoserwell, in reality, what happened was /dev/<disk><ptnum> did nto exist at all14:37
smoserwhen i went to mkfs to it14:37
smoserwhich is odd, because the code actually checked "does it exist".14:37
rbasakYes, and for that case, just waiting for the device node to appear should be fine.14:38
smoserwhich i think means that the code checked and found it, udev continued on, and then removed and created it.14:38
strikovrbasak: in reality udev settle returned before all the hooks finished14:38
rbasak<smoser> which is odd, because the code actually checked "does it exist".14:38
rbasakIt did?14:38
smoserand after the remove mkfs happend14:38
smoseryes. the code has that. [ -b <partition> ]14:38
smoserrbasak, code in trusty is at:14:40
smoser http://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/201/helpers/common#L25014:40
smoseri'm not sure if we were in pt_mbr or pt_uefi14:40
strikovsmoser: assert_partitions checks for /dev/vda1, right?14:41
smoserstrikov, well, yeah. but we didn't have assert_partitions until just yesterday. its not in trusty14:41
smoserbut the  code in trusty does do [ -b ${target}1 ]14:41
smoserhttp://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/201/helpers/common#L19114:41
smoserso all of that happened, and then after that happened, we tried to 'mkfs' and the device did not exist14:42
rbasakBut that doesn't call mkfs.ext4?14:42
rbasakAnd pt_mbr doesn't seem to do the check at all?14:43
rbasakI'm looking at Wily BTW. Is Trusty materially different here?14:43
rbasakOh I'm sorry14:44
rbasakpt_mbr does check for 114:44
rbasakwipefs "--offset=$(($start*512))" "$target"14:45
rbasakWhy not "${target}1" with no offset there?14:45
rbasaksmoser: what if /dev/sda1 existed previously?14:47
rbasaksmoser: say it did, then you repartition, then you ask kernel for reload.14:47
smoserrbasak, mkfs happens later in other code.14:47
rbasaksmoser: that doesn't happen yet, then previous /dev/sda1 still exists.14:47
rbasaksmoser: your test passes.14:47
rbasaksmoser: then udev sees the old /dev/sda1 going away, so deletes it.14:48
rbasaksmoser: then you try to mkfs.14:48
smoserrbasak, wipefs blocks14:48
rbasaksmoser: then udev sees the new /dev/sda1 arriving, and creates it.14:48
smoserit does the same thing. wipes filesystem . blockdev . rereadpt14:48
=== Lcawte|Away is now known as Lcawte
smosererr.. wipedev does14:48
smoserbut you're right. it coudl be that.14:49
rbasakI don't think that matters. Are you checking that the old /dev/sda1 has vanished?14:49
smoserwipefs  calls  the BLKRRPART ioctl when it has erased a partition-table14:49
rbasakI'm fairly sure that udevadm settle is racy14:49
smoserwell, clearly it is racy14:49
smoserthat is proven at this point :)14:50
rbasakSo at this stage I think the best solution is to inotify on /dev for what you want, rather than udevadm.14:50
rbasakIf you're vanishing sda1, make sure it has vanished before you continue.14:50
rbasakBut better, I think you could adjust things to make sure that the ioctl gets called once and only once.14:51
rbasakHmm. Though then you have a race since you don't know if sda1 is the old one or the new one.14:51
rbasakSo maybe disappear sda1, wait for /dev/sda1 to not exist, then partition as you want, then wait for /dev/sda1 to exist.14:52
rbasakGiven that udevadm settle is racy, best to rely on its actual result with inotify I think.14:52
smoserfreaking annoying14:52
rbasakBLKRRPART -> EBUSY is a separate problem.14:53
smoserits not really.14:53
smoseri don thtink14:53
smoserits just a result of the race14:53
rbasakA different race.14:53
caliculkHello, I recently installed some auditing programs on my Ubuntu Server installation. Afterwards I ran apt-get auto-purge and it responded with the following line: "Removing symbolic link vmlinuz.old you may need to re-run your boot loader[grub]", so I ran boot-repair just in case. However, at the moment, the boot-repair software has been stuck/running at "Unhide boot menu. This may require several minutes", however it has been roughly 2015:20
caliculkminutes and it still hasn't progressed. I was wondering if anyone had any suggestions on how to fix this or make sure nothing happens when I restart the server (as I am currently in Sweden and the server is in the US).15:20
caliculkI could ask someone to boot from a LiveCD, but I am not sure if there is any available where the server is.15:21
=== markthomas|away is now known as markthomas
med_heh, jinx (email jinx) jamespage15:50
jamespagemed_, lol15:58
jamespagemed_, endeavouring to get that juno update out as well15:58
jamespagebut might be next week now15:58
med_wins.15:58
med_thanks!15:58
med_next week seems... kind of busy15:59
jamespagemdeslaur, oh - not even the jinx I mean't15:59
tootheHi! Is there a *current* guide to installing Roundcube on Ubuntu? I keep getting a "unable to connect to database" error.16:00
PGNdOn an Ubuntu Trusty server install, the /etc/resolv.conf contains both IPv4 and IPv6 nameserver declarations.  Along with a warning to NOT edit the file directly, as it's maintained by resolvconf.16:26
PGNdI need to change the IPv6 assignment, but there's no mention of any IPv6 nameserver in /etc/resolvconf/resolv.conf.d/*; I'm not clear where that originates.  In ubuntu-server land, where's the right place to make that change?16:26
=== pgraner is now known as pgraner-lunch
YamakasY1ok, 5GB for / is not that much anymore these days16:38
YamakasY1I thought it was enough16:38
patdk-wkPGNd, same as always, in /etc/network/interfaces16:45
PGNdpatdk-wk: Are /etc/resolvconf/resolv.conf.d/* ignored?16:46
OverandI'm trying to figure out details on *how* ruby/rails/passenger/gems/etc were configured on my Ubuntu Server box.  (So, anyone using ruby and/or rails and/or passenger on ubuntu server (in my case 12.04?))  i don't know what was installed manually vs. the package manager etc17:21
=== pgraner-lunch is now known as pgraner
caliculkHello, I recently installed some auditing programs on my Ubuntu Server installation. Afterwards I ran apt-get auto-purge and it responded with the following line: "Removing symbolic link vmlinuz.old you may need to re-run your boot loader[grub]", so I ran boot-repair just in case. However, at the moment, the boot-repair software has been stuck/running at "Unhide boot menu. This may require several minutes", however it has been roughly 6017:43
caliculkminutes and it still hasn't progressed. I was wondering if anyone had any suggestions on how to fix this or make sure nothing happens when I restart the server (as I am currently in Sweden and the server is in the US).17:43
caliculkI just want to know some reasons that unhide boot menu might stop working, or why it might stall.17:44
caliculkHere is a ubuntu-pastebin for boot-repair: http://paste.ubuntu.com/11133824/17:45
YamakasY1damn my server is messed up, it boots but the partition table is doing weird, I cannot do an apt-get upgrade as there is no space left on device (which is)18:13
YamakasY1but all services run great18:17
pmatulisYamakasY1: so you filled your disk18:30
YamakasY1pmatulis: nope18:30
YamakasY1pmatulis: any other options18:34
pmatulisYamakasY1: you said it's full then you said it's not. what's going on?18:40
YamakasY1pmatulis: fixed18:41
YamakasY1http://techpain.blogspot.nl/2011/07/df-error-df-cannot-read-table-of.html18:41
=== CiPi is now known as cipi
OverandHoly crap zsh is smart.  It won't let me tab complete "git add (filename)" if the filename - for example - hasn't been changed since the last commit.  wow.18:59
Overand(Well, the git module for zsh anyway)18:59
jrwreni always use git add -up19:04
=== markthomas is now known as markthomas|away
robertjsooo...i cought my rabbit, don't know what to do with it now19:49
pmatulisknow thy shell...19:49
robertjgot my netbooting from dhcp working so i can hotplug in 20 or 30 machines and get them all booted up19:50
robertjbut it occurs to me...them all sharing /etc and /var/lock and friends probably aint such a great idear19:50
robertjso lots of /var can go into tmpfs so that's not a biggy19:51
robertjbut /etc probably ought be a bit fancier...19:51
=== markthomas|away is now known as markthomas
=== cipi is now known as CiPi
=== pgraner is now known as pgraner-afk
pythonistaHi, I am having an issue with updating the mysql package. I accidently restarted while the update manager was running an update and am now having an issue getting mysql to start. Here is a full description of the problem with a print out of the error message: http://askubuntu.com/questions/623797/error-updating-mysql-package21:30
=== Lcawte is now known as Lcawte|Away
IronDevHi I am new to openstack and I want to know where do I find openstack on ubuntu server23:58

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