/srv/irclogs.ubuntu.com/2017/05/10/#ubuntu-server.txt

Aisoni'm running two ubuntu server on two machines. Both systems are NUMA systems00:31
Aisonbut on one system, numactl -H shows only one node00:32
AisonI don't know why....00:32
sarnoldAison: does your system bios allow disabling it?00:35
Aisonuhm, I have to check....    but I already used the motherboard with the OS that recognizing NUMA. And there it worked00:37
Aisonmaybe there was a BIOS reset when I moved the motherboard to the new casing?!?00:37
naccAison: i can try and help you debug if that isn't it, tmrw :)00:51
Aisonnacc, thx, just checking the bios now00:57
=== eZethNesthrown__ is now known as ezethnesthrown
Aisonnacc, on boot, the BIOS posts 4 Nodes01:19
Aisonbut ubuntu don't detect them01:19
sarnoldAison: is there anything informative in dmesg output?01:20
Aisonthat's all: [    0.000000] NUMA: Initialized distance table, cnt=101:23
Aisonmaybe it is some cpu setting in bios that produce that problem01:23
AisonI don't understand all options, eg. IOMMU01:24
ezethnesthrownClient: HexChat 2.12.4 • OS: Microsoft Windows 10 Home Single Language (x64) • CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (2.19GHz) • Memory: 7.8 GiB Total (1.8 GiB Free) • Storage: 483.3 GiB / 807.9 GiB (324.6 GiB Free) • VGA: NVIDIA GeForce GTX 950M, Intel(R) HD Graphics 5500 • Uptime: 4d 14h 6m 10s01:24
sarnoldthat's interesting; my laptop spits out: [    0.000000] No NUMA configuration found01:25
sarnolddifferent from count=1...01:25
Aisonmaybe it is worth updating the bios?01:26
naccAison: bios updates may help (the numa table is in the firmware on the mobo)01:46
naccAison: what type of hardware?01:46
naccAison: also, there *might* be BIOS settings that turn a NUMA system into a UMA system for compatibility reasons01:46
naccAison: there will be some more info than that normally01:48
naccAison: i'm eod, but if you can pastebin your dmesg on boot, i can try and look01:48
naccAison: the non-x86 arches have numa debug in the kernel01:49
Aisonbios update helped01:59
sarnoldwoot? :)01:59
Aisonbut now I get this error with grub:02:00
Aisongrub attempt to read or write outside of disk02:00
Aisonhd002:00
Aisonwhen I select the first kernel02:00
Aisonthe 2nd and 3rd one works02:00
sarnoldeww02:00
Aisonnever ever had such a strange error02:01
=== eehackr is now known as eehackr_
=== eehackr_ is now known as eehackr
LarsErikPcoreycb: thanks for updating me on newton 9.3.x for Xenial!05:50
ezethnesthrownIn smb.conf, where does 'auth methods' sit?06:44
lordievaderGood morning06:46
sarnold       The letter G in parentheses indicates that a parameter is06:47
sarnold       specific to the [global] section.06:47
ezethnesthrownOkay thanks.06:51
ezethnesthrown[[ sudo ldapmodify -x -D 'cn=config' -W -f config_loglevel.ldif ]] > Enter password > Invalid credentials (49)06:52
ezethnesthrown[[ sudo ldapwhoami -x -D cn=admin,dc=testserver,dc=ord -W ]] > Enter password > Password is correct06:52
ezethnesthrownOh wait, it says no such user in the ldap log06:56
ezethnesthrownNevermind, found the solution06:58
sarnoldyay?06:58
ezethnesthrownI'm currently having problem with Samba + LDAP. I can't access to Samba with 'smbclient' after adding user with 'smbldap-useradd' command.07:09
ezethnesthrownlog.openLDAP says > NT_STATUS_ACCESS_DENIED07:10
=== eZethNesthrown is now known as ezethnesthrown
fricklercould someone take a look at https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1632405 and maybe bump priorities? it's sad to see openstack projects moving from xenial to centos because of this https://review.openstack.org/46367708:38
ubottuLaunchpad bug 1632405 in libguestfs (Ubuntu) "virt-customize enters infinite loop: dhclient-script: cannot open /etc/fstab" [Undecided,Confirmed]08:38
aaronrnacc: are you around to help me learn how to create updated packages for Nagios? cpaelzer suggested I pop in here for the bug squashing event10:31
aaronrbug report is https://bugs.launchpad.net/ubuntu/+source/nagios3/+bug/1686768 -- it's patched, I think I just need to get the new packages sorted?10:31
ubottuLaunchpad bug 1686768 in nagios3 (Ubuntu Zesty) "Restricted contacts can see servers that do not belong to them" [Medium,Triaged]10:31
tewardif i need to reach out to landscape support, and all the web methods are dead, how do I go about doing that?12:30
teward(SalesForce SSO error, or "Connection Reset" to the generic "Contact Canonical" page)12:31
=== Poster is now known as Poster`
=== Poster` is now known as Poster
zioprotocoreycb: I guess you are in Boston at the moment13:12
zioprotocoreycb: I rebuild Horizon for stable/newton and I got into this bug again https://bugs.launchpad.net/horizon/+bug/164396413:12
ubottuLaunchpad bug 1643964 in horizon (Ubuntu) "compressing static assets fails with xstatic-bootswatch 3.3.7.0" [Undecided,Fix released]13:12
Bert_2Hi, I run a very typical PAM+LDAP setup with posixAccount and shadowAccount, we use shadowExpire to expire accounts that haven't renewed (yet), now I can't seem to find how I can check through CLI whether an account has expired without using ldap_search. I presume there should be some regular or PAM command to do this. Can anyone help me out?13:12
=== dasjoe_ is now known as dasjoe
coreycbzioproto: yes i'm at the summit so hard to dig into much but i think that may occur on newton if you generate new xstatic files13:52
zioprotohow could I reset ?13:53
zioprotoI tried deleting completely /usr/lib/python2.7/dist-packages/horizon/13:53
zioprotoand I deleted also /usr/share/openstack-dashboard/13:53
zioprotobut I am never able to reinstall Horzin13:53
zioprotothis is the staging system, dont panic :)13:53
CarlenWhiteTeasing the idea if I can set up rotating tar backups and use archivemount (in read only) to keep files presented to the user.13:59
CarlenWhiteIncremental rotating backups, sorry.14:01
CarlenWhiteSince tar has it built in from what I'm aware.14:02
CarlenWhiteAnd I think I can use tarcat on archive.0.gz.tar and archive.1.gz.tar to archive.0.gz.tar, then rename archive.n.gz.tar to shift them back a number before creating archive.x.gz.tar.14:03
CarlenWhiteBut how successful and stable that will be is up to debate.14:04
ezethnesthrownIs the 'man slapd.conf' is a little out of date? The example at the bottom of the page looks different to my non-existent slapd.conf14:07
ahasenackezethnesthrown: A config file called slapd.conf can still be used, that's why the manpage is still there. Doesn't mean it's the default configuration mechanism14:14
ahasenack(it's not)14:14
ezethnesthrownOh, sorry about that.14:14
ezethnesthrownThank you14:15
CarlenWhiteProbably not wise of me to use tarcat on a file that I'll be overwriting with new information?14:15
ezethnesthrownHow do I connect to a Samba server with an smbclient using an LDAP user made by smbldap-useradd command?14:18
ahasenackezethnesthrown: a good test is smbclient. Use smbclient -L <server> -U <username>14:20
ahasenackthat will prompt for the password, and list all the shares of <server>14:20
ezethnesthrownI have added an LDAP group to 'valid users' in smb.conf but I still can't login with a user inside that specific group.14:32
naccaaronr: sure! give me a bit (sorry didn't see it in my backlog until just now)16:15
naccaaronr: i'm around now, will be out for lunch, but around otherwise17:02
=== ejat_ is now known as ejat
rbasaksmoser: I uploaded the latest uvtool to artful yesterday. It includes the new ssh public key stuff so --insecure is no longer needed. That feature had been siting in the daily builds for a long time.17:11
jrtappersI'm trying to setup landscape with the free 10 server license, but I seem to have got stuck17:12
jrtappersFrom what I can see of the source it is trying to use an SSH public key as a SSL CA, which seems wrong17:12
naccdpb1: --^ maybe you can help direct?17:13
jrtappersThe file is /usr/lib/python2.7/dist-packages/landscape/broker/transport.py, and the SSH key reference is in __init__, the SSL usage is in _curl17:14
jrtappersBut it does work on my laptop, so it might be a red herring17:17
dpb1jrtappers: you probably want to back up a bit and state what problem you are hitting17:17
jrtappersI am trying to get servers linked to an on-prem instance of landscape17:17
aaronrnacc: great, thank you! so it was suggested i check in for the bug squashing event and learn how to build the updated packages myself. where should I start with that?17:19
jrtappersI managed to enroll an ubuntu desktop client, but neither the server that runs landscape nor a secondary server can connect17:19
jrtappersThe log contains this > http://paste.ubuntu.com/24549951/17:20
dpb1ok, how did you get your desktop to work?  is your key signed by a trusted CA, or is it self-signed17:21
naccaaronr:  np! let me take a look at the bug17:21
jrtappersTrusted CA (LetsEncrypt)17:22
jrtappersUsing curl against the URL from the stack trace works17:22
naccaaronr: there are a couple of different approaches17:23
dpb1jrtappers: the systems are xenial?17:23
naccaaronr: we have a git-based workflow for which i'm importing nagios3 rightnow but that will take a while to finish17:23
naccaaronr: we can start on the SRUs without it17:23
naccaaronr: so what i'd do first, is `pull-lp-source nagios3 xenial` in a place you want to download the source packge to17:24
jrtappersdpb1, Yeah17:24
naccaaronr: (you might need to install ubuntu-dev-tools)17:24
naccaaronr: that will result in a directory like nagios3-<version> wherever you ran the command17:25
aaronrokay sounds good, doing that now17:25
naccaaronr: (and we'll do similar for each release out there)17:25
naccaaronr: but the process will be repetitive17:26
aaronrokay that makes sense17:26
naccaaronr: once you have the source package pulled down, you're going to cd to that directory17:27
dpb1jrtappers: my first instinct is that's it's something to do with the CN.  Can you check that the certificate subject CN matches the hostname.  Check landscape.canonical.com for cross reference.17:27
naccaaronr: you're going to make whatever changes you need to the srcpkg17:27
naccaaronr: then run `dpkg-source --commit`, which will generate a quilt patch and open EDITOR on it17:28
naccaaronr: in that file, there will be a header that explains what to do to the patch, but basically, you want to follow the DEP3 specification (http://dep.debian.net/deps/dep3/)17:28
naccaaronr: which gives a well-formatted information about the patch (if it's a backport from upstream, e.g., where the upstream commit is)17:28
naccaaronr: and who wrote it, etc.17:29
naccaaronr: once you're satisfied with the patch, you'll save & quit as appropritae for your editor17:29
dpb1jrtappers: I used this for checking: openssl s_client -connect landscape.canonical.com:443 2>/dev/null < /dev/null17:29
naccaaronr: then you'll use `dep3changelog debian/patches/<patchfilename>` (from devscripts)17:29
naccaaronr: (dpkg-source --commit will prompt you to name the patch file)17:30
naccaaronr: dep3changelog will insert a changelog entry appropriately17:30
naccaaronr: once it finishes, run `dch --edit`17:30
smoserrbasak, horay!17:30
ahasenackezethnesthrown: did you prepend the group name with @ or +?, and is "valid users" in a share context in smb.conf?17:30
jrtappersdpb1, It returns OK on both servers17:30
naccaaronr: verify the changelog entry looks ok, then, update the release from UNRELEASED to xenial (in this case)17:30
ezethnesthrownahasenack, with a +17:31
ahasenackezethnesthrown: check if "getent group <name>" returns the list of users you expect, on the samba server17:31
naccaaronr: dep3changelog should have incremented the version correctly too, but we'll check it before you provide the debdiff17:31
ahasenack<name> without the +17:32
dpb1jrtappers: and the CN...17:32
aaronrokay, i'll run through that lot now. thanks so much!17:32
naccaaronr: in any case, once the changelog is done, you'll run `dpkg-buildpackage -S -nc -d -uc -us` (which builds a new source package, without running clean, ignoring build-depends, and not signing the result)17:32
dpb1jrtappers: it matches what you are trying to contact?17:32
naccaaronr: that will generate a .dsc file in ..17:32
jrtappersdpb1, It's an exact match17:32
ezethnesthrownahasenack, it doesn't17:32
ezethnesthrownI'm pretty sure I added the user to the group17:33
naccaaronr: and then pastebin `debdiff <old dsc> <new dsc>` and we can review it :)17:33
naccaaronr: identical process (s/xenial/yakkety/ or s/xenial/zesty/) throughout for the other SRUs17:33
DK2hmm17:34
DK2ive had to put the harddrives of a ubuntu system to another server17:34
dpb1jrtappers: ignore the landscape server itself, focus on the other server.  time is correct there?17:34
DK2now i need to know the mac adress of the last server17:34
DK2is there anyway to find out old mac-adress saved somewhere in the ubuntu system?17:34
jrtappersdpb1, Yep17:35
DK2or any other way, to identify the origin server ?17:35
naccDK2: um, mac address is on the physical device17:36
naccDK2: i mean, it depends on if you hardcoded it into /e/n/i, which would be uncommon17:36
naccDK2: otherwise the mac is not stored in state17:36
ahasenackezethnesthrown: then you may not have nss_ldap configured properly, or the new guy, sssd17:38
dpb1jrtappers: then I'm not sure.  I would say file a bug on lp:landscape-client17:38
dpb1so17:38
ahasenackezethnesthrown: I'm slowly updating the ubuntu guide about ldap, samba and kerberos, I think I'll get to samba by the end of the week17:38
dpb1something you can do to workaround17:38
DK2nacc: im just curious if there is anyway to identify the origin server of the old system the hdd used to be17:38
DK2such as mac adress or smth like that17:38
naccDK2: i guess you could try looking in the logs -- but generally, i don't think so17:39
DK2all i could think of was the netrules if it hadnt be deleted17:39
dpb1jrtappers: openssl s_client -connect landscape.canonical.com:443 > /etc/landscape/server.crt 2>/dev/null < /dev/null17:39
DK2which obviously was deleted17:39
ezethnesthrownahasenack, Any way for me to fix that or something? Can I add a user to a group?17:40
dpb1jrtappers: then use the 'ssl_public_key = /etc/landscape/server.crt' config value in /etc/landscape/client.conf17:40
aaronrnacc: thanks! crunching away at that now, will let you know how I get on17:40
naccaaronr: sure, i'll be headed to lunch in a bit, but i'll be back soon17:40
dpb1jrtappers: this is what you would have to do if it was self-signed17:41
aaronrnacc: No problem. I'll tackle Xenial only for now and if that goes well I'll replicate what I've done for the others17:41
dpb1jrtappers: if that fails, it's also good data for the bug report.17:41
dpb1jrtappers, ahasenack informs me that the ssl_public_key workaround I gave you wont work on a real cert.17:53
jrtappersdpb1, Ah, ok17:54
dpb1if he has other ideas, I'd love to hear them.17:54
dpb1but, I think a bug report at a minimum is a good start17:54
ahasenackwhat is the error?17:54
jrtappersdpb1, I have added all the parameters to the deepest method, so I can include the parameters that were used17:54
dpb1http://paste.ubuntu.com/24549951/17:54
jrtappers*To the exception thrown17:54
dpb1jrtappers: thx, that would be great data for the bug report.  even if it's not a pure bug in the code, at least that will get the right people looking at it17:55
ahasenackjrtappers: was that server cert generated in-house? Or purchased from a non-custom CA?17:55
jrtappersahasenack, non-custom (LetsEncrypt)17:55
ahasenackjrtappers: are wget and curl happy with contacting https://<yourserver>?17:56
dpb1ahasenack: and it works on a desktop machine he has17:56
jrtappersYeah17:56
ahasenackspecifically curl, since landscape-client uses libcurl17:56
dpb1but not on another server machine17:56
ahasenackjrtappers: so curl https://server/ works without ssl errors on that same machine where landscape-client fails?17:56
jrtappersahasenack, Exactly17:57
ahasenackjrtappers: try that curl as the landscape user, something like sudo -u landscape -H curl https://server/17:57
ahasenackthe landscape user has no shell by default, so "sudo -u landscape -i" and then curl won't work17:57
jrtappersI have some more data now, 1 moment17:57
jrtappersahasenack, That worked17:57
ahasenacksudo -u landscape -H curl?17:58
ahasenackezethnesthrown: can you show an ldif representation of your ldap group?17:58
jrtappersahasenack, That worked too18:00
ahasenackjrtappers: try curl with --cacert /etc/ssl/certs/ca-certificates.crt18:02
jrtappersahasenack, Successful18:02
ahasenackjrtappers: try starting the client interactively to see if it spits out more details about the error: sudo landscape-client18:03
ahasenackit will not fork into the background in that case18:04
ahasenackit will take a few seconds to try to contact the server, just hang on18:04
jrtappersahasenack, Method params for fetch -> http://paste.ubuntu.com/24550120/18:04
ahasenackcainfo -> '/root/key.pem' <-- what's that?18:04
ahasenackdo you have a client.conf somewhere in $PWD perhaps?18:04
ezethnesthrownahasenack, http://paste.ubuntu.com/24550123/18:05
jrtappersahasenack, I used that folder for /etc/landscape/server.crt18:05
jrtappersI'll try making it 77718:05
ahasenackdo you have ssl_public_key pointing at /root/key.pem in /etc/landscape/client.conf?18:06
jrtappersYeah18:06
ahasenackdop that18:06
ahasenackdrop18:06
ahasenackI mean, remove ssl_public_key from client.conf18:06
ahasenackcurl worked with /etc/ssl/certs/ca-certificates.crt explicitly, which is the default cafile, so let's let landscape try that too (the default)18:07
ahasenackand yeah, landscape wouldn't be able to read /root/key.pem18:07
ahasenackezethnesthrown: that seems ok, are you using nss_ldap or sssd?18:08
ezethnesthrownahasenack, How do I check that?18:08
jrtappersIt seems to be working now, thanks18:09
jrtappersNo idea why it didn't work before I added that to try to fix it though18:09
ahasenackdo you have either packages installed? dpkg -l|grep -E "(libnss-ldap|sssd)"18:09
jrtappersI think I re-installed ca-certificates18:09
ahasenackjrtappers: what did you try now, landscape-config?18:10
ahasenackto register?18:10
jrtappersYeah18:10
ahasenackdid it become a pending computer in the UI?18:10
ahasenack(or even automatically registered, if you are using registration_key)18:10
=== Tzunamii_ is now known as Tzunamii
ahasenackezethnesthrown: do you have either packages installed? dpkg -l|grep -E "(libnss-ldap|sssd)"18:11
ezethnesthrownahasenack, neither18:13
jrtappersahasenack, It added successfully, but adding the server that hosts landscape to landscape crashed the whole system18:14
jrtappersIs there a way to manage that server from the same UI?18:14
ahasenackjrtappers: sure, and it's common. What do you mean by "crashed"?18:15
jrtappersSent the load on the box to maximum and stopped the web UI working18:15
jrtappersI get a message saying Sorry for the inconvenience. Please contact your system administrator for more information.18:16
jrtappersOk, did it again, the load stayed OK, but the UI was taken offline again18:17
ahasenackezethnesthrown: that wil need some work, I won't have ready answers for you now18:18
ahasenackjrtappers: how much ram do you have in that box?18:18
ahasenackjrtappers: if the UI is "offline", that means the appserver process isn't running, or not reachable18:19
ahasenackyou can check /var/log/landscape-server/appserver.log18:20
ahasenackand/or dmesg if you suspect the OOM killer is being triggeed18:20
jrtappersI think it could be a memory issue18:25
aaronrnacc: I think I've done that right for Xenial now. debdiff at http://pastebin.ubuntu.com/24550198/18:25
jrtappersI thought a VM with 1/2 GB per managed host should be ok?18:25
Bert_2Hi, I run a very typical PAM+LDAP setup with posixAccount and shadowAccount, we use shadowExpire to expire accounts that haven't renewed (yet), now I can't seem to find how I can check through CLI whether an account has expired without using ldap_search. I presume there should be some regular or PAM command to do this. Can anyone help me out?18:35
ahasenackjrtappers: hm, you mean half a gigabyte of RAM? or do you mean "1 or 2"?18:37
jrtappersHalf per managed server, (1.5 total). Is this too low?18:38
ahasenackjrtappers: anyway, I would suggest 4Gb to start with landscape server. I assume you are using quickstart? i.e., all-in-one? Database, rabbit, landscape itself, etc?18:38
jrtappersAh oh18:39
jrtappersYeah18:39
ahasenackfor the clients, that depends what you run on them of course18:39
ahasenackbut the server needs more. Of course that also depends how many clients you have talking to it, i.e., how many registered computers18:39
sarnoldjrtappers: see also https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/168588518:42
ubottuLaunchpad bug 1685885 in landscape-client (Ubuntu) "Extreme RAM and SWAP usage" [High,New]18:42
ezethnesthrownahasenack, Anyhting that could guide me to make it work?18:46
ahasenackezethnesthrown: the users and groups need to show up in the output of "getent passwd" and "getent group", respectively18:54
ahasenackezethnesthrown: if they are only in ldap, then you need nss_ldap, or a more recent tech like sssd18:55
ezethnesthrownahasenack, Should I use nss_ldap or sssd?18:56
ahasenacklibnss-ldap has been dropped from main in favor of sssd18:56
ahasenackand https://bugs.launchpad.net/serverguide/+bug/1479495 is about recommending sssd instead of nssldap18:56
ubottuLaunchpad bug 1479495 in Ubuntu Server Guide "Only recommend sssd for 16.04" [Wishlist,New]18:56
ahasenackso sssd is the way forward, but I have no experience with it yet18:56
ahasenackand my experience with nssldap is that it can be quite buggy and may be unmaintained nowadays18:57
ezethnesthrownahasenack, Thank you. I'll try using sssd then. Anything that I need to know of to get started?18:58
ahasenackezethnesthrown: just that your end goal is for the ldap users and group to appear in the output of those getent commands18:58
ahasenackor maybe "getent passwd <user>" and "getent passwd <group>" explicitly (instead of listing all of them)18:58
ezethnesthrownahasenack, What kind of results or output should I be expecting? Right now I'm not getting anything.19:00
ahasenackezethnesthrown: the same type you get for a local user19:00
ahasenackezethnesthrown: which is essentially a single line, just like what is in /etc/passwd for the user (and /etc/group in the group case)19:01
ezethnesthrownahasenack, Thank you very much for your time. I'll be moving on then.19:01
ahasenackgood luck19:01
ezethnesthrownAny problems arise, I'll find myself here19:01
ahasenackyep19:02
speaker1234I'm trying to install 16.04 server with raid. It keeps failing when installing grub.  I've googled a bit and have found a few references to the problem but no solutions19:12
=== oerheks_ is now known as oerheks
drabspeaker1234: what error do you get? I do that routinely and found no problems with it19:33
drabboth on raid1, 6 and 1019:33
drabs/both//19:34
speaker1234warning is something about grub not being to be installed on /dev/sda19:35
sarnoldfind exact error messages; you can search for those in source code19:36
drabmmmh, so it doesn't ask you whree to install it? is this a manual install or preseed?19:36
speaker1234manual install19:37
speaker1234I tried hte default partitioning then changing hte swap and / partitions to swap.  when I tried to do the same with the second disk, the install hung.19:39
drabhow come that a tcpdump on tun0 shows no traffic but the traffic is going through?19:41
drabtrying to debug a vpn19:41
drabin a container if that makes a diff19:41
drabI don't see traffic from the vpn client neither on eth0 nor on tun019:41
drabbut I see the traffic on the destination host19:42
drabspeaker1234: so you're doing manual partitioning?19:42
drabor you tried that after default failed?19:42
drabwhat happens if you let it just "use the whole volume"19:42
drabin automatic19:42
speaker1234drab, it does not let me raid.  I'll try it now19:43
speaker1234s/it/it again/19:44
speaker1234drab is tun0 a bridge?19:44
drabno it's a tun/tap interface created by openvpn19:47
drabit's strange because even then on eth0 I should see traffic since the traffic does reach destination and that's the physical interface19:48
drabI think this is something else, I think I'm just not allowed to do tcpdump inside a container19:48
speaker1234drab, I have experienced sometimes tcpdumping an openvpn connection does not always work19:51
speaker1234context being a linux based firewall (ipcop/ipfire)19:52
ahasenackdrab: are you using tcpdump inside a lxd container?19:53
drabthis is definitely the container, I just can't tcpdump inside it19:53
drabahasenack: yeah19:53
drabwas trying to19:53
ahasenackdrab: there is a bug19:53
ahasenackdrab: tcpdump can't write to stdout/stderr19:53
ahasenackdrab: workaround: use -s 0 -w traffic.pcap19:54
drabah, I see19:54
drabthanks19:54
ahasenacklet it capture, and read it elsewhere19:54
ahasenackdrab: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/166701619:54
ubottuLaunchpad bug 1667016 in apparmor (Ubuntu) "tcpdump in lxd container: apparmor blocks writing to stdout/stderr" [Undecided,Confirmed]19:54
ahasenackit can capture the traffic, just not print to the console :)19:55
ahasenackI was also hit by that the other day, very annoying19:56
drabso glad you were here and saw this :)19:56
drabthanks19:56
ahasenackwelcome :)19:57
speaker1234ahasenack, great clue :-) I would have also beat my head against that problem for *hours*19:57
ahasenackone would think that lxd/apparmor would have trouble letting tcpdump capture the traffic, not printing to stdout/stderr :)19:58
speaker1234drab, guided part worked fine.  I just can't get a raid install to work grrr.19:58
drabspeaker1234: mmmmh, so it worked through the partitions, installed everything adn got to the last step and threw an error?19:58
drabwhat's in Alt-f4 log terminal?19:58
drabany clue what it's failing on?19:58
speaker1234no. the guided install worked fine.19:59
draboh, you mean the whole thing, including writing grub19:59
speaker1234yes19:59
draboh, eeeer, but you want a diff partition layout?19:59
speaker1234diff partition in that it uses raid20:00
ahasenackspeaker1234: is this the text mode installer?20:00
draboh so when you say auto part you don't mean auto on a raid20:00
speaker1234ahasenack, yes.  16.04.2 server20:00
drabI guess there's no such thing, I'm just so used to preseed it's all "auto"...20:01
drabspeaker1234: can you specify the steps you take? I think I had to do it once or twice recently and it worked, altho I was on 16.4.1, but I doubt that makes a diff20:01
speaker1234drab, ok here is what I do as far as I can recall20:02
drabyou said something about the installer freezing as well, when does that happen exactly? and you can't get any terminal at that point?20:02
speaker1234drab, the freezing symptom first..  I selected manual partitioning,  new partition table, and then  automatic partitioning of the first drive20:04
speaker1234I did the same thing on the second drive  except when I selected  automatic partitioning,  the system "froze"  and the screen displayed  the usual blue background  without any  text UI  information20:04
naccaaronr: back from lunch, reviewing it20:05
speaker1234what I do when trying to make the install work  with raid at the very beginning,20:05
drabspeaker1234: ok, did you try manual on the first one and second one?20:05
speaker1234I go to the normal install process,  choose manual partitioning20:05
speaker1234manually  create  swap, root, and home partitions20:05
speaker1234label each one first as a  raid partition20:05
naccaaronr: it looks good overall -- few nits20:06
naccaaronr: the patch Author should be the upstream author20:06
speaker1234then go and build  the raid MD devices20:06
drabspeaker1234: that all sounds good20:06
speaker1234after I have MD devices, I format them with EXT4 or swap as appropriate20:06
draband mark them to be used as root etc?20:07
speaker1234then I finish the partitioning step and let the rest of the install continue20:07
draband bootable flag20:07
speaker1234oh yes, I do assignment the appropriate mount points20:07
drabok20:07
speaker1234but I'm not able to set the boot flag20:07
* drab scratches head20:07
drabthat all seems correct20:07
speaker1234I've seen bug reports for this back with vversion 11 and occasionally version 920:07
drabI'm not sure the boot flag is even there, I seem to remember I had to do it, but not 100% sure20:07
naccaaronr: i would also not use the #diff suffix for the github URL, even if only backporting that bit20:08
ahasenackspeaker1234: wait, you create the swap, root and home partitions and label them as raid? Then you create the MD device?20:08
drabI think he just meant he partitions the disks so he gets sda1/b1 etc for swap/root to make up the raid and then makes the raid swap etc20:09
drabbut good point, maybe that's not what he meant and I just read into it20:09
speaker1234ahasenack, no, I create the partitions that will be used as swap, root and home. Then I label them as raid partitions create the MD device, format the MD devices as appropriate, and assigned to the appropriate mount points20:09
ahasenackok20:09
ahasenackso in the end you have something like /dev/md2 for /home, etc20:09
speaker1234ahasenack, md126 but yea20:10
drabspeaker1234: what happens if you try something simpler, create only root and swap, in that order? or even just /20:10
drabare the disks of the same size?20:10
speaker1234what puzzles me the most is I'm not allowed to set the boot flag and when I do an automatic partitioning, it gives me some sort of a boot dedicated partition eff??20:10
draband partitions of same size20:10
draboooh, are you booting in efi mode?20:11
speaker1234discs are the same size, same vendor, within a month of manufacture of each other20:11
drabbooting/installing in efi mode?20:11
speaker1234I thought I was selecting the not efi mode20:11
drabwell, what's the bios saying?20:11
drabonce the installer starts, if it booted in efi there's no selecting anymore afaik20:11
speaker1234let me check20:11
drabboth the bios mode and the boot mode must be correct20:12
drablike you could have bios mode, but then hit f9 or whatever to choose media nd pick an EFI boot mode20:13
drabor the other way around20:13
speaker1234UEFI and legacy20:13
drabcan you force to legacy to test?20:13
draband make sure that when you press f9 or whatever to choose boot media you don't pick from the EFI subtree20:13
drab(at least that's how I've normally seen them presented, two sort of trees, oen for efi one for legacy)20:14
speaker1234 interesting.  when I switched to Legacy boot mode,  the  USB flash boot image is no longer visible.20:17
drablol,it works \o/20:17
drab(I'm connected over vpn to a container inside a desktop that gets me into a byobu session with irc open)20:19
drabjust getting ready for a little trip to censored-internet-land :)20:19
speaker1234.cn?20:20
speaker1234or .us20:20
speaker1234USA, the newest 3ed world country on the planet20:21
speaker1234(and I live there...)20:21
drabbybou/tmux are pretty impressive, it even reorients as I put the phone landscape20:22
drabit's pretty funny to see20:22
speaker1234I'm out of time for the day.  Thank for the help, I have something to try tomorrow morning20:22
drabor even when I minimize the phone keyboard it enlarges the console windows20:22
drabspeaker1234: yeah, give legacy only a go20:22
drabit sounds to me like you're definitely booting in efi20:23
draband you have not created an efi partition20:23
drabwhich would be mandatory if you were indeed botting efi and doing things manually20:23
speaker1234effing partition you mean...20:23
speaker1234;-)20:23
drabit's the future!20:23
drabor so they say20:23
speaker1234future arrives too soon and in the wrong order20:24
speaker1234thanks and goodnight!!20:24
drabnn20:24
jgehey all, is it possible to have UFW (iptables) be active only for a certain interface? I have two interfaces one facing a public network the other private network, I would like to firewall only one.20:25
bindiwhy dont you use iptables-persistent instead of ufw?20:27
naccjge: i believe it's in `man ufw` that you can specify the interface20:28
jgebindi: iptables-persistent as far as I know makes your rules persistent, UFW is just a bunch of wrapper scripts to make administration of iptables easier20:29
DK2what do you guys think about a software raid5 with 4x 6 TB drives?20:29
DK2rather awful ?20:29
drabjge: iirc you specify the interface in the rule20:30
drabjge: ie ufw allow in on iface to ....20:30
naccdrab: `man ufw` agrees with you20:30
jgedrab and nacc, I was reading that earlier but UFW has you set up default policies before you start using it.. would those default policies apply to all interfaces?20:31
drabDK2: awful from which perspective?20:32
DK2i suppose it will break when recovery is needed20:32
drabnow that the write hole is fixed I think it's relatively ok, but if you are needing better performances than a single disk kind of thing, then yeah, awful20:32
drabso depends on criteria20:32
dpb1DK2: I usually shoot for raid10 if I have 4 disks, but really, it depends on the application.20:32
drabDK2: why?20:32
drabjge: yes20:33
drabit's amazing how nasty the hacks can get when you're short on time...20:33
draboverlapping subnets ftl but openvpn working without firewalling and natting ftw20:34
DK2drab: because of the high load on the drives when syncing the failed disk20:35
DK2it can take a long time with 6 TB and this will likely make another fail20:36
jgedrab: how would that work then if you have multiple interfaces and you only want to enable firewall on one? that default policy is effectively turning on the firewall for all no?20:36
DK2but i need to get atleast ~16TB of storage20:36
jgeunless there's an option to set default policy for a given interface20:36
* jge reads man page20:37
drabDK2: it depends on MTBF and hrs on the disks but fair enough. that said it is what it is, if there's no budget for more disks etc then that's the best you can do and that's it20:38
drabI don't think it's evil in any way, maybe not optimal in absolute, but nothing is, it's all about best based on conditions20:39
DK2i guess so20:39
keithzgahasenack: Belated reply from yesterday, yeah, smbstatus gave me enough info to eventually puzzle it out, although it didn't give me actual bandwidth per IP and nethogs just gives teh PID of smbd so I couldn't correlate the two, but looking at smbstatus in the end there was only one likely culprit, heh.20:51
ahasenackkeithzg: cool20:53
qman__keithzg: you can use lsof to bridge that gap - smbstatus gives you file names, nethogs gives you pids, lsof maps pids to open files21:24
bnoeafkUSAIs there anyone here who can provide some insight into the FIPS certification that Ubuntu 16 has obtained - or can lead me into a network/channel where I can find out more?21:28
aaronrnacc: sounds good, making those adjustments now. when adjusting the github url am I okay to truncate the SHA to the first 8 chars or so to shorten it even more?21:39
naccaaronr: probably fine, as long as the URL resolves21:40
aaronrnacc: patch author -- should this be the github committer or the person they attributed the patch to? (I don't have an email address for the latter)21:40
naccaaronr: let me look again21:40
aaronrhttps://github.com/NagiosEnterprises/nagioscore/commit/d1b3a07f if you need a fresh link21:41
naccaaronr: a lot of times, you can get an actual address from teh git repository (just not on github, that is clone it locally first and you'll see the correct authorship incl. email address)21:41
aaronrI can get the committer's email address, but the patch looks like it came in from someone else21:42
naccaaronr: for this one, i'm not sure -- i think it's ok to refer to the commiter21:42
aaronrokay21:42
keithzgqman__: Hmm, but nethogs only gives a single entry for Samba server traffic, as smbd, unless I'm missing some option somewhere21:44
aaronrnecc: oh, one other thing I kind of guessed at earlier -- many of the non-CVE patches were numbered eg 99_some_description.patch ... is that a standard convention? And should I always use 99 to ensure my changes are applied after most others?21:46
naccaaronr: your patch is applied based upon where it is in the series file21:46
aaronrah right okay21:46
aaronrso should i remove the 99_ prefix?21:47
aaronr(also as this is security-ish issue but doesn't have a CVE should i have targeted this at xenial or xenial-security?)21:48
sarnoldbnoeafkUSA: we're just moving on this.. it may take another day or so to get some information prepared21:48
naccaaronr: you should always target xenial, the security team owns publishing to -security21:49
naccaaronr: you don't need the 99_ prefix, unless there is a file indicating what the prefix mens21:50
nacc*means21:50
naccsome srcpkgs have that21:50
aaronrgotcha okay21:52
aaronrnacc: here's an updated debdiff with all those changes: http://pastebin.ubuntu.com/24551178/21:53
naccaaronr: looks great, althogh d/changelog now doesn't have a release targeted (change UNRELEASED to xenial)21:55
aaronroh whoops, thanks for catching that21:55
naccaaronr: i didn't say this before, because i forgot, but `dch` takes the release as an argument (-r)21:56
aaronrah nice, i'll add that to my notes, thanks!21:58
aaronrhttp://paste.ubuntu.com/24551196/ has that release fixed21:58
naccaaronr: looks great, so save that to a file (typcially ending in .patch or .debdiff) and attach it to the bug and subscribe ~ubuntu-sponsors to the bug)21:59
naccaaronr: you can do the last part after doing the same fix for Y and Z first22:00
nacc(and attacching them)22:00
aaronrokay sounds good. so i'll get them all attached. Just still-supported releases, right? (This issue exists as far back as trusty)22:19
naccaaronr: right, so t, x, y, z (unfortunately). y is maybe less pressing, since it's going eol22:30
naccsoonish22:30

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