/srv/irclogs.ubuntu.com/2018/01/26/#ubuntu-server.txt

naccahasenack: total guess, but bin/python/setup.py seems to be missing any statement of its dependnecies00:23
TJ-Had a strange lvm issue here. LV mirror with 2 sides plus log. Made it inactive to "lvextend -L 60G Archive/SourceCode" and then "lvchange -aly Archive/SourceCode" fails with 'device or resource busy. Eventually noticed with "lvs -a -o +devices" the attributes of the mirror sides were marked I (inconsistent) and the mlog no longer had the 'l' flag - compared to other similar mirrored LVs. Then, after00:25
TJ-having used the 'lvs' command, 'lvchange -aly' worked!' I'd already tried to force a resync and that hadn't helped. Any ideas what was going on?00:25
b18c5do i just install squid and im on a proxy server ? or how does that work ?01:05
tomreynb18c5: if you are connected to a server and install squid there then you're on a proxy server since squid is that. but i'm not sure that's what you're trying to do.01:10
b18c5honestly im new on this o/s im used to windows, looking for a sense of security lol01:10
tomreyninstalling squid will not magically provide security. in fact any extra listening service you install increases the attack surface.01:12
tomreynwhat are you trying to achieve?01:12
b18c5blocking my i.p adress01:13
tomreynif you block your ip address from your server then you won't be able to connect to your server anymore.01:13
b18c5sorry, i'm trying to block my i.p adress from other people01:14
tomreynmaybe you want to access the internet (or services on the internet) without disclosing the ip address of your router at home?01:14
sarnoldI'd suggest grabbing a book such as TCP/IP Network Adminstration before going any further01:14
b18c5mainly on irc lol i feel like a target on here01:15
sarnoldif you wish to irc slightly anonymously then your best bet is Tor01:16
tomreynalso read up on "irc bouncer"01:16
b18c5how would tor work ? isn't that for web browsing ?01:16
tomreyntor works for any tcp protocol01:16
tomreynirc is a tcp protocol, as is http(s)01:17
b18c5when i whois myself though my information pops up01:17
TJ-b18c5: if you've a registered nickname on Freenode you can ask in #freenode for a mask01:17
b18c5i did lol01:17
sarnoldnote that a mask is only a 'best effort'; if services is down when you connect it can't help.01:17
b18c5i tried a vpn but that shit was confusing01:18
b18c5besides that issue, how would i do a disc clean up on a linux based system ?01:21
sarnoldsudo dd if=/dev/zero of=/dev/whatever bs=13107201:22
sarnoldthat block size is just 128 kilobytes. there's nothing magical about that number. It's just big and a power of two.01:22
sarnoldsome guy has put together 'dban', 'derik's boot and nuke', iirc, that does something similar for all connected hard drives.01:23
tomreynthe names' "darik", and that's not really ubuntu related, but it's a commonly used option for overwriting hdd's.01:25
TJ-it's easy to do from initrd; just boot with "break=premount" and then use the shell and dd to do parallel dd's on each device01:25
b18c5i think i ended  up deleting and upgrading everything01:26
sarnoldtomreyn: d'oh! thanks :)01:26
tomreynsarnold: and i mixed you up with b18c5, sorry.01:27
mbffHello, I'm running into an issue where my Ubuntu server is not responding to port forwarded requests.02:06
mbffI have disabled ufw. Nginx for example works on the lan and localhost but not from wan02:06
sarnoldwhat error messages do you get onthe clients and the server?02:07
mbffnothing, it just hangs02:07
mbffI see the packets hit with tcpdump, but curl hangs02:07
HateNetPlanHello, I asked this over in #ubuntu and they directed me here. I am trying to convert my /etc/network/interfaces to netplan, and am having trouble getting the routes to work the same. I was hoping someone would be able to help me make a new netplan yaml file based on my old config. Here is a picture of it (with netmask having a typo, woops) https://puu.sh/z9RAL.png06:21
cpaelzergoot morning06:28
cpaelzertaking a look HateNetPlan ...06:28
HateNetPlanGood to hear!06:28
nacccpaelzer: thanks06:28
cpaelzerget to bed nacc!06:29
nacccpaelzer: yeah :)06:29
masonHateNetPlan: FWIW, I don't think ifupdown is going away. Merely deprecated.06:32
masonI plan to cling to it like grim death.06:32
naccmason: +106:32
nacci believe the default on fresh installs may have switched, or might switch, or something06:33
HateNetPlanSomeone will save it, that much I am sure06:33
naccbut upgrades should keep ifupdown going forward06:33
naccand you can always install it manally06:33
HateNetPlanUbuntu 17.10 swapped already06:33
cpaelzeryes06:33
HateNetPlanIt's default netplan06:33
cpaelzerit is no more there by default06:33
cpaelzerifup/down06:33
cpaelzerbut still exists06:33
cpaelzerHateNetPlan: as you already found hooks no more directly exist in netplan (as some of the backends don't have them)06:35
cpaelzersee https://wiki.ubuntu.com/Netplan#Frequently-asked_questions06:35
cpaelzerso for your case the recomended way is to encode the former logic in systemd services afaik06:35
cpaelzerlike https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ and such06:35
cpaelzerit is a bad time of the day - afaik cyphermox works on converting some packages with hooks06:36
cpaelzerI know they work on a how-to describing how to convert several old cases06:36
cpaelzerbut it doesn't exist yet (not that I'd know of)06:36
cpaelzerHateNetPlan: I assume based on your eni-rule you wanted it to push/pop the routing rule every time it does up/down06:37
HateNetPlanYes.06:37
cpaelzerto my lack of good phrasing netplan is meant to provide one simple config so that you don't mind to have to understand networkd and/or networkmanager - so you become independent where you are for the most common cases06:41
cpaelzerI think we can agree that your case is interesting, but maybe not the most common one06:41
cpaelzernetplan doesn't prevent you to use any special backend features06:41
cpaelzerso on a server it would render to systemd-networkd06:41
cpaelzerI wonder if we could express it there somehow06:42
cpaelzerbut https://www.freedesktop.org/software/systemd/man/systemd.network.html is rather lengthy for a fast "ah there it is" :-)06:42
HateNetPlanMaybe I should have started around there haha, spent more time then I care to admit on this06:42
HateNetPlanThanks by the way. Now that it can even connect to the internet I can grab ifupdown as a backup06:48
cpaelzerHateNetPlan: like this maybe as a start https://serverfault.com/questions/667319/systemd-networkd-and-direct-routes06:48
cpaelzerif you want to go on trying to convert it fully06:49
HateNetPlanActually, based on that link06:49
HateNetPlanThat explains how much lxc is connected correctly06:49
HateNetPlanBecause that's how the .network file looks06:50
HateNetPlanOk, well I need sleep. It's 1 am for another day in a row, and I am just happy someone was able to help me06:51
HateNetPlanI'll leave this open just to look back later to be sure06:51
cpaelzergood luck on your way to a nic rename one day :-)06:52
lordievaderGood morning06:58
cpaelzerhi lordievader, great Friday morning to you as well06:58
lordievaderHey cpaelzer How are you doing?07:01
cpaelzergood07:03
cpaelzerafter all - its Friday :-)07:03
lordievaderIndeed07:03
rzo1Any plans on https://bugs.launchpad.net/ubuntu-release-notes/+bug/1531864 in the near feature? I think, people should decide themself, if they want to enable http2 support for there Apache2 from official packages...08:25
ubottuLaunchpad bug 1531864 in Release Notes for Ubuntu "HTTP/2 disabled in Apache httpd" [Undecided,Fix released]08:25
cpaelzerrz_o1: yeah10:26
cpaelzerrz_o1: that is done actually10:26
cpaelzerwell I need to read the details of the bug you linked, but I enabled http2 for apache in 18.0410:27
rz_o1any plans for 16.04 too? :) but i am glad to here that for 18.0410:28
cpaelzerrz_o1: not that I'd know of any 16.04 plans for it10:29
cpaelzerthe security maintenance ack for the http2 lib that is used only covers the version in bionic onwards10:29
cpaelzernginx had it earlier since they use a different implementation which was ack'ed before10:30
cpaelzerby getting nghttp2 not only apache but also curl got http2 now - so you get a test tool against http2 with it as well now10:30
rz_o1ok thansk for the info10:36
cpaelzeryw10:36
jamespagecoreycb: I've done all of those dep updates apart from os-vif - which is being awkward with unit tests under py311:38
jamespageworking that atm11:38
jamespagetobasco: hi expect to get to re-adding the py2 compat patckage for gnocchi next week when we do m311:38
jamespagecoreycb: re pxc-5.7 - I'm fairly happy with my branch now - its in https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/311011:41
ahasenacknacc: indeed (wrt python3-ply), this fixed it: https://pastebin.ubuntu.com/26463772/12:06
coreycbjamespage: great, thanks. I'll take a look at 5.7 and try it out. i see a lot of b3's are out too so i'll plan on starting on those today.12:31
coreycbjamespage: i'm getting started on b3's13:08
ahasenackrbasak: hi, could you please kick an import of sssd into git-ubuntu? 1.16.0-5 showed up in debian unstable13:43
ahasenackg-u still has 1.16.0-313:43
rbasakahasenack: running13:43
ahasenackthx13:43
jamespagecoreycb: bah minor upgrade issue from 5.6->5.7 - that split out of wsrep.cnf is going to break things so will drop it13:51
coreycbjamespage: ok that's fine with me13:51
tobascojamespage: cool, thx for the update, i will make sure to work on the puppet side when its available13:51
rbasakahasenack: should be done13:55
ahasenackrbasak: hm, pkg/debian/sid is still at 1.16.0-3 instead of 1.16.0-5. LP could be lagging behind then?13:56
rbasakahasenack: yes: https://launchpad.net/debian/+source/sssd13:56
ahasenackah, I see13:57
jamespagecoreycb: btw did you confirm that pxc 5.7 is broken with gcc-7 or was that a forward copy from pxc 5.6?14:01
coreycbjamespage: i think i confirmed that but it's been a while so i'm not positive14:02
coreycbjamespage: i feel like it had compile errors with gcc-714:04
=== zhhuabj_ is now known as aabb
xchathi15:40
xchati would like to know how we can custom package on a OS ISO ?15:40
xchatlike that all require package are ready on the OS by defautl15:41
ahasenackrbasak: when you have a moment, could you chime in on my zstd branches that are up for review?16:54
ahasenackrbasak: cpaelzer already did, but you have way more context16:54
ahasenackrbasak: btw, cpaelzer's needs-fixing were addressed (I had forgotten to run update-maintainer)16:54
ahasenackrbasak: and one more thing for your queue, if you could: I'd like to know if having a build-dep on python3-distutils-extra (universe) for landscape-client (main) in bionic is ok: https://bugs.launchpad.net/landscape-client/+bug/174356216:55
ubottuLaunchpad bug 1743562 in Landscape Client "build-dependency on universe package: python3-distutils-extra" [Medium,New]16:55
ahasenackI think it's used just when building the package and no code from it will be used at runtime, and I think that's accepted, but I wanted to be sure16:56
rbasakOK16:59
naccahasenack: yep, makes sense17:03
naccahasenack: seems like an upstream bug then?17:03
nacccpaelzer: we had a separate discussion on this, and mayb ewill backport it to 16.0417:04
nacccpaelzer: but only if we backport nghttp2 as in bionic to it, as well17:04
naccrbasak: around?17:04
rbasaknacc: o/17:06
naccrbasak: HO?17:06
rbasakWe can sync?17:06
rbasakYep. Two minutes17:06
naccrbasak: yeah17:06
naccsure17:06
rbasakStandup HO?17:06
naccrbasak: yep17:06
ahasenacknacc: bind? Yes, I filed it upstream and with debian17:12
naccahasenack: yeah cool17:12
ahasenacknacc: right now, that is our only delta with debian :)17:13
naccahasenack: seems fien :)17:13
ahasenackrbasak: the importer picked up sssd 1.16.0-5 \o/17:21
ahasenack30 minutes ago17:21
ahasenackDSC file for 1.16.0-517:21
ahasenacknice17:21
boxrickIs there any reason that loads of services still exist in /etc/init.d when a real systemd service would be much more suitable?18:12
ahasenacknothing specific, no18:14
ahasenacksome packages even ship both18:14
ahasenacknacc: hmm, old/debian seems wrong in this output, no? https://pastebin.ubuntu.com/26465717/18:18
ahasenackit should have been 1:9.10.3.dfsg.P4-12.618:18
sdezielboxrick: not every packages are shipping systemd units.18:28
ahasenacknacc: ah, it's a difference between the current snap and the code from the MP with the branch ubuntu-package-merge-base18:28
ahasenackthe branch gets it right18:28
ahasenack$ ~/git/projects/usd-importer/bin/git-ubuntu merge start --tag-only pkg/ubuntu/devel -f18:29
ahasenack01/26/2018 16:28:20 - INFO:Created tag old/ubuntu for version 1:9.10.3.dfsg.P4-12.6ubuntu118:29
ahasenack01/26/2018 16:28:20 - INFO:Created tag old/debian for version 1:9.10.3.dfsg.P4-12.618:29
ahasenack01/26/2018 16:28:21 - INFO:Created tag new/debian for version 1:9.11.2.P1-118:29
sdezielboxrick: if you know how to create systemd units, you could propose those to the package maintainer in Debian18:29
ahasenacknacc: but then the lint from that branch gets it wrong again18:31
Epx998is there any known issues upgrading to a 4.4.x kernel on a stock trusty server?  the upgrade is failing and I am getting stuck in initramfs after a restart18:52
ahasenackhave you tried regenerating the initramfs?18:53
ahasenackdid you also look for disk full issues, specially in /boot?18:53
Epx998i ran update-grub, dont think ive ever needed to regenerate that before18:54
ahasenack(if you have that as a separate partition)18:54
Epx998we do, but never had an apt-get install linux-image... error before18:54
geniiI had some weirdnesses lately with this. It tried to do Grub1 things when the machine is actually using GRUB2. Like, it wanted to do changes to menu.lst18:56
Epx998lets see if this works, round 2.19:01
Epx998im scared to reboot lol19:01
Epx998nope failed19:03
Epx998seeing if i can do it at preseed19:07
ahasenackEpx998: did you check the things I mentioned?19:13
ahasenackupdate-grub doesn't regenerate the initramfs file, fwiw19:13
Epx998yeah on a reimage, I ran update initramfs -c -k linux-image-4.4.0-31-generic19:14
Epx998then update-grub again, rebooted19:15
sdezielEpx998: "update-initramfs -uk all" is what I use usually19:15
ahasenackit can't find the root device/fs?19:15
ahasenackyeah, -k all19:15
ahasenackto avoid silly mistakes typing the kernel version19:16
Epx998I saw the all option, I wasnt sure about it19:16
ahasenackbut it could break your older kernel/boot19:16
Epx998i added a d-i option to my preseed to use the kernel i want, its restarting now19:16
ahasenackI'm assuming you are rebooting into that19:16
ahasenackor it's a new install?19:16
sdezielthe -k option wants only 4.4.0-31-generic (aka uname -r)19:16
Epx998new install19:16
ahasenackah19:16
ahasenackthis 4.4.x is an hwe kernel?19:16
Epx998no just out of the repo after a new install19:17
sdezielyou said it was a trusty server so a 4.4 outta be a HWE one19:17
Epx998same result with a preseedf19:17
Epx998funny thing is my installer image is using 4.4 heh19:18
Epx998ill try again manually with the -uk all, if that fails ill hand off with the stock image and let dev deal with it19:19
sdezielEpx998: with 14.04, at some point release the ISO got the HWE kernel added IIRC19:20
Epx998sdeziel: this is a pxe/netboot install19:20
sdezielEpx998: then you must be shipping a 4.4 vmlinuz ;)19:21
sdezielrunning "file vmlinuz" on the pxe box should tell you19:22
Epx998pxe box? you mean tftp server?19:23
sdezielyes19:23
Epx998yeah i remade my netboot images, trusty is using an updated 4.419:24
Epx998i think even my precise images are 4.419:24
Epx998wait no19:24
Epx998but trusty is yeah19:24
sdezielEpx998: I'd try https://askubuntu.com/questions/953430/using-preseed-how-do-i-select-the-hwe-kernel with sed 's/hwe-16.04/lts-xenial/'19:26
Epx998hwe kernel is married to a specific version right?19:28
sdezielEpx998: for Trusty, the HWE kernel you'll get will always be a 4.4 one19:29
sdezielI think that earlier some other older versions were made available but they are now superseeded by the one backported from Xenial19:30
sdezielhttps://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2FSupport.A14.04.x_Ubuntu_Kernel_Support shows it well19:31
Epx998ok reinstalled, about to do the kernel19:32
Epx998so give linux-hwe-generic-trusty a try?19:32
sdezielnot sure such package exist19:33
Epx998that was in my search for anything hwe19:34
sdezielsorry, you are right it does exist19:34
Epx998trying this 1 last time with "update-initramfs -uk all"19:35
sdezielthe HWE wiki page mentions "linux-generic-lts-trusty" though19:35
Epx998yeah I saw that to19:35
Epx998well fiddlesticks19:39
sbeattiethe version in the name is the release version the kernel is based off of. for 14.04, to get the 4.4 kernel, you want linux-image-generic-lts-xenial.19:39
Epx998 sudo apt-get install --install-recommends linux-generic-lts-xenial19:40
Epx998 - this just aborts after I type 'y' heh19:40
Epx998ok reboot with lts-xenial19:42
Epx998i think that one worked19:44
Epx998now to see if the ixgbe driver builds19:44
Epx998ah no need, awesome.  i think this is as close as ill get to what dev wants19:45
akern07How do you set up new users for FTP or SFTP to only have access to a certain folder? (ex: /var/www/html)19:55
dlloydchroot is the safest way19:56
sdezielakern07: openssh has a nice way to do chrooted SFTP, man sshd_config and search for "internal-sftp"20:00
akern07Thanks I'm going to try that out20:00
Epx998ok thanks for the help, i think i got these 2 hosts where they need to be20:07
sdezielgreat20:08
naccahasenack: please file bugs, i'm not context switched in20:47
naccpowersj: is there any equivalent to pytest's parameterize that unittest supports? Or do we nneed to use a framework (either pytest or nosetest) to do it?20:59
powersjnacc: I don't recall there being a direct way21:02
naccpowersj: found it (subTest() context manager)21:02
naccit's new in 3.421:02
powersjah21:02
nacchttps://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests21:02
naccmeans i can drop one import from my newe tests :)21:03
Epx998i have to try for 4.4.0-31 again21:40
naccpowersj: what's the preferred layout for tests? if testing script.py, script_test.py?22:01
powersjnacc: I prefer tests in the same directory as code and name_test.py as you state22:03
naccpowersj: ack22:03
Epx998my workmate tried 4.4.0-31, might be we need extras as well, which ive not seen that req before22:12
Epx998yeah added the extras results in the happy path22:30

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