/srv/irclogs.ubuntu.com/2017/11/08/#ubuntu-devel.txt

=== blahdeblah_ is now known as blahdeblah
=== giraffe is now known as Guest32325
=== maclin1 is now known as maclin
=== enick_867 is now known as RAOF
=== AdmWiggin is now known as tianon
=== tacocat is now known as e[_]
cpaelzerblahdeblah: I'm here now06:38
cpaelzerblahdeblah: are you still around?06:38
blahdeblahcpaelzer: sure am06:39
cpaelzeryou wanted to talk about script tag in libvirt xml?06:39
blahdeblahMore about the things you discovered in the process of fixing that.  You said you considered a backport of a larger feature from upstream?06:40
cpaelzerblahdeblah: yeah but we dropped that - anybody really needing it can/shall use newer libvirt - the regression risk was too high06:40
blahdeblahwhich seemed to be https://libvirt.org/git/?p=libvirt.git;a=commit;h=9c17d665fdc5f0ab74500a14c30627014c11b2c006:40
cpaelzeryeah that was it06:40
blahdeblahSo it seems that under libvirt 1.x using interfaces of type ethernet are pretty much not recommended06:42
* blahdeblah rummages for reference06:42
cpaelzerIIRC it was not recommended for a long time, waren't there some needs to elevate permissions to use it06:42
blahdeblahyeah - e.g. RH discourage its use altogether: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/app_generic_ethernet06:43
cpaelzeryeah there are more refs06:44
cpaelzerhttps://fedoraproject.org/wiki/How_to_debug_Virtualization_problems?rd=Tools/Virtualization/BugReporting#Errors_using_.3Cinterface_type.3D.27ethernet.27.2F.3E06:44
blahdeblahAnd on xenial, even if you implement those 4 settings, it still doesn't work because the AppArmor profile blocks it. :-)06:44
blahdeblahcpaelzer: So that's confirmed that I understood what you said in that bug correctly, here comes the question:06:44
blahdeblahIs there any safe way to use libvirt with generic ethernet on xenial?06:45
cpaelzerit was used heavily at earlier times06:45
blahdeblahyeah - I found another bug saying on precise & trusty it worked06:45
blahdeblah(presumably because people just ignored the risks of the elevated privilege)06:46
cpaelzerit was changed who executes the script (also for security) - but in the past just dropping security was more common than today06:46
cpaelzeryeah just what you wrote in your second msg06:46
blahdeblahcpaelzer: So is there any safe, sensible way to use this in xenial, or do I need to upgrade to zesty or later?06:48
cpaelzerblahdeblah: well, the TL;DR is - back in hat time qemu was executing the script - so to do most of the work (setup a vnic) it needs a set of permissions you usually take away for security reasons06:51
cpaelzerblahdeblah: if you consider not dropping capabiliteis and running it as root unsafe (likely) then there would be no safe way that comes to my mind immediately06:51
blahdeblahThe whole point of this is to run some custom setup on the interface, so my thought was to just use an unprivileged process to send the right info to something running as root.06:53
cpaelzerblahdeblah: in the bug you referred the reporter had I quote "we do have our own infrastructure installed to overcome these restrictions. One such measure is having a daemon running as root that does the actual interface creation, triggered by the interface setup script."06:53
cpaelzerblahdeblah: if you have something like that, then yes it can be made safer06:53
cpaelzerblahdeblah: your thought sounds very similar to what they had in place06:54
blahdeblahProbably because I read their comment in the bug. :-)06:55
cpaelzerhehe06:55
blahdeblahcpaelzer: So back to the fix for that bug: it gives the impression that the fix is already included in the current xenial packages, and all we need to do is specify a different setup script and it should be possible to make that - is that correct?06:56
blahdeblah*make that work06:56
cpaelzeryes06:56
cpaelzerit no more does some prechecks which were broken (that was the bug)06:56
cpaelzerso you can reference to your script of choice, that is called in the context of qemu and qemu's user06:57
cpaelzerif you can make that script work you are good06:57
cpaelzerin later versions libvirt will call the script before qemu (higher permissions)06:58
blahdeblahBecause I tried that and I still got the error "could not open /dev/net/tun: Operation not permitted"06:58
cpaelzerthere are some of the caps which still ahve to be lifted I think06:58
cpaelzerjust a sec06:58
cpaelzerblahdeblah: essentially depending on how much your script already does you need a asubset of https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Virtualization_Deployment_and_Administration_Guide/App_Generic_Ethernet.html07:01
cpaelzerlikely the cgroup_device_acl thing07:01
cpaelzerthat has no tap/tun by default07:01
blahdeblahI tried that on its own without success07:01
cpaelzerhmm, I thought back then that was it for me - any apparmor denials or other ususal suspects left in the picture?07:02
blahdeblahnot that I can see: https://pastebin.canonical.com/202632/07:03
cpaelzerlet me cross check that for a few minutes, sometimes memory is better when doing than when talking about it07:05
blahdeblahcpaelzer: Don't spend a lot of time; this isn't a critical thing - just me trying to get my preferred network topology created.07:08
cpaelzerok, but my personal rule of thumb would then be "do not try to base your preferred thing on soemhing deprecated" :-)07:08
cpaelzerI'll let you know if I see soemthing you can try in addtion to what you did07:08
blahdeblahcpaelzer: Is generic ethernet actually deprecated as a libvirt interface?  Because that would definitely put a damper on my preferred topology.07:09
cpaelzerRead the section "investigation" on https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Virtualization_Deployment_and_Administration_Guide/App_Generic_Ethernet.html - that pretty much covers my known state of it07:10
blahdeblahOK - thanks.  I'm grateful for the time you've already spent.07:12
cpaelzerblahdeblah: ok I have what you need07:19
cpaelzerblahdeblah: you have to apply all I sent you in the fredora link plus the following two for apparmor07:19
cpaelzerin /etc/apparmor.d/abstractions/libvirt-qemu07:20
cpaelzercapability net_admin,07:20
cpaelzer  /etc/qemu-ifup rmix,07:20
cpaelzerthe latter is your script07:20
blahdeblahcpaelzer: Already?  Wow. :-)07:20
cpaelzerof course that is far from save :-)07:20
cpaelzerleaving the case now, have fun07:20
=== maclin1 is now known as maclin
blahdeblahcpaelzer: Yeah - so given how unsafe it is, I think I'll upgrade the host and try with libvirt 2.x07:21
blahdeblahcpaelzer: Much appreciated07:21
=== JanC is now known as Guest4348
dokomitya57: could you have  look at https://launchpad.net/ubuntu/+source/qtwebengine-opensource-src/5.9.2+dfsg-2build1/+build/13692836 ?10:47
mitya57doko, ok will look10:48
dokota10:48
Laneyhmm, I thought I saw a way to boot a (nova) cloud instance with a kernel on the local system but I can't find that now10:48
Laneydid I make that up?10:48
dokomitya57: and same for https://launchpadlibrarian.net/344935458/buildlog_ubuntu-bionic-amd64.kdb_3.0.2-1build2_BUILDING.txt.gz  (I was pointing a the new cmake, but maybe it's qt related as well)11:00
mitya57doko: it's new Qt, some *.cmake files were moved from qttools5-dev-tools to qttools5-dev, needs a new B-D.11:01
mitya57I will likely fix both in Debian and then sync.11:02
dokomitya57: note that debian still has icu 5711:05
mitya57Should that make any difference?11:05
dokoI hope not ...11:05
dokoLaney, seb128: is TheMuso still looking at sound issues?13:32
dokohttps://bugs.launchpad.net/cairo-dock-plug-ins/+bug/173094713:32
ubottuLaunchpad bug 1730947 in cairo-dock-plug-ins (Ubuntu) "package fails to build with glibc-2.26" [High,Confirmed]13:32
dokoinfinity: ^^^13:32
jbichadoko: no, duflu works on pulseaudio though13:43
smoserhey all. anyone know of a way to "wait until system is booted".14:50
smosersh -c 'while :; do s=$(systemctl is-system-running); r=$?; [ "$s" = "initializing" -o "$s" = "starting" ] || break; sleep .2; done; read up idle < /proc/uptime; echo "$r $s $up";14:50
smoserthat works, but i figure theres probably holes in it and i'd love something that didnt poll14:50
smoserxnox ? any ideas ?14:50
dokoLaney: do you see slow setups of autopkg tests environments on lyc-* auto testers?14:54
xnoxsmoser, what do you want to do, when things finish booting?14:57
xnoxsmoser, you can create an idle unit that kicks in after everything is odne14:57
smoserstuff14:57
rharpersmoser: like you want to listen to sd_notify bus14:57
rharperfor an "i'm done booting event"14:57
smoserthe reason for my asking today, is that i often write:14:58
smoser lxc launch ubuntu-daily:xenial x114:58
Laneydoko: haven't noticed it being slower than lgw01 but I've not exactly been looking14:58
smoser sleep 10 ; # wait for the system to boot14:58
smoser lxc exec x1 -- do-some-thing-useful14:58
Laneyare you talking about instance startup?14:58
Laneylike time-to-ssh?14:59
dokoLaney: https://portal.admin.canonical.com/10718214:59
xnoxsmoser, with lxc1 there was http://man7.org/linux/man-pages/man1/lxc-wait.1.html which blocks until instance is booted.15:00
smoseri figure i'm not the only person in the world that wants to do that sort of things.15:00
xnoxsmoser, i thought there was "not ready yet state"15:00
smoserxnox: i'd rather ask the system than ask lxc to figure it out.15:00
smoserbecause honestly it can't possibly know for a generic container.15:00
smoserthe system itself is best suited to say "i'im done"15:01
cjwatsonI tend to loop until lxc exec $foo runlevel has a digit in the second field, but that's kind of old-school and not exactly elegant15:01
smosercjwatson: my loop above a newer-school example of effectively that.15:02
* smoser is happy that no one here is giving him the system-init-author response of "there is no way to tell when the system is 'finished' booting"15:03
rharpersmoser: that's left as an exercise to the questioner15:03
smoseri think ideally there'd be a command in ubuntu that ran in a non-polling mode and just blocked until systemd showed something other than 'initializing' or 'starting'. and then parroted that value.15:05
smoserwait-for-booted --block --max-wait=1m15:05
smoserdegraded15:05
xnoxsmoser, well systemctl list-jobs -> will show if it is still doing stuff or not.15:06
smoseri think that checking for values other than 'initializing' or 'starting' is what i want15:07
smoserbut it just seems like that is somethign that the system should give me. so i was asking if such a thing existed.15:17
lolekhello15:22
lolekI'm tyring to find a way to disable menuproxy from inside a c++ any hints?15:22
TJ-nacc: ping? patch available fixing bug #1730731 be great if you can test/confirm the fix and get it published18:32
ubottubug 1730731 in ycmd (Ubuntu) "[16.04] no autocomplete and multiple errors due to not using python3 interpreter or extension calling conventions" [Undecided,In progress] https://launchpad.net/bugs/173073118:32
naccTJ-: weird that i didn't get a notification18:45
naccTJ-: i'll look at it today18:46
naccTJ-: ah just got it, ok18:46
TJ-nacc: Thank-you. It's working fine here; the patch wsa originally suggested for Debian (in the tracked bug) but then they fixed it by pulling an entirely new upstream release18:47
naccTJ-: ack, that's normal, and also what has it fixed in the later releases18:47
TJ-nacc: the patch is still being carried in the later Debian releases so I guess it is still required (it's in 17.10 too)18:48
TJ-nacc: anyhow, it's quite minimal and it works so I'm happy :)18:49
naccTJ-: cool, will keep you posted in the bug18:49
dmj_s76jbicha: How do you feel about packaging a new version of python-xlib for debian and ubuntu?19:34
jbichadmj_s76: the Debian maintainer will take care of that. I pinged him last week.19:35
dmj_s76jbicha: okay, good to hear!  It looks like debian still points to the project on sourceforge, when it switched to github years ago.19:37
jbichadmj_s76: since you're here, the fix for LP: #1724024 is ready to be verified19:37
ubottuLaunchpad bug 1724024 in mutter (Ubuntu Artful) "can't set usable scale for hidpi internal display if when using external display less than 1600x1200" [Medium,Fix committed] https://launchpad.net/bugs/172402419:37
dmj_s76jbicha: Thanks, I'll test and get back to you on that.19:40
=== e[_] is now known as tacocat
niedbalskiarges, rbasak hello guys , any of you can check the verification for LP: #1657256? also, not sure why the Trusty series wasn't moved into -proposed (it's currently seating in unapvd).21:17
ubottuLaunchpad bug 1657256 in percona-xtradb-cluster-5.5 (Ubuntu Trusty) "Percona crashes when doing a a 'larger' update" [High,In progress] https://launchpad.net/bugs/165725621:17
bdmurrayblackboxsw: Could you add a test case to bug 1722564? I've uploaded a fix to the artful SRU queue.22:35
ubottubug 1722564 in apport (Ubuntu Artful) "apport question will not accept multi-character responses" [Medium,In progress] https://launchpad.net/bugs/172256422:35
blahdeblahStarting firewall maintenance now (see previous message to ubuntu-devel-announce)23:06
=== Guest6094 is now known as RAOF
=== Orphis_ is now known as Orphis

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