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

harushimoI didn't get chance to install my gui00:06
harushimoI was wondering what is a good light weight gui00:06
harushimoI was debating between openbox or fluxbox00:06
stgraberSpamapS: thanks!00:16
=== GhostFreeman_ is now known as GhostFreeman
=== pjdc_ is now known as pjdc
techquilahi all.. can someone offer any solution to this problem for me please: http://ubuntuforums.org/showthread.php?t=199084200:32
harushimosomeone told me two good sites for maas02:18
harushimowhat was it02:18
twb!log02:18
ubottuOfficial channel logs can be found at http://irclogs.ubuntu.com/ . LoCo channels are now logged there too; for older LoCo channel logs, see http://logs.ubuntu-eu.org/freenode/02:18
harushimo!maas02:18
bigjoolsmaas.ubuntu.com02:19
=== ea1het is now known as ea1het_sleep
FidelixHello. I'm having a serious problem here on my server. My USB drive is not appearing, and dmesg has this: usb 3-1: new full speed USB device number 5 using ohci_hcd02:53
FidelixThen: usb 3-1: device descriptor read/8, error -11002:53
FidelixCan someone, PLEASE, help me fix this? I tried to reboot the server twice. One with "init 6" and another one with shutdown -r now02:53
lifelessdoes the drive work on a different machine?02:54
Fidelixlifeless, I don't know. I can't try it in another machine, it's all remote02:54
lifelessthe symtpoms you are reporting make me thing 'hardware failure'02:55
Fidelixlifeless, you mean, physical damage?02:57
FidelixIt was working normally before02:57
FidelixThen I was rsync'ing over 1TB of files, and in 60% it suddenly stopped02:58
lifelessyes, physical issue03:03
lifelessits failing to read from the drive, I believe03:03
twbTry plugging it back in?03:04
Fidelixtwb, and how do I do that?03:04
FidelixI have no physical access to it03:04
twbCall the NOC monkey03:05
JoeCoderI'm using openssl as part of an installation script, but I can't find a way to make it unattended.03:11
JoeCoderin generating X.509 certs, it always asks me for country, city, etc.03:12
twbJoeCoder: because you need to mash your head on the keyboard to generate entropy?03:12
twbOh that.  Just use certtool, it's much easier to get the hang of03:12
JoeCodernope;  Im actually not sure where it's getting entropy from03:12
JoeCoderoh, thanks.  I'll take a look03:12
twbJoeCoder: it gets it from headdesking03:12
JoeCoderin 12.04, it doesn't ask me for any entropy.03:13
twbSeriously I built some live PXE images of ubuntu, and they would hang during boot until you mashed the keyboard spastically03:13
twbbecause something during boot was generating keys (maybe SSH) and there was no entropy on the freshly booted system03:13
twbEPIC symptoms03:13
JoeCoderI don't really know what I'm doing or what the various crt, .pem, etc. files do (but I understand the concepts of private key cryptography), and openssl is already working well, so I'm nervous about switching.03:15
JoeCoderthe tutorial I'm using has me making about 7 different files.03:15
twbThe file extension doesn't really matter03:15
twbAre you familiar with how key-based auth works in SSH, or in GPG?03:16
JoeCoderI understand that the client is given a public key, it encrypts the message, and the server uses the private key to decrypt it.03:16
twbhttp://paste.debian.net/172286/ are some notes I made early on when learning TLS03:16
JoeCoderI'm using startssl as an authority03:16
JoeCoderok, I follow your notes, but I don't understand why I need 7 different key files03:19
JoeCoderhttp://lowtek.ca/roo/2012/ubuntu-apache2-trusted-ssl-certificate-from-startssl/ is the tutorial I used.03:19
JoeCoderopenssl gives me 2 files, I give one to startssl, and it gives me back 3 in return.03:19
JoeCoderthen 2 more files are created by concatenating those first 5 together in various ways.03:19
JoeCoderstartssl gives me ssl.crt, sub.class1.server.ca.pem, and ca.pem03:20
JoeCoderoh well, this is a side-rant and isn't as important.03:20
JoeCoderI'll take a  look at certtool03:21
JoeCoderif that fails, is there a general tool I can use to provide input to programs that ask questions?03:21
JoeCodersince I don't know what I'm doing, and openssl is already worknig well, that would be a faster route for me.03:22
twbWell there is always a private key and a public key.03:23
twbIn TLS the public key is usually embedded in the cert03:24
twbA CA cert is a key signed by itself.  verisign et al keys are special only because people include them in their default trust list.03:24
JoeCoderthat's part of the browser.03:25
twbWhen you want someone to sign your key, you give them a Certificate Signing Request (CSR).  That is basically your public key plus a note that says "please sign this"03:25
JoeCoderyep, I give the .csr file from openssl to startssl03:26
JoeCoderbut I didn't know what csr stood for03:26
twbThey take that and their the CA private key, and sign your public key and send you back a cert03:26
twbSo in total, you should have a private key, a CSR and a cert, and they should have a private key and a CA cert.  Note sure how you get to 7 files.03:27
JoeCoderstartssl gives me ssl.crt.  But they also give me sub.class1.server.ca.pem and ca.pem03:27
JoeCoderso what are those .pem files?03:27
patdk-lapwell, the csr is really just a temp file03:27
JoeCoderyeah03:27
patdk-lapyou need all those03:27
patdk-lapyou have your certificate, but you also need that certificate chain03:27
patdk-lapwithout that chain, a user can't trace back the trust path, back to the root certificate they trust03:28
JoeCoderthose two pem files are concatenated together into the chain file.03:28
JoeCoderand that's given to apache as part of the SSLCertificateChainFile configuration setting.03:29
patdk-lapyep03:29
patdk-lapthe ca.pem and sub*.pem03:29
patdk-lapyou can check it's all good using: http://www.networking4all.com/en/support/tools/site+check/03:30
JoeCoderoh good.  I had just been loading it up in chrome.03:30
JoeCoderyes, it likes it!03:30
patdk-lapya, using a webbrowser isn't good to check the chain03:30
patdk-lapcause the browsers cache it03:30
twbPEM is the encoding format, more or less like base64 or gzip03:30
patdk-lapwell, pem is base64 der03:31
twbopenssl s_client -CApath /etc/ssl/certs/ -connect epoxy:443 <<<QUIT   # debug SSL03:31
twbgnutls-cli -s --crlf <hostname> -p <port>                    # Raw SSL connection using GNUTLS03:31
twbopenssl s_client -crlf -quiet -connect <hostname>:<port>     # Raw SSL connection using OpenSSL03:31
twb...those might help re testing03:31
patdk-lapya, if you understand the ssl specs :)03:32
JoeCoderany advantage to those over networking4all ?03:32
patdk-lapyou can look at more info03:32
patdk-laposcp stapling, and other fun things :)03:32
patdk-lapssl session resume03:32
twbI have no idea what "networking4all" is03:33
patdk-lapthe url I posted03:33
JoeCoderyes03:33
twbOh03:33
twbSorry it had scrolle doffscreen :-)03:33
patdk-laphttps://www.ssllabs.com/ssltest/index.html03:34
patdk-lapis an interesting one03:34
twbpatdk-lap: I guess I never ran into the chain thing because I operate my own CA03:34
patdk-lapthough I don't agree much with it's *scoring*03:34
patdk-laptwb, you run a very flat CA then03:34
patdk-lapyou don't use sub-ca's?03:34
twbYes, one CA and then all the per-host keys03:35
patdk-lapya, that is plain evil, but no chain needed03:35
twbWhy is it evil?03:35
patdk-lapcause your CA is basically online all the time to sign stuff, and always exposed03:35
patdk-lapyour should make your CA cert, and sign sub-CA's with it03:35
patdk-lapthen you only have to invalidate one sub if it's compromised03:36
twbWhy would it have to be online?03:36
JoeCoderwhat does PEM stand for?03:36
twbI could be doing it on an airgapped host03:36
twbJoeCoder: portable encoding message or something.  Ask wikipedia03:36
patdk-laptwb, airgapped in a vault?03:36
patdk-lapairgapped isn't secure03:36
patdk-lapit's just internet secure :)03:36
JoeCoderhttp://acronyms.thefreedictionary.com/PEM03:36
JoeCoderwasn't sure which one :)03:36
twbpatdk-lap: you said "basically online all the time"03:37
twbI don't see how my hierarchy implies that03:37
patdk-laponline == installed on a computer03:37
patdk-lapoffline it, stored in a vault03:37
twbI could be doing that now03:37
twbAs it happens I'm not, but I *could* do it03:38
twbJust take it out once every twelve months or so when I provision a new host03:38
twbOr rather, when the old certs expire :-)03:38
patdk-lapI'm just stuck to this, based on all security principles, and DOD rules03:38
JoeCoderhm, certtool asks a lot more questions when generating a certificate request.03:38
twbAFAICT in practice x509 is screwed /a priori/ in its common usage in browsers03:39
JoeCoderand it would only accept empty string for the domain name question03:39
twbBut sure I would probably do what you suggest if I could be arsed.03:39
twbJoeCoder: you can supply those answers in a pre-written answer file, as described in certtool's info manual03:40
JoeCoderI had expected so; I'm still at the point of figuring out how to answer them03:40
patdk-laptwb, ya, it's a pain after the fact, not hard if you think about it when you do it03:41
patdk-lapI feel like I waste 2gb microsd cards03:41
twbWell in practice I could probably do it in half an hour.  I only have about 20 certs03:41
patdk-laphave hundreds of them03:41
patdk-lapmany of them with just one cert on them03:41
ScottKpatdk-lap: Or use an old laptop that doesn't get turned on except for this and fits in the safe.03:42
JoeCoderhttps://gist.github.com/284853903:42
twbScottK: until one day it doesn't turn on anymore :P03:42
JoeCoderthe unindented questions are the ones I'm not sure about03:42
patdk-lapnever liked that idea much03:42
ScottKtwb: Sure.  Make a backup.03:42
twbI'm not even bothering to make a CSR, I just exploit the fact that the provisioning host can see inside all the containers03:42
patdk-lapbut ya, we do one onsite and one offsite03:42
JoeCoderthe dnsName question on line 8 would only accept an empty string.  I specified the domain name for Common name.03:43
twbRealistically I'm using TLS for wire encryption, not for x509 trust hierarchy03:43
patdk-laptwb, that is fine, if you don't bother to trust two you connect to :)03:43
patdk-lapor you setup static trust03:43
twbWell sadly some of it is built on DNS and I'm not doing dnssec yet03:44
JoeCoderIs there a tool I can use to supply arguments to a command line program that asks questions?  This would be much faster than figuring out certtool.03:44
ScottKFor the hierarchy to work you have to assume the entire CA chain is secure and that's sadly often not the case.03:44
JoeCoderand it would be useful in the future03:44
twbAnd e.g. for wifi my attempts to use EAP-TLS fell down because hostapd doesn't implement a working CRL03:44
twbIt would be nice to have all that stuff working but there are lower-hanging fruit IME re security, like "stop using PPTP" or "stop using PHP"03:45
patdk-lapnever attempted eap-tls03:46
patdk-lapit was too imature back last I played with eap03:46
twbpatdk-lap: what's REALLY stupid is that EAP-TLS is the only WPA Enterprise that's required for WiFi Alliance certification... but x360 and printers don't support it, and n900 doesn't support it without replacing its wifi manager, and iphones don't support it without deploying a configuration management server, and ....03:47
twbNot to mention all the users whinging because you force them to generate a key and a CSR03:47
patdk-lapyep03:47
twbSo what I am doing at the moment, which sucks, is to use WPA2 PSK with a per-MAC PSK list03:48
twbi.e. if you want wifi you tell me your MAC, I generate it a PSK and I add that pair to hostapd.03:48
twbYour client side just sees ordinary PSK and so everything Just Works03:48
twbBut I can still, at least theoretically, revoke individual users' access03:48
twbJoeCoder: FYI here is an answer file I used with certtool: http://paste.debian.net/172288/03:50
JoeCoderthose don't match the questions I'm asked:  https://gist.github.com/284853903:51
JoeCodersuch as the uid, and it won't let me specify anything besides empty string for the domain name.03:51
JoeCoderis there a way to make openssl unattended?  a generic command line tool that will let me provide answers to programs that ask questions?  It seems like I've used something like that before, but I can't remember the name.03:53
twbJoeCoder: they do correspond, it's just not obvious from the long question vs. answer string03:54
twbe.g. signing_key = Will the certificate be used for signing (DHE and RSA-EXPORT ciphersuites)?03:55
JoeCoderah, ok03:55
JoeCoderand it's ok to leave the dnsName blank?03:55
twbThat depends on the client03:56
JoeCoderwell, it won't let me specify one.03:56
twbIME all clients will believe you're you if DNS matches the dn, but some will also allow it if your DNS matches the dnsName03:56
JoeCoderno matter what I type, it keeps asking the same question until I enter empty string.03:56
twbJoeCoder: that's because you can have >1 dnsname03:56
JoeCoderah, ok03:56
twbWhat that is for is, suppose you have a webserver called www.example.net but it also serves webmail.example.net and arthur.example.net03:57
patdk-lapcn?03:57
patdk-lapcommon name is the default03:57
twbSo you have a dn of www.exampl.net, but also a dnsName for the other two03:57
patdk-lapunless you enable subjectalt, then dnsname overrides03:57
JoeCoderhow do I pass a config file to certtools?03:57
twbEr, sorry, I think I mean cn not dn03:57
twbToo much LDAP :-/03:57
patdk-lapya, and funny certificates use ldap type syntax too03:58
JoeCoderI'm primarily a developer, which is why I'm so confused about system administration.03:58
JoeCoder--template=03:59
twbpatdk-lap: do not talk to me about zimbra04:01
=== shauno_ is now known as shauno
=== Morpheus is now known as Guest5531
=== wylde_ is now known as wylde
obelusHey - I'm trying to get a local ubuntu mirror onto a machine that's behind a proxy, and download limits prevent it from mirroring the archive itself; I was thinking that I could mirror the archive with rsync or apt-mirror from home and transfer it via a portable hard drive, and use apt-mirror to update it after it's on the target machine.06:19
obelusIs this possible? And is there a bettter way to do it?06:20
rbasakobelus: that should work fine. debmirror can help you mirror a subset which might help too.07:18
obelusrbasak: the idea is to mirror all the packages that we'll need. I'm happy to do the full ~380GB, my only issue would be at the other end, is it enough to move it to the correct folder for apt-mirror and run the update command for it to pick up and use it as a base?07:19
obelusrbasak: looking up debmirror atm, it seems that it downloads for given architectures and releases, is that correct? Isn't that what apt-mirror does anyway?07:22
rbasakobelus: I'm not familiar enough with the different tools to answer your question, sorry. I'm pretty sure that most tools don't care about where the destination is providing that you move everything across identically - they should be able to resume from that point fine.07:29
obelusrbasak: Thanks for your help :) I'll be starting mirroring it on Monday afternoon when I get the hard drive. That'll be a long download before I know if it's going to work properly at the other end though ;p07:33
_rubenthe stuff you mirror using debmirror is usualy made available through a webserver so your (other) machines can you it is an (alternative) repo07:38
twbOr NFS07:41
twbHere is a debmirror wrapper script I use: http://paste.debian.net/172318/07:42
twbIIRC ubuntu main, one arch, one release, no sources, is only a few tens of GB07:42
=== dendro-afk is now known as dendrobates
obelus_ruben, twb: The plan is to make it available locally through http as the primary repository for all machines in the LAN08:09
obelusI want to grab amd64 and i386 for both current and lts versions (atm, only 12.04 because it's both)08:10
obelusAll packages, extras, universe, multiverse, etc. And a few other 3rd party package archives.08:11
twbobelus: I'm not stopping you08:13
obelustwb: O.o I know. I just thought I'd mention it.08:13
_rubenI mirror gutsy-precise, i386+amd64, binary+source, main+universe+multiverse+restricted .. only close to 700G ;)08:25
obelusHolyshit. I don't need that much lol08:28
ikoniaeasy on the language please.08:28
obelusJust precise for me. I'm not quite sure at this point how to mirror only amd64 and i386 with apt-mirror, or if I'll have to use debmirror, but I have a bit of time before I need to work that out08:29
obelusikonia: Sorry, I forgot that there's strict language rules in here, I'll be good.08:29
_ruben!info apt-mirror08:29
ubottuapt-mirror (source: apt-mirror): APT sources mirroring tool. In component universe, is optional. Version 0.4.8-5 (precise), package size 13 kB, installed size 101 kB08:29
ikoniaobelus: not a problem at all08:29
_rubeniirc apt-mirror only downloads what it's clients request and then cache it, unless i'm mixing stuff up08:30
_rubendebmirror mirrors a complete pocket08:30
obelusI use apt-mirror currently to archive the google-chrome repositories08:30
_rubenbeen meaning to ditch debmirror in favor of plain rsync, but i dont think old-releases.ubuntu.com offers rsync access08:30
obelusI'd use rsync completely but I haven't been able to make rsync work through the HTTP auth proxy that the server's behind08:31
_rubenrsync wont let you sync just precise08:31
obelusOh, no use then ;p I don't want EVERY release08:31
obelusI'd be happy with getting 10.04 and 12.04, as some people still like 10.04 there, and one server hasn't been upgraded yet08:32
obelusBut I don't want all of them08:32
lambda_engineerhi there, got a question on bonding and vlans08:32
twbobelus: FYI, my metrics (cf. my script posted earlier): http://paste.debian.net/172324/08:38
obelusWhat's included in that ubuntu folder? I mean, is that the one release and arch or more than one?08:40
twb17:42 <twb> Here is a debmirror wrapper script I use: http://paste.debian.net/172318/08:41
lambda_engineerI tried to outline the bonding-vlan problem here: http://pastebin.com/T6cK8xfQ08:41
lambda_engineeranyone up for some help ;)08:41
twblambda_engineer: sorry, I'm too drunk to deal with that right now08:42
obelustwb: Ah, okay. That's really good that all that fits in 180gb.08:42
obelusI might make a debmirror script to do the mirror I'm doing. looks easy to customise one.08:43
lambda_engineertwb: bad for me, probably so else here can deal with it?=08:43
obeluslambda_engineer: Never tried using vlans on Ubuntu, so sorry, not really sure. I've only done vlans on cisco hardware.08:45
twbobelus: given I'm tracking 3×LTS releases and 2×arches, it's probably reasonable to expect to fit one release into, say, a bit over one sixth of that. Say about 40G.08:45
ikonialambda_engineer: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/35238408:45
uvirtbotLaunchpad bug 352384 in ifupdown "can not add vlans to a bond network device" [Undecided,Fix released]08:46
ikonialambda_engineer: there is a a similar issue raised on Fedora 8 instances.08:46
ikonialambda_engineer: it appears to be a limitation of how the bond is formed.08:46
obelusI'm planning for 1 or 2 releases with 2 arches. Would it be okay if I use your script and modify it to limit it down a lot?08:46
twbIIRC there are several kinds of bonding, does it affect all of them?08:46
twbobelus: I don't care, go nuts08:46
obelustwb: thans :)08:46
obelusthanks*08:47
ikonialambda_engineer: the suggestion in the ubuntu bug report should resolve your issue, although RedHat seem to be phasing in over a LONG period of time a more technical solution08:47
twbobelus: talk to #bash re scripting if necessary08:47
obelustwb: Thanks, but I should be fine to modify this. I'm pretty used to bash scripting08:48
obelusIs main/debian-installer for network installs?08:49
twbYes08:49
twbIt's for PXE installing08:49
twbIf you have a CD installer that's >>20MB in size, you can ignore it08:49
obelusAwesome, thanks. My plan is to mirror releases too, so I can have a set of CDs (desktop, alternate, server) for i386 and amd64 and update from there.08:50
twbYou can just build the CDs from the mirror using jigdo08:51
twbWell, maybe not the desktop one08:51
=== dendrobates is now known as dendro-afk
obelustwb: ... I should have thought of that, I've used it before. But yeah, I'll need to take copies of the desktop ones. Server/alternate will be good with jigdo though. One problem is, does debmirror only get the latest version of the packages? Because I think the jigdo templates need the same version that was available at their release08:52
twbWhen a release is released, it's contents doesn't change08:55
twbNew versions go into the -updates or so repo08:55
obelustwb: Ah, right. Thanks.08:56
twb(There are a few exceptions, e.g. IIUC sun-java was actively removed from releases because Oracle are so douche-y)08:56
twbBut yeah I just use PXE installs and don't bother with a CD at all.08:56
lambda_engineerikonia: thx a lot08:57
twbYou can build the desktop versions in theory using live-build but I wouldn't want to guarantee it'll behave the same as the ones ubuntu orll08:57
twb*roll08:57
obelustwb: I can't really use network boot because I don't control the DHCP server, and the server that's going to hold the mirror is going to be moving to a different subnet soon anyway. Ubuntu also doesn't provide the tiny netinstall images anymore do they?08:58
twbYes they do.08:59
twbhttp://cyber.com.au/~twb/.bin/twb-d-i has links08:59
twbIf you grovel around near those links, there are USB-HDD and CD versions as well as the PXE versions I am wgetting09:00
twbAlso re DHCP server, you only really need the DHCP server to send the filename and next-server options, and you can host the TFTP server on another IP09:00
obelustwb: I know, but the person that administers the DHCP server isn't going to set that. I'm pretty sure he'd rather that not every computer tries to boot into an ubuntu installer09:01
twbFair enough09:02
twbAlso obviously PXE can present a menu and timeout to booting off the local media...09:02
obelusYep, but that's not going to be agreeable, I don't think. Although I'd like that idea very much.09:03
obelusI'll ask, but I think the answer will be no.09:03
lambda_engineerikonia: seems like this is not my problem, this problem is only on top of bonding with LACP/802.3ad09:06
lambda_engineerikonia: even when i do all the settings they supplied and worked for them... they don't in my case... still the error in /var/log/syslog09:06
twbYou can also tell pxelinux to skip the menu based on MAC or IP address or IP network09:06
lambda_engineersooo still a problem with vlans on bonded interface: http://pastebin.com/T6cK8xfQ09:07
lynxmanmorning o/09:07
twbobelus: http://cyber.com.au/~twb/tmp/tmp.png09:08
twbFor extra sexiness, that's a serial port on a headless router.09:08
obelustwb: Looks great, but the problem is that the area that we'll be using the server in is a network lab, things are reinstalled constantly, and the person that runs the network lab rathers booting via ghost CDs to do network installs, and really doesn't like ubuntu. From experience, he's not going to change the settings to set our ubuntu server as the primary boot device for the entire netlab.09:10
obelusThough, I will set it up so it's possible and propose it, just in case he does.09:10
twbI understand.  The point was to make you go "wow cool" so you can show him and have him go "hmph, maybe it is worth a demo"09:11
twbghost is pretty sucky by comparison09:11
obelus;p I'm convinced it's awesome. And yeah, but the reason he uses it is that he deploys windows, freebsd and other stuff through it, with preinstalled apps and customisations.09:12
obelusAnd the multicast is helpful when we're doing it to several PCs at once.09:12
_rubentwb: what do you use for the menu stuff ?09:12
twbmulticast doesn't actually save any bandwidth if you're on a flat switched network09:12
twbI checked because I am deploying IPTV to a 600 seat prison in the next 18 months09:13
twb(Over, btw, netbooting lucid desktops)09:13
twb_ruben: that's just pxelinux 4.xx menu.c3209:13
twb_ruben: there is vesamenu.c32 but it 1) requires vesa; and 2) is fugly09:13
_rubentwb: ah .. the stuff i never to got around to dive into09:14
_ruben(as with many things)09:14
_rubensyntax seemed rather odd to me09:14
_rubenbeen ages since i looked into it tho09:14
twbThe syntax used in the boot CDs is the ugly old way09:14
_rubencare to share yours? :)09:14
twbhttp://paste.debian.net/172326/09:15
obelusMulticast does help though with the disk i/o on the server when it's sending 7gb images ;o09:16
twbThe 01-* stuff is a custom PXE-booting OS for extra extra sexy.09:16
twbobelus: hm, good point09:16
twbobelus: but if your OS needs 7 flipping GB it is about 36 times too big09:16
obelusHe has custom builds of FreeBSD on there that are pretty big.09:16
obelusThat and the Windows images. Those are only about 4gb for the Win7 ones with compression though.09:17
twbobelus: http://paste.debian.net/172327/09:18
twbobelus: he clearly sucks at saving space09:19
obelusHah, yes. Compared to that, most people do. We do need stuff on it that's a bit bigger than 71mb though. But 7gb is excessive.09:19
_rubentwb: that looks way cleaner than i seem to recall09:21
twbThe host that OS is for, has "only" 512MB RAM and since I'm copying the entire OS into RAM over TFTP I riced the size down a bit09:21
rbasaklambda_engineer: my understanding of the newest docs is that you should no longer define bond_slaves or auto on bond009:21
_rubenauto generating stuff like this does make sense, given the numerous repetitions09:21
_rubentwb: the "live" menu entries are dummies right? failing to see where it'd actually boot into a live os09:22
twbrbasak: hmm, http://paste.debian.net/172329/ is a bond I'm using, but no tagging09:22
twb_ruben: they worked until I deleted the backend files09:22
rbasaktwb: it has changed: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/ifenslave-2.6/precise/view/head:/debian/README.Debian09:22
twbrbasak: OK.  My paste is from lucid09:23
_rubentwb: ok, then i'm not misinterpreting things :)09:23
twbOh yes the live *menus* are autobuilt and they can't find any files to add to them09:23
twbI was thinking of the two "awesome" entries in default file09:24
_rubenah09:24
lambda_engineerrbasak: which documentation are you talking about? this one: https://help.ubuntu.com/12.04/index.html ??09:27
rbasaklambda_engineer: /usr/share/doc/ifenslave I think. You can see it online here: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/ifenslave-2.6/precise/view/head:/debian/README.Debian09:28
lambda_engineerrbasak: arghtzzpftsss...problem solved... actually i missed the line "auto bond0", just retyped it because i'm on the machine with video redirection, so no copy-paste09:39
lambda_engineerrbasak: thx09:40
rbasaknp09:40
bau-hi all, how can I add ssl on my ubuntu server?09:49
andolbau-: For what daemon/service?09:51
bau-andol, I need to run a fb app on my server09:52
=== Utente1 is now known as bau-
mattcenHi all. I'm tearing my hair out trying to work out why my Ubuntu 10.04 i386 install isn't showing libvirt-bin as available in the repo, when I know it's there. Anybody got any ideas? I suspect it's user error, but have no idea where to look.11:42
=== Patrickdk_ is now known as PatrickDK
mattcenNevermind. Looks like my package cache was corrupt... or something :S. All good now11:49
ea1het_sleepmorning12:27
=== ea1het_sleep is now known as ea1het
ea1heti need help in terms of filesystems12:28
ea1hetanyone can help12:28
ikoniaea1het: in what respect12:28
ea1hetthe doubt: best filesystem to hold virtual machines12:28
ikoniaea1het: apologies for missing you last night12:28
ea1hetno worries ;)12:28
ikoniaea1het: well, it depends on a lot of things, but there ins't really a "best"12:28
ikoniaea1het: just use what meets your needs12:28
ikoniaea1het: what do you want to use ?12:28
ea1hetKVM to hold 5 VM.... aprox. size per VM 10Gb each12:29
ea1hetand another filesystem to hold ISO images12:30
ikoniaok, what file system do you want to use ?12:30
_rubengive each vm its own lvm lv .. no need to deal with stacking fs's12:30
ikoniais there a reason you're doubting just using ext4 or something like that ?12:30
ea1hetyes... the doubt is about the posibility to use or not LVM12:30
ikoniaok, lvm is not a file system12:30
ea1hetyes...a volume manager12:31
ea1heton top of that... i thought XFS.... or EXT412:31
ikoniaso you are not asking about file systems, you're asking if you should use a volume manager ?12:31
ikoniaea1het: do you have a need for lvm ?12:31
ea1hetikonia: in fact... i want to ask for both :)12:31
ea1heti'm a big doubt myself :)12:31
ikoniaea1het: why do you think you'll need/want lvm ?12:31
ea1heti think my VM will not raise over 10Gb12:31
ikoniathe size of the VM is not really relevent12:32
ea1heti think.... i mean... sure 100% i'm not12:32
ikoniathe size of the file system that holds your VM's is12:32
ikoniaea1het: where are you storing your VM's eg: /mnt ?12:32
ea1hetok ,let me explain my idea... very quick12:32
ea1hetyes12:32
ikoniaea1het: do you have a disk you're going to mount ?12:32
ikoniaor a partition ?12:32
ea1heta dedicated /mount-point for VM, yes12:32
ea1heta partition12:32
ea1hetit's better to have a disk itself?12:33
ikoniajust one partition  ?12:33
ikoniait doesn't matter a disk or a partition12:33
ikoniaea1het: why not keep it simple, put a partition /mnt12:33
ikoniathen just put two directories under it "images" and "media"12:33
ikoniathen store virtual machines in "images" and install/data media in medai12:33
ea1hetright now this is the situation: /vm --> the VM store  && /images --> the ISO images to install from12:34
ea1heteach one is a partition12:34
ikoniaea1het: ok, so they are hanging off your root file system partition correct ?12:34
ikoniaah, so each one has a partition that's mount correct ?12:34
ea1hetyes12:34
ea1hetyes12:35
ikoniaok, so what's the current problem ? what do you want to change and why ?12:35
ea1hetQ1: The introduction of LVM will allow me to be more flexible in terms of filesystems and/or volumes ?12:36
ikoniaea1het: yes and no12:36
ikoniait will allow you to resize volumes based on how much storage is in the volume group12:36
ikoniaea1het: keep in mind if you put a 100G partition on /vm (for example) and you only use 5 machines at 10GB each, do you need to dynamically resize the /vm volume ?12:37
ikoniaor are you very tight on space ?12:37
ea1hetnice situation... close to reality... i'm asking because my current server has 2 HDD but, but, it can admit up to 8. I thought using LVM below the FS i can add and resize my /vm partition and increase its size....12:38
ea1hetjust in case my VM store raise...12:39
ea1hetand... not... by now... not 250Gb on /vm and 5 x 10GB VM's12:39
ea1hetnot so tight12:39
=== Lcawte|Away is now known as Lcawte
ikoniayou can use lvm in that way sure, but it's up to you if you want to12:40
ea1heti never used before LVM. What is the administration learning curve for someone it never used LVM ?12:40
ikoniato do what you want, not much to be honest12:40
ikoniabut I wouldn't say do it unless you have a genuine need for it (in your opinion)12:41
ea1hetTo be honest i just want to have the whole picture in mind. My expected raise ratio is 1:7 (Hypervisor : VM's)12:42
ea1hetMore than that... i'm not sure... so right now... with my actual VM's i'm plenty of free space....12:42
ea1hetbut want to be ready to dimensionate if necessary12:42
ea1hetQ2: My actual FS probably is not the best for large files. What is the best FS in terms of large files like VM's ?12:43
ikoniaea1het: unless you've got a problem why not just use ext412:45
koolhead11hi all12:45
ea1hethi koolhead1112:45
koolhead11hi ea1het12:45
ea1hetikonia: is it the best? have support for large files?12:45
ea1hetI heard about XFS but i'm not sure... i don't know it12:46
ikoniaea1het: define larger files ?12:46
ea1hetlarge files las virtual machines12:46
ea1hetsorry12:46
ikoniaea1het: that's not a file size12:46
ea1hetlarge files like virtual machines12:46
ikoniaea1het: have you actually tried ext4 ?12:46
ikoniaea1het: virtual machines is not a size, how big are you defining as "big"12:47
ea1hetvarious GB12:47
ikoniaea1het: various GB......come on12:47
ikoniahow big do you call big12:47
ea1hetin general terms probably some TB but i'm only focussing on VM's12:47
ikoniaea1het: what ????12:47
ikoniaea1het: in your example - what is the size that you consider a big size12:48
ikoniathis is not a hard question12:48
ikoniahow big do you call a "big file"12:48
ea1heti understand you think EXT4 is nice in order to operate with 10Gb files12:48
ea1heta 10Gb file is "nice" enough12:48
ikoniaea1het: ok, so 10GB files are what you are calling as "big"12:48
ea1hetin my case 10Gb might be the mid-point12:48
ikoniaea1het: I don't see you having any problems with multiple 10GB files using ext412:48
ea1hetikonia: what do you understand for large files?12:49
ea1hetjust to learn, not kidding12:49
ikonia100G +12:49
ikonia50+ would be a "large file"12:49
ikonia5 x 10G files is not a "large file"12:49
ikonia(for my view)12:49
ea1heti think i won't face such kind of large files. In case of a 100Gb large file... EXT4 keep on being your main option?12:49
=== chuck__ is now known as zul
ikoniato be honest, just use ext4 unless you actually have a problem12:50
ikoniawhich I can't see you having a problem12:50
ea1hetQ3: is there any incompatibility in terms of FS selection having in mind a NFS export would be used?12:51
ikoniano12:51
ea1hetEXT4 fs exported over NFS--> OK?12:51
ikoniafine12:51
ea1hetgood!12:51
ea1hetlast one12:52
ea1hetthe difficult... (for me)12:52
ea1hetQ4: KVM -> Move VM over a NFS export using a cross-over cable (1Gb or 10Gb Eth) between 2 servers  ----> Will run? Reliable?12:53
Jeeves_I've not tested that for a while12:53
ikonianot really12:54
Jeeves_It didn't work for me two years ago (using iscsi)12:54
ikoniaI wouldn't suggest running vm's on an network mounted file system12:54
Jeeves_The machine would migrate, and then crash12:54
patdk-wkwouldn't that highly depend on the kvm host machine to transparently do that move?12:54
patdk-wkwhy not use some kind of clustering filesystem?12:54
patdk-wkthen put your vm's on top of that12:54
patdk-wksomething like gfs, glusterfs, ...12:55
Jeeves_Because that would be slow?12:55
ikoniaeven then running them on a network file system is not good12:55
patdk-wkJeeves_, slower than running the vm over a network anyways?12:55
Jeeves_Yes, and less reliable (imho)12:56
patdk-wkI haven't done that, just know many people doing it for email mainly12:56
patdk-wkI do use iscsi and nfs like nuts for vm's though12:56
patdk-wkand they run speedy12:56
ikoniapatdk-wk: you run your kvm hosted vm's on NFS mounts ?12:57
patdk-wkcurrently I run all my vm's over fc or iscsi12:57
patdk-wkI only use nfs for mounting like iso's and things for the vm's12:58
ikoniaok, so no NFS mounts12:58
patdk-wkI know hundreds of people doing nfs though, cause they say iscsi is not stable for them12:58
patdk-wkatleast for me, I found iscsi to be more stable than nfs12:58
ea1hethere is a cost-effective situation men12:58
patdk-wkprobably all depends on exact software versions and hardware12:58
ikoniaI just can't see NFS on a remote host being network mounted on a kvm host to run a virtual machines root disk as "good"12:59
patdk-wknow, none of them dares to attempt using nfs for vm's, except using 10g network12:59
ea1hetikonia: so your best cost-effective option would be a iSCSI, right?12:59
patdk-wkikonia, it's a very common vmware config13:00
ikoniaea1het: again, depends on cost effective, I use local disks on a raid card or a fibre card attatched to an array13:00
patdk-wkdepends on the design goals, local is always going be faster13:00
ikoniapatdk-wk: I've never seen it run well on VMware, NFS mounted root disks13:00
ikoniaI've never seen NFS be acceptable let alone "faster"13:01
patdk-wknfs mounted root disks?13:01
ikoniayes13:01
ikonia(for vm root disks I mean)13:01
patdk-wkit all depends on your workloads really13:02
patdk-wknfs can be good, or it can defently get in the way13:02
ikonianfs is good, I don't believe it's effective for running vm root disks13:02
patdk-wkwell, I personally didn't find it good13:03
patdk-wkbut based on all the people I talked to, that are scaled much larger than me13:03
patdk-wkthey had no issues13:03
patdk-wkso I don't discount it13:03
patdk-wkactually, vmware using nfs ontop of netapp was ok13:03
patdk-wkif the netapp was speced better, I probably would still be doing that13:04
ea1hetwe have to understand NFS is much less expensive that any iSCSI implementation... and much much more than any SAN...13:08
patdk-wkhmm? I find nfs and iscsi to be the same price13:09
patdk-wkunless your getting an iscsi san13:09
ea1hetpatdk-wk: what kind of iSCSI implementation do you do?13:10
patdk-wkI am very iscsi heavy here though, moved lots of workstations, to diskless iscsi backed systems now13:10
patdk-wkwell, I started with iet, but that didn't last long, played with scst some13:11
patdk-wkbut have settled with openindiana now, iscsi + multipath works great13:12
ea1hetany link i can follow to learn a bit?13:13
patdk-wklooks like LIO is coming along nicely13:18
ea1hetLIO?13:19
patdk-wkit's suppost to replace all the target stacks in linux13:20
_rubenpatdk-wk: what was your main reason(s) to move from scst to openindiana?13:20
patdk-wkwell, mainly cause of the nfs stuff I needed13:22
patdk-wkand I needed snapshots of it13:22
_rubenah13:22
patdk-wkand I needed some way to back it up, other than filecopy13:22
patdk-wkthe fact it did iscsi was just a side benifit at the time13:23
patdk-wkon that system, all my vm's, about 20 of them, use about 200gigs of space, and hardly and iops at all, but nfs load in insane13:24
patdk-wkbut that was my first openindiana test case13:24
patdk-wkon the system next to me now, it is only used for iscsi, and has high iops13:24
_rubenlow iops due to zfs cache?13:24
patdk-wklow iops due to, the vm's never read/write anything ever13:25
patdk-wkall processing is done via nfs13:25
patdk-wkwebservers/mailservers/...13:25
patdk-wkonce they start, they don't produce disk activity, except for the content that is nfs mounted13:25
patdk-wkit's centeral logging, so no log diski/o13:26
_rubenoh right13:26
patdk-wkit's kind of funny though13:27
patdk-wkmy openindiana system peeks at 8k iops using nfs there13:27
patdk-wkanother system, using fc backed san, peeks at 4k iops13:28
patdk-wkthe openindiana system has 20disks, the san has 74 disks13:28
_rubenheh13:29
patdk-wkjust the san maxs out at a few gigs of ram, so the cache is pretty much useless13:29
patdk-wkwhereas the opendiana system cache just scales better, cause I can scale it13:29
patdk-wk4k iops is maxed out on those 74disks in raid1013:30
patdk-wkwhere as 1k iops would max out my 20disks13:30
patdk-wkor maybe it was around 1.5k13:31
_rubeni looked at nexenta(stor) ages ago .. did seem interesting .. tho adding solaris based stuff to our mix is not something i'm fond of .. cow-orkers have enough trouble already dealing with linux :p13:31
patdk-wkI haven't touch nexenta, though I hear it's debian like13:31
patdk-wkI think I have a good grip on solaris now, only started last sept13:31
_rubeni'll likely be sticking with scst for now .. unless i can find really compelling reasons to go nexenta/openindana/etc13:32
patdk-wkis LIO too unstable yet?13:32
_rubenhaven't given that any attention yet really13:33
patdk-wkit looked promising, but was not really even beta when I started13:33
_rubenhmm .. enterprise edition has vaai support13:37
_rubenof lio that is13:37
patdk-wkya, I didn't even know lio wasn't fully opensource till today and saw that13:38
patdk-wkkind of makes me wonder why that would be the offical linux kernel one, unless they changed their minds again13:38
jsmith-argotecI'm confused about some changes that seemed to happen to logging when I upgraded from 10.04 to 12.0413:39
jsmith-argotecnothing is getting logged in /var/log/messages or daemon or others any longer13:39
jsmith-argotecand (coincidently??) logwatch doesn't report half of the items it used to before the upgrade..13:39
jsmith-argoteceverything seems to be only in syslog13:40
jsmith-argotecanyone know if this is something by design that I missed in the release notes or something?13:40
_rubeni can't find anything about the enterprise edition... :p13:42
patdk-wklooks like it's been renamed TCM13:43
ea1hetwhat FS is used on openindiana? ZFS?13:43
patdk-wkheh, looks more like, it's getting along very badly, even though they managed to get it shoved into the kernel13:43
patdk-wkyep13:43
ea1hetwhat are Zones?13:43
patdk-wkkind of like lxc13:45
genk1hello all I have just installed a new Ubuntu server station, my only problem is that I can't made my NIC up13:45
genk1when I do : ifconfig -a I got only the lo interface information13:45
genk1what are steps to follow to make this card working ?13:46
genk1thank you13:46
ea1hetlook in /etc/network/interfaces13:48
genk1ea1het only lo is configured there13:49
ea1hetand do a dmesg to see if you os recognized the board13:49
_rubenpatdk-wk: seems openindiana hasn't seen a stable release yet, that's a shame13:50
patdk-wkdepends on what you call stable13:51
patdk-wkit feels good, in server mode13:51
patdk-wkthere are issues in desktop mode still13:51
_rubenthey label it themselves as being development releases13:51
patdk-wkyep13:51
_rubenthen again, that doesn't alway mean all tha tmuch13:52
patdk-wkI feel they are like me, it will always have bugs13:52
_rubenhehe13:52
patdk-wkat what point do you label it *stable*13:52
* patdk-wk notes the *stable* crapsan that keeps crashing he has to deal with13:53
_ruben:P13:53
_rubenwell .. features (dis)apearing every other (dev) release is not somethign i'd like for instance ;)13:53
patdk-wkpersonally, only had oi faul up once, and once I took time to figure out what was going on, instead of panic during the emergancy13:54
streulmahello, my system boots and stops after scripts/init-bottom13:54
patdk-wkit was a known issue, and over sysadmin stimulas13:54
patdk-wkstreulma, has to help you, we can't look at your screen and see why it stopped13:55
patdk-wkthough normally it's cause it failed to mount root13:55
_rubenor any other mountpoint listed (as auto) in fstab13:56
patdk-wkruben, no13:56
patdk-wkthat would come after root started13:56
patdk-wkfstab isn't *mounted* yet in initrd13:56
streulmapatdk-wk: fstab is fine13:57
* patdk-wk notes he never blamed fstab13:57
_rubeni had one box halt at that point (iirc), and / was just fine .. was a mdadm volume with data that caused issues13:58
patdk-wkya, mdadm mounts in inittab13:58
patdk-wkinitrd that is13:58
streulmawhat to check ?13:58
patdk-wkthe error messages?13:58
streulmavar log boot.log ?13:59
patdk-wkstuff doesn't just go wrong, without yelling13:59
_rubentho i really needa reinstall that box .. it boots into initrd .. and boots on just fine after hitting ctrl-d .. and `halt` wont power down the box either (since upgrade to precise)13:59
_rubennow that i think of it, the power down issue i also have on vms13:59
patdk-wkhmm, not sure I tested poweroff yet on precise14:00
patdk-wkI'm just annoyed with the lucid->precise grub fail14:00
_rubenEDIT: After further testing, "halt -p", "shutdown -h now", and "poweroff" all correctly power-off the machine but "halt" (without parameters) does not. However, in Ubuntu 10.04, "halt" did power-off the machine. Is this simply a difference between the two versions of Ubuntu?14:00
_rubenshould try that14:01
JanCmight be unclean FS/raid because you stopped the machine with the "big red button"  ;)14:01
_rubenhavent had any grub issues with upgrades14:01
streulmaXServ, failed to open listener for inet614:01
patdk-wk_ruben, I only have with vmware so far14:01
patdk-wkevery single vmware guest fails to upgrade grub14:01
patdk-wkthere is a bug about it, fix might exist too, but hasn't been pushed anywhere usable14:02
_rubeni think i upgraded a few vms from lucid to precies without issues14:03
patdk-wkdid you do a fresh install of lucid on them?14:03
_rubenboth upgrades and cleans i think14:04
_rubenhavent upgraded many boxes to precise just yet, so i might just got lucky not running into it14:04
patdk-wkoh ya, I also had a fun e1000 driver issue14:04
patdk-wkI have done a few test upgrades14:05
patdk-wkmainly to check my stuff, but waiting for .1 for any real upgrades14:05
patdk-wkhttps://bugzilla.redhat.com/show_bug.cgi?id=75458914:06
uvirtbotpatdk-wk: Error: Could not parse XML returned by bugzilla.redhat.com: HTTP Error 404: Not Found14:06
patdk-wkI have that issue with precise14:06
patdk-wkon real hardware, not a vm14:06
patdk-wkboth problem 1 and 214:07
streulmaplymouth stop terminated with status 114:13
streulmacan plymouth ntpd disabled ?14:15
=== Lcawte is now known as Lcawte|Away
* _ruben tries to open bugreport14:21
streulmapatdk-wk: filesystem is mounted read-only14:35
patdk-wkit normally should be at that point14:35
streulmapatdk-wk: no errors on disk14:50
patdk-wkanything from dmesg?14:50
streulmaprofile replace mtpd14:50
streulmantpd is not installed anymore...14:51
stgrabergary_poster: thanks for testing the SRU14:59
=== Lcawte|Away is now known as Lcawte
hallynzul: do you have any objections to my pushing http://people.canonical.com/~serge/libvirt.debdiff ?15:03
jamespagehallyn, stupid question time - does ipxe support ARM architectures or is it just for x86?15:03
zulhallyn: checking15:03
hallynjamespage: no idea.  lynxman might know15:03
jhobbsno ipxe for arm15:03
jamespage:-(15:03
hallynI can look through the source in a bit otherwise and check15:03
hallynthere you go :)15:04
jamespagethanks jhobbs15:04
jamespageallenap, ^^15:04
zulhallyn: nope15:04
hallynarm does uboot right, does it not even do pxe at all?15:04
hallynzul: thanks (gonna test a bit more first)15:04
jhobbsuboot has pxelinux like support15:04
jamespagehallyn, kinda - I think it implements a subset15:04
jhobbsyeah, a subset of what pxelinux does, plus the normal dhcp parts of pxe15:04
hallynjamespage: this is for maas?15:04
zuljamespage:  always assume arm is weird and does things non-standard15:04
jamespagehallyn, yes15:05
gary_posterwelcome stgraber.  thanks for the huge improvements15:06
streulmapatdk-wk kernel-panic it is15:20
lynxmanjamespage: afaict it's only x8615:21
lynxmanjamespage: at least the assembler parts are15:21
streulmapatdk-wk: he don't update the logs15:30
hallynzul: well this is odd.  dpkg -x libvirt-bin*.deb x shows x/etc/dnsmasq.d/libvirt-bin is there, but dpkg -i libvirt-bin*.deb does not create that file15:35
zulhallyn: hmm?15:36
zulzul: bug in your debian/rules perhaps15:36
hallynhm, maybe dpkg was trying to be too smart.  i had installed dnsmasq after installing that libvirt-bin.  maybe dnsmasq deleted it, and then after that dpkg -r thought i had manually deleted it?15:37
stgraberhallyn: it looks like lxc nesting recently broke on 12.04, looking at it now15:38
hallynstgraber: and that's with your custom policy?15:38
stgraberhallyn: yes15:39
stgraberhallyn: lxc fails to install in the container because of apparmor, then once forced, it refuses to start, still because of it being unable to load apparmor profiles15:39
hallynstgraber: we don't still drop CAP_MAC_ADMIN from policy do we?15:40
hallynin config that is15:40
stgraberhallyn: weird, can't reproduce on my laptop (also on 12.04)15:41
hallynexact same kernel version?15:41
stgraberyeah, 3.2.0-24-generic on both15:42
stgraberdiffing the apparmor profiles and lxc configs now15:42
stgraberhallyn: oh, and I just found a nasty bug in the SRU currently in -proposed ... lxc.devttydir isn't set properly15:45
stgraberhallyn: I'll fix in quantal and upload a fix to -proposed, at least we should just loose a day of testing, so not too bad15:46
hallynstgraber: not set properly how?  what is it doing?15:46
hallyn(I"ll add a test to test suite if testable)15:47
stgraberhallyn: basically the logic is wrong, it's setting lxc.devttydir = lxc for releases that do NOT have /etc/init/container-detect.conf15:47
stgraberhallyn: that's a regression in quantal that was SRUed to precise :(15:48
hallynah!  i see15:48
stgraberhallyn: http://paste.ubuntu.com/1018119/15:49
hallyni thought all the '$release = precise' checks were out of the template :)  drat15:50
hallynbtw i may email dlezcano soon to ask him about the lxc api.  i'm wondering whether he'd prefer to have a long-running daemon (like libvirt).  I assume not, but if he did it would require some changes15:51
stgraberhallyn: did you forward 0083-ubuntu-simplify-template yet? otherwise I'll simply patch the patch in quantal too15:52
stgraberhallyn: hallyn all the "release = <something>" checks are gone, it's now checking for presence of /etc/init/container-detect.conf instead (that patch I linked before clearly removes the release = check and replaces it with the init job check)15:54
hallyni thought i had but i don't see it15:54
hallynstgraber: well yes that patch did, which would have meant that the check was still there before that patch :)  got it now15:54
stgraberhallyn: do you mind me simply patching the patch then?15:55
hallynsure15:55
stgraberhallyn: wrt lxc api, I certainly hope we won't run an lxc daemon, but talking to daniel about the API is certainly a very good idea, we shouldn't start doing that kind of work in upstream's back :)16:03
hallynyup16:04
hallynfor now i've only started with the most rudamentary functions (create and free in-memory container image; and locking) with testing.  Unfortunately, I get mysterious segvs from libc :)16:05
hallynI think sem_post is messing with me, tbh16:05
stgraberhallyn: fix uploaded to quantal and new sru in -proposed, hopefully it'll be approved soon, so users running with -proposed will stop creating containers that will fail to upgrade (main consequence of not having lxc.devttydir)16:11
hallynstgraber: I should've asked you if you thought yo'ud be pushing anything before pushing -ubuntu3 to q two hours ago :)16:12
hallynor, :(16:12
hallyn-ubuntu76, here we come16:13
stgraberhallyn: oh, and I think I found the reason for my weird apparmor issues with nesting, my template on that host dates back from around precise beta1 :)16:20
stgraberSpamapS: if you have a sec, would you mind reviewing the lxc currently in -proposed, it fixes a regression introduced in the previous SRU (I pushed the fix to quantal too), it's a one line change that I believe is "obviously right" :)16:30
stgraberSpamapS: (let me know if you're busy with other things and I'll go nag another SRU team member ;) the regression currently produces containers that won't be able to upgrade to 12.10, so even though it's only in -proposed, it's really quite bad)16:32
hallynstgraber: hm, yeah, i'm not getting a console on my containers16:34
stgraberhallyn: yeah, I'm kind of surprised nobody saw it during the week it was in quantal...16:35
hallyni need to get my little quantal lab up.  just haven't had time yet.16:36
sorenbug 100000016:36
uvirtbotLaunchpad bug 1000000 in edubuntu "For every bug on Launchpad, 67 iPads are sold." [Wishlist,Triaged] https://launchpad.net/bugs/100000016:36
ogra_lovely16:37
stgraber;)16:37
sorenDaviey: It works somewhat ^16:37
Davieysoren: but new bugs don't show.16:37
SpamapSstgraber: accepted16:38
stgraberSpamapS: thanks!16:38
stgraberhallyn, smoser: http://paste.ubuntu.com/1018196/16:41
stgraberjust noticed that in a clean lxc container (12.04)16:42
stgraberthat basically happens when you install lxc in lxc, but the problem is a file conflict between openssl and euca2ools16:42
stgrabernot sure whether you're aware of it already16:42
smoserstgraber, i'm confused.16:44
smoserhow do i have both openssl and euca2ools installed?16:44
smoser(no, i was not aware)16:44
stgrabersmoser: it seems to only hit when installing both at the same time16:45
stgrabersmoser: if I run that apt-get again, it succeeds16:46
smoserthis is strange, no?16:46
stgraberoh not, actually it doesn't... running apt-get -f install fixes the situation though16:46
stgraberhmm, no, I'm confused ...16:47
stgraberI thought it would fix itself, but no, in lxc's case, both being recommends, openssl simply doesn't get installed when running apt-get -f install which "fixes it"16:47
stgraberand yeah, my machine also has both installed, but I can't reproduce that on a clean box16:48
smoseryou got openssl from -updates16:49
stgrabersmoser: yeah16:50
smoserso its a reression at that version maybe?16:50
stgrabersmoser: anyway, found a way of reproducing both the failing and working scenario16:50
stgraberworks: install openssl, then install euca2ools16:50
stgraberfails: install euca2ools, then install openssl16:50
smoserwell, stgraber maybe you can help. i'll bow to your packaging knowledge.16:50
smosereuca2ools installs that via debian/links16:51
smoserits just a link  usr/share/euca2ools/cert-ec2.pem etc/ssl/certs16:51
smosererr.. contents of debian/links are:16:51
smoser usr/share/euca2ools/cert-ec2.pem etc/ssl/certs16:51
smoserso i really could not care less about the directory itself. it just needs to house a symlink appropriately.16:51
stgraberok, I see what's wrong :)16:53
stgraberroot@weblive:~# ls -l /etc/ssl16:53
stgrabertotal 016:53
stgraberlrwxrwxrwx 1 root root 33 Mar 22 16:31 certs -> /usr/share/euca2ools/cert-ec2.pem16:53
stgraberyou're missing a trailing / in your .install16:53
stgraberit should be etc/ssl/certs/16:53
stgraberotherwise when /etc/ssl/certs/ doesn't exist, it creates a symlink called /etc/ssl/certs pointing to /usr/share/euca2ools/cert-ec2.pem, instead of creating /etc/ssl/certs/ and putting the symlink in it16:53
stgrabersmoser: ^16:54
smoserwell, there is nothing in .install16:54
smoseryou're meaning debian/install?16:55
smoseryoumeant debian/links16:55
stgraberoh, I mean debian/links, yeah16:55
smoserwhich makes sense. yeah.16:55
smosercare to open a bug?16:55
stgrabersure, will do that after lunch. I'll also test that the fix actually works, looking at dh_link, it's not clear whether it'll create any missing directory or not16:56
zoskihello there ! I'm new and i have a question...17:06
zoskiI run a ubuntu server and i can't find the command to see how much memory is left on my hard disk...17:07
med_df -h17:08
zoskithank you so much med_ !!17:12
hdb2hi everyone! I would like to deploy ubuntu to a number of machines in our small office, but I need the configurations to be consistent. I would prefer not to do that manually. clonezilla is an obvious option, but all my hard drive sizes are different, and I don't care for cloning very much (prefer good configs to OS images). is there some tool/method I can use to accomplish this? I love doing my RTFM, I just need some pointers as to what to look for.  (i17:17
hdb2 helps, I'm very familiar with Linux and Debian…I'm not a guru, just not at n00bie level.)17:17
RoyKhdb2: perhaps this might help? https://help.ubuntu.com/12.04/installation-guide/i386/automatic-install.html17:19
hdb2RoyK wow! on first glance this looks like exactly the kind of pointer I needed.  thank you!17:20
stgrabersmoser: bug 100753317:28
uvirtbotLaunchpad bug 1007533 in euca2ools "euca2ools in precise (probably also quanta) breaks openssl when installed first" [High,In progress] https://launchpad.net/bugs/100753317:28
stgrabersmoser: I'm uploading the fix now17:28
smoserstgraber, thanks.17:28
smoserwas it just hte traling /17:28
stgrabersmoser: nope, it's a tiny bit more complicated, you actually need to give the full path of the target and list /etc/ssl/certs in debian/dirs so that it's created if missing17:29
stgraberbut yeah, final fix is just a two lines fix :)17:29
smoserhm..17:29
stgrabersmoser: http://paste.ubuntu.com/1018276/17:30
smoserstgraber, thank you.17:31
hallynstgraber: it occurs to me we never put any sort of 'create(template="ubuntu",, release="current")' call in the api.17:51
hallyndid you think we'd want that?17:51
ea1hetgood evening17:54
ea1hetanyone who has an adaptec raid controller on a ubuntu server working?17:55
_rubengot several of those, never had any issues with it .. the ubuntu+adaptec combo that is .. the adaptecs themselves have proven themselves to not being very trustworthy :/17:58
_rubenthen again, we dont use supported disks on 'em, which adaptec claims as being part of issues we see, obviously17:59
stgraberhallyn: right, I seem to remember us briefly talking about it a while ago. Basically coming to the conclusion that it's a nice to have more than an initial requirement. Though I guess it doesn't hurt to have it in the API design from the beginning.18:00
stgraberhallyn: not sure whether it makes sense to have it part of the container struct though, probably makes more sense to have it out of it (similar to list())18:00
ea1het_ruben: adaptec model? disk brand?18:01
ea1het_ruben: i have in mind adaptec aar-2610sa with seagate 1tb disks18:01
_rubenea1het: 3 and 5 series .. mostly 51245 and 51645 .. seagate desktop disks 1TB18:01
stgraberhallyn: so you'd call lxc_create(...) and then get the struct once it's done18:01
_rubenah, the low end stuff18:01
ea1hetyes :)18:02
_rubenno experience with the 2610sa, but we did use similar ones in the past .. tho not in ubuntu boxes i think18:02
hallynstgraber: hm, i still thought it would make sense as part of the container.  So you do c = lxc_container_new('name'); set some settings; then c->create()18:03
hallynstgraber: ok, we don't need to decide that now, i was just wondering.  (writing the email to dlezcano;  cc:ing you)18:03
ea1het_ruben: it seems you have experience with Adaptec controllers18:05
ea1hetdo you think the 2610sa is quite poor?18:05
stgraberhallyn: yeah, but then we have to decide what happens if you call create() on an existing container and what to do when you call create() before you have any config loaded. So definitely possible but we need to think about exactly what we want there.18:05
_rubenea1het: did you 2410sa or actually 2610sa ?18:05
_rubencant find the 2610sa18:05
stgraberhallyn: I can see myself using ->create() on an existing container to replace its rootfs, but that may be a bit confusing to some users ;)18:05
hallynstgraber: agreed we need to decide that :)  agreed we don't need it immediately.18:05
ea1hetfor me seems to be cost-effective and it is for a small raid, for a small project...18:05
ea1hetlet me see.. one sec...18:05
hallyni think i figured it would refuse to run if c->is_defined() returned true18:06
_rubenhmm .. it doesnt seem to be on adaptec site, but i do see other sites mentioning it18:06
hallynmeaning c->configfile exists18:06
hallynstgraber: and really i figured you would be the one really wanting it for arkose :)18:06
_rubenea1het: we used the 2410sa in some small windows based fileservers .. they did the job ok for the money18:06
ea1hetunder ubuntu?18:06
hallynif we can punt on it, then we can punt on the thought of whether we wrap the lxc-create script or rewrite it all in c.  So I"m happy to delay18:06
ea1hetok... under windows... i realized now....18:07
ea1heti'm not sure if this board is in the HCL of ubuntu server18:07
ea1hetADAPTEC AAR-2410SA/64M S-ATA SATA RAID 0 1 5 10 CONTROLLER18:07
ea1hetthat is the board _ruben18:07
_rubenea1het: ah ok, same we used a few of18:08
_rubenea1het: what will you be using it for?18:08
stgraberhallyn: well, arkose doesn't use the templates at all, so I'd effectively never "create" an arkose container. I'd just do abc=container("tmp-name") => write the fstab file to do the overlay magic I need => set the lxc config keys for fstab and rootfs => start/run_command/stop18:08
ea1het_ruben: expected to be used for 4Tb mirrored (1Tb+1Tb mirrored to 1Tb+1Tb) for Virtual Machine store and run18:10
_rubenea1het: if you hookup 4 1TB disks, you must realize it has a 2TB max for the raid volume, so raid0 wouldnt work (nor would i even consider it), raid10 would work, raid5 would work if you used one as hotspare18:10
hallynstgraber: ah, ok, cool.  good to know18:10
_rubenea1het: so raid10 i guess?18:10
ea1hetyup18:10
ea1het_ruben: didn't realize before the 2Tb limitation18:11
_rubenea1het: don't expect stellar performance, since it doesn't have the bbu option, enabling write-cache is dangerous .. and without write-cache, performance wouldn't be very good (write performance that is)18:11
ea1het_ruben: another controller supporte under ubuntu that would make this job?18:12
_rubenea1het: lsi has very good cards, but they're a bit more expensive than adaptec i think .. and to get write-cache options, entry-level cards aren't an option18:13
_rubenea1het: it really depends on how much disk io you want/need/expect/etc18:13
_rubenthen again, with just 4 disks, with or without write-cache, performance won't be all that great either way :)18:14
ea1het_ruben: to be honest i don't know... the server, an hypervisor (vm host) will run as much as 7 VM at the time....18:14
_rubenor actually, i have had several 4 disk raid10 volumes on 5 series adaptecs, and the performance was pretty ok18:14
_rubenthe number of vms is much less important than how busy each vm is ;)18:15
ea1het_ruben: a raid 1 of a raid 5 ???18:15
ea1het_ruben: a raid 1 of a raid 0 ???18:15
_rubenea1het: what's the question? :)18:16
=== koolhead17 is now known as koolhead17|afk
ea1het_ruben: you said... several 4 disk raid10 volumes on a 5 series adaptecs.....18:16
ea1hetthat is a raid of a raid ?  :o18:16
_rubenoh, no .. just multiple seperate raid volumes consistig of 4 disks each :)18:17
ea1hetups.... i thought you reinvented the wheel.... :) ... and of course wanted to know how....  :)18:17
stgraberhallyn: email looks good, thanks for sending it.18:17
_rubenea1het: these 7 vms, do they exist already or will they be new ones?18:19
ea1het_ruben: new ones18:19
_rubenea1het: ok, then determining the iops requirements will be very tricky18:20
ea1het_ruben: how can i do it?18:20
_rubentho for just 7 vms, the card might just do the trick .. unless one or more of those vms has very disk intensive tasks18:20
_rubenea1het: making educated guesses is as good as it gets in those cases :)18:20
ea1het_ruben: don't know how to query iops ... sorry :(18:21
_rubena vm used to run an irc clients doesnt require any iops at all .. a fileserver used for video editing on the other hand :)18:21
ea1hetand 1 of the VM will be a Solr repository18:21
ea1het(Solr -> documental database)18:22
_rubenremember, 4 disks / 7 vms = roughly half the performance of a single disk for each vm18:22
_rubenin ideal world18:22
_rubenwrite performance is likely half of that (it needs to write to 2 disks, so it can stripe each write over only 2 disks)18:23
ea1het_ruben: so you understand in some cases it is best to write only over 1 disk and use another solution like GFS or DRDB ?18:24
=== Lcawte is now known as Lcawte|Away
_rubenea1het: no, but spec'ing up a raid volume is far from trivial .. especially when no existing performance data is available18:24
_rubeni'd start with this card .. and if it turns out to be slow, start saving for a higher end card and use this card for a simple (future) file server ;)18:25
_rubengotta go now tho, g'luck :)18:25
ea1het_ruben: thanks18:26
=== Lcawte|Away is now known as Lcawte
hallynaahahahaha.  figured out my bug.  malloc(sizeof(s)) instead of malloc(sizeof(*s)).  i told myself years ago not to do that.18:35
akoumjianAnyone else using repo supervisord on 12.04?18:47
SpamapSjamespage: tsk tsk.. you forgot -v in your merge of erlang from Debian18:53
roaksoaxSpamapS: so I think that part was taken out from the documentation19:02
SpamapSroaksoax: which documentation? I think there are 2 documented ways to do merges19:07
SpamapSthe merge-o-matic 'grab-merge' way gives you an automatic debuild command to use19:07
SpamapSthe UDD way, I would suspect, might be the culprit19:08
roaksoaxSpamapS: so with grab-merge you could still debuild -S -sa, but in the old complete packaging guide it used to say to use debuild -S -vXYZ -sa which doens't anymore19:09
roaksoaxSpamapS: in UDD, i though there was the command that would generate the changes correctly when it comes to merges19:09
roaksoaxSpamapS: bzr builddeb -S --package-merge --> (This will add the appropriate -v and -sa)19:09
SpamapSroaksoax: right, the UDD one does that right19:12
SpamapSroaksoax: so the packaging guide probably took out the -v unintentionally19:12
SpamapSroaksoax: with grab-merge I always just use the generated debuild script19:13
=== ea1het is now known as ea1het_OFF
roaksoaxSpamapS: it does19:27
=== Skaag_ is now known as Skaag
hallynall right, that's much better.  lxcapicore branch fixed, now i just need to move it back to lxcwithapi branch19:40
jamespageSpamapS, so I did20:07
=== Lcawte is now known as Lcawte|Away
mgwHi, is there any reason some server installs would have a sudo group and some not?20:47
mgwand osme would have an admin group and some not?20:47
mgw(on 12.04)20:47
RoyKmgw: afaik that's a small change from lucid to precise20:49
RoyKfrom admin to sudo20:49
mgwhmm… so sudo should totally replace admin?20:49
guntbertmgw: the move from admin to sudo group happened from ... , ah what RoyK says20:49
mgwok, so if I'm using ldap, is it safe to have an entry for 'sudo' group in ldap as well?20:50
mgwIt seems to work20:50
mgwgetent group shows two entries for 'sudo'20:50
smoserSpamapS, https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/100743320:50
uvirtbotLaunchpad bug 1007433 in zookeeper "zookeeperd not running after installation of zookeeperd" [Medium,In progress]20:50
smoserdid you test that?20:50
mgwand anybody that's in either the local file or in ldap as a ssudo user20:50
mgw… will have sudo privs20:51
smoserthat seems like red herring. as the problem is fix/worked around by first installing the 'zookeeper' package (not zookeeperd). which surely doesn't create or modify that directory path.20:52
mgwguntbert: does that sound right?20:54
mgwThat is, I can have two groups with the same names but different gids?20:54
guntbertmgw: I fear there will be conflicts20:54
mgwso maybe use a different name for our ldap admin group?20:55
mgwit looks like vmbuilder adds the admin group20:55
SpamapSsmoser: the problem is the dir21:11
smoserdoesnt make sense.21:11
SpamapSsmoser: the dir ends up owned by root21:12
SpamapSzookeeperd does not run as root21:12
SpamapSfail21:12
smosersee my comment.21:12
smoser(just posted comment 6)21:12
SpamapSsmoser: I'm not sure that makes any sense though. zookeeper Depends on default-jre-headless21:13
SpamapSsmoser: so it is already installed and configured at that point21:13
smoserlook at the apt install log21:13
smoserthe alternatives get setup at the end.21:13
SpamapSby what package?21:14
smoseri'm not making this up (i dont think)21:14
smoserhttps://launchpadlibrarian.net/106616529/apt-get-install.log21:14
SpamapSI'm reading that21:14
smoseri'm certain that it "just works" if you install default-jre-headless in a separate 'apt-get install'21:14
SpamapSah its a trigger21:14
SpamapSwait no21:15
SpamapSsmoser: ok this is weird21:15
SpamapSsmoser: ok agreed that its a red herring (but must be fixed anyway)21:15
SpamapSsmoser: does not make *any* sense that dpkg configured default-jre-headless before openjdk-7-jre-headless21:16
SpamapSsmoser: since default-jre-headless depends on openjdk-7-jre-headless21:17
SpamapSI wonder if there is a circular dep there somewhere21:18
SpamapS$ apt-cache show ca-certificates-java|grep Depend21:19
SpamapSDepends: ca-certificates (>= 20090814), openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless, libnss3-1d (>= 3.12.9+ckbi-1.82-0ubuntu3~)21:19
SpamapSI wonder if thats going to screw things up21:19
smoserjamespage, had said he'd bother doku on monday. but you may be onto something.21:20
SpamapSsmoser: its the only way I can resolve in my head why dpkg would do things in such a wrong order21:23
SpamapSsmoser: its the | java6-runtime-headless21:23
SpamapSsmoser: java6-runtime-headless *is* already set up21:24
SpamapSsmoser: so, chalk it up to an incomplete transition21:24
SpamapSprobably anything that does default-jre-headless | *java6* needs to be re-evaluated21:24
SpamapSsmoser: it may even be that zookeeper doesn't work w/ java7.. testing that now21:26
smoserno. dont think so.21:27
SpamapSright, looks like it installed 721:27
smoserbut that could be it.21:27
smoserbut i thouht you could start it fine after the fact21:27
smoseranyway21:27
smoseri'm out for the day21:28
SpamapSwell maybe I don't understand the bug21:28
smoserhave a nice weekend all.21:28
SpamapSit shows zookeeperd running21:28
smoserfresh instance (with no java installed), 'apt-get install zookeeperd'21:28
smoseryou'll reproduce21:28
SpamapSYeah I'm doing that21:28
SpamapSbut reproduce "what" ?21:28
smoserzookeeperd is not running.21:28
smoserstatus zookeeperd21:28
smoseri just terminated my instance.21:29
smoseri've got to run'21:29
smoserlater.21:29
SpamapSbuhbye21:31
SpamapSstart-stop-daemon: unable to stat /usr/bin/java (No such file or directory)21:31
chmacQuick random question. I've got access to a server for the next ~24 hours, I want to wipe the 2T disks, but /dev/urandom is too slow, and I can't get /dev/frandom to compile, no kernel headers or something.22:12
chmacRealistically, short of forensic analysis, `shred -n 0 -z /dev/sda` should do a good job of deleting data, right?22:13
chmacI mean, somebody else given the server after us without physical access to it isn't going to be able to recover anything, that's what I'm thinking.22:13
ikoniachmac: just write 0's to it22:14
chmacikonia: That's what that command effectively does.22:14
chmacikonia: But with the -v flag, it tells me how far along it is, so I can watch it... :-)22:14
=== nonotza_ is now known as nonotza
maco3i was just using do-release-upgrade to upgrade my server from oneiric to precise. when it got to the part where it updates python, byobu was killed. i can see that dpkg and such are still running, but now i have no way to see their output to answer debconf questions. can i reconnect to that process? or is it safe to kill dpkg and then run dpkg --configure -a?23:00
maco3hah, i can actually see that its asking me a question about postgresql right now because the whiptail process shows up when i grep ps for "upgrade"23:03
maco3don't know how to answer it though :-/23:03
pmatulismaco3: you should be able to reconnect to an ssh daemon23:12
maco3pmatulis: i never disconnected from ssh23:13
maco3if i try to do "screen -r" it tells me there is no screen to resume, but there is a dead screen instance to be wiped23:14
pmatulisah23:14
maco3so i cant figure out how to answer the questions dpkg is trying to ask me so the upgrade can continue23:15
pmatulisi don't think you can tbh23:15
maco3so kill it and dpkg --configure -a... bleh, that sounds like losing the tweaks do-release-upgrade applies that make it recommended over change-sources.list-and-dist-upgrade23:16
pmatulismaco3: i would try the command a second time23:20
maco3pmatulis: which command? re-run do-release-upgrade?23:20
maco3that gets me "no new release found"23:20
maco3thinks im already there i guess23:20
JanCyou might also need apt-get install -f23:22
=== wylde_ is now known as wylde
pmatulismaco3: ah ok23:24
pmatulismaco3: but you hit a snag that should be reported, do-release-upgrade should notice byobu is running and provide at least a warning.  dunno, maybe just file a bug against 'update-manager'23:28
maco3pmatulis: i'm talking to someone in #ubuntu-devel about it, and we're debating whether its a bug. theoretically you should close all running apps before doing a dist upgrade, but...23:30
JanCactually, running an upgrade inside screen is recommended23:31
JanCespecially when you upgrade remotely23:32
maco3mm point23:32
maco3because then you can reconnect23:32
maco3so screen crapping itself when libs are upgraded is extra bad23:32
JanCright, that should neer happen23:33
JanCnever23:33

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