/srv/irclogs.ubuntu.com/2012/01/31/#ubuntu-server.txt

starscreami have ubuntu server 10.04  but I´m very new in this00:00
starscreambut I need to learn this for the copany00:00
starscreamcompany00:00
twbQuitting was probably not a good start00:00
=== Lcawte is now known as Lcawte|Away
zambaboohey guys does anyone know if it is possible to enable dynamic_debug in lucid 10.04?00:05
twbNever heard of it00:08
zambabooits in the kernel docs00:11
twbSo grep for CONFIG_DYNAMIC_DEBUG in /boot/config-NNN.gz00:12
zambaboonot set00:13
zambaboooh man.00:14
twbThere you are then00:14
zambabooa recompile eh00:14
twbYou could reroll the kernel package but it's probably not worth the effort00:14
sethrasHello00:14
sethrasi have installed an ubuntu server and made it to a router00:15
zambabooit is for me, last resort. im having intermittent issues with bonding over ixgbe interfaces.00:15
sethrasand what i need to know is where i save iptalbes NAT Forward rules ?00:15
sethrasso a reboot wont purge my settings00:15
sethrasin centOS it's the file /etc/sysconfig/iptables-config00:15
sethrasbut in ubuntu ?00:15
twbhttp://bugs.debian.org/65711300:18
twbSorry, wrong channel00:18
ChmEarlsethras, use `iptables-save > myrules.out` , then in /etc/network/interfaces: under eth0 `post-up /sbin/iptables-restore < /etc/iptables/myrules.out00:22
ChmEarlsethras, so rules are restored every time eth0 starts up00:22
twbWrong.00:23
SpamapSalso if its simple enough, ucf might be a simpler choice00:23
twbThe ruleset SHOULD be loaded BEFORE any interfaces are up00:23
twbThe exception is if you need DNS to resolve hostnames in the ruleset.00:23
SpamapSWrong? or "sub-optimal" ?00:23
twbSpamapS: well it leaves a nonzero hole where you can be connected to and you have no fw00:24
twbhttp://paste.debian.net/154122/ is what I do on ubuntu systems; on Debian I use iptables-persistent (which performs poorly on ubuntu due to ubuntu using a non-portable init).00:25
twbAlso ref http://cyber.com.au/~twb/doc/iptab and #networking channel00:25
twbEr, sorry, #netfilter channel.  #networking is full of idiots.00:25
zambaboohhaha00:28
AengusAnyone have a pointer as to what determines the urgency of security updates to packages?00:43
twbThey count how many hairs on kees' neck are standing up00:46
keestwb: heh.01:04
SpamapSAengus: perhaps ask in #ubuntu-hardened01:05
AengusSpamapS: cheers01:05
zulmtaylor: still around?01:14
stgraberhallyn: only starting to look at your branch now, will try to spend some time on it tonight so I have something for tomorrow morning01:25
hallynstgraber: cool01:32
nOStahlso guys, I fixed my problem of having forgotten my server cd and the new prospective server could not boot from my usb installer02:16
nOStahlluckily I had grub2 already on the tower via an old ubuntu desktop installation02:17
nOStahlunetbootin the server iso to the hard drive heh02:17
nOStahlrebooted and it loaded the install into ram and took off02:17
nOStahlvery nice02:17
SolarNRTHelp, does anyone know how to bridge eth1 to wlan0,,, what command do I need?02:54
ChmEarlSolarNRT, auto br0;iface br0 inet dhcp;bridge_ports wlan0 eth103:14
adam_gzul: pushed some mix fixes to lp:~openstack-ubuntu-testing/+junk/keystonelight03:28
dravekxif I want to make a global bash command, where do I save it? /bin ? /usr/bin ? /etc/init.d ?05:19
dravekxor does it matter?05:20
uvirtbotNew bug: #924105 in puppet (main) "integer out of range errors for fact_values" [Undecided,New] https://launchpad.net/bugs/92410505:46
driiperHello, i am currently trying to set up a router via my secondary NIC on my UBUNTU server, basicly this router is supposed to serve internet to users. Primary NIC is connect straight to the NET while as i said earlier the Secondary NIC goes to the wireless router. I Have managed to establish connection to the server via wireless, but does not seem to get past it or out to the internet. is there anyone which can assist me in thi07:12
SpamapSdriiper: so on your internal NIC, you have a non-routable address (192.168.x.x, 10.x.x.x, or something around 172.16-32.x.x ?07:19
driiperThe NIC going to the internet have my external IP (going through a bridge) while i currently configured ETH1 (secondary ) to 192.168.0.1,07:21
driiperif that makes any sense07:22
driiperInternet --> eth0 (external ip) ---> eth1 (Internal ip) ---> Wireless router ---> Clients,         |   this is what i am trying to achieve. i have managed to connect to the server via a wireless client using the gateway i used in the router (eth1 Ip)07:25
driiperhmmm07:38
SpamapSdriiper: so have you done anything to setup NAT?07:39
SpamapSdriiper: https://help.ubuntu.com/11.10/serverguide/C/firewall.html07:41
SpamapSdriiper: look at 'IP Masquerading'07:41
driiperNot that i know of. i made the eth1 static and used that on the router. obviously i have to make some kinda bridge or routing from eth1 to eth0 inorder to get onto internet, but i guess thats what i have to do?  By the way, do i have to set up a DNS server, or can i still use the one provided by my isp ?07:41
SpamapSdriiper: its a good idea to run something like dnsmasq on your firewall to cache DNS responses locally...07:42
driiperok, ill try this out. but so i am clear, this is supposed to route the incoming connection from eth1 to eth0  right?07:43
driiperso it would be like a routing basicly07:44
SpamapSdriiper: the given example doesn't mention eth1, but it takes packets from 192.168.0.x and gives them the address of eth0.. and sends them out on eth0.. and translates replies back to the appropriate 192.168.0.x address.. this is known as "NAT" or "Masquerading"07:45
SpamapSdriiper: this is what every $40 router+wifi thing you can buy does.07:45
SpamapS(which is why I don't do this anymore.. ;)07:46
SpamapSI just let the WRT54G get 'er done. :)07:46
driiperyeh well i called my ISP yesterday about having slow speed on my internet connection (Supposed to have 40/40) but only got like 10/10. and yeh , they told me that i had to set my router (ISP central) into bridge mode becuase it couldnt handle more than 2-3 port forwardinggs ( i had like 30). so now im stuck with a old B standard wireless router to my clients07:48
driipertoh the budget07:48
driiperoh*07:48
SpamapSwell yeah, 802.11b is 11Mbit, and half-duplex..07:49
driipermhm :( not really the ting i would want for myself :P07:49
SpamapSdriiper: honestly.. what more do you need? ;)07:49
driiperyou know07:50
driiperbe seedin these torrentz!!07:50
driipernah it be working fine i guess.07:50
* SpamapS will never understand why that is so universally acceptible. :-(07:50
driiperthe torrent community will be gone in some few years, just wait and see :)07:51
driiperor07:51
driiperbig parts of it anyways07:51
driipertrackers shutting down like crazy these days, i guess the days of payment is near07:52
driiperbut yeh. thank you for your help! ill get back to fixin this thingy!07:53
SpamapSdriiper: they'd have arrived sooner if torrenters had just stopped buying crappy DVD sets of stuff they already torrented. :-/07:53
* SpamapS puts the soap box back in the closet07:54
driiperhaha true :D07:54
=== koolhead17 is now known as koolhead17|afk
=== himcesjf2 is now known as himcesjf
uvirtbotNew bug: #924187 in passlib (universe) "todo's for passlib packaging" [Undecided,Confirmed] https://launchpad.net/bugs/92418708:38
uvirtbotNew bug: #924189 in python-memcache (universe) "python-memcache todo's" [Undecided,New] https://launchpad.net/bugs/92418908:49
uvirtbotNew bug: #924197 in sysstat (main) "Unable to get the next Data source after 24 hours" [Undecided,New] https://launchpad.net/bugs/92419709:21
uvirtbotNew bug: #924195 in sysstat (main) "cannot report ubuntu-bug -w on isag window" [Undecided,New] https://launchpad.net/bugs/92419509:23
NeoNetNinjaanyone up?10:18
NeoNetNinjaI10:18
_rubenwe're all down10:27
NeoNetNinjalol10:27
NeoNetNinjaI have a questions, basically:10:27
NeoNetNinjaI'm looking for a used server that does SATA not SCSI that will run Ubuntu Server well10:27
NeoNetNinjaall the ones on Amazon that are cheap only do SCSI10:28
=== vivek_ is now known as Vivek
=== alaing_ is now known as funkymonk
=== funkymonk is now known as alaing
derknechti work with dmcrypt/luks container files to keep data save. i search for a solution to avoid to have fixed container size, is there a solution for self growing container files?11:19
derknechtmaybe something like ecryptfs, but i found no documentation about that11:20
patdk-lapheh? ecryptfs isn't a container11:21
patdk-lapwhy can't you grow dmcrypt/luks?11:22
derknechtcan container files be enlarged? the only way i see is to create a new one, and copy the data. And you are right, ecryptfs is a crypt filesystem, not a container file.11:25
patdk-lapI always luks the whole drive11:27
patdk-lapthen used lvm to join the drives together11:27
patdk-lapmainly did that so I could thread luks over multible cpu's11:27
patdk-lapas dmcrypt is single threaded per instance11:28
derknechtgood idea, that would work well. but in my situation i have to use a bunch of container files on an unencrypted partition (or i have to create a lot of partitions which will be even more unflexible)11:30
derknechtbtw: the multithreading reason is a good advice!11:30
jamespageDaviey: do you want to drive off of approved gerrit reviews? or on upload of any patchset?11:55
Davieyjamespage: any patchset i think11:56
Davieyit's a pre-validator before a human review IMO.11:56
jamespageDaviey: OK so that is different to the gating in upstream - they wait for an approval before testing.11:57
Davieyjamespage: Hmm, have you seen SmokeStack ?11:57
jamespageDaviey: no11:57
Sander^workAnyone know about a opensource mature virtualisation platform with clustering?11:59
Davieyjamespage: we shouldn't ignore, https://github.com/dprince/openstack_vpc either12:05
Davieyjamespage: BTW, have you seen that you have started reviewing? https://review.openstack.org/#change,330912:08
jamespageDaviey: oops12:08
Davieyjamespage: but anyway, with that example, smokestack did a smoketest before it was Approved12:08
Davieyit tests when a new patch set is pushed12:09
jamespageDaviey: thats a feature of the plugin - as soon as I pull and review I get marked as reviewing12:09
Davieyjamespage: right, i checked with monty about that.. he said there was a config option to make it quiet.12:09
Daviey15:39 < mtaylor> Daviey: there's a flag in the job config to run in "silent mode"12:10
DavieyHmm, regarding smokestack - unless it has a huge queue... the timestamps cause some doubt for me, https://review.openstack.org/#change,355812:11
jamespageDaviey: and this one - https://review.openstack.org/#change,327312:13
jamespagedoh12:13
Davieyjamespage: long term, it would be good if it only posted results, not a Started and Finished IMO12:14
Davieybut at the moment, i think it should be silent.12:14
Davieyjamespage: note, the current target seems to be trunk proposals.. we want stable/diablo right?12:15
jamespageDaviey: lets assume for a minute that I'm just testing this...12:15
jamespagestable/diablo don't get many12:15
Davieyjamespage: right..12:15
jamespageits not running in the lab either FYI12:16
Davieyjamespage: yeah, i guessed that with hendrix :)12:16
jamespageDaviey: OK - figured out how to disable that for the time being12:18
jamespageits a little more than a toggle...12:19
Davieyoh12:19
jamespageyeah - I had to remove the actual commands that the plugin runs at certain points during testing12:20
jamespagebut I saved them!12:20
jamespageDaviey: reckon I should comment on those two review to apologize?12:22
Davieyjamespage: it's in your name, i'd just hold fire and await a comment12:22
Davieyif it has an offical sounding title.. then yeah.. but i thinmk you are ok12:23
Davieyue, "Ubuntu Openstack Validation Bot"12:23
Davieyie*12:23
Davieyirssi just segfaulted on me.. gah.12:25
jamespageDaviey, ack12:26
jamespagelynxman, trying to look at your MP but bzr just broke on me12:33
=== Vivek is now known as Guest96249
=== Guest96249 is now known as Vivek
GyrosGeierhi13:36
GyrosGeierI'm looking for the switch that says "this server is in a 19" rack, do not under any circumstances stop the boot process before starting sshd, even if an iSCSI target is missing"13:37
GyrosGeierthat is, it is okay if any filesystem except root fails to mount13:38
jdstrandAengus: re security update priority> it is a combination of a lot of things: http://people.canonical.com/~ubuntu-security/cve/priority.html14:01
jdstrandAengus: did you have a question about a specific issue?14:01
rbasakGyrosGeier: are you looking for the noauto flag in /etc/fstab?14:02
lynxmanjamespage: no worries :)14:04
GyrosGeierrbasak, in principle I want automount if possible14:06
GyrosGeierthe important bit is that it should never drop into a console14:06
GyrosGeier(because there isn't one=14:07
rbasakI don't know if such a mechanism exists, but it doesn't seem practical in the general case to me. What happens if subsequent services fail because mounts are missing? If you have complicated needs, set noauto and manage it manually - say in rc.local or something. And then take care of any services that depend on the mounts.14:08
GyrosGeierthe most important bit is that ssh works14:09
GyrosGeierwaiting for someone to drive to the colo facility, plug in a keyboard and press "S" is even less practical than having random services fail, IMO :)14:10
ogra_you could hack an initramfs-tools hook and script in place that switches on networking in the initrd and fires up sshd by default14:11
rbasakyou might change /etc/init/ssh.conf to start on local-filesystems instead of filesystem or something, but my upstart fu is weak and I don't know what other implications that might have.14:11
GyrosGeierI think that is already the case14:12
rbasakthat's a point - will networking even be up at that stage?14:12
GyrosGeierbut the fs is ext3 on SCSI14:12
rbasakI think the general solution is that if the mounts aren't critical to the system booting and you want the system to boot regardless of them, then set them noauto and mount them in rc.local. That's the least hacky answer.14:13
rbasakOTOH, if you break something that the system's boot depends on, don't expect the system to be able to boot :-)14:13
rbasakOR, perhaps you're asking for a new feature - ssh capability in the event of  boot failure. If that doesn't exist it sounds like a good idea.14:15
=== Ursinha` is now known as Ursinha_
smbNot sure this is helpful, but there seems to be a nofail for fstab...14:15
=== Ursinha_ is now known as Ursinha
rbasaksmb: that sounds perfect :)14:17
smbIf it works as one expects. Have never tried, just looked at man fstab14:17
CaribouI have a question for the kernel people : any reason why Ubuntu kernel is less agressive in caching FS writes than the RHEL kernels ?14:29
Cariboukernels would be Lucid (2.6.35) .vs. RHEL 5.5 (2.6.18)14:30
Caribouon a DL380/G7 writing a 11Gb file with dd (to cache) takes 120s on Ubuntu and 9s on CentOS!14:31
henkjan_Caribou: same server?14:31
Caribouwhen bypassing the cache (using oflag=direct) I get 221s for Ubuntu and 190s for CentOS14:32
Caribouhenkjan_: yes, identical H/W same disks/ctrls14:32
henkjan_looks like the centos one has write back cache enable on the raidcontroller?14:33
Caribouhenkjan_: AFAIK, smart array don't have WB cache and if so, it would be enabled on both14:34
=== henkjan_ is now known as henkjan
CaribouI'd get the same behavior with oflag=direct but the values are much closer14:35
Caribouhenkjan: here is an example : http://paste.ubuntu.com/823880/14:36
jamespagelynxman, sorry more comments on ipxe14:40
lynxmanjamespage: no worries :)14:41
jamespageDaviey: w00t - I got a gerrit trigger build on trunk!14:44
Davieyjamespage: about that... do you think it's a good idea?14:45
Davieyperhaps we should do it by hand?14:45
jamespagelol14:45
Davieyjamespage: Sorry, i am blowing smoke.. :)14:45
jamespageso long as you are willing to be the button pressing monkey14:45
Davieysoren: that is great to hear, so are you using gerrit as the trigger or github commit?14:46
Davieyerr, jamespage ^^14:46
jamespagegerrit14:46
jamespageyou have never got me mixed up with soren before...14:46
Caribou/314:47
Davieyjamespage: Yes, sorry - a real insult that was :)14:48
Davieyjamespage: Seriously, that is topnosh!14:48
DavieyReally pleased it's going well.14:48
gary_posterhallyn, hey.  lxc on precise is hanging for me, with lucid containers. I'm up-to-date, and I tried a brand new lucid container.  Details: http://pastebin.ubuntu.com/823882/ .  OTOH, a new precise container works fine, and is much faster to start than it used to be.  We kinda need both lucid and precise though.14:48
lynxmanjamespage: saw your comments, I don't really know what else to do tbh, this has been very time consuming14:48
lynxmanjamespage: feel free to take over if you want, can't justify more time on this cleaning the upstream lintian errors I'm afraid14:49
smoserhallyn, ping.14:52
=== scubes13 is now known as BEZ|Kevin
=== bladernr_afk is now known as bladernr_
gary_posterOneiric is also fine.  It is only lucid (that I care about; N and M are not important to me).15:03
smoserhallyn, ping again (different topic)15:14
smoserzul, did you push to lp:ubuntu/libvirt ?15:15
zulsmoser: no15:15
gary_posterhallyn, I filed https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/924337 so I could track15:16
uvirtbotLaunchpad bug 924337 in lxc "lxc on precise is not working with lucid containers" [Undecided,New]15:16
Decepticonbuenas15:16
Decepticoncomo configuro un server ubuntu 10.04  para crear una unidad compartida15:16
Decepticonse puede usar los tutoriales de ubuntu server 11 para losde ubuntu 10.0415:17
smoserzul, i just ased because it is up to date with your upload, but not the most recent one.15:17
smoserand its failing15:17
smoserhttp://package-import.ubuntu.com/status/libvirt.html#2011-05-26%2020:07:23.55831515:17
Decepticonhi people sorry I think that this canal in spanish15:17
smoserand i wondered if hallyn was manually pushing15:17
PiciDecepticon: Try #ubuntu-es :)15:17
Decepticoni have ubuntu server but i need to share a folder or unity15:18
DecepticonPici: thanks but I can speak englsih, dont problems15:18
PiciOkay :)15:19
DecepticonPici:  do you do of ubuntu server ¿_15:19
PiciDecepticon: I do.15:19
DecepticonPici:  thanks a God15:19
Decepticonjejej15:19
DecepticonPici:  i have ubuntu server wit ubuntu 10.04 server15:19
Decepticonbut i have manual of ubuntu server 11.0415:20
Decepticonthis manual is compatible15:21
Decepticonmanual of ubuntu server 11.04 but i use ubuntu server 10.0415:21
DecepticonPici:  please help me with this15:21
PiciDecepticon: It should be.  You can use https://help.ubuntu.com/10.04/serverguide/C/ instead if you want though.15:21
hallynsmoser: package importer always fails for libvirt (and qemu)15:21
hallynsmoser: yes i've been manually doing import-dsc and push15:22
DecepticonPici:  ok! thanks15:22
Decepticonhallyn:  so i can use for this =?15:22
smoserhallyn, have you ever asked in #bzr to maybe get it sorted out ?15:22
hallynof course15:22
hallynpls feel free to take your turn15:22
smoser:)15:23
smoserfunny15:23
smoseryeah. i've done it, and just asked.15:23
smoseranyway.15:23
smosersecond question for mr. hallyn.15:23
Decepticonhallyn:  thanks15:23
hallynDecepticon: sorry iw asn't talking to you15:23
hallynDecepticon: pls re-ask your question, i don't follow15:23
Decepticonhallyn:  ok!, dont problems15:24
Decepticonhallyn: cheeck.  i have a manual of ubuntu server 11.04 but I use to ubuntu server 10.0415:24
smoserbug 924281, hallyn was the second question.15:24
uvirtbotLaunchpad bug 924281 in cgroup-lite "cgroup-lite not installable inside 'lxc create -t ubuntu' container" [Undecided,New] https://launchpad.net/bugs/92428115:24
Decepticonthis manual is compatible with my server15:24
hallynDecepticon: I've not paid as much attention to the manuals as I should.  I'd look at the 10.04 one like Pici suggested.15:25
smoserDecepticon, probably somewhat. but it wont be 100% compatible.15:25
=== medberry is now known as med__
uvirtbotNew bug: #924337 in lxc (main) "lxc on precise is not working with lucid containers" [Undecided,New] https://launchpad.net/bugs/92433715:25
Decepticonhallyn:  ok perfect thanks15:26
Decepticonsmoser:  thanks15:26
Decepticonsmoser:  this is new for me15:26
Decepticonhallyn:  thanks15:26
Decepticonanything in the afthernoon to entrance to canal15:26
Decepticonthanks a lot15:26
hallynsmoser: i'll have to look into it.15:26
Decepticonbye bye15:26
=== med__ is now known as med_
Decepticongood day15:26
hallyngary_poster: ditto (i'll have to look into it - it's been working for me perfectly)15:27
smoserhallyn, from inside the container, i can't even make paths in /sys/fs/cgroup.15:27
smoserwhich i'm guessing is by design15:27
gary_posterhallyn, ack thanks15:27
hallynsmoser: is anything mounted there now?  df -h /sys/fs/cgroup?15:27
smosernot in the container15:27
hallynd'oh15:27
smoseronly outside15:27
hallynsmoser: haha, nm, i get it15:27
hallynsmoser: workaround, edit your /etc/apparmor.d/usr.bin.lxc-start and remove the /sys denial15:28
smoserhm..15:28
smoseri wasn't getting app armor errors in dmesg though.15:28
hallynsmoser: i think the 'deny' shuts up errors in dmesg actually15:29
hallyngary_poster: jsut as an aside, if you're using the config you said you're using, on precise, you don't have to use a config at all15:29
hallyn(that's the default)15:29
gary_posterhallyn, I wondered if that were the case.  Cool, thanks15:29
smoserhallyn, other fun quesiton...15:31
hallynsmoser: despite my being an ass earlier, i really would like the bzr issue resolved15:32
smoserwhat likely hood of getting acccess to loop devices inside a container15:32
smoserare the loop devices name-spaced ? i suspect not.15:32
hallynsmoser: yeah they're not.  you can coordinatei t from the host of course15:32
smoseryeah, but for this that is probably not enough.15:32
hallynwhat exactly do you want?15:32
hallynby coordinate, i meant pick loop3 and let a container have it15:33
smoserie, nova-volume and nova-compute are going to want to use losetup and the like.15:33
smoserand go looking for a free device and such.15:33
hallynthey can do that, the host just has to tell them which to use, and let them use it through the devices whitelist15:33
hallynor, the host can just let it access all of them...15:33
smoserwell it clearly can't safely let them access all of them.15:34
hallynit's not like containers are *secure* now, so don't let fake security get in the way of getting someting done15:34
hallynsmoser: well, hw about this,15:34
smoserand coordinating from the host would seem complex to me at the moment.15:34
hallynwhen the host creates the container, it picks two unassigned loops and lets the container have them;15:35
hallynthen make sure that when nove gets -EPERM it just tries the next index15:35
hallynwhatever creates the container will need to keep track of the loops, yes15:35
smoserit might be sufficient15:35
smoserbut that limits you to N/2 total containers if you do that by default15:35
hallynanyway, that's all we got right now, but namespacing loops might not be so bad.  only problem would be that the response might be "you must do all devices"15:36
hallynyup15:36
smoserwhere 'N' is the number of loop devices...15:36
smoseri think we set it to 64?15:36
hallynmaybe you can get fancy with udev15:36
hallynit can catch a loop creation (i think),15:36
smoserwell, module load is when its set15:36
hallynthen deny all other containers access to that loop15:37
hallyn(and if the host creates the loop, then all contaiens are denied)15:37
smoserhallyn, hm..15:37
smoserthat'd be pretty neat.15:38
smoserhow would udev know which container created the loop device ?15:38
hallynvery racy of course15:38
smoseryeah15:38
hallynnot sure if the uevent carries the pid which created it15:38
smoserhm..15:39
hallynit really seems to me that, unless nova likes to run around and dd if=/dev/zero into all existing loop devices,15:39
hallynyou should jsut allow all your containers access15:39
smoserwell... the thing i'm concerned about is something assuming that it is in full control of loop devices15:39
smoserand saying "is /dev/loop0 used? well, not by me!, i'll use it"15:40
derknechthas someone used encfs so far? i think about using it as replacement for dmcrypt with crypted container files to get around the fixed size containers problem.  Any advice if encfs is stable enough fpr production usage? Thanks15:40
hallynthat would be insane15:40
smoserit snot a completely unrasonable assumption15:40
hallynsmoser: sure it is.  otherwise you're telling me i can't run anything else on that machine15:41
hallynsmoser: or even loop mjount a cdrom iso15:41
smoseryou typically would only run one hypervisor management solution on a machine15:41
smoser:)15:41
smoserbut even if it *were* unreasonable15:41
smoserthen likely the well intentioned user is going to do something like:15:41
smoser * check if /dev/loop0 is used15:42
smoser * if yes, try /dev/loopN15:42
smoser * if not, take it15:42
smoserwhich is racy anyway15:42
smoserbut for now i'll try with all having access to /dev/loop*15:42
hallynsmoser: the good news here is that we ahve a very reasonable user for devices namespace15:43
hallynwhich means we might be able to start discussing a design and implementation15:43
gary_posterhallyn, another question.  sudo in a precise container complains of no tty.  I found http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03138.html .  the tty config that writer suggests is not in the config generated for my container (it is commented: "#lxc.cgroup.devices.allow = c 5:0 rwm").  I have to step away, but...is that a bad idea? intentional?16:04
gary_posterI will try when I return unless you advise against it16:05
hallyngary_poster: it's intentional.  5:0 is not namespaced16:05
hallynif it really breaks things, then maybe we'll have to undo it and live with it16:05
hallyn(inameeting)16:05
gary_posterhallyn, gotcha.  is there another reasonable way to get sudo to work with that setting?  ack on meeting.  will head off, and check back in when i return16:06
hallynoh, hm.  5:0 is tty.  that's not right16:08
hallynthat implies i should re-enable it, and lxc-start didn't do a setsid() somewhere16:09
stgraberhallyn: hmm, upstart is too limited for what I wanted to do (detect the container type in container.conf and set an environment variable that other jobs using "start on container" can check)16:09
stgraberhallyn: instead it looks like the easiest would be to move the logic into is-container and have container.conf call is-container the emit an upstart event with a CONTAINER=type variable that other jobs can check16:10
hallynstgraber: whatever works, i'm not tied to anything16:10
hallynstgraber: so i was thinking that 5:0 was console, but it's tty.  that's what i refused lxc access to, and doing so fixes both soundcard and xmodmap twiddling by container16:11
hallynstgraber: i guess ihave to undo it, but it leaves me wondering why it lets the container do what it does16:11
GyrosGeiersmb, will try that16:12
stgraberhallyn: would read-only make sudo happy and still give us the other benefits?16:13
hallynstgraber: i dunno, but shouldn't /dev/tty just connect to current's tty magically?16:13
hallyni.e. it's inherently namesapced?16:13
hallyni'll play with it i guess (but again, in a mtg)16:14
stgraberhallyn: indeed, it should. Though it looks like it's pointing to something that isn't namespaced at some point16:14
hallynstgraber: AIUI (and apparently i'm wrong) setsid should be setting that16:15
hallyni'm *sure (cough) lxc-start is doing setsid :)16:15
stgraberhallyn: grep tells me lxc-console does but that's the only direct call to setsid16:17
hallynhm16:17
stgraberI'd have expected to find it in start.c or namespace.c16:20
stgraber(but I don't pretend to understand exactly what's going on in the C code ;))16:21
stgraberhallyn: just checking, container=lxc-libvirt is what we'll get in the new libvirt right? (not libvirt-lxc)16:24
hallynstgraber: yes, but the LIBVIRT_LXC_UUID or whatever will still be there too, so we don't *have* to change anything16:24
stgraberhallyn: right, I just want to make sure is-container returns something consistent16:25
stgraberhallyn: if container is set in init's environment it'll always return it as-is and ignore all the other potential ways of detecting a container16:25
hallynstgraber: i don't know when that patch will go in, and i wasn't planning on backporting into 12.04 libvirt (though i can if you like)16:25
stgraberno, backporting won't change anything (unless they choose to change the value of container at the last minute to something else than lxc-libvirt)16:26
hallynpls shout (or opena  bug :) if you want that cherrypicked then16:26
hallyni've asked dlezcano in email about the setsid16:27
stgraberhallyn: do you have an opinion on the right way to extract "container" from init's environment? "ps -p 1 e" is fairly clean but extracting a single variable is a pain, parsing /proc/1/environ isn't much pretier16:31
hallynstgraber:hm16:32
hallynLet's say we wanted container.conf, when it starts, to set the container type in a file.  like /etc/containertype.  What would be the right place for that.  /run ?16:34
stgraberhallyn: yeah, /run would be the right place16:34
hallynand since /run is tmpfs, it doesn't have to do anything on non-container,16:35
hallynstgraber: so that would be my suggestion...16:35
stgraberhallyn: ok, I'll move everything back into the upstart job and have it write to /run16:35
SpamapSkoolhead17: around?16:35
uvirtbotNew bug: #924375 in cloud-init (main) "cloud-init should allow pre-seeding of ec2 datasource:Ec2:metadata_urls" [Undecided,New] https://launchpad.net/bugs/92437516:36
hallynstgraber: maybe we should run that by cjwatson and/or jodh...  i don't know if it's deemed kosher.  but i like it.16:36
smoserhallyn, it looks like you can now race-free get a loop device16:46
smoserhttps://lkml.org/lkml/2011/7/30/11016:46
hallynsmoser: but does nova use it16:48
smoseralmost certainly not16:48
smoser:)16:48
smoserbut it could.16:48
smoserand i *think* that is exposed via 'losetup' utility16:48
stgraberhallyn: ok, I have an updated upstart branch, testing it here now16:48
hallynsmoser: so you'd use that and allow all containers access to loop*?16:49
hallynstgraber: cool.  i need to do an updated lxc to fix the two bugs i introduced16:49
smoserhallyn, well, it seems likely that nova should use it generally.16:50
hallynyes16:50
smoserand for this speicifc purpose, i would need to allow /dev/loop*16:50
smoser(jstack purpose)16:50
hallynsmoser: well udev still might be doable16:50
smoserbut that does not to me seem acceptable across the board for lxc-create16:50
hallynno , it would be only for you16:50
smoseri dont think that adding a complex and racey solution makes much sense.16:50
hallynwell it might not be racy now16:51
hallyni.e. you can refuse all access,16:51
Danny_Jorishi, I'm trying to install ubuntu server as a vm with virtualbox. During the 'select and install software' process I got an error, and I'm not sure what to do...16:51
smosermaybe i'm missing something.16:52
Danny_JorisI'm trying to select another install process step, but it won't let me16:52
smoserhallyn, but i thought you were proposing:16:52
hallynthe /dev/loop-control or whatever creates the new loop dev, udev on host provides the container access, container keeps trying to open until it doesn't get -EPERM16:52
smoserwell, /dev/loop-control access would probably be dangerous16:52
hallyncan you only create new loops with it?16:53
smoseras i can also remove16:53
hallynoh16:53
smoserno worries.16:53
smoserhack for now, let /dev/loop* access16:53
hallynok16:53
smoserso16:53
smoserso how could i do this cleeanly?16:53
smoserie, for my created containers instances give them /dev/cloop016:54
smoserlxc-create -t ... then just append before start for the block devices i guess16:54
Danny_Jorisany advice?16:55
hallynsmoser: (if this is what you're asking) you can just add the lxc.cgroup.devices.allow line to the config that you pass to lxc-create with '-f'16:55
smoserright.16:55
smoseroh. i can pass my own config to lxc-create ?16:55
smoseri didn't know that.16:55
smoserinteresting...16:56
Danny_Joristhe enitre install is screwed... :(16:59
* Daviey buys, http://www.spreadshirt.co.uk/create-your-own-t-shirt-C59/product/102559172/view/117:01
lynxmanDaviey: can I get one too?17:04
hallynDanny_Joris: I fear your info was lost in the noise - can you please repeat?17:05
hallynDaviey: it must have been an imposter.  Clearly smoser must be out having lunch, and the maid sat down at the kbd17:05
Danny_Jorishallyn: I'm having an error in the select and install software - process17:06
lynxmanhallyn: Consuela style? (http://www.youtube.com/watch?v=2IaheLG-05U)17:06
Danny_Jorishallyn: I just started from scratch and I have it again17:06
koolhead17SpamapS: back :)17:07
koolhead17hey Daviey17:07
Danny_JorisI selected - openssh, LAMP, postgreSQL and mailserver17:07
hallynDanny_Joris: is this with Precise (12.04)?17:07
Danny_Joris11.1017:07
hallynlynxman: my laptop won't play sound from the flash plugin17:07
Danny_Jorisnot very helpful: https://skitch.com/dannyjoris/g7cyu/ubuntu-server-11.10-64-running17:08
lynxmanhallyn: aww17:08
SpamapSkoolhead17: was going to suggest that you attend our meeting, but it is over17:08
hallyn(sure i could youtube-dl it...)17:08
koolhead17SpamapS: we must be having our meeting log somewhere :)17:09
hallynDanny_Joris: I've had that too, though only with Precise.  I assume this was an uptodate iso you used?17:09
hallynDaviey: https://skitch.com/dannyjoris/g7cyu/ubuntu-server-11.10-64-running17:09
SpamapSkoolhead17: irclogs.ubuntu.com17:10
SpamapSkoolhead17: you came up, as the PHP5 bug fix (and merge of 5.3.9) need to be done soon17:10
Danny_Jorishallyn: yeah, just downloaded it from the ubuntu site17:10
koolhead17SpamapS: yes. will be doing it in 1-2 days17:10
uvirtbotNew bug: #924387 in samba (main) "BUG: Bad page map in process smbd" [Undecided,New] https://launchpad.net/bugs/92438717:13
smoserhallyn, does the config given stick across a clone ?17:20
smoseri think it does17:20
hallynsmoser: yeah, i'm pretty sure i copy the config verbatim17:20
smoserwell, and then you change the hostname17:20
smoserand something like that.17:20
=== yakster_ is now known as yakster
=== mkv is now known as m4v
=== [1]MarcelT3 is now known as MarcelT3
Danny_JorisOMG now it jammed on apt preparation...17:25
Danny_Jorisit got stuck on this: https://skitch.com/dannyjoris/g7cea/ubuntu-server-11.10-64-running17:31
Danny_Joristwice17:31
hallynDanny_Joris: gah.  exactly which iso are you using?17:31
Danny_Jorishallyn: http://www.ubuntu.com/download/server/download latest (11.10) 64 bit17:32
hallynDanny_Joris: thanks, i'll see what i get here.17:32
hallynDanny_Joris: 64bit?17:32
Danny_Jorisvirtualbox 4.1.8 on Snow leopard17:33
Danny_Jorishallyn: yes17:33
hallynd'oh17:33
hallynall right it'll take me awhile to d/l, but i'll see what i get.  you're not preseeding right?17:33
Danny_Jorishallyn: not sure what preseeding is, so probably not17:34
hallynok :)17:35
=== mrmist_ is now known as mrmist
Danny_Jorishallyn: I'm going to try the LTS17:37
hallynDanny_Joris: you mean 10.04 or the 12.04 LTS candidate?17:37
=== LewisCawte is now known as Lcawte
Danny_Joris10.0417:38
Danny_Jorishallyn: would the 12.04 lts candidate be more or less stable than 11.10?17:38
hallynfar less, at the moment17:38
hallynjjohansen: around?17:40
jjohansenhallyn: yes17:40
hallynif my policy says "allow /sys/fs/cgroup rwx; \ndeny /sys/fs/ rwx;"17:41
hallynwill that do what i expect, applying in order?17:41
hallynto be more precise, i mean "allow /sys/fs/cgroup/** wklx; deny /sys/** wklx,"17:41
jjohansenhallyn: no, AA rules don't have ordering (ie they are declarative)17:41
hallynthis is for bug 92428117:42
hallyndrat17:42
uvirtbotLaunchpad bug 924281 in cgroup-lite "cgroup-lite not installable inside 'lxc create -t ubuntu' container" [High,Confirmed] https://launchpad.net/bugs/92428117:42
jjohansenits one of those things Crispin was adamant about17:42
hallynjjohansen: whats the most concise way to say "deny write under /sys except to /sys/fs/cgroup/**" ?17:42
stgraberjhelwig: lp:~stgraber/ubuntu/precise/upstart/upstart-containers17:42
stgraberoops, wrong target. Sorry jhelwig17:42
stgraberhallyn: lp:~stgraber/ubuntu/precise/upstart/upstart-containers17:42
jhelwigstgraber: No worries.17:43
stgraberhallyn: I had to drop the "and stopped runlevel" bit as otherwise the console would sometimes take 3 minutes to show up (or not show up at all).17:43
hallynstgraber: i'll take a look17:43
stgraberhallyn: I poked jodh about that bit. AFAICS we don't actually need to wait on runlevel for LXC, it's usually best to just show the login prompt whenever we can17:43
hallynstgraber: yes, but that was because your network wasn't up?  or not?  maybe that actually is the root of gary_poster's bug then!17:43
hallynok17:43
hallyngood with me17:44
jjohansenhallyn: err. just have a single allow rule, and don't have any other rules allowing /sys access17:44
jjohansen/sys/fs/cgroup/** rw,17:44
jjohansenhallyn: of course that doesn't help if you have a broad rule like /** rw,17:44
hallynfeh, maybe i should drop the whole /sys rule for now.  it's going to have to change again when the mount perms come anyway17:45
* gary_poster is here. :-) Doing other things, and will be back to this soonish, but can also drop everything and try something if it helps17:45
jjohansenhallyn: otherwise it gets hard atm17:45
=== yakster_ is now known as yakster
hallynjjohansen: what is 'at the moment'?  what will make it easier?17:45
hallynjjohansen: i suppose i can just do something like "deny /sys/[^fs]/[^cgroup]/** rw" ?  in that spirit anyway?17:46
jjohansenhallyn: well, the syntax is supposed to get an extension that will make selective set operations easy.  It possible in the matching engine its just not exposed yet17:46
hallynjjohansen: in this cycle?17:47
jjohansenhallyn: except that isn't what you want.  [ ] is a character class17:47
hallyni figured i had a 50/50 chance :)17:47
jjohansenhallyn: I wish, but with the FF deadline coming I doubt it17:47
hallynFFE :)17:47
jjohansenhallyn: I am willing to consider it :), now just to convince jdstrand17:48
hallynjjohansen: i'd really like in 12.04 some way of being pretty specific about what under /sys and /proc a container can access, while using a big stick to say "and ntohing else"17:48
jjohansenhallyn: yeah, completely understand that17:49
hallyni guess i can just add a ton of /sys rules, one for each other dir other than fs17:49
jjohansenhallyn: do you know why lxc uses pivot root instead of chroot?17:49
hallynhow much will that slow things down (let's say 15 rules per container)?17:49
jjohansennot at all17:50
hallynjjohansen: the reason was to prevent chroot escape17:50
hallyni think everyone is somewhat open to switching back17:50
hallynespecially if apparmor will be able to help (right now it can't)17:50
jjohansenhallyn: okay.  I currently have some problem with the pivot root stuff, where I can only switch the profile of the current task.  Doing more is turning out to be problematic17:51
stgraberhallyn: btw, just noticed I have quite a bit of apparmor DENIED messages in my kernel.log: http://paste.ubuntu.com/824140/17:51
hallyngah17:51
jjohansenthis limitation shouldn't affect lxc17:51
hallynjjohansen: ok.  (note that libvirt-lxc also uses pivot_root.)17:52
jjohansenhallyn: its doable, but its a pain because of creds, where tasks have to update their owne state17:52
hallynpivot_root has other problems, so switching back has been discussed17:52
hallynbut it's so nice and clean17:52
adam_gsmoser: cobbler devenv / libvirt+pxe working okay for you on precise?17:52
hallynok ok, i need to do a reboot test, biab17:52
Danny_Jorishallyn: just did a flawless install with 10.04 lts17:52
hallynDanny_Joris: worth filing a bug IMO, but i'm not sure against what17:53
hallynbiab17:53
smoseradam_g, i think so, yeah. its 'odev' now.17:53
smoserhttps://code.launchpad.net/~orchestra/orchestra/odev/17:53
adam_gah17:53
hallynjjohansen: does http://people.canonical.com/~serge/lxc.apparmor look ok?  (really rebooting now)17:58
=== klaas_ is now known as klaas
=== mtaylor_ is now known as mtaylor
hallynno that's not right18:05
hallynjjohansen: http://people.canonical.com/~serge/lxc.apparmor  ugly and won't scale as more exceptiosn come up, but might work for now18:07
smoserhallyn, random information, precise util-linux does not have the race-free losetup18:10
smoserthat will be in utli-linux 2.2118:11
smoserwe have 2.2018:11
=== e-jat_ is now known as e-jat
smoserhallyn, do i have to do anything after updating the app armour profile to make it take ?18:14
smoserjjohansen?18:14
hallynsmoser: 'apparmor_parser /etc/apparmor.d/usr.bin/lxc-start'18:17
hallynuh, add --reload18:17
hallyngah, replace18:17
jjohansensmoser: you need to reload the profile18:17
smoserwith sudo service apparmor reload18:18
jjohansensmoser: yeah that will work, if the profile is in the profile directory18:19
hallynsmoser: i just installed cgroup-lite in a container with the lxc.apparmor i mentioned above18:19
hallynstgraber: so lxcconsole.cofn effectively can start when /run is mounted.  Is there any other fs which lxcconsole.conf might ought to wait on?18:21
uvirtbotNew bug: #912861 in txzookeeper (universe) "[MIR] juju, txaws, txzookeeper" [High,New] https://launchpad.net/bugs/91286118:21
hallyncontainer-detect.conf looks nice.  scary but nice :)18:22
hallynstgraber: secondly, I'm considering pushing lp:~serge-hallyn/ubuntu/precise/lxc/lxc-allowtty (works here).  look ok?18:24
jjohansenhallyn: re profile: it looks okay I guess, except the ugly attach_disconnected.  I realize you need it, atm but I would like to fix that before FF.18:27
jjohansenre the DENIED messages, I think that one is actually a bug in the attach_disconnected, I'll have to look into it more18:28
=== himcesjf1 is now known as himcesjf
hallynjjohanson: me too!  :)  (attach_disconnect)18:28
stgraberhallyn: AFAIK getty only depends on / being mounted and / should always be there, so no, I think the only condition really is "are we in an LXC container"18:29
stgraberhallyn: (looking at the branch now)18:30
hallynwell it does need /dev/console to exist :)18:30
stgraberhallyn: right, which AFAIK is there in the regular MAKDEV created /dev and by default in devtmpfs/udev?18:30
hallyntrying setsid in start() real quick...18:30
stgraberhallyn: anyway, mounted won't be emitted until udev/mounall have run, so we know /dev should be pretty much ready by the time lxcconsole is called18:31
hallynstgraber: console is put there by lxc-start anyway before init starts, so never mind :)  i was being silly18:31
hallynso, should i change the start on in console.conf in lxcguest for now?18:31
hallynor is that not worth it?18:32
stgraberhallyn: I don't think that's worth it at the moment, just want to get it right when we push that to upstart18:33
hallynsounds good18:33
stgraberhallyn: branch looks good, that's some interesting apparmor path matching you have there ;)18:33
hallyn:(  yeah18:33
adam_gzul: that looks pretty straight forward, why did we wait so long to do it after glance? wasn't there something blocking that made it less trivial than that? i dont remember18:35
hallynjjohansen: stgraber: maybe it's ugly enough to make jdstrand consider FFE for the pattern matchign extensions :)18:35
zuladam_g: i think i was waiting for the root wrapper stuff to finish18:35
jdstrand_jeez my nick is just on fire18:35
=== jdstrand_ is now known as jdstrand
jjohansenhallyn: err yes it is ugly enough we where discussing the possibility of a FFE18:36
hallynstgraber: ok pushing18:38
zuladam_g: im going to throw it up in the testrig18:40
adam_gzul: what? no18:40
stgraberhallyn: oh, just thought of it, please avoid uploading lxc until post-freeze. LXC is seeded by Edubuntu so it's affected by the freeze18:41
hallynstgraber: sorry, i just did18:41
adam_gzul: er18:41
adam_gzul: you mean the changes at http://paste.ubuntu.com/824199/ ?18:41
hallyn#ubuntu-release did say they were re-spinning, is that separate from edubuntu respins?18:41
stgraberhallyn: yeah, just saw that. It's not really an issue at this point because we expect rebuilds for kernel + some gnome stuff anyway.18:41
zuladam_g: yes18:41
hallynstgraber: i'll not push any more, sorry18:42
hallynstgraber: are openvz consoles in upstart actually going to work?18:42
stgraberhallyn: np. I should have thought of it earlier ;)18:42
hallynYou're making console-detect.conf do a bit more work before exiting on non-containers, so i want to make sure it's worth it18:42
adam_gzul: give it a minute for current test to run.18:42
hallynstgraber: especially the actual filesystem reading, which can really slow things down18:43
zuladam_g: ack...lemme know18:43
stgraberhallyn: no, they usually fail and use 100% CPU on OpenVZ18:43
adam_gzul: you're going to merge them into the ~openstack-ubuntu-testing branch or ~ubuntu-server-dev?18:43
hallynlol18:43
zulopenstack-ubuntu-testing18:43
adam_gzul: not sure what the easiest would be18:43
zuladam_g: well if i merge it into the ubuntu-server-dev then we can test your merge as well18:43
stgraberhallyn: yeah, /dev/tty* is usually not something you want to touch in a VZ. Most people just rm the tty* jobs. I'd have to do some tests and see if we can deal with that without breaking the world.18:44
=== fenris_ is now known as Guest88852
hallynstgraber: not sure i follow - you're saying you'll edit debian/conf/tty* to not run on container CONTAINER=openvz?18:44
adam_gzul: i propose we merge to ubuntu-server-dev, they automatically trickle down to the test rig and we can just revert them in ~ubuntu-server-dev  without much work18:45
zuladam_g: good enough for me18:45
=== fenris__ is now known as Guest62166
stgraberhallyn: yes, that'd be a way of doing it, if upstart lets me do that (don't think you can have something depend on an event not being emitted)18:45
adam_gzul: but please test build *and install* before doing that. if jenkins jobs fail because packages fail to install due to typos in postinst and stuff, im gonna f'in kill you! :)18:46
hallyni bet SpamapS can think of a cool way18:46
stgraberhallyn: the other way would be to have them stop on container CONTAINER=openvz which isn't really ideal either but would avoid the 100% cpu part of the problem :)18:46
hallynyeah that sounds worthwhile18:46
zuladam_g: just doing a test run here18:46
stgraberhallyn: another way would be to emit "not-a-container" and have the ttys depend on that or container CONTAINER=lxc or container CONTAINER=lxc-libvirt18:47
adam_ghallyn: have you seen any problems with pxe+kvm on precise? im running into an issue after a recent upgrade where dhcp requests make it thru to dnsmasq only %25 of the time, if that18:47
adam_gsmoser: ^18:47
hallynadam_g: no, i 've not noticed, though we have noticed dhcp problems in containers.18:48
hallynadam_g is your virbr0 stp on?18:48
stgraberstp is completely broken in libvirt. I made sure I have my config explicitly saying "stp=off" and it's still setting it on at boot time18:49
hallynfeh18:49
hallynstgraber: pls open a bug?  that needs to get fixed.18:49
adam_gSTP is enabled. if thats broken, that'd make sense18:49
stgraberhallyn: will do next time I reboot and confirm that doing it the clean way like I just did (net-edit) solves it (instead of messing directly with the .xml like I did last time)18:50
hallynadam_g: well that means that the dhcp request (iiuc) will go on the wider net18:50
hallynadam_g: at any rate turn it off and see if that fixes it :)18:50
adam_ghallyn: yes, disabling it fixed18:51
hallynstgraber: so one last time, on your upstart-containers tree, is it a concern that non-containers will always process /proc/self/status and look for /proc/{vz,bc}, during early boot?18:52
hallynadam_g: drat.  uh, i mean, good.18:52
hallynadam_g: thanks18:52
smoseradam_g, i did see this.18:53
adam_ghallyn: shall i raise a bug?18:53
hallynadam_g: go ahead.  stgraber: adam_g is opening it  ^18:53
smoserin odev i was timing out on boots sometimes.18:53
hallynodev?  wth...18:54
stgraberadam_g: thanks18:55
hallynof course it could be a bridge-utils regression18:55
stgraberhallyn: it'll make boot slower, yes, now looking through a single file in /proc should be so fast we don't really care18:56
adam_gwhat determines the stp + dhcp timeouts on a libvirt network? IIRC, if stp timeout is greather than the dhcp timeout, it will fail to pxeboot unless you drop to ipxe prompt, wait a bit, and retry dhcp18:56
hallynstgraber: ok, then i'm happy - pls feel free to push :)18:56
hallynstp timeout?  i don't understand those words together18:57
stgraberreal0m0.003s18:57
stgraberuser0m0.000s18:57
stgrabersys0m0.000s18:57
hallyni thought stp was just on or off18:57
stgraberhallyn: ^ that's running the check ;)18:57
hallynadam_g: but since virbr0 by default is nat, stp doesn't make sense anyway i don't think.18:58
smoserroaksoax,18:58
hallynhuh.  brctl manpage now is implying that brctl off is a bad thing.18:58
smoserin early_command, we could 'echo force-unsafe-io > /target/etc/dpkg/dpkg.cfg.d/force-unsafe-io'18:59
Davieysmoser: we used to do that with uec-deployment-testing thing, didn't we?19:01
DavieyWe did discuss doing it by default for installs.19:01
smoserhm..19:01
smoserhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=60538419:01
uvirtbotDebian bug 605384 in base-installer "d-i should use dpkg --force-unsafe-io to optimize installation time" [Wishlist,Fixed]19:02
smoserbut i sweare things are slower than they should be19:02
adam_ghallyn: by timeout i mean the time it takes for the port to initialize before the interface has link19:03
Davieysmoser: look at that, we discussed it and it was done :)19:05
hallyni see.  upstream libvirt commit 1ae8eed1b4740f1977f05235b47c820c7397e0f9 appears to be the cause19:06
smoseryou must have said "so be it", Daviey19:06
hallynadam_g: i don't understand how, but maybe upping the delay would help you...19:08
hallynnote i have stp on on virbr0 and haven't noticed any dhcp issues19:08
hallynbut i'm sure i'm not as heavy as user19:08
koolhead17SpamapS: Can you suggest me some example/doc i should follow for the merge process19:09
koolhead17i got one https://wiki.ubuntu.com/MeetingLogs/devweek1107/MergingFromDebian19:09
TimR_hey guys I cant upgrade my 9.04 to 10.04 and I do not want to do clean install so how do I fix this?19:13
adam_ghallyn: its only an issue during pxe boot, when the interface has just come online and STP is probably still initializing/discovering/whatever. waiting till normal dhcp discovery later in boot gives it enough time, i assume19:14
hallynbut then delay in the bridge won't help, right?  that'll just squash traffic from the device during the timeout19:15
adam_gi suppose not19:17
adam_gwas stp enabled by default on libvirt created bridges previosly?19:17
hallynadam_g: i didn't think so19:18
hallynadam_g: the commit that mentions their being on by default is from nov 201119:18
hallynlemme put on my dunce hat and go ask upstream on irc why they think on is best.19:19
SpamapSkoolhead17: php5 is *not* an easy merge. ;)19:22
TimR_anybody?19:22
koolhead17SpamapS: planning to spend my night with it :D19:22
gary_posterhallyn, you asked on bug 924337 "Can you show what 'brctl show' on the host gives? Do your host logs show any problems with dnsmasq on lxcbr0?"  The first one is easy. virbr0 does have STP enabled (lxcbr0 does not).  For the second, I looked at /var/log/syslog and saw some dnsmasq chatter but nothing that was obviously an error.  I'll report this in the bug, but I'm mentioning it here so you can quickly give me a be19:23
gary_postertter idea if I should look elsewhere.19:23
uvirtbotLaunchpad bug 924337 in lxc "lxc on precise is not working with lucid containers" [High,Incomplete] https://launchpad.net/bugs/92433719:23
SpamapSTimR_: you can still upgrade 9.04 to 9.10, you just need the old releases..19:23
TimR_where do I find it?19:23
hallyngary_poster: as a workaround, you should be able to just change the 'start on' in /etc/init/console.conf in your container to 'start on mounted MOUNTPOINT=/run'19:23
hallyngary_poster: when stgraber's new upstart hits archive (not sure how soon that can happen) it'll be fixed there.19:24
gary_posterhallyn, ok awesome thank you.19:24
hallynstgraber: which reminds me, we'll need to do a Breaks: lxc  on current version and below, and fix the ubuntu tempalte to ditch lxcguest on setup.19:24
user10000i need help to config QoS on my ubuntu server/router for gaming..anybody?19:25
TimR_SpamapS?19:28
SpamapSTimR_: google? not sure19:31
gary_posterhallyn, for the TTY problem (5:0 not allowed) from earlier, I have a workaround (uncomment that line).  Is there a fix coming as well?19:34
hallyngary_poster: yes, i'm re-enabling that access.  fix should be in archive already19:34
gary_posterawesome thanks hallyn19:35
hallynnp, i think i messed up with that altogether.19:35
smoserhallyn, i like your /sys/fs/cgroup/* change.19:38
hallynsmoser: pretty eh?19:39
smoserbut now i can't access /sys/fs/cgrope19:39
smoseroh well. it was probably just going to get me into trouble anyway19:40
hallynespecially on the internet19:40
hallynboy, trying out having the unity bar not autohide.  it's very distracting while reading a full-screened term :)19:41
Davieyhallyn: I had to switch to not hide.. i found that /more/ annoying19:43
hallynDaviey: not hide?19:44
hallynDaviey: i just switched to always hidden.  I tried always present, and it phsyically hurts19:44
Davieyheh19:48
stgraberhallyn: oops, just read the comment in lxcconsole.conf saying that libvirt uses tty1.conf, so that means my current start condition is wrong (starts on both lxc and lxc-libvirt)?19:50
zuladam_g: the ubuntu-server-dev branch has the /bin/false now19:53
hallynstgraber: oops, yes.  i forgot about that.19:53
stgraberhallyn: any luck with setsid()19:56
hallynstgraber: well, thsi is where i think i really messed up - it looks like apparmor is preventing the sound+kbd messups now anyway19:56
hallynstgraber: so I'm leaving it be for now19:57
hallynso right now, with new container creatd with newest lxc, it's not corrupting things for me19:57
adam_gzul: k, ill kick off a test19:58
zuladam_g: tested and launched an instance ok19:58
=== dduffey is now known as dduffey_afk
roaksoaxsmoser: i guess w ecould do that, but doesn't d-i provide anything to set that already?20:11
smosersee above, apparently it does it already.20:11
hallynDanny_Joris: 11.10 server install went flawlessly for me in kvm.  I assume it's some virtual box issue?  Might be worth looking through the logs after the install fails.20:11
adam_groaksoax: ping20:22
roaksoaxadam_g: pong20:25
adam_groaksoax: thoughts on Bug #918796 ?20:25
uvirtbotLaunchpad bug 918796 in orchestra "Imported ISO's end up with wrong names" [Medium,Confirmed] https://launchpad.net/bugs/91879620:25
adam_groaksoax: im wondering if cobbler might have changed behavior when importing + creating /var/www/ks_mirror/ directories20:25
roaksoaxadam_g: that's something I'm about to start looking into20:26
roaksoaxadam_g: i'm guessing it is because renaming a profile ends up not renaming /var/www/ks_mirror20:26
roaksoaxadam_g: and when adding a new one, it cant use something that was previously used20:27
roaksoaxor the other option is that if the name uses -<arch> and --arch is specified as swell, then there's some validation error somewhere20:27
adam_groaksoax: yeah.. its not renaming the ks_mirror directory, because its looking for it ref.name, but apparently when its imported, its created as ref.name + ref.arch or some such.20:28
adam_groaksoax: our input to cobbler from o-import-isos + c-ubuntu-import hasn't changed much AFAICS between oneiric  and precise20:29
roaksoaxadam_g: yeah I'm guessing it is a bug within cobbler's validation20:29
roaksoaxadam_g: cause either way, if the arch is not specified in the --name then, once the arch is detected20:29
roaksoax(or specified) it is automatically added to the name20:30
adam_gah20:30
roaksoaxso somewhere in the process something doesn't work the way it should20:31
adam_gwell, either way.. the precise version of cobbler-ubuntu-import has been working fine on the oneiric cobbler server in terms of keeping distros up to date and named properly. the double-arch-in-name bug causes issues for that update process on precise, because renaming fails20:31
roaksoaxadam_ TBH I wasn't the one who found the bug, but rather, it came up in a discussion i was having so I filed it20:32
roaksoaxand I haven't seen it yet20:32
adam_groaksoax: just checked again on a fresh daily:  apt-get -y install cobbler && cobbler-ubuntu-import precise-x86_6420:41
roaksoaxadam_g: did the double arch thing happened again?20:41
adam_ghttp://paste.ubuntu.com/824379/20:42
adam_gyeah20:42
smoserSpamapS, what tool was it hta tyou were usin gthat showed io?20:42
roaksoaxadam_g: ok I think I have an idea of what might be going wrong20:42
smoserwhat double arch thing ? adam_g ?20:43
SpamapSsmoser: iostat and vmstat20:43
smoseroh.20:43
smoseri see it.20:43
smoserhm..20:43
roaksoaxadam_g: where you using a server in the lab?20:43
roaksoaxadam_g: is there any free machinein the lab that I can mess with? one that already has precise on it20:47
adam_groaksoax: im in cloud instance20:48
roaksoaxadam_g: ok20:48
adam_groaksoax: try canonistack precise20:48
roaksoaxadam_g: about to do that ;)20:49
SpamapSsmoser: are you looking at making jstack more efficient again?20:53
smoserno. i was just working on it.20:54
smoserit uses btrfs clone now!20:54
smoser:)20:54
smoserwell, all of lxc uses btrfs clone if /var/lib/lxc/ is btrfs20:54
smoserhallyn, i hvae a question21:01
smoserlxc-ls starts to not work properly as non-root, possibly after you've done some bad things to it.21:01
smoseris it a bug by the user to try to use it as non-root, or in lxc-ls21:02
hallynsmoser: there's no particular reason why we'd want to stop lxc-ls  for non-root.  Do you know what you've done to it to top it working?21:05
hallynsmoser: before it wasn't working bc *I* broke lxc-start...  (well, src/lxc/cgroup.c)21:06
smosernot really. but i see it often. when using juju.21:06
smoserstuff like:21:06
smoser/usr/bin/lxc-ls: line 35: cd: /sys/fs/cgroup/cpuset///lxc: Permission denied21:06
smoserls: cannot access ubuntu-jstack-nova-cloud-controller-0: No such file or directory21:06
smoserls: cannot access ubuntu-jstack-keystone-0: No such file or directory21:06
roaksoaxadam_g: ah yes, I think I had fixed that.. maybe a patch got dropped or something changed in the newest upstream release21:09
adam_groaksoax: cobbler/api.py ln. 76821:09
hallynsmoser: can you file a bug?  (it soudns like a rehash of two earlier issues, nother of which you *should* be having)21:10
adam_groaksoax: api.import_tree() is completely changed since oneiric. among other things,  path += ("-%s" % arch)21:10
roaksoaxadam_g: i think there was a patch for that21:12
roaksoaxadam_g: are you providing a fix?21:13
roaksoaxadam_g: or should I21:13
roaksoax?21:13
adam_groaksoax: im going afk for lunch. i only traced it to there, didn't look any further at a fix or why it changed to begin with21:13
roaksoaxadam_g: ok I'll work on it then :). thanks21:14
stgraberhallyn: https://launchpad.net/~stgraber/+archive/experimental has a test upstart with my changes21:40
rajhow reliable is 11.10 as a server?21:40
rajjust as reliable as 11.04?21:40
stgraberhallyn: I basically rebased lxcconsole.conf on the other tty jobs and renamed it to console.conf (in case we one day find something else than lxc needing that). I also added the new conditions to the other jobs and the not-container event,21:41
stgraberhallyn: would be nice if you could test than in lxc, lxc-libvirt and some standard system (non container). I tested lxc and standard system here (VM).21:41
stgraberhallyn: as running-in-container depends on stuff that are in the packaging, I'll move it to debian/ and will propose the branch for merging (probably after a quick chat with slangasek)21:43
hallynstgraber: ok21:43
hallynstgraber: (trying to get two bug reproduce tests going right now, having some trouble... but will try to get to those soon)21:44
adam_gzul: all tests passed with those packaging changes, btw21:50
hallynstgraber: d'oh.  seems i did something wrong.  'mountall : event failed'21:51
uvirtbotNew bug: #917851 in openstack-ci "replace m2crypto with shelling to openssl" [High,In progress] https://launchpad.net/bugs/91785121:53
TimRsudo mount -o loop /media/cdrom0/alternate-cd.iso /mnt/alternate21:54
stgraberhallyn: do you sill get a console after that?21:54
TimRI cant get the alternative cd to work correctly via command line21:54
hallynjust took an existing workign container, cloned it, added your ppa, purged lxcguest, updated (including upstart).  no, no console, and lxc-ps shows nothing21:55
hallynstgraber: btw I'm not 100% sure about your tty{5,6].conf - why do you have them starting in lxc and lxc-libvirt contianers?21:56
stgraberhallyn: ok, that's odd. I'm seeing some problems in VM now (looking at it) but it works fine in the container21:56
stgraberhallyn: yeah, I only just noticed that, we indeed only need tty1-tty421:56
hallyndont' know if that hurts anything...21:57
stgraberhallyn: when you say lxc-ps shows nothing, is that nothing as in just init or just nothing weird?21:58
hallynstgraber: that time it showed nothing at all, now i get http://paste.ubuntu.com/824480/21:58
hallynhow can emit hang?21:58
hallyndo i need dbus maybe...21:59
stgraberhallyn: it can. I actually just fixed that one here.21:59
hallyn(installing dbus didn't help)21:59
stgraberhallyn: I also just noticed my package version being stupid (should have been ~ppa1 so I can do some tests). I'll upload a new version now but with a lower version number so you'll need to manually install it (sorry ...)22:00
hallynstgraber: np, i'll just use a new container22:00
hallynstgraber: i assume it'll be an hour before ppa builds?22:00
stgraberhallyn: more like 10-15min. I skip the build queue ;)22:01
hallynstgraber: please satisfy my curiosity - wtf is making it hang?  :)22:01
hallynok, set a timer - i'll retry in 20 mins22:02
stgraberhallyn: don't know to be honnest, I just went with my usual fix for cases where it hangs "initctl emit --no-wait"22:02
hallynoh.  duh.22:02
stgraberit usually happens when a job is "start on starting some-other" and you get into weird circular dependencies, but it's not the case here, so not really sure ;)22:02
hallynhere's hoping i'm not over-taxing my laptop (with a set of nested kvms) and it doesn't overhead+shutdown again...22:02
stgraberyou need water cooling ;)22:03
TimRcan anybody help me I cant get the alternative cd update to work via command line22:05
kirklandsmoser: fyi, i just launched a precise t1.micro, it's up and running, but 30 minutes later, no console output22:05
smoserit does hapen.22:06
smoserkirkland, could you follow up in bug 58872522:08
uvirtbotLaunchpad bug 588725 in linux-ec2 "instance had no console output" [Medium,Confirmed] https://launchpad.net/bugs/58872522:08
smoserhm...22:09
smoseri guess that i should probvably open a thread and then ask you to append your instance-id and ami and such to it.22:09
Patrickdkhmm, I should file an annoyance against debian-install22:10
Patrickdkthat is the correct package for the installer these days right?22:10
TimRam I doing something wrong here?22:10
zuladam_g: swweeeet!22:11
RoyK?22:12
roaksoaxadam_g: http://pastebin.ubuntu.com/824494/22:12
kirklandsmoser: another strange thing ....22:13
kirklandsmoser: 0% [Connecting to us-east-1.ec2.archive.ubuntu.com (10.210.205.172)]22:13
kirklandsmoser: i launched another instance22:13
kirklandsmoser: and that archive just isn't responding22:13
kirklandsmoser: I ctrl-c and retry22:14
kirklandsmoser: get a different mirror, and then I'm off and running22:14
kirklandsmoser: i wonder if the two issues are related?22:14
adam_groaksoax: ive done something similar locally, will run with that for today while i do some cobbler work. might be worth checking with upstream source for context around that change22:14
TimRok I guess im not being heard here22:15
smoserutlemming, can you dig on archive issue above please ?22:15
smoserkirkland, says that 10.210.205.172 is dead22:16
smoserkirkland, two issues not related.22:16
smoserkirkland, please append instance-id and other information to https://forums.aws.amazon.com/thread.jspa?threadID=8617422:16
smoseror if you dont want to bother with an id there, i will copy from the bug.22:16
roaksoaxadam_g: IIRC, I saw similar bug long time ago and was fixed in a similar way22:16
smoseras it says in the bug, i very much suspect that there is a hypervisor loss of data on this stuff.22:17
kirklandsmoser: okay22:17
adam_groaksoax: strange22:17
kirklandsmoser: I opt for pasting into bug, eff the forum :-)22:17
roaksoaxadam_g: indeed! I will review upstream branches and our dropped patches later22:17
kirklandsmoser: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/588725/comments/1222:18
uvirtbotLaunchpad bug 588725 in linux-ec2 "instance had no console output" [Medium,Confirmed]22:18
stgraberhallyn: packages built, just waiting for them to publish now22:19
smosergracias, kirkland22:21
smoserlater all.22:21
kirklandsmoser: de nada22:21
utlemmingsmoser: digging22:22
TimRso can anybody help me?22:24
greppyTimR: If someone can, they will.  It may help if you give specific error messages, if they take up more than one line, you should probably use !pastebin22:30
greppybah22:30
TimRi have22:30
TimRand everytime I get muted out22:30
greppyTimR: *shrug* if no one can help you, then they can't help you, sorry.22:31
TimRthen if they cant help why be in there?22:31
greppybecause they can't help you, they shouldn't be here?22:32
TimRright....22:32
greppyYou don't think that is a little arrogant on your part?22:33
TimRno22:33
TimRyou think its arrogant beging muted when asking a question?22:33
greppynone of us are paid to help people in here.  When you ask a question, if someone can help you, they will.22:33
TimRya four hours later?22:34
greppyIf that is when someone can help you, then yes, 4 hours later, or 5 or 6 or whatever.22:35
hallynstgraber: not seeing it yet22:35
greppyand on that note, it's time for me to go become unconscious.22:35
* greppy &22:35
stgraberhallyn: yeah, it's taking long to publish ...22:36
TimRnvm I got main issue fix without have to upgrade the whole system22:36
stgraberhallyn: actually according to LP it just finished22:36
hallynah there it is22:38
hallynit didn't auto-remove lxcguest22:38
hallynwtf - exact same problem.22:39
hallyn1.4-0ubuntu5~ppa122:39
hallynstgraber: bad debuild/dput?22:39
stgraberhallyn: looks like it. the job is wrong22:40
hallynstgraber: was adding --nowait the only difference?22:40
hallyni'll just test that by hand if so22:40
hallynnote i still get 'mountall: event failed" but i now get a console22:41
stgraberhallyn: that, disabling tty5 and tty6 and adding some || true at some risky places (as pre-start scripts are running with -e)22:41
hallynstgraber: do you get the mountall error msg?22:42
hallynoh noes!  and reboot didn't work22:42
stgraberhallyn: yeah, the mountall error seems to come from mounted-debugs22:43
stgraber*debugfs22:43
stgraberhallyn: chmod: changing permissions of `/sys/kernel/debug': Permission denied22:43
stgraberhallyn: got that testing with: lxc-start -n container -- /sbin/init --log22:43
hallynnot sure what we should do about that22:44
hallynstgraber: but, does 'reboot' work for you?22:44
hallynok, added '|| true' to that and it shut up the error22:44
stgraberhallyn: yep, reboot works. Boot time varies though, probably because of dhclient22:45
hallyni wonder if the newest kernel dropped the reboot patch22:45
hallyni bet so22:46
stgraberhallyn: pushed ppa2 (adding --no-wait and actually basing console on tty1 instead of tty2, will make boot a bit slower but consistent with a regular ubuntu system)22:51
hallynstgraber: with ppa1, libvirt-lxc container gets a console just fine22:53
hallynstgraber: /etc/init.d/ondemand is biting at my ankles.22:55
hallynbut no that's not the only problem22:56
stgraberI think I'll start doing all my tests with static networking, dhclient timing randomness doesn't help for testing22:57
hallynstgraber: I dunno, exact some container, with ppa1 upstart and no lxcguest, pid 1 will just not go away.  reboot+shutoff just hang22:58
stgraberhallyn: weird, reboot definitely works here (ppa1)22:59
hallynwhat could i have done...22:59
hallynok i'll just start over i guess22:59
stgraberanything in dmesg?22:59
stgraberoh, btw, I just noticed you can flush the kernel log from a container (dmesg -c). Not sure if there's an apparmor way of blocking that though.23:00
hallynjust the similar stuff to what you have23:00
hallynyeah it woudl've been nice to have dmesg separation for lts23:01
hallynshould be added to LxcSecurity wiki page23:01
stgraberhallyn: https://launchpad.net/~stgraber/+archive/experimental/+build/3137750/+files/upstart_1.4-0ubuntu5%7Eppa2_amd64.deb (haven't tested yet)23:02
hallyni hate typing out python-software-properties23:02
hallynok thx23:02
hallyncan't resolve launchpad.net.  weird23:05
stgraberhallyn: if you switched to static and assume /etc/resolv.conf will be kept across reboot, you're wrong (you need to use dns-nameservers in /etc/network/interfaces) ;)23:06
hallyni can't believe this.  can't resolve launchpad.net even on my laptop23:07
hallynstgraber: that sounds bad23:08
hallynstgraber: you purge lxcguest too?23:10
stgraberhallyn: yep23:11
hallyni don't get it23:11
hallynhm.  i just have no name service23:12
hallynstgraber: i don't have resolvconf installed, but resolv.conf is pointing to 127.0.0.1.  expected?23:15
stgraberhallyn: yes, Network Manager starts dnsmasq since the sprint23:15
stgraberps aux | grep nm-dns-dnsmasq23:15
stgraberif that doesn't give you a dnsmasq server, you have a problem :)23:16
* hallyn doesn't like all this newfangled redirection and automation23:18
hallynbut especially not when it breaks his dns :)23:18
hallyn(obviously, existing connections are fine.)23:19
hallynwell hmm, what's going on here23:19
hallynmaybe i'ts not dnsmasq's fault23:19
hallynbut it is23:22
hallynserver=192.168.254.25423:22
hallynbut when i but 'nameserver 192.168.254.254' into /etc/resolv.conf, then i can resolv just fine23:22
hallynstgraber: ^23:26
stgraberhallyn: hmm, that's weird, could it be multiple dnsmasqs fihghting for 127.0.0.1?23:29
hallynstgraber: conceivable, though i don't see another23:29
stgraberhallyn: you can also try asking NM to restart the connection, see if that helps (NM kills and respawns dnsmasq everytime something changes)23:29
hallyni've tried disconnecting and reconnecting several times23:29
hallynbtw, this is a separate issue, but yes i think this will completely screw up my setup for making this laptop a wireless bridge for my other one over eth0 (which runs another dnsmasq listening to eth0 for pxe-boot and dhcp)23:30
hallynbut i'm not trying to do that right now, and that dnsmasq is not runnign23:30
hallyni think maybe i need to stop for the day (and just let my test installs run).  nothing is working or making sense23:31
stgraberhallyn: ok, lets try a few ideas: do you have nscd running? anything suspicious in /var/log/syslog (both NM and dnsmasq should log there)? any firewalling going on?23:32
hallynno nscd23:33
hallynthree dnsmasqs - libvirt, lxc, and nm23:33
hallynonly suspiciosu thing i see - which should alarm us just a bit - is udev on the host complaining about the contaienr's veth (i assume) not existing, during the udev storm23:34
hallynnothing for nm23:34
hallynhm, qemu died while a nested qemu was installing23:36
stgraberhallyn: rebased on a clean upstart, re-commited everything in small chunks and updated changelog: lp:~stgraber/ubuntu/precise/upstart/upstart-containers/ (new branch, so bzr pull won't work unless used with --overwrite)23:57
hallynthx, will look23:58

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