/srv/irclogs.ubuntu.com/2019/07/29/#ubuntu-server.txt

mahdi_jahi all04:40
mahdi_jai want create a sftp server with ubuntu 18.0404:40
mahdi_jai have a second hard and i want user save file in this hard not /home/username directory04:41
mahdi_jahow i can do this ?04:41
lordievaderGood morning06:11
=== cpaelzer__ is now known as cpaelzer
fricklerjamespage: coreycb: we are seeing a regression of https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1790598 on neutron 2:12.0.6-0ubuntu2 on xenial08:16
ubottuLaunchpad bug 1790598 in neutron (Ubuntu Xenial) "metadata service calls to nova-api-metadata with IP based SAN's fails" [Low,Triaged]08:16
fricklerthe reason seems to be that  https://review.opendev.org/599541 was removed from debian/patches, but it got merge upstream only into 12.1.0, not in 12.0.6. also doesn't seem to affect bionic due to newer python libs probably08:17
=== Wryhder is now known as Lucas_Gray
jamespagefrickler: indeed it was - sahid ^^12:02
jamespagesahid: metadata-use-requests-for-comms-with-nova-api.patch was not included in the upstream release for 12.0.612:03
jamespageso we'll need to re-instate that patch OR superceed quickly with 12.1.012:03
jamespagecoreycb: fyi ^^12:04
sahidjamespage: i'm rebasing stable/queens to 12.1.0 right now12:16
rafaeldtinocogood morning o/12:23
lordievader👋12:26
mettiuhi everyone, i'm looking for a "guideline" for building a custom webserver (nginx + php). my doubts are about how to best configure service users, using or not www-data, how to best configure folders, log path, etc... for separating different website. i'm in a protected environment (not commercial hosting) so my users are mainly developers of the c12:50
mettiuompany, so a classic shared webserver for different application :)  any help apreciated12:50
kashyapHi, folks.13:12
lordievaderI like the containerized + haproxy setup for websites. Each website has its own container,  haproxy figures out what traffic to send where.13:12
kashyapWho can help make this small change to the edk2 package: https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/183685913:12
ubottuLaunchpad bug 1836859 in edk2 (Ubuntu) "RFE: Ship the firmware "descriptor files" as part of the 'ovmf' package" [Undecided,New]13:12
kashyapThe current maintainer seems to be away on PTO.13:12
kashyapAnd I don't know Ubuntu enough to 'query' for other maintainers.  (I come from Fedora land :-))13:13
kashyapIt requires someone vaguely familiar with QEMU (and EDK2/OVMF).13:13
sahidcoreycb, jamespage: https://git.launchpad.net/~sahid-ferdjaoui/ubuntu/+source/neutron/log/?h=stable/queens13:19
coreycbsahid: on it13:19
sahidcoreycb: buildroot: https://launchpad.net/~sahid-ferdjaoui/+archive/ubuntu/bionic-queens/+build/1733485413:19
sahidalso i had to remove two patches which were already included: https://pastebin.ubuntu.com/p/TCP78jC2tK/13:20
cpaelzerkashyap: IMHO we have time to wait for dannf13:21
cpaelzerkashyap: this is a feature tied qemu 4.1 which means Ubuntu 20.0413:21
cpaelzerI tihnk rushing something into edk2 now will gain us nothing but probably problems13:21
kashyapcpaelzer: Hmm.  I'm coming here and pestering because I'll be away on PTO (from 06-Aug to 23-Aug).  And Nova could use it13:22
cpaelzerkashyap: but could it use it without any related commit in qemu?13:22
kashyapcpaelzer: Note that is not strictly tied to QEMU 4.1 -- you can still use them with older QEMU versions.13:22
cpaelzerI haven't checked the details, only have seen that it came with 4.1 (in the bundled rom release)13:22
kashyapcpaelzer: If you have libvirt 5.3 or above, then you can use them with older QEMU13:22
cpaelzerkashyap: can one "benefit" from it without qemu 4.113:23
cpaelzerwe are on libvirt 5.4 already13:23
cpaelzerand I have talked with Dannf before his PTO13:23
kashyapcpaelzer: Good question :-)   I'm doing this to be able to test Nova's Secure Boot spec in the OpenStack Gate: http://specs.openstack.org/openstack/nova-specs/specs/train/approved/allow-secure-boot-for-qemu-kvm-guests.html13:23
kashyapcpaelzer: If you see the JSON files: they simply describe the features of the EDK2 binaries that you ship in Ubuntu.13:24
cpaelzeryeah13:25
cpaelzerbut doesn't that mean that you can already test it right now manually?13:25
kashyapcpaelzer: libvirt 5.3 or above will read them, and then will auto-add the relevant bits if you want Secure Boot13:25
cpaelzerby dropping matching json files in place (manually) and see if things work13:25
cpaelzerif they do add it to the bug which will help dannf to ensure what is placed will be the correct content13:25
kashyapcpaelzer: Oh, sure.  But just trying to set things in motion while I still have the motivation :-)13:25
cpaelzerI absolutely appreciate that part of it :-)13:26
cpaelzerand I now undertsnad why you are in a hurry (your PTO timing)13:26
cpaelzerin motion things are already, since we both reached dannf and he acknoledged to do it after he is back13:27
kashyapcpaelzer: As we speak, I'm harassing the QEMU packager on #qemu, asking what he meant in his comment at the end of a similar request: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93226913:27
ubottuDebian bug 932269 in ovmf "Ship the firmware "descriptor files" as part of the 'ovmf' package" [Normal,Open]13:27
kashyapcpaelzer: Hehe, sorry, I should've made my motivation clearer.13:27
kashyapcpaelzer: Okido.  Just wanted to check in here, as things tend to fall through the cracks, as everyone is busy :-)13:28
cpaelzerkashyap: this is a curcular dependencyas dannf is the maintainer13:28
cpaelzermjt as well, but he is more the qemu than the edk2 maintainer (usually)13:28
kashyapRight, I just asked 'mjt' on #qemu.  Will check later13:29
kashyapcpaelzer: Also, I hope Ubuntu is now shipping a "variables files" (VARS) with default UEFI keys (from MS) installed13:29
cpaelzerkashyap: /usr/share/OVMF/OVMF_VARS.ms.fd13:30
kashyapIf you're not aware; disregard my remark -- that's a detail 'dannf' knows -- I described to him a few weeks ago on #debian-qemu (on OFTC)13:30
kashyapcpaelzer: Ah-ha, the 'ms' is presumable with MS keys.  It can't be anything else13:31
kashyapLast I checked I knew that Ubuntu was shipping the script we wrote to enroll the MS keys.  (Noticed in the tarball here: https://launchpad.net/ubuntu/+source/edk2/0~20190309.89910a39-1ubuntu1)13:31
kashyapSo all good there.13:32
cpaelzerkashyap: this was from 0~20190606.20d2e5a1-1ubuntu213:32
cpaelzerkashyap: give your test a try by manually placing the json files13:32
kashyapcpaelzer: Noted, on the version.13:32
cpaelzerkashyap: and if it works with the libvirt 5.4 that is in Eoan (maybe with modifications to the json files) update the bug on edk2 to let dannf know that this makes sense for Eoan13:33
cpaelzerhe might (as I was) assume that this is only needed in 20.0413:33
kashyapcpaelzer: But ... note that: simply dropping in there doesn't _quite_ fly: as I don't know (unless I look in the code) if Ubuntu's EDK2 build differs in anyway than Fedora (the I'm familiar with)13:33
cpaelzerthe only differens seem to be paths right?13:33
kashyapBecause based on that you (the "mythical you") need to add or remove some lines from the "features" bit.13:34
kashyapcpaelzer: That's what I'd expect, frankly13:34
kashyapFor example, see for Fedora, the "features' its EDK2's MS-signed binary (called: OVMF_CODE.secboot.fd) has are these:13:34
kashyap +     "features": [13:34
kashyap+         "acpi-s3",13:34
kashyap+         "enrolled-keys",13:35
kashyap+         "requires-smm",13:35
kashyap+         "secure-boot",13:35
kashyap+         "verbose-dynamic"13:35
kashyap---13:35
kashyapNow I don't know if they match 1-1 in Ubuntu.  97.83% yes, they _should_ match.13:35
cpaelzerkashyap: which would be perfect to be outlined on the bug13:36
cpaelzereven if you make assumptions you can provide this example from fedora and the link to the openstack usage of the feature and the result of your testing13:36
cpaelzerI'm sure dannf will prefer to change a few features than to blindly guess adding something totally untested13:36
kashyapRight, will do.  Once I replenish my "yak trimming" quota :-)13:37
cpaelzerhehe13:37
cpaelzerkashyap: just trying to guide you to the progress that you poked this channel for :-)13:37
kashyapCertainly; just joking, as you know.  Much appreciated.13:38
cpaelzersure, np13:38
coreycbsahid: i think we should just add back the missing patch(es) for now and the SRU team will be more likely to fast-path this into -updates13:52
coreycbsahid: and then we can do a 14.1.0 after that13:52
coreycbsahid: s/14/12/13:53
sahidcoreycb: based on jamespage comments both ways were OK. can you taking care of adding that patch? I'm still with the horizon thing and i would like make progress13:55
coreycbsahid: ok i think i'll just do 2:12.0.6-0ubuntu3 for now with the patches added back then. sorry i think it'll just be easier to convince them to fast track it this way. how's horizon?13:57
sahidcoreycb: yes that makes sense, just question, in all cases they will ask for a complete tests, no?13:59
coreycbsahid: that's a good question which is frustrating in this case. perhaps frickler can help us verify the fix.14:00
coreycbsahid: frickler: fyi https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/183826314:01
ubottuLaunchpad bug 1838263 in neutron (Ubuntu) "neutron 2:12.0.6-0ubuntu1 queens regression" [Undecided,New]14:01
sahidcoreycb: if we have to provide a complete test i think we should fo with 12.1.014:01
coreycbsahid: that's a valid point. frickler any chance you'll be able to help with verifying a new version of neutron to verify the queens regression is fixed?14:02
fricklercoreycb: I agree that going forward with 12.1.0 is the better solution, I can test new pkgs once you build them.14:06
coreycbfrickler: if we want to get a fix out ASAP i think we just need to add the patches back for now14:07
fricklercoreycb: well we did fix things locally, so for me this isn't urgent14:08
fricklercoreycb: but I could test that variant too, of course14:09
coreycbfrickler: thanks, that would be very helpful14:10
coreycbfrickler: and we'll get 12.1.0 out right after this14:10
sahidcoreycb: I'm lost I thought the outcome of the discusion with frickler what to move forward and only provide a new version based on 12.1.0, no?14:18
sahids/what/was14:19
coreycbsahid: we'll just add the single patch back and fast path that through with testing from frickler. and then we'll follow that with a 12.1.0 that we'll test ourselves.14:19
coreycbsahid: less chances of further regressions that way14:20
m_tadeuhi...I'm creating a cron job but I think I'm getting into problems with wildcards (find <somedir> -type f -name '*.tar.gz' -mtime +2 -exec rm {} \;)14:29
m_tadeuis there an alternative to this?14:30
tomreynm_tadeu: not if you don't say what the 'problems with wildcards' are14:40
lordcirthm_tadeu, what exactly goes wrong?14:40
m_tadeutomreyn, lordcirth: pbcak :P14:43
ncuxoHello I have a question about bridging connections17:33
ncuxois this the right place for my question or should I search for another channel?17:33
ncuxoI want to bridge my router to a router in another contry17:34
sarnoldncuxo: be sure to actually *ask* a question :)17:34
ncuxo:) just did I was trying to go as basic as possible :D17:35
lordcirthncuxo, if you are configuring this networking setup on Ubuntu, yes, you can ask here.17:35
ncuxowell to be honest I have no Idea how to configure it17:36
ncuxoI want to tunnel to the other router17:36
ncuxoall the traffic to be encrypted17:37
ncuxoIn my mind it is something like a private vpn tunnel17:37
lordcirthncuxo, such that both networks appear to be directly connected?17:37
ncuxoyes and I want my ISP to be unable to see my traffic17:38
ncuxobought ISP's17:38
lordcirthI believe that would be called a "site-to-site VPN"17:38
lordcirthncuxo, try this? https://sysadmins.co.za/setup-a-site-to-site-ipsec-vpn-with-strongswan-on-ubuntu/17:39
sarnoldncuxo: do you know why you want a bridge? are you specifically looking for a layer-2 vpn?17:39
ncuxosarnold: I want the government in the country that I'm residing not to be able to check my traffic17:40
sarnoldncuxo: aha cool; lordcirth's link looks like a good starting point to me17:41
sarnoldncuxo: ubuntu also supports openvpn, https://help.ubuntu.com/lts/serverguide/openvpn.html17:42
lordcirthopenvpn is very flexible and compatible with many tools, but can be fiddly to configure. This Strongswan seems specifically made for this sort of thing.17:43
lordcirthI should try it sometime myself17:43
ncuxohmm but with this I will need a full os on the receiving end ?17:43
lordcirthncuxo, yeah, Ubuntu on both ends. Is that not an option?17:44
sarnoldmany routers will support either openvpn or ipsec out of the box17:44
ncuxolordcirth:  thx for the tutorial I'll check it later today17:44
lordcirthYeah. Although, doing all the encryption on a low-end router could have poor performance.17:45
lordcirthncuxo, let us know how it went!17:45
ncuxolordcirth: if I use a pfsense firewall router on a dell r710 server with kvm ubuntu virtualisation17:51
ncuxoshould this be a sufficient encryption standard on the connection?17:52
ncuxookay brb wife calling for dinner17:53
lordcirthncuxo, I don't see how any of that determines the encryption17:57
sarnoldr710 looks to be xeon 5500 and 5600 series18:00
sarnoldsome of those have aesni but I can't find throughput numbers18:03
sarnoldfinally something with some numbers: https://blog.scottlowe.org/2012/09/12/clds006-exploring-new-xeon-e5-optimizations-for-10-gb-ethernet/  ""throughput increased from 5.3 Gbps at ~91% CPU utilization with a Xeon 5500 (no AES-NI) to 33.3 Gpbs at ~79% CPU utilization on an E5-2600 with AES-NI support"18:04
patdk-lapaes-ni support is funny also18:27
patdk-lapyou have to bulk encrypt to get good numbers, generally packet sized doesn't do well18:28
patdk-lapwonder if you get full 64k packet offloading aes-ni support18:28
patdk-lapplus doing it in a vm adds extra cpu context changes, your milage will vary :)18:28
patdk-lapjust don't use openvpn18:29
patdk-lapopenvpn is still single core bound18:29
patdk-lapI was maxing out at 300mbit18:30
patdk-lapnext time I attempt that, I'll get a desktop cpu with like 4ghz clock speed18:30
sarnoldpatdk-lap: hmm, now I realize that I don't know well enough how these things work -- does the application need to resubmit the key to the aesni instructions every packet?18:37
patdk-lapI dunno how linux does it18:40
patdk-lapI know when they where working on it for illumos, they tested it, and it's just the amount of setup overheat is restrictive18:40
patdk-lapunless you do so many operations at a time18:40
patdk-lapI think the same goes for all those advanced features, floatingpoint, mme, ...18:43
patdk-lapjust takes so much time to transfer the instructions and data to the unit to process, once it is going it's fast though18:43
patdk-lapso doing small amounts of data can be a real overhead due to setup costs18:43
sarnoldyeah floatingpoint / mmx stuff .. if it's used in a process, then that state needs to be cleared and reset across context switches, so if you're going to use it, you better *use* it :) but I realize I don't know how aesni works. heh.18:44
patdk-lapI can't seem to locate it, was a blog post someone posted in development18:45
patdk-lapwas a few years ago18:45
patdk-lapfew == 5+?18:45
sarnolddang; thanks for looking18:46
* patdk-lap blames rss feeds18:46
patdk-lapeasy to read and remember18:46
patdk-laphard to relocate18:46
sarnoldheh then maybe it was a bit more than five years ago? :)18:47
patdk-lapcannot be before 201218:47
patdk-lapas I'm possitive it was illumos related, and I didn't start playing with it till 2011, and not working and reading about the kernel till 2013 or so18:48
patdk-lapoh, aes-ni didn't exist till 201018:48
patdk-lapalso, issue with blogs, they vanish so quickly18:49
sarnoldif you're really lucky the old content just bitrots on an old ignored site..18:50
patdk-laphttp://zfs-create.blogspot.com/2014/05/optimizing-illumos-kernel-crypto.html18:52
patdk-lapI think that was it18:52
sarnoldpatdk-lap: thanks :D18:52
sarnoldhahah "(luckily the GCM algorithm is limited to 64GB of data per key, so at least there is an upper bound to this nonsense)"18:55
patdk-lapdamn19:07
patdk-lapI was right on with my 5year guess19:07
sarnold:D19:07
coreycbfrickler: fyi the new neutron package version is availlable in bionic-proposed 2:12.0.6-0ubuntu320:57
=== lborda is now known as lborda_afk
keithzg[m]Hmmm. How would I rename a network interface that seems to decide on a new MAC address every boot?  Tried setting a udev rule based on the vendor and model but either I'm doing it wrong or that won't work either (on 19.04).22:47
keithzg[m](Normally I'd just create a systemd .link file, but I think that needs to be MAC based?)22:48
rbasakkeithzg[m]: https://netplan.io/reference#common-properties-for-physical-device-types gives you some options23:01
rbasakkeithzg[m]: based on bus location or driver name23:01
rbasak(assuming the default name is based on bus location, which is the default I think)23:02
keithzg[m]rbasak: Hmm. I suppose that could work as long as I keep it plugged into the same USB port all the time; the driver name won't work then though since I believe I'm using NetworkManager rather than networkd.23:06
keithzg[m]...hmm. As far as it reads to me, matching on name is precluded then too.23:07
keithzg[m]So I guess I'm back to trying to make a udev rule work, if that's even still possible.23:08
rbasakGet a proper NIC? :)23:08
rbasakI don't see why an early enough udev rule wouldn't work23:08
keithzg[m]Yeah I'm pretty confused by that, but also too rusty dealing with udev rules to be sure how to debug it, so was hoping there was an easier way. Alas.23:09
rbasakOh, you might need to disable any future standard renaming udev rules though23:10
rbasakhttps://lists.ubuntu.com/archives/ubuntu-devel/2015-May/038761.html is a good guide to what there was23:12
keithzg[m]Aha, if I run `udevadm --debug test` against the USB device in question, I see it run through the rules in order but it was skipping my rule I was trying to sneak in early, I had just foolishly created the file as /etc/udev/rules.d/10-network-rules instead of 10-network.rules, whoops. And then it complained "Invalid ACTION operation" for ACTION="add", because it should actually be ==. Classic PEBKAC ;)23:21
keithzg[m](That didn't actually accomplish the task at hand, but yeah probably into needing to find and disable/override other preexisting renaming rules)23:28
keithzg[m]Still haven't figured it out. Sigh.23:58

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