/srv/irclogs.ubuntu.com/2017/04/03/#ubuntu-server.txt

Erick3kyep00:10
Erick3ksounds like the problem is there00:10
Erick3kam testing with the kvm image00:11
drabErick3k: hi, how are you sertting up kvm?00:29
drabI'm needing KVM for some stuff, used to containers, and having a hell of a time to get something simple going...00:29
renatosilvaplease help, there's some errors in upgrade, how to fix them? http://vpaste.net/y030l02:19
fishcookeris your /boot partition have enough space, renatosilva?02:27
fishcookerplease send the output of your $ uname -a02:27
renatosilvaLinux <nodename> 2.6.32-042stab120.20 #1 SMP Fri Mar 10 16:52:50 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux02:28
renatosilvaI was trying to upgrade when libc complained about old kernel, I'm trying to upgrade the kernel and getting the above errors02:29
stgraberthat paste won't load for me for some reason, but the kernel you're running isn't supported by any Ubuntu release and indeed isn't supported by any modern version of the C library. Your only option is to run a more recent kernel.02:32
stgraberthis kernel looks like it could be a RedHat kernel as used for an OpenVZ based VPS or something similar to that, certainly not an official Ubuntu kernel02:33
renatosilvastgraber: https://pastebin.com/raw/zuRnfgN902:34
fishcookerhow abt list your linux-generic package please paste your output $ dpkg-query -l linux-generic, renatosilva?02:34
stgraberI'd expect Ubuntu 12.04 userspace to run fine on such a kernel given that we had to support upgrading from Ubuntu 10.04 to 12.04 (and 10.04 was using a 2.6.32) but upgraded to anything after 12.04 would almost certainly fail02:34
stgraberrenatosilva: is that a VPS?02:35
fishcookerthe last time i upgrade the kernel... i just do this $ apt-get upgrade; apt-get install linux-generic then reboot02:35
stgraberrenatosilva: if so, can you post the output of "ls -lh /proc/user_beancounters"02:36
stgraberrenatosilva: if it's an OpenVZ VPS, you can't upgrade the kernel as containers run on the host's kernel, making the kernel you're running up to your provider, not to you02:36
renatosilvafishcooker: dpkg-query -l linux-generic => dpkg-query: no packages found matching linux-generic02:37
renatosilvastgraber: yes that's a vps02:37
fishcookerthen the stgraber hypothesis is right02:38
renatosilvafwiw this is what I tried to update the kernel: apt-get install --install-recommends linux-generic-hwe-16.0402:38
stgraberrenatosilva: your VPS is a container, containers can't run their own kernel. Even if you succeeded to install any of the Ubuntu kernels and bootloader, they'd never run02:39
renatosilvastgraber:  ls -lh /proc/user_beancounters => -r-------- 1 root root 0 Apr  2 22:39 /proc/user_beancounters02:39
stgraberrenatosilva: ok, that output confirms that your container is OpenVZ based (which makes sense given the host kernel)02:40
stgraberrenatosilva: in such an environment you should stick to Ubuntu 12.04, anything more recent than that is unlikely to be compatible with the kernel you're hosting provider uses02:40
stgraberrenatosilva: which is to say, if you need to move to a version of Ubuntu that won't be unsupported in a few weeks, you may need to move to another hosting provider that's running a less outdated version of the kernel02:41
renatosilvanot sure if my company uses such OpenVZ thing02:41
stgraberthe commercial version would be called Virtuozo02:41
stgrabervirtuozzo*02:42
stgraberrenatosilva: and given that /proc/user_beancounters only exists inside OpenVZ (or Virtuozzo) containers, you are definitely using it02:42
stgraberthat file isn't part of the normal Linux kernel, only kernels built with the OpenVZ/Virtuozzo support patch will have that file02:43
drabstgraber: are there any plans for lxd to integrate with say virt-manager or something?02:43
renatosilva12.04 is pretty old and its support is gone this month :(02:43
drabI need something to give ppl to manager their containers and virt-manager would be idea since they are all vmware/vbox users02:44
stgraberdrab: we definitely don't have any plans to integrate with libvirt. There are a couple of attempts at a web frontend for LXD around but there again we're quite happy with those being external projects.02:45
renatosilvastgraber, fishcooker: ok so how do you think I got into this situation? do you think I have been dist-upgrading since 12.04?02:45
drabstgraber: fair enough, thanks02:45
stgraberdrab: the slightly overkill solution would be to run openstack with nova-lxd, which would then give you access to all the openstack tools and the web frontend, but that's not exactly a lightweight solution :)02:45
* renatosilva afraid of needing to reinstall the whole thing02:46
stgraberrenatosilva: your paste suggests your container is at least partly on Ubuntu 14.04 as it references a number of packages which don't exist on Ubuntu 12.0402:46
stgraberrenatosilva: it looks like you have a few options 1) reinstall on Ubuntu 12.04 and continue running it after it's end of support 2) move that server somewhere else, physical machine or VM or container on a host that's not outdated 3) figure out how to get the host upgraded to a more recent kernel02:48
renatosilvafor now how can I revert this command? apt-get install --install-recommends linux-generic-hwe-16.0402:48
renatosilvaI don't know the current state of the system02:48
stgraberrenatosilva: you can remove all those linux-generic and linux-image packages, since you're in a container, they're not used anyway02:49
stgraberrenatosilva: same goes for grub02:49
renatosilvaso 12.04 runs kernel 2.6? cause it looks pretty old02:49
stgraberrenatosilva: no it doesn't, Ubuntu 12.04 runs a 3.2 kernel02:50
stgraberrenatosilva: again, you are in a container. containers don't run their own kernel, they use the host's kernel.02:50
stgraberrenatosilva: your host is most likely a Red Hat 6 system running OpenVZ/Virtuozzo which came with a 2.6.32 kernel by default02:50
renatosilvaso their created an odd installation of 12.04 with a kernel smaller than 3.2? I see02:53
renatosilvaI think I'll need to reinstall the whole thing from scratch02:53
renatosilvait makes no sense to allow a dist-upgrade without any kind of notice, they should add something to avoid people struggling with it like me02:54
renatosilvastgraber: I *think* I have removed those packages, I will reboot and hope it's just ok02:55
renatosilva(although the libc will be angry)02:55
drabanybody aware of any good docs on settiungs up kvm on 16.04 ? all I'm finding is old and/or broken02:57
drabubuntu-vm-builder fails so that's not an option02:57
lynorianuse libvirt02:57
drabI tried, that seemed to open a whole new can of worms, a large number of xml files and a whole new set of terminology, but maybe I've been too hasty02:59
drabI'm 99% containers and happy with it, but I need a kvm instance or two for some zfs stuff02:59
renatosilvaok rebooted successfully, but the apt-get update output is so small now, is this normal? it used to be much larger https://pastebin.com/raw/UsjZW8gq02:59
draband I don't really want to invest in libvirt since there's no compatiblity/future with lxc (altho still waitinfg for a response from their devs on that)02:59
drabbut docs and stuff on lxc and libvirt are at best just not there, ti seems to cater 99% to kvm03:00
renatosilvais there any way to find out if the current release has been installed from scratch or if it's originated from a dist-upgrade?03:04
drabstgraber: any chance you're still around? I'm reconsidering that comment you made on kvm inside a container03:28
drabat least it would allow for some clean experimentation03:28
renatosilvait seems my vps company is really using kernel 2.6 on ubuntu 16.04, that's a shame!03:28
renatosilvaI think I need to open a ticket for them to address the problem but... how can a such large base of users not have complained about it, no broken servers? weird03:29
renatosilvathanks anyway stgraber, fishcooker!03:30
cpaelzerdrab: uvtools is what you need05:42
cpaelzerdrab: fro the easy way to a kvm05:42
cpaelzerdrab: getting a simple guest comes doen to05:43
cpaelzer1. uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/daily arch=amd64 label=daily release=xenial05:43
cpaelzer2. uvt-kvm create --password=ubuntu xenial-testguest release=xenial arch=amd64 label=daily05:43
cpaelzerdrab: and for kvm in lxd stgraber has a post somewhere which surely is better05:45
cpaelzerdrab: I use http://paste.ubuntu.com/24304999/05:45
cpaelzerdrab: which I combine with the default template when launching containers by tailing with --profile default --profile kvm05:46
ishaved4thishey guys, Is anyone willing to help someone with some basic stuff out real quick?06:21
cpaelzerIf you would have just asked you'd get an answer or not, but that way you will wait twice ishaved4this06:25
ishaved4thisalright then. Just didn't want to bother anybody06:25
cpaelzergeneral IRC rule - just ask, you'll usually be helped or redirected - if neither happens everyone is asleep or you are so off that everybody just goes??? but tha is rare06:26
ishaved4thishaha my bad. I don't really use IRC too much anymore06:26
ishaved4thisanyway, my problem is with permission issues involving plex and transmission reading and writing to my job and 2 other external HDD06:27
ishaved4thisany takers?06:33
cpaelzerishaved4this: people don't commit to solve it, ask the question itself what is failing?06:40
lordievaderGood morning06:41
ishaved4thisgood morning. What is failing is that I'm still fairly new with using ubuntu server, and transmission doesnt have read write access to my external drives. now I went ahead of my better judgement and followed a youtube tutorial typing in sudo gpasswd06:43
ishaved4this-a plgudev & -a plex sudo & -a plex (USER), but I know thats super sloppy.06:43
lordievaderWhy not fix the permission issues?06:43
lordievaderI.e. give transmission-debian rw access to the download dir.06:44
ishaved4thiswell that's what I'm here for, I'm not sure how06:44
lordievaderacl's.06:44
ishaved4thisI also can't remember how to mount my drives. I'm basically a noob when it comes to linux06:44
ishaved4thisacl?06:46
lordievader!acl06:47
lordievaderishaved4this: https://help.ubuntu.com/community/FilePermissionsACLs06:47
ishaved4thisevent not found06:47
ishaved4thisthanks, let me check that out06:48
ishaved4thisokay so this look like a simple way to add drives/applications to a group to allow for rw access. correct?06:49
lordievaderIt is a good way of adding other groups to the rw pool. Normal unix permissions only allow one owner:group combination.06:50
ishaved4thisahh. well, in 16.04, It said acl is already installed. Yet I cant get to it06:51
ishaved4thisman, there is so much to learn with this os06:51
ishaved4thissudo tune2fs -l /dev/sdaX |grep acl06:52
ishaved4thisDefault mount options:    user_xattr acl06:52
ishaved4thisis see this on the page, but I have no idea what drives are labeled what, and dont know how to find out06:52
cpaelzerishaved4this: you are good with the initial setup, you can go on the subsection https://help.ubuntu.com/community/FilePermissionsACLs#Adding_a_Group_to_an_ACL06:54
cpaelzerishaved4this: to add the permissions you need to the paths you need them to be06:54
ishaved4thisokay, I believe I am about 4 steps ahead of where I should be.06:56
ishaved4thisI get that I need to add these drives to this list, but I don't know the command to see what drives are connected. I also have'nt mounted them yet06:57
cpaelzerishaved4this: there is some reverse way to aproach this and make it less complex06:58
cpaelzerishaved4this: the latter to be added USB drives are usually mounted by your user - so called user mounts06:59
cpaelzerishaved4this: they get to /media/UID and the UID is what you now don't know06:59
cpaelzerbut as soon as you have another disk you will have a different one again06:59
cpaelzerishaved4this: depending on your setup you might considerer this being far easier for you http://askubuntu.com/questions/395291/plex-media-server-wont-find-media-external-hard-drive06:59
cpaelzerishaved4this: what you have to consider, is that it gives plex the access that your user has07:00
ishaved4thisokay. So I have 5 externals right now. Let me look at that link, and thank you very much07:00
ishaved4thisI've read in the past that changing plex from its own user is a bad idea07:08
cpaelzerright it is as I mentioned above, but it is easy - which I want you to choose from at least07:08
ishaved4thisnow, I've made plex a user of plugdev, sudo, and my username already. Should I do the same with transmission to accomplish the same thing?07:08
cpaelzerThe user might be transmission-daemon, but if adding to plugdev is what you want you can try07:11
cpaelzerAlthough I don't see why it should be in sudo07:11
ishaved4thisme either, I just followed a guide. Sudo would be overkill wouldnt it?07:13
lordievaderTransmission-daemon runs under the user transmission-debian.07:17
ishaved4thisyeah, i've added it to groups plugdev, and my name, and I added my name to its group using passwd07:19
=== JanC_ is now known as JanC
dn`Is it possible to redirect the installer output/debug log/anything ;-) to a remote syslog with a kernel(?) param while installing?08:55
cariboucpaelzer: do you have any idea why LP: #1317491 is still stucked in trusty-proposed ?10:06
ubottuLaunchpad bug 1317491 in libvirt (Ubuntu Trusty) "virsh blockcommit hangs at 100%" [Medium,Fix committed] https://launchpad.net/bugs/131749110:06
cpaelzercaribou: no I don't10:17
cpaelzercaribou: if anything then because it links bugs that were taken out in the SRU page http://people.canonical.com/~ubuntu-archive/pending-sru10:17
cpaelzercaribou: but I explained that last week (don't remember who asked)10:18
cariboucpaelzer: maybe tinoco, he was inquiring about this bug too10:18
sonu_nkhi i want to create subdomain on my ubuntu server.. what is the best way any link ?11:13
sonu_nkfor apache11:14
fnordahlzul: good morning! would you have a moment to assess when stable/mitaka horizon 9.1.2 will be available as a ubuntu uca package? it will solve among other things bug 166682711:56
ubottubug 1666827 in horizon (Ubuntu Xenial) "Backport fixes for Rename Network return 403 Error" [High,New] https://launchpad.net/bugs/166682711:56
TafThornesonu_nk: Sub-domain is a DNS thing that you configure in a DNS server for the domain.12:06
TafThorne@sonu_nk If you do not have access to an authoritative domain name server for your parent domain you may not be able to configure a sub-domain for your Apache server to be part of.12:07
zulfnordahl: yep12:33
TazmainHi all, my /var/sppo/mqueue-client is using 170GB currently , can I somehow get that space back ?12:40
EmilienMjamespage: hey, since this morning we have some issues with E: Unable to locate package ubuntu-cloud-keyring12:46
EmilienMjamespage: our repo config: http://logs.openstack.org/28/450628/2/check/gate-puppet-nova-puppet-beaker-rspec-ubuntu-xenial/acdee4a/logs/apt-cache-policy.txt.gz12:47
EmilienMcoreycb: ^12:48
coreycbEmilienM, it seems to be working fine from the main ubuntu archive. i wonder if the mirror you're using is having issues?12:58
EmilienMyeah, that's what i'm looking now12:58
EmilienMbut I see it: http://mirror.regionone.osic-cloud1.openstack.org/ubuntu/pool/universe/u/ubuntu-cloud-keyring/12:58
ronatorIs there a reliable way to find out if an Ubuntu server has had an release-upgrade? Meaning, can I prove that a certain Ubuntu16 setup was upgraded from Ubuntu14?12:59
ronatorasides network stuff like "still uses old NIC naming scheme" ..13:00
cpaelzeryeah ronator, let me check the exact filename for you13:01
ronatorcpaelzer: cool thx13:03
cpaelzerronator: /var/log/dist-upgrade/main.log13:04
ronatorcpaelzer: oh that's cool even with timestamps, awesome& quick , thx13:05
cpaelzerronator: even better - this only holds your last upgrade, but if you want to know where you started check /var/log/installer/media-info13:05
ronatorcpaelzer:  ' Ubuntu-Server 14.04.2 LTS "Trusty Tahr"  - Release amd64 (20150218.1)' Yeah, that's all the prove I needed, thanks a lot again :)13:07
ronatorI was only lookign into /var/log/apt - installer is so obvious :)13:07
coreycbEmilienM, i just installed ubuntu-cloud-keyring from http://mirror.regionone.osic-cloud1.openstack.org/ubuntu succesfully so the mirror seems ok from my end13:10
EmilienMcoreycb: ok, I'm doing 'recheck' to see if it's consistent :/13:11
coreycbEmilienM, ok13:11
EmilienMcoreycb: it works now. Go figure :-)13:48
coreycbEmilienM, oh good, just a temporary glitch in the matrix13:49
EmilienMyes13:49
ronatoryeah, fu**** déjà-vus ;-)13:51
=== freyes__ is now known as freyes
keithzgWhat's the preferred webmail component out there these days? I remember Roundcube being reworked into Roundcube-next a while back but I can't say I kept track of how that development work went.14:50
erick3kCan someone help me, i can't solve this just gave up. This happens after you resize the disk on a vm14:51
erick3khttps://i.imgur.com/d2zTZLB.png14:51
erick3kgets stuck there during boot14:51
keithzg(Just migrated an email server from RHEL5 to Ubuntu Server 16.04, and with modernizing the backend I've been thinking of convenience additions for the frontend)14:51
keithzgerick3k: Can you boot into a recovery session?14:54
blackflowkeithzg: I wouldn't recommend using packages for roundcube. it's a very front end application, from universe and isn't patched quite well.14:54
erick3kkeithzg how can i do that?14:54
erick3kthis happens as soon as you change the disk size, yet grow part is installed so not sure whats causing it14:55
keithzgerick3k: You have to choose that from the GRUB menu when rebooting.14:55
blackflowkeithzg: otherwise, yeh, I'd recommend Roundcube. quite nice webmail.14:55
erick3kok i'll try but it boots so fast14:56
keithzgerick3k: You can change that if you boot from a live session or such and chroot into your existing install, but yeah, default configuration doesn't give much room, heh, I don't think it's even visible that it's an option but sometimes spamming ESC will hit the small window of time.14:58
erick3kok14:58
keithzgblackflow: Has roundcube-next become the main roundcube? If not from universe (which I did suspect would be quite outdated), where best to grab it from? (I'd certainly like to handle the dependencies from the main repos as much as possible)14:59
blackflowkeithzg: roundcube-next is a development project. current latest stable is 1.2.4, grab the tarball directly from roundcube. you could install the dependencies according to the roundcube package from universe, but it's just a few php modules.15:03
blackflowmaybe there's a PPA with latest stable, but I don't trust those anyway, so wouldn't recommend.15:03
erick3kkeithzg i added timeout on grub config but doesn't seem to work15:06
erick3kis something not correct ? https://i.imgur.com/sH2VCNC.png15:06
keithzgblackflow: Yeah fair enough. As long as it's pretty much just PHP I'm fine with untarring it into a folder and running it on a server VM.15:09
blackflowkeithzg: and updates are simple. you untar it into another dir, and run the update script, pointing to the running application dir.15:10
keithzgerick3k: Well, at very least from the config you're showing it'd still be hidden, although it should show up. You ran update-grub, right?15:10
blackflowkeithzg: subscribe to the roundcube mailing list to get mail on new updates and secvuln fixes15:10
keithzgerick3k: (from within the install itself via a chroot, hopefully with bind mounts!)15:11
keithzgblackflow: Good idea15:11
erick3kyes i did15:11
keithzgerick3k: Well, if you've gotten into the chroot, it should also be possible to set the default boot or just the next boot to be into recovery mode (although I forget how precisely to do that, it's been quite a while)15:12
Score_Under(moving from #ubuntu) So I want to start a small apt repo for the company I'm in. We're migrating from CentOS (mostly), and so on the machines that still have people's gpg keys for example, the correct scripts to set up an apt repository aren't present. CentOS provides dpkg-scanpackages, but I can't find any other software which is necessary to create the rest of the repo (mostly the Release15:14
erick3kok but should this config https://i.imgur.com/1TRRUvC.png show the menu?15:14
Score_Underfiles). I tried hacking together a shell script to do it, and I got apt to be able to "update" from it without complaint, but it doesn't create any corresponding /var/lib/apt/lists files and it can't find any packages in those repos. Regarding documentation, I can't find a nice medium between the kind which directs me to a few tools (with some invariably not existing on CentOS) or the kind15:14
Score_Underwhich attempts to define everything from the ground up (which provides far more information than is necessary and would take an enormous amount of time to read through and implement)15:14
Score_UnderAnd my question is either: 1. where should I start debugging this, or 2. where can I get a copy of the scripts required to create these repositories15:15
erick3knothing shows it boots instantly15:16
erick3khum i think the recovery kernel is not installed15:17
erick3kperhabs why it doesnt show15:18
erick3khttps://i.imgur.com/BUikNZZ.png15:18
keithzgerick3k: Hmm, quite possibly.15:18
blackflowScore_Under: I don't have experience setting my own apt repo, so I can't quite help with that, but I'm failing to understand the use case, or why would you need it.15:18
erick3kanyway to install it15:18
erick3k?15:18
keithzgerick3k: I can't honestly remember if there's a separate recovery kernel needed, I didn't actually think so.15:19
erick3kumm15:19
Score_Underblackflow: The first use case is for version pinning (for the foreseeable future we're stuck on a version of docker which ubuntu has long since stopped providing), and the second is for adding our own software.15:19
keithzgerick3k: I'd strongly suggest using `pastebinit` from the terminal rather than screenshots, though, they're kindof constrained. Try for instance `cat /etc/default/grub | pastebinit` to get your entire config up and readable15:19
keithzgMaybe there's still something in there that's tripping it up.15:20
erick3koh ok hold on15:20
blackflowScore_Under: I understand. Seen this? https://help.ubuntu.com/community/Repositories/Personal15:20
keithzgerick3k: And you can look at /boot/grub/grub.cfg to see what menu items you *should* have15:21
erick3khere https://0bin.net/paste/+Vd7Jk3Ox7dd5bXO#5vmbd6uoIXFYSgiuze-M+1O5uryBgzD/Dy3v7r6MacH15:21
erick3kok15:21
keithzgerick3k: Hmm yeah that all looks fine. Is this a VM? Perhaps the host is directly booting the kernel or such and thus grub isn't even in the picture.15:22
erick3kyes it is kvm15:22
Score_Underblackflow: I took a look at that, but it only deals with software kept on one machine. For comparison our RHEL package repo is currently 3.4GB large, so that may end up requiring regular rsyncs of 3GB-ish directories over 200+ machines15:22
Score_Underto me it's not an attractive prospect15:22
erick3ki don't select any kernel in the vm options so it shouldn't15:23
erick3ki think is disabled on the grub.cfg hold on15:23
keithzgerick3k: Hmm. I must admit I'm stumped then, sorry15:23
erick3kyea, never had this happened before15:24
erick3kubuntu 14 works like a charm15:24
erick3k0 problems15:24
erick3khttps://0bin.net/paste/-AHCy1JjWVAnhva4#pnDBdZmqKlK9PvHXBKugIoOXgKc3Rw7y1A3l3zYlIgi15:24
blackflowScore_Under: check the accepted answer: http://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository    Sounds like serving the dir over http with apache or nginx is all it takes to make it available in a network.15:25
Score_UnderYeah. I'm just struggling to get it in a format that apt likes15:26
erick3ki didnt even change the disk size now, only turned off15:27
erick3kand look is stuck https://i.imgur.com/7NoZoZp.png15:27
erick3ki just don't get it is beyond me15:28
naccerick3k: are you having issues with iscsi? or what is the problem (sorry only recently joined)15:28
erick3khi nacc, is a kvm virtual machine using cloud image ubuntu 1615:29
erick3konce you shutdown this happens15:29
erick3kreboots fine tho15:29
erick3kand no i have centos 6 7 and ubuntu 14 running on the same exact machine type and 0 problems15:30
erick3kcan't get into recovery, booted with system rescue, no errors i mean i don't know about to give up15:30
naccerick3k: once you shut down -- what happens?15:31
erick3kthat15:31
erick3kgets stuck booting at https://i.imgur.com/7NoZoZp.png15:31
naccerick3k: ok, please use words ... still waking up :)15:31
naccerick3k: got it15:31
erick3kxD15:31
naccerick3k: so `sudo shutdown` then `virsh start` or whtever you use, fails. But from within the instance, `sudo reboot` works?15:32
erick3kyes, as long as you reboot it boots back again, until you shutdown15:32
erick3kand start15:32
erick3kvery very very weird15:32
naccso if it fails to 'start' again, do you have to create a fresh VM each time?15:34
erick3kyep15:34
erick3kand that fresh vm will boot until again shutdown15:35
naccerick3k: any particular hw details? using iscsi, etc.?15:35
erick3kas for disk is using Virtio15:35
erick3kand console qxl15:35
erick3knot much else15:35
nacchrm15:36
erick3kgonna try and change those and see if something happens15:37
naccvirtio should be fine, i'd see if the console makes a difference (or see if you can ping it -- i did see a console=tty1, which seemed a bit surprising15:40
erick3kyes that might be something15:41
erick3kwhat should i change?15:41
erick3kshould be tty0?15:42
naccerick3k: that's what i would have expected, but it depends on your config -- did you manually change that?15:43
erick3ki do think might be something with the console cuz it usually boots right after what's shown on the pic15:44
erick3knop, image is as it comes from ubuntu cloud images15:44
erick3kso defaults15:44
erick3khold on i'll show you15:44
dn`is there any easy way to redirect the netinstaller output or at least the log output to a remote syslog while installing via a param?15:47
erick3knacc there are two15:48
erick3kGRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"15:48
naccerick3k: ack, i'm going to try and reproduce locally15:52
erick3kkool15:53
naccerick3k: interesting, which image format did you use? i used current/ disk1.img with virt-manager and it hangs immediately for me15:57
erick3knice (that you reproduced) hehe15:58
erick3kqcow2 i think15:58
erick3khold on let me link15:58
erick3khttps://cloud-images.ubuntu.com/releases/xenial/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img15:58
erick3ksays Cloud image for 64-bit computers (QCOW2 disk image file for use with QEMU and KVM)15:59
naccerick3k: yea, that's the one i used too16:00
erick3kso what you think could be the problem?16:03
erick3kbad image?16:03
erick3kubuntu 14 cloud image works like a charm btw16:05
naccerick3k: ah! i waited ... a while16:08
naccerick3k: and it booted16:08
erick3khum16:10
naccwht's the default user/password?16:10
erick3kumm there is none, you have to create on with cloud-init16:11
naccheh, duh -- well, it did boot16:13
nacclet me restart it with some cloud data16:13
dn`Anyone got an idea how to redirect the output of the installer or the log to a remote syslog?16:16
naccsmoser: --^ erick3k's issue,  is it because it's trying to contact a ds?16:21
smoserdn`, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605614 . it can be done. i'm almost certain. i dont remember the syntax. its probably kernel command line.16:51
ubottuDebian bug 605614 in busybox "debian-installer: Ability to configure remote syslog" [Wishlist,Fixed]16:51
dn`smoser: thanks, that would be so wonderful helpfull *searhcinggg from that post*16:54
smosererick3k, well, if you pass console=ttyS0 (as it appears you are, and is default from the cloud image) then init's messages are going to go to a serial console rather than tty16:54
erick3ki might just install ubuntu from scratch16:55
erick3kalready spent too many hours on this16:55
erick3kcan't find the root of the problem16:55
smosererick3k, but also be aware taht the cloud images are not going to be useful unless you give them some sort of datasource. they're meant to be booted in a cloud.16:55
erick3kthanks for your help tho16:55
erick3kyes i know16:55
erick3ki sell vpses and all other images work great16:55
smoserwhere are you booting it ?16:55
erick3kam using ovirt / rhev16:56
erick3khas cloud init integrated16:56
smoserand you're sure its not working ?16:56
smoserie, its not that you just aren't seeing something16:56
smoserbut that its actually not doing something.16:56
smosererick3k, i'd appreciate your hepl here though... this could be unintended fallout of16:57
smoser https://lists.ubuntu.com/archives/ubuntu-devel/2017-February/039697.html16:57
smoseri'd like to make sure that is not the case.16:58
smosercould you grant me access to a vps ? or i can sign up if you're a clodu provider.16:58
erick3ki only like them because it saves time instead of installing from scratch but i know they are not perfect :)16:59
smosererick3k, well, ubuntu would rather you use those when you can also17:03
smoserit gives ubuntu users a standard isntallation across multiplep providers17:04
smoserso i'd really like to help17:04
smoser(especially if the datasource identity stuff regressed this)17:04
dn`is there any way to fix the installer ‘setting up the clock’ - ‘getitng the time from a network time server…’ bug? it kinda always hangs there for ages.. - like some magic presseed value to make it go away?17:49
drabd-i clock-setup/utc boolean true17:51
drabd-i time/zone string US/Pacific17:51
drabd-i clock-setup/ntp boolean true17:51
drabI have that in my preseed17:51
drabnever had a issue hanging around time17:51
dn`https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/155816617:52
ubottuLaunchpad bug 1558166 in debian-installer (Ubuntu) "Xenial installer hangs for a long time with "Setting up the clock" message on IPv6-only systems" [Undecided,Confirmed]17:52
dn`I think that’s the bug that I’m facing17:52
drabstrange, I do about half a dozen installs of xenial a day (pxe+preseed) and never had that issue17:53
drabbut I'm not ipv6 only17:53
drabin fact I disable ipv6 right after via ansible becuase I don't use it and have just had rpoblems with it17:54
dn`it’s random - I have it on some but not on athers..17:54
drabsame network/same dhcp settings?17:54
drabdn`: try to pass ipv6.disable=1 to boot cmdline?17:55
drabmmmh18:19
drabdd if=/dev/zero bs=4M count=100 | nc -v lxc-srv1 222218:19
drabrunning from another lxc container on the same host18:19
drabI get 117MB/s, ie Gigabit18:19
drabbut if I use iperf between the same two containers I get 21Gbit18:20
drabeven between container and host I get about same speeds with iperf18:20
sarnold/dev/zero may not be the fastest way to generate zeros18:21
sarnoldtry dd if=/dev/zero of=/dev/null or something18:21
sarnoldsee what speeds you get with that18:21
drabbut as soon as I introduce /dev/zero things go down to 1Gbit, how can dev/zero be so slow?18:21
drabuhm ok18:21
drabit seemed unreal that dev/zero would be slow...18:21
drabtesting that, thanks, good test18:21
sarnoldpage faults aren't the fastest things in the world18:21
sarnoldzeroing pages isn't the fastest thing in the world18:21
drabok, dd to dev null is 6.8Gbps18:22
sarnoldif your application zeros a page and just calls write() on that page repeatedly, it'll probably go way quicker18:22
drabwhich is still not 21, but much faster than dd + netcat18:22
sarnolddd + nc is going from kernel -> user, user -> pipe, pipe -> nc, nc -> kernel, kernel -> whatever's listening in the lxc-serv1 container...18:23
drabtrue, it's more complex that thar for sure, but 6Gbit seems a heck of a loss for nc and some pipes, even if doubled, but then I don't knwo what I'm talking about really :P18:24
sarnolddd from zero to null is just two copies, kernel -> dd, dd -> kernel18:24
drabI don't know much at that level of depth kernel wise so it may very well be reasonable18:24
drabI wanna try kvm inside lxc and trying to get some baseline18:27
drabthe idea of a bridge on top of a bridge is kinda scary, but again maybe it's just ignorance18:27
sarnoldiirc the linux kernel just smoooshes all the connected bridges together into one18:27
=== tomreyn_ is now known as tomreyn
=== JanC_ is now known as JanC
dn`while installing ubuntu on iscsi (root device) - I run into a kenerl errror(?) https://gist.github.com/anonymous/20af414db286d8893257a588f226557d - anyone got a tip? - I’m using l http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 as installer19:01
naccdn`: hrm, is it reproducible?19:03
naccdn`: seems like a networking issue for the iscsi connection19:03
dn`nacc: that’s the fun part - kinda. the same machine worked on an other ISCSI device - both are the same brand (synology…); I would bet that it works without authentication - and that it’s a combination of synology doing something stupid19:04
dn`and something wrong19:04
dn`let me try without auth (will take a moment) — but before I manual tried it with iscsiadmin - I could login on the target without auth, but not with auth19:05
naccdn`: did you get a similar backtrace with iscsiadmin?19:06
dn`nacc: I didn’t check syslog at that time - but I think I could retry it and check (currently trying without auth/chap)19:12
dn`oki, also getting the same error without chap/password - but giving it one more try19:13
naccdn`: sure, just wondering19:14
dn`nacc: it’s just kinda odd; I used another Synology for the exact same installtion (pxe, preseed) and both Synologies have the same version running;19:15
dn`oki, same error twice (without auth)19:17
dn`that’s annoying19:17
dn`fun is also, after the installer complaining it can’t login - if I want to retry, I get “You entered an empty password, which is not allowed, Please choose a non-empty password”. but it’s an endless loop with the same error ;-) without any chance of changing it19:25
naccdn`: so, just curious (i'm working on curtin iscsi support right now ) -- what's an example target name in your setup?19:27
dn`iqn.2017-01.com.xxxx:srv-n11-000119:28
naccdn`: thanks :)19:28
dn`the fun thing is - it worked before19:28
naccdn`: that conforms to the spec, wast just wondering (we're reading bunches of specs and fixing our code to match right now)19:28
dn`The most confusing part for me is that the exact same configuration and names - beside 0003 instead of 0001 ;-) works with another pair of machine <> nas19:30
dn`the other version works with chap/auth or without - all works fine19:30
dn`‘version’ == machine19:30
ThiagoCMCHey guys, I'm trying to deploy OpenStack Ocata on Ubuntu 16.04, with Cloud Archive, also, with OVN.20:30
ThiagoCMCI'm trying to follow this: https://docs.openstack.org/developer/networking-ovn/install.html20:31
ThiagoCMChowever, looks like that the Ubuntu's ovn-common pakcage is missing a binary!20:31
ThiagoCMCovn-ctl: command not found20:31
tomreynThiagoCMC: http://packages.ubuntu.com/search?searchon=contents&keywords=ovn-ctl&mode=&suite=xenial&arch=any20:46
tomreynnot everything is always in PATH20:47
ThiagoCMCtomreyn, thank you!20:53
Garogatcan anyone help me with high availability web clustering? i have at least two (more are coming) nginxs with php and mysql and i need to sync my files now. what should i use, because the servers are not in the same local network21:08
sarnoldGarogat: you could rsync all your servers from a 'golden' server somewhere; or you could use git21:26
Garogatare there any common issues with rsync i have to be aware off? (i read about problems with deleted files coming back etc.) git sounds weird to me, because i would have to save my customers file to git.21:28
sarnoldrsync's changes aren't made in any sort of atomic way21:29
sarnoldfor ubuntu archive mirrors, this is worked around by copying all the data files before copying the metadata files21:30
sarnoldbut this might be complicated to reproduce for arbitrary website files21:30
sarnolddepending upon the sizes of changes, how long it takes to transfer, how many requests your servers get, etc. it might be best to rsync to a target directory and do a directory rename once the transfer is finished21:31
sarnoldgit will have similar problems but much shorter window for trouble, if you use branches to manage the changes21:31
=== JanC is now known as Guest6267
=== JanC_ is now known as JanC
Garogatthis is semi professional caused by the diffrent locations with 100mbit up/down anyway, so do you thing i could have a system where node 1 rsyncs to 2 and if node 1 fails i will run node 2 as long as 1 is back and got all data back?21:34
sarnoldGarogat: it depends upon the application you're serving on the thing21:37
Garogatim having: ddns-service, multiple cms (wordpress with assets) and so on21:38
Garogatsarnold: is GlusterFS worth to have a look at?21:44
tomreynGarogat: not packaged in ubuntu AFAIK, but totally worth a try: https://cernvm.cern.ch/portal/filesystem21:45
sarnoldGarogat: maybe. I had the impression from glusterfs sources that the object storage capabilities were alright but I didn't care for the filesystem part of glusterfs. Maybe that's been improved in the meantime..21:46
sarnoldGarogat: but you can't just add that to an application that wasn't planning on being clustered from the start21:46
Garogatthat so much more complicated than i thought. i also need to find a way to sync php session?!21:50
erick3kdoes anyone else here works with cloud-init?21:50
naccerick3k: there is a channel for it as well21:50
naccerick3k: #cloud-init21:50
erick3kty nacc21:50
naccerick3k: np21:51
sarnoldGarogat: depending upon the application's goals, yes; it's sometimes common to have haproxy or whatever send all connections from a given host back to the same backend webserver to try to avoid needing to share session state in a cookie or in the database21:52
naccpowersj: re: LP: #1679357, it's a metapackage22:30
ubottuLaunchpad bug 1679357 in php-defaults (Ubuntu) "Missing dep8 tests" [Wishlist,New] https://launchpad.net/bugs/167935722:30
powersjnacc: rats, thought I checked for that22:30
powersjnacc: thanks22:31
naccpowersj: you can check to be sure, but i think it's contentless22:31
* nacc is double checking too22:31
naccok, there are a few binarie, but pretty few -- i guess we could write tests taht they do work when the packages are installed, so i'll leave it22:32
powersjyeah... ok! thx for checking22:32
cliluwI have some code that runs as a service. I want to let this service SSH into some of my other machines and run commands. What's the most secure way to go about this?23:04
sarnoldcliluw: ssh-keygen a key for the service to use; distribute the public portion in ~/.ssh/authorized_keys as needed23:05
sarnoldcliluw: decide if you want the key to be used by whoever has the key alone, so the service doesn't require any unlockling or any agent23:06
sarnoldcliluw: .. or if the key shouldn't be useful on its own, and must be unlocked by an agent for use. then you'd want to make sure an ssh-agent is running, set up the environment variables correctly, and then figure out how you'll unlock it every reboot or key expiriry or whatever.23:06
cliluwsarnold: Ok, thank you.23:08
blackflowcliluw: this code as a service, is a public service?23:18
cliluwblackflow: No, not a public service. Just a standard systemd service.23:18
blackflowcliluw: and what do you want it to do over ssh to other machines?23:19
cliluwblackflow: Various things. I want it to modify files on the remote machine and run commands to set them up.23:21
blackflowcliluw: well, giving unbound ssh access from one machine to another is not quite th emost secure thing to do. if that machine is compromised, all the other machines are wide open to compromise as well.23:22
cliluwblackflow: That's true. What do you suggest?23:22
blackflowcliluw: depending on what exactly you want to do, it may be wise to run something like SaltStack's reactor.23:23
blackflowor in other words, have those other machines poll for a "command file" (that's not just a bash script or something like that) from which they can parse what to do.23:23

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