/srv/irclogs.ubuntu.com/2018/10/02/#ubuntu-server.txt

deemandHello there. May anybody give me a rough estimation of the license fees for a Cisco IOU or IOL commercial license? Is it even possible to acquire such a license?06:12
deemandOh, wrong window. I apologise.06:13
adityaduggalHi people, I am facing an issue with my ubuntu server box, I have just installed a new network card and due to this I am unable to connect to my server06:16
lordievaderGood morning06:20
adityaduggallordievader, Good Morning06:20
adityaduggalCan any one let me know why my running network is now not working by just installing a new network card which does not even have a wire connected to it as of now06:21
lordievaderWhat version are you running?06:21
Jenshaeadityaduggal: Is it in a machine that is connected to the network via another NIC?06:23
adityaduggallordievader, I am running ubuntu 16.04.4 LTS06:24
lordievaderHmm, that should have a new enough udev  which uses bios devnames.06:25
adityaduggalJenshae, basically I was using this machine as a media server and I just installed a new network card on that machine and after that its not connecting to the network did not change a thing except that I installed a new network card06:25
lordievaderHow was your network configured? Simply through /etc/networking/interfaces?06:25
lotus|NUCadityaduggal: .5 for xenial is out, its unsafe to keep running older ubuntu/kernel like that06:25
adityaduggallotus|NUC, If only I can connect my machine to the internet I would be in a position to upgrade it correct?06:26
JenshaeExperience wise, I had a faulty printer's NIC blasting the network with noise. Guessing, I was going along lordievader 's line of thinking I suspect, where your machine was confused about what NIC it might be using or be expecting to bridge them / trying to send the signal over both devices, so only half actually goes.06:28
adityaduggallordievader, I think the answer to your question is yes. Since I cannot recall setting anything else. And also `cat /etc/network/interfaces` shows correct settings06:28
adityaduggalI have even tried to disable the second NIC by `sudo ifconfig virbr0 down` so that the system is not confused with the 2 NICs06:29
lordievaderThe second nic is called virbr0?06:31
lordievaderWait a minute, your secondary nic is virtual?06:32
adityaduggalwell ifconfig is giving me 3 address one for enp2s0 which is for the network I was connecting earlier, second lo (loopback), 3rd is virbr0 which has a inet addr: 192.168.122.106:36
adityaduggalI don't even know if the 2nd NIC is installed properly but since my system has stopped working I am sure the OS is confused as to which nic to use and since earlier settings were keeping in mind only 1 nic I am guessing that its causing an issue but the real question is that how do I resolve it.06:38
lordievaderWhat you are describing sounds like a single real network interface.06:40
lordievaderadityaduggal: What does `ip link show` tell you?06:40
adityaduggallordievader, even I just read that but how is it possible that the system creates a virtual bridge the moment I install a new nic adapter06:40
lordievaderThat is very strange.06:41
adityaduggallordievader, I would try and type since I cannot copy paste from the other machine right now06:41
adityaduggalip link show give the below output06:42
lordievaderYou don't need everything06:42
lordievaderJust the interface names ;)06:42
adityaduggallo: UP06:42
adityaduggalenp2s0 UP06:42
adityaduggalenp3s006:42
adityaduggalvirbr0 UP06:42
adityaduggalvirbr0-nic06:42
adityaduggalSo basically the system has automatically created a bridge when I installed enp3s006:43
adityaduggalSO I need to delete virbr0 would this be a good solution: https://askubuntu.com/questions/246343/what-is-the-virbr0-interface-used-for06:43
lordievaderDo you have a /etc/systemd/network folder with configuration files inside?06:44
adityaduggalThat folder is empty06:46
* lordievader is really starting to wonder how adityaduggal network is configged.06:47
lotus|NUCwhere is etherape when you need it :p06:47
lordievaderadityaduggal: To answer your question, sure you can remove it manually but if you have configuration which  creates it, it is going to be back after the next reboot.06:48
lordievaderSo it is better to look at your network configuration and make sure it is set up correctly.06:48
adityaduggalOk so how do I do that, I am kind of confused myself that why just adding a network card would make it trouble the existing network, I think I should remove the network card and try to connect to the network again06:50
adityaduggallordievader, I am going to remove the newly installed nic and check if the problem persists06:50
adityaduggallordievader, just checked and removing the nic indeed works like a charm. Now the question is why is it not working with the 2nd nic installed even though the nic is not connected to any network07:00
adityaduggallordievader, so it seems that virbr0 is not the trouble maker as of now. Here is the output of my ifconfig https://paste.ubuntu.com/p/wFS3KhRTZx/07:03
adityaduggalAlso `ip link show` the output is here: https://paste.ubuntu.com/p/WXTbqTqKVS/07:04
adityaduggalI was planning to use this media server as a firewall as well for my home network but I guess since the second nic is creating issues I cannot do that?07:05
adityaduggallordievader, Also the output of command `cat /etc/network/interfaces ` is here: https://paste.ubuntu.com/p/wJ7Y4ZFpw8/07:10
adityaduggalAnyone who can help me?07:12
lotus|NUCpatience adityaduggal07:13
lordievaderadityaduggal: When the second nic is inserted the first doesn't get an IP anymore?07:15
adityaduggalwell the ping to the gateway is destination host unreachable instead of request timed out. Now does that mean its not getting an IP, I guess that should be the case.07:17
adityaduggalJust to give another information my router (gateway) is assigning the ip address based on HW address (MAC-Address). Could it be that inserting the 2nd nic can change the HW address of the first Nic (highly unlikely though)07:19
adityaduggallordievader, I think I would try it once again with inserting the 2nd nic. The other thing I am thinking is that what if the 2nd nic was not inserted properly and hence the issue was coming. Let me install the 2nd nic again and check.07:22
lordievaderThe  first nic is doing DHCP, I assume?07:24
lordievaderadityaduggal: ^07:24
adityaduggallordievader, Well just checked after installing the 2nd nic again and same issue that the server is not getting the IP address07:28
adityaduggalSo surely its not an issue with my installing the HW wrongly but just a peculiar issue with ubuntu-server or maybe the way I have done my settings, now the thing is to find the real reason and resolve it.07:30
lordievaderDoes the logs (syslog, dmesg) show anything why it is not setting the ip address?07:31
adityaduggallordievader, Voila FOUND the reason07:33
adityaduggalWell I just check ifconfig and found that the HW Addr of my enp2s0 is changed when I install the 2nd nic, that is very STRANGE indeed, why is this happening07:34
adityaduggalNow since my router has reserved the ip address of my server for a particular HW addr it just does not allow the server to take the IP 10.3.0.99 as its reserved for the HW addr07:35
guardianhello, I just installed ubuntu server and I discovered (thanks to etckeeper) that during the night the system refreshed snap core. With trial and error I realized it did "snap refresh"07:35
guardianwhen doing snap refresh manually, I get07:35
guardianDownload snap "core" (5328) from channel "stable"07:35
guardianwhat's this? and why do I need this?07:35
guardianI'm annoyed systemd is going to download and mess with /etc at night :(07:36
lordievaderadityaduggal: Does enp3s0 have the mac address of the previous enp2s0?07:36
adityaduggallordievader, yes why is this happening07:37
lordievaderThe first nic is probably not in the first slot on the motherboard ;)07:37
lordievaderEmpty pci slots are skipped in the counting.07:38
adityaduggalOK so this is the issue, the first nic is basically the inbuilt one and the second one is now being considered as the first one.07:38
lordievaderHmm. that is strange.07:39
lordievaderAnyhow, edit your config appropriatly and things should work again.07:39
adityaduggalSo basically this is what is causing the issue now I need to do the settings on enp3s0 instead of enp2s007:40
adityaduggalYeah, thanks lordievader for being this is a very strange thing that the inbuilt nic is counted after the one added later on the slot in motherboard07:41
adityaduggallordievader, Well now everything is working as expected, just wanted to know if you know can I use this media server of mine as a firewall as well, basically that was the intent of installing the 2nd nic.07:51
lordievaderOfcourse you can 😉07:53
FuturianHi All.10:50
FuturianIt's do-release-upgrade day today, wish me luck...10:51
* Futurian dives over grenade proof wall as he hits the enter key..10:51
ahasenackgood morning12:05
rbasakahasenack: are you affected by the git-ubuntu submit breakage?12:13
ahasenackno, not submit, just build{,-source}, a problem with libraries12:13
ahasenackrbasak: related? https://pastebin.ubuntu.com/p/FVByWb4TxX/12:15
rbasakHmm. No, that's different.12:19
ahasenackrbasak: that's with r434, edge12:24
ahasenackrbasak: in another topic, lars filed a couple of ftbfs buts about mysql 8.0, I presume that's forward looking, and not something for cosmic, right?12:24
ahasenackrbasak: example: https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/179530412:25
ubottuLaunchpad bug 1795304 in asterisk (Ubuntu) "FTBFS with MySQL 8.0" [Undecided,New]12:25
ahasenackthe other one is bacula12:25
rbasakThat'll be for cosmic+1, yeah12:25
ahasenackok12:27
coreycbjamespage: neutron is in the bionic unapproved queue and i've added the sru template to bug 1790598. can you fill in the rest of the template details?12:28
ubottubug 1790598 in neutron (Ubuntu Bionic) "metadata service calls to nova-api-metadata with IP based SAN's fails" [High,Triaged] https://launchpad.net/bugs/179059812:28
rbasakahasenack: do you have steps to reproduce your pastebin failure please? build-source worked for me12:35
rbasak(might be related to the host release in use)12:35
rbasakahasenack: or to start with, what release is your host using?12:35
ahasenackrbasak: depends on the package, quilt has to be invoked, and then we have that {m,g}awk confusion12:36
ahasenackrbasak: try with ipsec-tools, that's where the pastebin came from12:36
ahasenackrbasak: and host is bionic12:36
ahasenackrbasak: and I have just mawk installed12:36
ahasenackrbasak: my core snap is 16-2.35.2 r5548 from the beta channel12:37
rbasakahasenack: the mawk/gawk thing is a bug in the core snap and only edge regressed. So beta should definitely work, and edge when they have landed the fix. The readline error is different though I think?12:37
ahasenackyeah, but it's around the same area, awk definitely rang a bell12:37
ahasenacksame happens when I use gawk, btw12:38
ahasenackcoreycb: hey, I see you are familiar with keepalived? :)12:45
ahasenackcoreycb: this showed up in triage today: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/179542012:46
ubottuLaunchpad bug 1795420 in keepalived (Ubuntu) "Keepalived update from 1.2.19 to 1.2.24 breaks support for /dev/tcp health check" [High,Triaged]12:46
ahasenackrbasak: have you seen this mysql error before:12:57
ahasenack2018-10-01T07:00:11.667268Z 0 [ERROR] unknown variable 'myisam_recover=BACKUP'12:57
ahasenackI don't know if BACKUP is a special term here, or just a syntax error12:57
ahasenackhm, looks like it's a valid value12:57
ahasenackhmm13:03
ahasenackRenaming removed key_buffer and myisam-recover options (if present)13:03
ahasenacklooks like the name changed13:03
* ahasenack checks release notes13:03
ahasenackwow, this was a good one13:13
ahasenackhttps://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1795332/comments/213:13
ubottuLaunchpad bug 1795332 in mysql-5.7 (Ubuntu) "package mysql-server-5.7 5.7.23-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,Invalid]13:13
ahasenackhi, can a channel op please change the "docs and resources" url from the #topic to point at 18.04? https://help.ubuntu.com/18.04/serverguide/13:33
lotus|NUCahasenack: try #ubuntu-ops perhaps for that request13:37
lotus|NUC!server13:38
ubottuUbuntu Server Edition is a release of Ubuntu designed especially for server environments, including a server specific !kernel and no !GUI. The install CD contains many server applications. Current !LTS version is !Bionic (Bionic Beaver 18.04) - More info: http://www.ubuntu.com/products/whatisubuntu/serveredition - Guide: https://help.ubuntu.com/lts/serverguide - Support in #ubuntu-server13:38
lotus|NUCahasenack: also usefull ^13:38
muhahaCan anyone help? I am using prepend in dhcpclient.conf but seems that my /etc/resolv.conf is still same https://pastebin.com/9xD5bMen . Iam using 18.04. Thanks16:47
muhahahow to restart network service in ubntu 18.04 ?17:17
muhaha sudo systemctl restart systemd-networkd ?17:19
xnoxmuhaha, i think you want to edit /etc/systemd/resolved.conf17:43
xnoxmuhaha, and restart systemd-resolved17:44
xnoxmuhaha, dhclient is not used by default17:44
muhahaxnox: i did echo "Domains=foo.bar" >> /etc/systemd/resolved.conf && systemctl restart systemd-networkd, but it does not work17:45
xnoxmuhaha, can you pastebin all of your /etc/systemd/resolved.conf ?17:46
xnoxmuhaha, output of $ systemd-resolve --status ?17:46
muhahahttps://pastebin.com/vkhf5vsf17:47
xnoxhow do you configure your network? is it netplan based? in that case you may need to / want to adjust /etc/netplan/* files instead of fiddling with the /etc/systemd/resolved.conf.17:47
xnoxor change your dhcp _server_ to send those search domains.17:47
muhahawait a moment17:47
muhahaiam using vagrant, there is by default some cloud init in netplan, but seems that my oneline works... I need to redeploy and retest it17:49
xnoxmuhaha, testing locally, it seems to work for me (the foo.bar stanza)17:50
xnoxmuhaha, yeah, maybe you have some other debug / fix attempts that are in the way.17:50
muhahais resolved reloaded by systemctl restart systemd-networkd ?17:51
xnoxno17:52
xnoxrestart systemd-networkd.... restarts systemd-networkd....17:53
xnoxsystemd-resolved is separate....17:53
xnoxsystemd-resolved does monitor what networkd has acquired via dhcp, but that's about it, in terms of integration between the two.17:53
xnoxone creates and configured networking interfaces; the other configures and queries nameservers17:54
muhahawell. echo "Domains=foo.bar" >> /etc/systemd/resolved.conf && systemctl restart systemd-resolved works. Thanks17:54
ahasenackrbasak: a git question, if I may18:03
ahasenackrbasak: I want to bring in a range of commits from another remote18:03
ahasenackrbasak: to the branch I'm sitting on18:03
ahasenackrbasak: I used "git rebase --onto HEAD c1 c10"18:04
ahasenackrbasak: it worked, I got all commits from that range applied to my local branch18:04
ahasenackrbasak: but it didn't move my branch pointer18:04
ahasenackrbasak: git log now shows, from top to bottom, HEAD, then all the c1 c10 commits, and then my branch18:04
ahasenackrbasak: like so: https://pastebin.ubuntu.com/p/9PhstzTXD6/18:05
ahasenackI was expecting to see "debian-sssd-dep8-tests" alongside "HEAD" at the top, because that's where I was before I issued the rebase18:05
rbasakAFAIK, rebase assumes that "c10" in your example is your branch pointer and that's where it starts from. Since that's not a branch ref, it couldn't move it.18:06
rbasakBut you can use git reset --hard to move any branch pointer you want18:06
rbasakgit checkout debian-sssd-dep8-tests && git reset --hard HEAD@{1} I think18:07
ahasenackyou mean before the rebase, or after?18:07
rbasakAfter18:07
ahasenackthat's some git-fu18:08
ahasenacknacc: remember pmdk/ndctl?18:23
ahasenacknacc: sru into bionic completed18:24
naccahasenack: nice! :)18:24
nacccongratulations18:24
ahasenackso many people worked on that :)18:24
naccahasenack: i remember mostly being in your way :)18:24
ahasenacknah18:25
ahasenackthat was step by step work18:25
ahasenackincrementally getting better18:25
muhahaxnox:ping19:11
xnoxmuhaha, yeah?!19:11
muhahaxnox: I guess that is not possible to update resolv.conf from another resolv.conf in systemd-resolved? I have a binary (checkpoint snx vpn) which edits /etc/resolv.conf, but of course this is not working for systemd-resolved. Its closed source19:12
xnoxmuhaha, systemd-resolved does have resolvconf compatibility interface which knows how to read and consume resolv.conf19:15
xnoxmuhaha, however, it's not yet available or exposed by default.19:16
xnoxmuhaha, you can install resolvconf package, and feed your resolv.conf to it via command-line, and it should end up in the resolved's brain.... but it is a bit fragile.19:16
xnoxin the future there will be an interface to do what you want =/19:17
muhahai have no other choice, becuase SNX binary will always populate resolv.conf for me and I need to use this as /etc/resolv,conf19:17
xnoxmuhaha, rm /etc/resolv.conf (it is a symlink anyway)19:19
xnoxmuhaha, touch /etc/resolv.conf -> such that it becomes regular file19:19
xnoxmuhaha, let SNX binary do whatever it wants with /etc/resolv.conf19:19
xnoxmuhaha, $ sudo apt install libnss-resolve19:19
xnoxmuhaha, that should do mostly what you want.... i.e. if you do $ systemd-resolve --status -> the stuff from static /etc/resolv.conf will be there.19:20
muhahabut this will work only if I do it manually, right ?19:20
xnoxmuhaha, and because of the libnss-resolve module.... things will be queried via systemd-resolved which would also have any other settings from /etc/systemd/resolved.conf and from networkd picked up.19:20
xnoxmuhaha, systemd-resolved reads /etc/resolv.conf --- if and only if, it is not a symlink, back to an systemd-resolved managed file.19:21
xnoxit's a little known detail.19:21
xnoxmuhaha, https://github.com/systemd/systemd/blob/master/src/resolve/resolved-resolv-conf.c#L8919:22
muhahaah, so if I remove /etc/resolv.conf symlink , let SNX populate /etc/resolv.conf -> profit  .. when is VPN off, there will be fallback resolution with libnss-resolve, right ?19:23
xnoxyes19:24
xnoxmuhaha, but it is fragile, as you can tell =)19:24
xnoxmuhaha, cause there are softwares that do not use NSS resolution. and actually try to read /etc/resolv.conf19:24
xnoxmuhaha, maybe you can have a "hook" in your VPN thing, such that in pre-start it like moves /etc/resolv.conf to /etc/resolv.conf.back; and then on stop moves it back, or some such.19:25
xnoxcause in normal cases you want /etc/resolv.conf to be the symlink to systemd-resolved managed file.19:25
blackflowahasenack: oh hey, congrats on uh... coredevship! :)  reading the server dev summary mail.19:26
muhahahmm. Thanks. SNX is very obscure old binary, maybe some wrapper should be a good solution, still I will try to use libnss-resolve... Its for Vagrantbox so there will be no harm I guess19:27
ahasenackblackflow: :)19:30
shubjeroAnyone have any issues adding the ceph luminous repo to Ubuntu 18.04 (bionic)? I've added the repo but apt is never considering packages from that repo, its preferring ones from the default ubuntu repo. I've even pinned the ceph repo to a higher priority.  Here's some apt output: https://hastebin.com/uzumecised.rb19:36
shubjeroAsking in here because of general apt support :)19:37
naccshubjero: apt-cache policy <specific pkg> ?19:38
jellyso your repo does not contain a "ceph-common"19:38
jellynacc: they did.  Scroll down.19:38
xnoxshubjero, which one of those urls supposed to have ceph packages? i have no idea which one is luminous19:38
xnoxnever mind19:38
xnoxi see it now.19:38
naccjelly: ah thanks19:39
naccshubjero: it's what jelly said19:39
xnoxshubjero, that repo only has one package "ceph-deploy" for bionic.19:39
xnoxshubjero, it's quite ceph-less, at least for bionic....19:39
xnoxshubjero, see https://download.ceph.com/debian-luminous/dists/bionic/main/binary-amd64/Packages19:39
shubjerooh yeah, what the heck19:39
shubjerothanks all19:40
shubjerothats odd :S19:40
xnoxshubjero, vs eg. xenial https://download.ceph.com/debian-luminous/dists/xenial/main/binary-amd64/Packages19:40
xnoxwhich has a lot.19:40
xnoxi'd say they did not do bionic packages yet. or distro ones are good enough.19:40
shubjeroyeah, thats right actually.. the stock repo for bionic does contain ceph luminous.. but its a few releases old19:40
shubjeroyou were all a great help, thank you19:41
jellyversion numbers being old doesn't matter if it's in "main", the supported branch19:41
shubjeroWell the main ubuntu repo for ceph luminous is only serving 12.2.4 with 12.2.8 being the latest19:43
sarnoldI think there were kitten-killer bugs in newer ceph releases19:44
sarnoldif you run into problems with what's in the repos, please file bugs19:44
shubjeroyep, i always try to contibute19:44
shubjero*contribute, sorry19:44
shubjero12.2.8 is a pretty good release as far as i can tell. No major problems on the mailing list and such.. nor in our 9PB cluster :)19:45
JenshaeI have had problems with the "universe" repo, commented them all out, re-added them one by one and was definitely that one. The universe updates one was no problem.20:25
muhahaxnox: one more question20:29
xnoxwhich is?20:31
* xnox wonders if you are typing or not20:31
muhaharesolv.conf https://pastebin.com/utvfUskw , why system resolving domain lan? https://pastebin.com/f25tsMUT20:31
muhahaand not gitlab.foo.bar?20:32
muhahalan is appended from my router (dhcp dnsmasq)20:32
muhahabut I just want to prepend foo.bar search domain to be able to resolve gitlab.foo.bar20:32
kinghatis there a simple way to log out of a ssh session to  my server?20:37
muhahamaybe theres is some mismatch between search domain and domain in /etc/systemd/resolv.conf?20:38
Jenshaekinghat: "logout" just type it.20:38
kinghatim dumb. tyvm20:38
sarnoldkinghat: once you get tired of that, hit ^D20:38
Jenshaenp, half of people try logoff20:38
kinghatthanks guys.20:39
=== kevr is now known as GreenCocklin
=== GreenCocklin is now known as kevr
=== kevr is now known as LinusWhorevalds
=== genii is now known as Barista
=== LinusWhorevalds is now known as kevr

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