/srv/irclogs.ubuntu.com/2016/06/02/#ubuntu-server.txt

=== Deliant- is now known as Deliant
=== JanC is now known as Guest60369
=== JanC_ is now known as JanC
=== Deliants is now known as Deliant
=== Guest66289 is now known as SeanS
=== athairus is now known as afkthairus
=== LowLifePerv is now known as Bruh
YamakasYanyone doing some decent kernel management with puppet ?09:30
LeMikehello. how do I see the inbox of another user via terminal? I can cat his /var/mail/foo file but due to the chunks I can not read it. Is there a command like mailq to read the mails of another user?09:52
caribounacc: rbasak: I think I will need help with the new usd-import git repo created for kexec-tools09:59
rbasakcaribou: for a merge?10:00
caribourbasak: yes, I'm testing the new procedure from nacc's usd-import tree10:00
rbasaknacc and I spent a while yesterday figuring out how to do a merge using the new structure. It is non-trivial.10:01
caribourbasak: (I've done the merge using the previous method )10:01
rbasakOur conclusion is that we need a tool that will take the imported tree and produce a branch that has no merge commits that is suitable for rebasing.10:01
caribourbasak: for some reason, I'm checking out ubuntu/yakkety, rebasing -i, reset HEAD^ and I get a version that is way past the last merged version10:02
rbasakIt will probably start with a commit from Debian (git merge-base debian/sid ubuntu/yakkety) and then cherry-pick using -m back up to ubuntu/yakkety).10:02
rbasakThen that should be familiar against the old process.10:03
rbasakOtherwise rebase gets really confusing since most commits are merge commits. It sounds like that's what you're hitting.10:03
caribourbasak: yes, looks like that10:04
caribourbasak: will try that10:05
rbasakcaribou: so I did:10:08
rbasakgit checkout -b master abb0083a5ad0b9e25c0f08a8d08758ed0922d55310:08
rbasakgit cherry-pick -m 2 4715d3810:08
rbasakgit cherry-pick c92c1ce10:08
rbasakThat seems to work. As a sanity check, this should produce no output:10:08
rbasakgit diff origin/ubuntu/yakkety10:08
caribourbasak: let me try that10:09
rbasakAnd now you can "git rebase debian/sid" and it should just work (no --onto needed)10:10
rbasakI get merge conflicts but that's as expected. To avoid the debian/changelog ones, it's necessary to do the full reconstruct and logical steps.10:10
caribourbasak: ok, let me try that method on my kexec-tools merge that I will compare with the previous one I did & document the steps10:14
caribourbasak: then you guys can review the document & see if I'm right, then we can append the doc somewhere10:15
=== unreal_ is now known as unreal
jonahHi guys I just wondered if anyone could please help. I have just installed 'smartmontools' on my backup server just to keep an eye on the disk errors etc. I've also set to run it as a daemon on startup. The thing is in the config  file it says it will email errors to my root user... Does anyone know how I set mailx to email me on a different email address or set the root user/sudo user (whichever it will email) to have a forwarding email so12:25
jonahI don't have to ssh into the backup server and type mailx to check for local mail. I instead just want to get it in my normal mail inbox...12:25
jonahSorry for the long question12:25
jonahhope it makes sense...12:25
brigantejonah, which config file are you referring to? /etc/defaults/smartmontools?12:31
jonahbrigante: yeah that's the one12:32
rbasakjonah: set up an MTA to forward all mail to some other system. I configure exim for this.12:33
rbasakjonah: here's my exim4.conf as an example: http://paste.ubuntu.com/16918668/12:35
rbasakAll my non-email servers use this to forward all root mail to me.12:35
brigantesurely you could just change the setting from root to your email address?12:36
briganterather than forwarding12:36
brigantelike in crontab12:36
rbasakThat requires a working MTA still.12:36
brigantesure but, apt install postfix is not exactly difficult12:37
rbasakOr msmtp or something, but that will lose mail during network outages.12:37
rbasakYou still need to configure it, and you end up with a fully functional email server with mailboxes for every user, etc.12:38
rbasakI don't want that, so I configure exim to only have a local root user and forward all root mail to me. This will catch mail generated by any daemon (eg. debconf).12:38
rbasakOne could set up root alias in the MTA, of course. I'm effectively doing this but more minimally.12:39
briganteits a nice lightweight approach rbasak, but does it account for bouncebacks etc?12:39
brigantewhen i need a server to email out, i always install postfix. no need tro setup users or anytrhing else12:40
rbasakWhat bouncebacks?12:40
briganterbasak, you say you're forwarding mail to another mailbox, what if your mailbox is not reachable?12:40
brigantewill it queue the email, and re-try?12:40
rbasakYes.12:41
brigantethats nice12:41
briganteisn't exim a fully featured MTA anyway?12:41
rbasakYes, but its configuration is flexible. I'm configuring it minimally to do almost nothing.12:41
brigantefyi - you dont NEED to configure postfix either12:42
briganteout of the box it has a minimal setup12:42
rbasakYou get asked questions.12:42
rbasakThat's configuring it.12:42
brigantehaha12:42
brigantei guess12:42
brigante1) Internet site 2) enter bogus server name... config complete12:43
brigantebut always nice to know of alternatives12:43
rbasakand that's what leads to stuff like https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/157697812:43
ubottuLaunchpad bug 1576978 in postfix (Ubuntu) "package postfix 3.1.0-3 failed to install/upgrade: il sottoprocesso installato script di post-installation ha restituito lo stato di errore 75" [Undecided,Invalid]12:43
rbasakThe bug tracker is full of these.12:43
brigantethere will always b users tho12:44
brigantesome bnetter than others12:44
brigantebetter*12:44
brigantei hear what you're saying though, less config is good12:45
briganteim not sure we helped jonah tho12:45
briganterbasak, do you know much about iproute2 or networking in general?12:46
brigantei have a very strange scenario on one of my servers i'd like to run by someone to check im not going insane12:46
brigantejonah, type in man smartd.conf12:48
brigantethe -m flag allows you to email any email address, i.e. -m admin@example.com12:49
coreycbbeisner, qemu 1:2.2+dfsg-5expubuntu9.7~cloud4 is ready to be promoted to kilo-updates12:59
caribourbasak: nacc: done with the kexec-tools merge using your imported repository. MP is in LP13:03
jonahbrigante: hi sorry I just had to go for a bit there, i'll just read what I've missed!13:05
jonahbrigante: ok thanks for all those comments and the pastebin... so in that conf file could I just change the -m root to -m emailaddress@addres.com etc?13:09
brigantejonah, that should do the trick mate13:10
briganteBUT you will still need an MTA (like postfix or exim)13:10
briganteotherwise you have no running SMTP server, which is required to send email13:10
jonahbrigante: ok I've changed that line and changed root to just an email address, that's awesome thanks. But what about the -M exec bit, will this need removing or does it do anything by default on ubunt server?13:10
brigantejonah,  /dev/sdc -m admin@example.com -M test13:11
brigantesends a test to admin@example.com13:11
briganteim just reading the man pages here, i dont really know13:11
jonahbrigante: thanks, really appreciate the help13:12
briganteno problem13:12
jonahbrigante: just tried the test but it says "Unrecognized option: m"13:14
jonahbrigante:  is this the right command sudo /dev/sda -m myemail@gmail.com -M test13:14
briganteno it wont work from the command line13:15
jonahbrigante: or is that because I need to install postfix?13:15
briganteyou have to put it in the smartd.conf13:15
jonahbrigante: ah ok13:15
brigantethen when you run `service smartmontools restart`13:15
briganteit will send the test email13:15
jonahbrigante: so you put that in smartd.conf instead of the normal command and do the servrice restart, ok will try it thanks13:15
brigantebut you should `apt install postfix` first13:16
rbasakcaribou: process-wise that looks great! How was it for you? Would you like me to review the merge itself?13:16
jonahbrigante: ok I've add postfix and it's asking if it is 'Internet Site' 'Sattelite system' etc do I just use Internet Site?13:17
caribourbasak: a review would be nice indeed. not much delta so it should be quick13:17
rbasakOK I'll do it now.13:17
caribourbasak: process-wise, I find it clearer, once I had your clarifications13:17
caribourbasak: I just sent a request to import corosync so I can test it again13:18
brigantejonah, chose internet site13:18
caribourbasak: & see if I can figure out how to get started myself13:18
jonahbrigante: ok thanks and just leave the System mail name as the name of the machine?13:18
briganteyeah thats fine, unless you plan on using a domain name you actually own13:19
briganteif so, use that13:19
brigantejonah, when your server sends email out, it will be from [user]@[the domain you use]13:20
caribourbasak: it's easier not to have to worry about the ./git ./gitwd directories13:21
jonahbrigante: hmm tried that and now the service smartmontools restart won't work, it just says fail...13:22
brigantejonah, `tail -f /var/log/syslog` should shed some light as to why13:23
briganteprobably a bad line in your config13:23
briganteleave tail running, then restart smartmontools in another terminal window13:24
jonahbrigante: I ended up rebooting and now it will restart but weirdly the test email doesn't come through...13:29
caribourbasak: btw, regarding the merge proposal, I wasn't sure about the "preference path" to be used for the MP. Used debian/sid as was shown in the screen capture13:30
brigantejonah, type `mailq`13:30
briganteany mail queued?13:30
jonahbrigante: mail queue is empty...13:30
jonahbrigante: maybe that test command line is a bit wrong somewhere, I tried both DEVICESCAN /dev/sdc -m myemail@gmail.com -M test13:31
jonahbrigante: and without DEVICESCAN in front too...13:31
rbasakcaribou: you don't have to use xgit git/gitwd if you don't want to. None of the tools require it. I find it handy to not worry about the .git directory being inside the working tree, that's all.13:31
brigantejonah, you do have a /dev/sdc right?13:32
caribourbasak: yeah, I kind of like this fact.13:32
brigantejonah, type in `lsblk` to show your block devices (disks)13:32
rbasakcaribou: thank you for the note about MP creation. I'll take a look. I've not tried it myself yet so I'm not sure what you mean, but your MP looks reasonable to me. It's showing the new diff against Debian, which seems reasonable. For more diffs I had to clone your repo, but that also seems reasonable.13:33
jonahbrigante: that brings up sda, sdb, sdc and sdc and all the raid partitions and such too as well as md1,md0 etc13:33
briganteok kool13:33
brigantejust checking13:33
jonahbrigante: thanks...13:34
brigantejonah, i would test your MTA is working correctly13:34
caribourbasak: btw, you'll see a few results of the multiple questions I asked two weeks ago about removing conffiles, etc13:34
jonahbrigante: right... what's the best way to do a test?13:34
brigante`mail -s "testing!" your@gmail.com13:35
brigantethen type A BODY OF THE MESSAGE13:36
briganteTHEN PRESS CTRL+D13:36
briganteoops caps lock13:36
jonahbrigante: ok and it just says EOT13:36
=== jgrimm-afk is now known as jgrimm
jonahbrigante: ah yes got that email in my gmail ok, just comes through as root@servername13:37
jonahbrigante: so mail must be ok...13:37
brigantebingo13:37
briganteso your mta is fine13:37
brigantemust b problem with smartmontools13:37
brigantethe line without DEVICESCAN is the correct one i think13:37
brigantenot sure why its not working for you13:38
jonahbrigante: ah found this: http://serverfault.com/questions/426761/is-smartd-properly-configured-to-send-alerts-by-email13:40
brigantehmmm seems to differ to the man pages13:42
brigantei hope you get to the bottom of it13:42
jonahbrigante: could it be because I've just uncommented DEVICESCAN -d removable -n standby -m EMAILADDRESSHERE  -M exec /usr/share/smartmontools/smartd-runner13:43
jonahbrigante: but haven't uncommented anything else? or that that line doesn't work with just "removable" there...?13:43
jrwrenbe sure to file a bug if the man page is wrong.13:44
jonahbrigante: maybe I don't need that line at all and should just uncomment this line DEVICESCAN -S on -o on -a -m myemail@mydomain.com -s (S/../.././02|L/../../6/03)13:44
brigantei would comment out the line with EMAILADDRESSHERE13:45
briganteand yes, uncomment the latter13:45
brigantereplace the eail address with your own13:45
briganteemail*13:45
jonahbrigante: but the line with EMAILADDRESSHERE was the one that doesn't seem to work for me...13:46
brigantejonah, comment out means put a # at the start so the program IGNORES the line13:54
brigantei.e. ignore the line that doesn't work13:54
briganteuncomment, means remove the hash from the start of the line so the program uses it13:55
jonahbrigante: ah got it working i think...13:56
brigantewith that -M test line it should send a test email everytime the daemon is restarted13:56
jonahbrigante: all it was is that DEVICESCAN doesn't work for me. So I ended up adding a line for each drive like in this tutorial: https://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/13:57
jonahbrigante: then when I added the test line at the end of each of those lines I get an email! thanks for helping me out!13:57
brigantehaha excellent13:58
briganteyou're welcome dude13:58
jonahbrigante: thanks again, we got there in the end13:58
brigantenow if only i could get some help with my problem...13:59
doublel93hey, I installed ubuntu 16.04, shouldn't python be there by default ?14:07
briganteI have a server with 3x physical network cards. Each card has 1x IP address all in the same network 192.168.0.0/24. Each NIC is wired to the same switch. The problem, when I ping the IP addresses: ALL traffic goes to eth0... wtf14:07
brigantedoublel93, probably14:08
brigantedoublel93, i just installed 16.04 on my laptop and i have python 2.714:08
jonahbrigante: good luck, I wish I could help you with that one, just one network card for each server for me...14:08
brigantejonah, thanks mate. I have never run into this situation before. its a real conundrum14:09
doublel93I come from a centos background, on installation centos ask you for ip, gateway,... of the server, in ubuntu 16.04 it didn't ask me anything about it, how do you go about changing them in ubuntu ? is there a wizzard ?14:10
brigantedoublel93, no - edit /etc/network/interfaces14:10
doublel93ok thanks14:10
sdezielbrigante: if you want your 3 NICs to be in the same network, you probably want bonding https://help.ubuntu.com/community/UbuntuBonding14:11
brigantesdeziel, thanks, would that make my 3x NIC's into 1x 3Gbit NIC?14:13
sdezielbrigante: kinda ;) It depends on the way you setup your bond14:13
kyle__How do you stop dnsmasq-dhcp from responding?  service dnsmasq stop claims to kill it, and I see no processes running, but the damndable thing is still consuming dhcp requests as noted in syslog14:14
doublel93ifconfig -a | grep eth is showing 0 results, this is a new installation, is there something that needs to be configured ?14:17
geniidoublel93: Network devices now get unique names similar in principle to UUID scheme of hard disks. So you will not see names now like eth0 eth1 and so on. You will see a name like enxff99ee88 with 3 letters and then 8 characters of it's physical MAC address, or a similar name to this14:25
doublel93I found ens3214:25
doublel93still googling why =p14:25
geniidoublel93: The basic idea is same as why UUID for hard drives. So that each device has a universally unique name and cannot be used by mistake14:27
kyle__Internally, they're actually still called eth#.  udev renames them by default now.14:27
Odd_Blokedoublel93: See https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ :)14:27
ogra_"predictable"14:27
* ogra_ always found that a good joke :P14:27
kyle__You can pin which devices goes to which device by MAC address14:27
geniiI blame Dell.14:28
kyle__ogra_: Like most things the udev/systemd team have pushed, It makes sense in some slim selection of cases, and confuses the hell out of every other one :P14:28
patdk-wkharddrives don't have uuid14:28
patdk-wkthey have wwn14:28
ogra_kyle__, yep14:28
kyle__patdk-wk: I thought wwn was scsi or iscsi only actually....14:28
patdk-wkwwn is scsi14:29
patdk-wkharddrives don't have uuid14:29
patdk-wksata has nothing14:29
patdk-wkfilesystems have uuid though or something else, depending on the filesystem14:29
patdk-wkthe names of my nics are really annoying now, enp3s133f114:30
kyle__sata & ata do have serial numbers.  Not sure if those are always in the same place though.14:30
patdk-wkthey don't ALWAYS have serial numbers14:30
ogra_patdk-wk, what ? and you didnt *predict* that name ?!?14:31
* ogra_ grins14:31
kyle__patdk-wk: What's fun is a naming/renaming but in the 14.04 installer, that occasionally fails to rename all the nics if you have > 4.14:31
patdk-wknope, that name changes based on the pci slot it's plugged into14:31
patdk-wkthe 133 is the pci slot id14:31
kyle__"Oh, I have rename7 again, guess i have to reboot the installer and hope for better luck"14:31
* kyle__ grumbles14:31
patdk-wkI don't understand why there is a renamexxx at all14:32
patdk-wkit has done nothing but screw up systems since before trusty14:32
patdk-wkI know I filed a bug about it, it was *fixed*, but problem continued14:33
patdk-wkthink it got marked as a wont fix14:34
Odd_BlokeIf only there were some way that those interfaces could get predictable names so this wasn't an issue. ;)14:34
geniiIf you have scripts that used to do something with an interface and relied on the names being eth0 eth1 and so on, it gets pretty annoying14:35
geniiTo revert though, you just need net.ifnames=0 in GRUB14:36
brigantei tend to use udev rules to specify my own names for nics14:38
brigantebind the name to the mac address14:39
geniiThat was the way before, yes, edit /etc/udev/rules.d/70-persistent-net.rules but it no longer works unless you disable the net.ifnames14:41
patdk-wkI had never had an issue with the old way14:41
patdk-wkusing udev to match the nic name to the mac address14:41
compdoc70-persistent-net.rules could get screwed up if you swapped nics, or installed new ones14:42
patdk-wkhow so?14:42
brigantegenii, i just setup an 16.04 server and used udev rules without the grub flag set... seems to work fine14:42
patdk-wknever had it happen14:42
patdk-wkif you swap nics, just update the mac with the new one, reboot, done14:42
brigantepatdk-wk, maybe if you remove the nic before updating udev, i guess it might hang on boot?14:42
patdk-wkit won't hang at boot14:42
briganteofc it just wont rename the missing nic14:43
patdk-wkyep14:43
briganteso whats the point of the grub flag again?14:43
patdk-wkif it hangs cause a nic is missing, your system has very bad boot scripts installed14:43
briganteagreed14:44
geniibrigante: Because the interface naming is now in the kernel, it turns that off14:44
patdk-wkkernel? or systemd?14:45
briganteso if i dont set udev rules, eth0 is renamed by the kernal to enps0lmnop32xyz ?14:45
briganteand if i set the grub flag, it will remain as eth0 ?14:45
tewardthis may sound a little odd, but is there any decent guide for setting up an email server, complete with antispam and antimalware solutions, from a pure Ubuntu box?  Would more or less be a 'to learn how everything works' thing, but need to start somewhere :P14:46
briganteteward, check out the tutorials on digitalocean.com14:46
geniipatdk-wk: It was coming in before upstart->systemd, so it's not something systemd14:46
patdk-wkbut that used to be the biosdev??? package before14:46
patdk-wkI haven't looked in 16.04 though14:46
geniipatdk-wk: Yes, but now it is not14:47
patdk-wkbut in 14.04 you just uninstall that, and done14:47
geniibiosdevname is a package you could uninstall or tell GRUB biosdevname=-1 or =0. But now it's in kernel, so you need either edit sysctl.conf or GRUB14:48
patdk-wksysctl.conf would be seriously late to adjust a kernel eth rename14:48
patdk-wkI still don't believe it's kernel thing though14:49
briganteinteresting14:49
patdk-wkcause my 16.04 system boots with eth?? devices14:49
patdk-wkand it renamed them later14:49
patdk-wkif it was kernel, the eth?? would have never existed to start14:49
brigantei got one for you guys: i recently tried to move my LVM pv's into an encrypted partition which used luks, i rsync'd my boot partition out of LVM to /dev/sda1, ran grub-install, everything seemed OK. But on reboot, I was not prompted to unlock the crypt and grub sat there asking "where's the root drive?"14:50
brigantehow do you tell ubuntu that its root is inside a crypt?14:50
patdk-wkbrigante, did you bother to tell grub it is?14:50
patdk-wkthere is some good adjustments you have to make :)14:50
naccrbasak: caribou: i've got the script working with our exim4 example, at least14:50
naccrbasak: caribou: didn't get a chance to push last night, as i was still testing the parent overrides, let me finish that and push it up and you should be able to use the same script with corosync14:51
brigantepatdk-wk, perhaps this is what i'm missing...14:51
patdk-wksays here, the nic renaming is systemd14:51
naccrbasak: the override seems to have worked for clamav (not exim4 as mentioned above, sorry!) so that's good!14:51
caribounacc: I've already merged i the traditional way (only one patch delta) so it'll be quick to test14:51
brigantewhats the deal with systemd in ubuntu anyway, it seems half in half out14:52
nacccaribou: yep, was just reading the backlog :)14:52
nacccaribou: the script basically encapsulates the manual commands rbasak gave for git14:52
briganteno netctl for example (that is a systemd component right?)14:52
naccnetctl is an ... arch linux thing?14:53
brigantenacc, im fuzzy on it tbh, i've only ever used it in arch so maybe14:53
naccbrigante: systemd is (aiui) 'fully' in ubuntu...14:53
patdk-wksystemd-networkd to be specific14:53
brigantei must have my wires crossed then14:53
brigantethanks nacc14:53
brigantei thought systemd was taking over everything14:54
brigantesystemd alarm clock etc14:54
patdk-wkI thought it already did14:54
patdk-wk Ican't believe how many CVE's it *reopened* for past systems that solved these problems years ago14:54
* patdk-wk looks at systemd dns resolver14:54
Odd_Blokegenii: patdk-wk: The renaming is systemd, but it isn't networkd (which Ubuntu does not yet use).14:56
patdk-wkhmm14:56
patdk-wkya, I knew it couldn't be the kernel atleast14:56
Odd_Bloke(It may be in the networkd code, but it doesn't require networkd to be running)14:56
briganteOdd_Bloke, does networkd contain the netctl command? and is part of the systemd family?14:57
geniiInteresting14:58
briganteor is netctl specifically an "arch thing"14:58
briganteim still fuzzy14:58
brigantei quite like netctl14:59
briganteok i just checked, netctl is arch specific and nothing to do with systemd/networkd15:00
doublel93I modified the "interfaces" file and installed openssh-server, how can I see if my server actually has the ip I set ?15:04
brigantedoublel93, run `ip addr`15:05
brigantedoublel93, also run `ss -ntlp` to see if SSH is listening15:05
doublel93brigante: it is listening on *:22,  instead my ens32 interface says inet 192.168.1.161/21 brd 192.168.1.255 scope global ens32 (I tried to set it to 192.168.1.48)15:07
EmilienMcoreycb, jamespage: FYI: module some issues we ignore now (documented on https://etherpad.openstack.org/p/puppet-openstack-xenial) - we now gate on Xenial (and not trusty anymore) for our master (current newton). But still deploy Mitaka.15:08
brigantedoublel93, you may need to `ifdown ens32` and then `ifup ens32` to get the new IP15:08
EmilienMcoreycb, jamespage: any ETA on "be able to test newton repo"?15:08
doublel93brigante: nothing changed15:09
brigantedoublel93, try a reboot15:09
brigantethats one thing i dislike about ubuntu/debian... how the fudge do you restart networking properly15:10
brigante`service networking restart` seamingly does nothing15:10
Odd_Blokebrigante: Well, it does an ifdown/ifup. :p15:11
brigantei always end up rebooting... someone tell me there is a better way? im not talking about setting up manually using iproute2 commands either... how do you tell ubuntu to reload the /etc/network/interfaces config?15:11
briganteOdd_Bloke, lol15:11
coreycbEmilienM, \o/ on the xenila move.  newton pkgs should be in proposed a few days after upstream releases newton b1, which should happen any day now.15:11
doublel93brigante: even after a full reboot it didn't change, I just came to ubuntu from centos, such a pain15:11
brigantedoublel93, is that a DHCP address?15:12
EmilienMcoreycb: ok cool15:12
doublel93brigante: this image is what I did https://mjmckinnon.files.wordpress.com/2016/05/edit-interfaces-file.png?w=776&h=454  ,  except I used the ens32 name15:12
coreycbxenial, that is15:12
brigantedoublel93, that looks fine to me15:13
brigantedouble check your config doesn't have dhcp instead of static defined15:13
doublel93brigante: address is the one that has to become 192.168.1.48 right ?15:13
briganteyup15:13
briganteOdd_Bloke, so how do you reload the /etc/network/interfaces config? or do you just reboot like me?15:14
briganteubuntu seems to be stuck in the past when it comes to network configs, probably the fault of debian15:15
doublel93brigante: ok I feel stupid, that was it dhcp was left15:15
doublel93but now I have 2 in ip addr, global and global secondary, is that good ?15:15
naccbrigante: keep opinion to #offtopic, please :)15:15
naccbrigante: rebooting to restart networking is ... not sane, I would be surprised if that was actually required15:16
brigantenacc, apologies i will refrain from opinion comments15:17
brigantenacc, so what is the advised way to reload the networking config?15:17
briganteifup, ifdown, service networking restart all seemingly do nothing15:18
naccbrigante: does `service networking status` indicate it is active?15:18
briganteother than using iproute2 to specify the same thing as the config i dont see a way...15:18
brigantenacc, yes, active15:18
briganteactive (exited) to be precise15:19
briganteperhaps it requires the `reload` argument15:19
briganterather than restart?15:20
doublel93ok I have finally solved that problem thanks a lot, how can I doublecheck that I'm using my dns server now ?15:20
brigantedoublel93, use the dig command15:20
naccbrigante: then i expect a `service networking restart`  to dtrt, but you can laways check that15:20
naccstop followed by start does work15:20
naccin my case, in a simple lxc container, stop brings down the interfacae and a start brings it back up15:21
brigantenacc, yikes, good luck doing that remotely :)15:21
naccbrigante: i assume if you're mucking with networking, you have another means of access (serial console or otherwise)15:21
doublel93brigante: I do not see any of my dns, (the dns server is configured on another one), dns-nameservers 192.168.1.67  was the right option to change to point to that ?15:22
brigantenot always, i have rented dedicated servers in the past without serial access15:22
brigantealas, thats why virtual machines are a god send tho15:22
brigantestill seems odd that a `restart` doesn't actually do anything15:23
naccbrigante: it does seem like `service networking reload` will do what you want15:23
briganteaha15:23
brigantewell thats good to know15:23
naccbrigante: but i don't see why that is safer if you've chagne the config15:23
naccfor remote modifications15:23
briganteif you `service networking stop` you cant start it again as ssh will drop...15:24
brigantehence reload is much safer imho15:24
naccalso, `service networking restart` absolutely does something here, so i'm not sure what your config is like15:24
brigantehmmm perhaps its fixed in latest ubuntu15:24
brigantei've been using ubuntu since v6 and it has bugged me for years15:25
naccbrigante: what version are you on?15:25
brigante16.04 currently, but still manage servers with 12.04 and 14,0415:25
nacc16.04 is the latest, and was what i was testing on (in a container)15:26
brigantei will test now too15:26
JanCteward: https://help.ubuntu.com/16.04/serverguide/email-services.html has the basics15:28
tewardJanC: thanks15:28
brigantenacc, nope. it does nothing, either `reload` or `restart` doesn't update the interface15:31
brigantei incremented the last octet in the static ip address by 1, tried to reload/restart, and I get the same IP i had on boot15:32
brigantefor a minute i thought i had been a fool for many years...15:33
=== vinzusama is now known as vinzusamaway
brigantei'd happily be the fool if someone can tell me the correct way to do this without a reboot or using iproute2 commands15:33
brigantenacc, what test did you run?15:35
naccbrigante: both reload and restart and checked what syslog said15:37
brigantenacc, try the test I just did. change the ip address.15:40
brigantethis is what im talking about. reloading the config15:40
brigantejust cos syslog says "it worked" doesn't mean your IP address has changed15:41
naccno ... but asserting it doesn't do anything is also false ... :)15:41
naccthat's all i was checking15:41
brigantelol fair enough15:41
brigantei'll chose my words more carefully, blimey...15:41
naccbrigante: :)15:45
naccbrigante: let me change the lxc config15:45
brigantei have not tested or tried lxc15:46
naccbrigante: well, odd, lxc started with dhcp, so it is refusing to give up the lease, but adding a static gave the device a second ip as configured on networking restart15:53
naccbrigante: unfortunately don't have more time to spend on it right now15:53
brigantenacc, well thanks for clarifying. this "bug" has occured in every version of debian and ubuntu i have ever used15:54
naccbrigante: and i've never experienced it :)15:54
naccbrigante: which isn't a good case, just saying i've not seen that issue15:55
briganteit seems most people haven't15:55
brigantewho knew that changing an IP address was such a specialist thing lol15:56
naccgiven the nature of cloud deployments, i would also think many configs are using dhcp or don't really care about the networking details, as long as its routing properly -- dunno15:57
brigantenacc, perhaps dude. it's just always struck me as odd15:58
briganteanyway - im off home now, thanks to everyone for their help today16:00
ddellavcoreycb can you take a look at keystone, It builds successfully for me after I updated the d/control for oslo-utils: lp:~ddellav/ubuntu/+source/keystone16:00
coreycbddellav, sure16:01
Yuri4_Hi, guys! I have 2 servers. There is a folder /mount that has wordpress files that are syncronized accross servers via SMB 3.0 protocol. What is the best way to sync that folder with my Wordpress that is located at /var/www/html ?16:04
coreycbddellav, that should work16:05
ddellavcoreycb ok, ironicclient is also ready for review: lp:~ddellav/ubuntu/+source/python-ironicclient16:05
coreycbddellav, just changing back to 0ubuntu116:05
coreycbddellav, ok16:06
ddellavcoreycb oh ok, i never know if i should step on someone elses commit message16:06
coreycbddellav, you wouldn't be16:07
coreycbddellav, if you clone it and it's UNRELEASED then that version wasn't ever uploaded16:07
ddellavcoreycb ok,  in keystone my changelog message was in the same block as yours and jamespages so i wasn't sure if updating d/control was enough to modify the version number16:08
ddellavcoreycb or did dch change it to 216:08
coreycbddellav, keystone pushed, want to manually retrigger a build in jenkins?16:12
coreycbddellav, one for xenial and one for yakkety16:12
jrwrenYuri4_: rsync or unison both sync folders very well.16:15
Yuri4_jrwren, which one is better? Don't have rsync expirience and this is the first I hear of unison16:16
jrwrenYuri4_: rsync is more widely used and it sounds like you are syncing 1 direction. use it.16:17
jrwrenYuri4_: unison is better when changes might be in both places, a 2 way sync.16:17
Yuri4_jrwren, yes! Thank you! The source folder /mount might become disconnected from time to time. Might that be an issue? Also, should I create a script that rsyncs changes every 20 seconds, or can rsync run forever?16:19
jrwrenYuri4_: cron is a good tool for running periodic jobs.16:22
jrwrenYuri4_: it is probably best to check that the folder is mounted and to do nothing if it is not mounted.16:22
Yuri4_jrwren, no, I want it to be run constantly. But if the folder drops rsync won't delete everything, would it?16:23
Yuri4_jrwren, basically it's for a WordPress website running on 2 linux VMs in Azure. From time to time Azure shuts down VMs for 30 minutes. I'm building a web site that should not go down16:24
jrwrenYuri4_: there is no such thing as "constantly" unless you want "while true ; do rsync... ; done"  which I don't recommend.16:26
Yuri4_jrwren, why not?16:26
jrwrenYuri4_: IIRC there are wordprss plugins that move teh static storage out of the local filesystem. there maybe one for azure blobstorage. I'd recommend that.16:26
ddellavcoreycb ok i'll try heh16:26
Yuri4_jrwren, thank you16:27
jrwrenYuri4_: its a waste of cycles. Ideally you'd not do anything unless soething is written and changed. You could use inotify for that.16:27
jrwrenYuri4_: but yes, look into not using local filesystem for those files at all. Its a great solution.16:27
=== afkthairus is now known as athairus
=== iberezovskiy is now known as iberezovskiy_afk
=== degorenko is now known as _degorenko|afk
wedgwoodI can't tell from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1573231 when that patch will be released in AMI form. Anyone here have any idea?19:42
ubottuLaunchpad bug 1573231 in linux (Ubuntu Xenial) "Kernel Panic on EC2 After Upgrading from 14.04 to 16.04 via do-release-upgrade -d" [Critical,Fix committed]19:42
dannfhey hallyn: would you mind taking a look at LP: #1566564 and letting me know if you have any objections to me uploading xenial SRUs?20:07
ubottuLaunchpad bug 1566564 in qemu (Ubuntu Xenial) "support query-gic-version QMP command" [Undecided,Confirmed] https://launchpad.net/bugs/156656420:07
coreycbddellav, I'm working on a new python-hacking, that should fix up neutron for newton20:16
ddellavcoreycb awesome20:17
coreycbddellav, it looks like trove just needs it's patches rebased20:30
coreycbddellav, I'll let you do that one20:31
ddellavcoreycb ok, i'll take care of it20:31
coreycbddellav, thanks20:31
jdelerhello guys i have registered a vhost on port 3000 locally and how can i start the server21:02
jdeleri am lill new here for apache2 server21:02
Slingjdeler: service apache2 start/stop/restart21:14
Slingjust like any other service21:14
sdezielnacc: if you could check my new debdiff attached to LP: #1570472, I'd really appreciate :)22:58
ubottuLaunchpad bug 1570472 in puppet (Ubuntu) "Set systemd as default service provider" [Undecided,Triaged] https://launchpad.net/bugs/157047222:58
sarnoldlol "upstart is required to confuse Puppet"22:59
sdezielsarnold: don't laugh, I was really confused when my lxc container wouldn’t let me reproduce the issue ;)22:59
sarnoldsdeziel: apparently it's also suitable for confusing sdeziel and amusing sarnold :)23:00
sdeziellol23:00
sdezielnext time, I'll try to reproduce an issue before looking into patching it ;)23:01
sarnoldhehe23:01
sarnoldstrange that the specific version numbers are listed, rather than allowing open end points23:01
sarnoldthat's just going to need to be edited again in four months..23:02
sarnoldbut hey looks like that's the way they chose to go23:02
sdezielI guess that's because they don't support "greater than" when there is a "." in the version number23:02
sdezielhmm, I'll update that debdiff to fix the changelog address23:06
=== vinzusamaway is now known as vinzusama
ahi2apache2 runs on different ports but only accessible from web on 80? anyone know why?23:30
sarnoldahi2: check netstat -tnlp to see which addresses it is bound to -- and check your firewall, if one is installed, to see if those other ports / addresses are open23:32
ahi2apache listening on 795023:33
ahi2firewall rule good23:35

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