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

=== gsilva is now known as gsilvapt
=== gsilvapt is now known as gsilva
=== gsilva is now known as gsilvapt
=== sil2100_ is now known as sil2100
=== Elimin8r is now known as Elimin8er
ginggstseliot: any ideas why nvidia-cuda-toolkit is not installable? see https://launchpad.net/ubuntu/+source/eztrace-contrib/1.1-7-1 https://launchpad.net/ubuntu/+source/hwloc-contrib/1.11.8-113:31
* tseliot lookinh13:34
tseliot*looking13:34
tseliotginggs: something probably broke in bionic. I'm creating a chroot to check that out13:35
=== ricotz_ is now known as ricotz
ginggstseliot: thanks14:07
tseliotginggs: apt-get build-dep eztrace works fine in the chroot14:16
tseliotmaybe the archive was temporarily broken?14:17
ginggstseliot: i gave them back an hour ago, and they've been retried a few times in the last 3 weeks14:19
tseliotnot a good sign...14:20
rbalintjuliank: apt-daily.service does not have to forward signals to u-u per design, u-u-s.service signals u-u, apt-daily.service just must not let all the child processes to be killed14:20
juliankrbalint: But I want it to. Everything else is just a bad user experience.14:20
juliankrbalint: Not only that, it also breaks the locking between the two apt-daily services14:21
juliankheck, it might even allow you to start apt-daily while u-u is still running from a previous apt-daily-upgrade job, considering that systemd considers apt-daily-upgrade to be inactive at that point.14:22
rbalintjuliank: i'm speeding up the SRU for u-u to accept SIGTERM if you would like to send the signal14:24
rbalintjuliank: would that work for you?14:24
juliankrbalint: I'd mostly like to avoid the dependencies between the SRUs. zesty is in sync with stretch, it would be nice to keep it that way (and I want to make it work in stretch too, so I need the SIGUSR1 dance for that)14:25
rbalintjuliank: i'm not sure what problem would be caused by starting apt-daily while apt-daily-upgrade is running14:27
juliankI'm not sure either, but they were not designed to be run together.14:28
juliankThere are probably some race conditions in there.14:28
rbalintjuliank: i can do a stretch update, too, to u-u if that helps14:28
juliankI don't think the Debian RT would accept that.14:29
rbalintjuliank: as i see apt-daily does nothing that breaks apt-daily-upgrade thus we may be trying to fix something that nevar causes actual problems14:29
juliankIt definitely replaces your Packages files, so depending on how far u-u is, it might get problems parsing stuff.14:30
juliankOr you might just end up with lock races between the two14:30
juliankThe locking situation is a bit unclear.14:30
rbalintjuliank: as i saw the lock is held in u-u thus apt-daily may just fail, but have to check to be sure14:31
juliankThere are 4 locks involved, and one lock is repeatedly released.14:32
juliankThe apt code is almost 2 decades old and nobody has a clear picture of which locks are hold when14:33
rbalintjuliank: ok.14:33
rbalintjuliank: u-u handles failure gracefully in artful and up so with the backport i don't think we need signaling from apt's scripts14:34
rbalintjuliank: apt-daily failing is also ok IMO14:35
juliankI guess even if I signal u-u from apt's script, it's not going to be a regression, it's just setup work.14:36
juliankSo we would not _really_ need dependencies between those two14:36
juliankIt's just that if you upgrade from e.g. 1.5 to 1.5.2 that nothing changes14:37
juliankbut as soon as you upgrade u-u as well, everything works as expected.14:37
rbalintjuliank: sending a signal which kills u-u instead of triggering the graceful termination would cause serious regressions14:39
juliankCompared to just terminating the entire cgroup?14:39
juliankCurrently we terminate the script, u-u, and all children14:40
juliankthe current "broken" fix is only in -proposed.14:40
rbalintjuliank: no, comparing to exiting in apt's scripts14:40
juliankRight, but that's irrelevant seeing as that is only in proposed and has not made it to updates.14:41
rbalintjuliank: can i help moving it to release?14:42
juliankWell, sure if you mark the bug as verified-done, it's basically releasable. Well, xenial needs one more test for bug 1613184 as the specified one does not apply.14:43
ubottubug 1613184 in apt (Ubuntu Zesty) "method mirror broken at 1.3" [Medium,Fix committed] https://launchpad.net/bugs/161318414:43
juliankBut I don't really feel good about it14:44
rbalintjuliank: ok, let me take a second look and mark it as such14:44
juliankYou also have to change the testing scenario for the u-u bug14:44
juliankbecause it says that stopping apt-daily-upgrade waits until u-u exits14:44
rbalintjuliank: yes, the test is wrong14:44
juliankbut it stops immediately.14:44
juliankI would have never merged the patch if I had known that it does not work that way.14:45
juliankI mean, the whole timeout thing is nonsense.14:46
juliankI expected it to actually work as specified.14:46
rbalintjuliank: let me follow up in the bug14:47
rbalintjuliank: the after a timeout everything gets killed and upgrades can be slow, thus both the timeout and killing only the top process is a must :-\14:48
juliankI don't think it does anything.14:49
rbalintjuliank: ?14:49
juliankI mean, the service is considered stopped as soon as the script exits, which is immediately.14:49
juliankso it already reaches the point we are measuring the timeout for immediately.14:50
rbalintjuliank: yes, the timeout starts ticking immediately for killing all children, but how is this a problem?14:51
juliankThe timeout starts when you say stop (and also when you say start).14:52
juliankBut then the service is stopped immediately14:52
juliankSo I don't see how the timeout would work14:52
rbalintjuliank: btw instead of signaling you could use u-u --stop-only form 0.9814:52
rbalints/form/from/14:53
juliankMost of our targets are < 0.98?14:53
juliankand on 0.98: unattended-upgrade: error: no such option: --stop-only14:53
rbalintjuliank: sorry, u-u-s14:54
rbalintjuliank: the timeout should prevent killing all running children of the exited service immediately14:55
juliankWhat I'm saying is that the timeout should never be elapsing anyway, so nobody will get killed.14:55
juliankever.14:55
juliankWell, at least not if you are stopping.14:56
juliankAh it is a TimeoutStopSec14:56
juliankSo yes, you say stop within 900s14:56
juliankbut stopping just stops the script.14:56
juliankhence it stops immediately.14:56
rbalintjuliank: yes14:56
juliankI don't see the 900s coming into effect if systemd says the service is stopped immediately.14:57
juliankbecause 0 < 90014:57
rbalinthttps://www.freedesktop.org/software/systemd/man/systemd.kill.html14:59
juliankAh you mean "If then, after a delay (configured via the TimeoutStopSec= option), processes still remain, the termination request is repeated with the SIGKILL signal (unless this is disabled via the SendSIGKILL= option)"15:01
rbalintjuliank: yes15:01
julianklet's see15:02
rbalintjuliank: and i think the documentation is a bit vague, and the "main" process is geussed based on rules that may end up considering u-u the main process and this case I did not want to have it SIGKILL's immediately15:02
rbalintjuliank: so the timeout is a bit of playing safe because the semantics and promises on systemd's side were not crystal-clear15:04
juliankIt actually does not terminate anything15:04
juliankI just configured the service with a 5s timeout15:05
juliankadded sleep 10000 or something15:05
juliankstopped it15:05
julianksleep is still running15:05
juliankit's considered:    Active: failed (Result: signal) since Thu 2017-11-23 16:04:10 CET; 1min 11s ago15:05
juliankSo the doc is wrong15:05
rbalintjuliank: do you have your test case?15:06
juliankI just changed TimeOutStopSec= to 5, and added a sleep after the whole lock checking thing into the script15:07
juliankOutput: http://paste.ubuntu.com/26028356/15:07
rbalintjuliank: i need to check again but i say timeout taking effect in one of the logs while testing the u-u fix15:07
juliankrbalint: Maybe you saw the u-u-s timeout?15:08
rbalintjuliank: most likely15:09
juliankThe point remains that the patch for apt does not do what it looks like it does.15:09
rbalintjuliank: but my bigger concert was systemd picking u-u as the main process despite being a children of apt's script15:09
juliankrbalint: sorry, I gotta ask: is your n near your t or do you just write concert (as opposed to concern) a lot? Because that seems a really funny typo (and I don't know your keyboard layout) ;)15:12
juliankI have no idea how the pid guessing works15:13
juliankSleep is still running, BTW15:14
rbalintjuliank: n->t :-D15:14
juliankso it really seems to have no effect :)15:14
juliankum, :(15:15
rbalintjuliank: if you decide to go with u-u-s --stop-only in later releases instead of just sending a signal timeout will become useful15:16
juliankI think I want the signal forwarding for the other executed programs too15:16
rbalintjuliank: but yeah now it does not seem to have effect15:16
juliankmy idea was just to stay with SIGUSR1 for zesty and below. I don't know how you plan to SRU them15:17
rbalintjuliank: the n->t is brobably due to a funny muscle memory caused by hunger and a screaming baby behind my back :-)15:17
juliankI think you once wanted to just push 0.98 everywhere, but I'm not sure that's still the plan.15:18
juliankI think someone said no15:18
rbalintjuliank: i could not visit the u-u SRU because i got stuff assigned with higher priorities :-\15:20
rbalintjuliank: IMO there is absolutely no need to signal u-u from apt's scripts because u-u.service does the signaling upon shutdown and in 0.98 it works well finally15:21
juliankLook, all I want is systemctl stop apt-daily-upgrade to wait until the service is really stopped.15:22
rbalintjuliank: if you really want to send signals anyway please don't send them upon upgrade of apt15:22
rbalintjuliank: you mean stop when u-u is exited, too?15:22
juliankyes.15:23
juliankI don't want runaway processes.15:23
juliankIt's ugly to have one service with runaway processes and another cleaning them up15:23
rbalintjuliank: ok, then please keep the timeout and use u-u --stop-only which does wait for you15:23
rbalintjuliank: i plan backporting that part for sure to not break on hibernation15:24
rbalintjuliank: u-u-s --stop-only15:24
juliankThen I can just trap "u-u-s --stop-only" SIGTERM I think15:25
juliankbefore running u-u15:25
rbalintjuliank: also please don't send signal when upgrading apt15:25
juliankwhy should I send a signal when upgrading apt?15:26
juliankI mean, it used to restart the service when upgrading15:26
juliankbut that was a long time ago15:26
juliankfixed almost a year ago :)15:27
rbalintjuliank: ok, then np :-)15:27
juliankCan you backport the stop-only to stretch as well? That would be vastly useful then I think.15:27
juliankI'll start with bionic and artful15:27
juliankThe patches for the next artful SRU are collected already :)15:28
rbalintjuliank: yes, i plan fixing stretch, too15:28
rbalintjuliank: i'm sorry i have to grab something to ead15:28
rbalinteat15:28
juliankThen in the worst case, all you get is an error message about unsupported --stop-only if you upgrade apt before you upgrade u-u there and in <= zesty :)15:28
juliankOK15:29
* juliank does not really eat during the day, he gets sleepy afterwards15:29
juliankEw, I still need to forward SIGTERM from the outer apt.systemd.daily invocation to the inner.15:34
juliank(locking in) shell sucks15:34
juliankMaybe I should just not do the whole subprocess dance just to avoid fd 3 with a lock file being around.15:35
juliank    # We hold the lock.  Rerun this script as a child process, which15:36
juliank    # can run without propagating an extra fd to all of its children.15:36
juliank^ this stuff15:36
juliankMy fear is that it leaks into an apt hook or something and never gets released.15:36
cpaelzerwhat is the most clear way for one of many autopkgtests in a d/t/control  to say "not on this arch"?15:59
cpaelzerI'm looking for the restrictions spec but it hides from me15:59
cpaelzerso recomendations welcome16:00
cpaelzerpitti: in case you are around, I'm sure you knopw :-) ^^16:02
dokoafaik that's not possible. so add a if dpkg --print-architecture ...; then in the test16:02
pitticpaelzer: there is currently no declarative Architecture: field; your test has to ... that16:02
juliankI don't see anything in the doc either16:02
cpaelzerok, thanks16:03
cpaelzerunfortunate that this is a Test-Command :-)16:03
cpaelzerbut ok, I know where to change it16:03
juliankMaybe we should have an architecture field?16:03
pitticpaelzer: you can add an if [ arch ] there, too16:03
pitticpaelzer: OOI, what's your use case?16:03
pitti(usually feature tests are preferrable to architecture tests)16:04
cpaelzerbug 173414816:04
ubottubug 1734148 in resource-agents (Ubuntu) "bionic autopkgtests failing (and blocking since for whatever reason they worked once before)" [Undecided,New] https://launchpad.net/bugs/173414816:04
cpaelzerI have a generic solution for 2/316:04
cpaelzerbut for the remaining one I need to mask it on s390x for now16:04
pittiin the past we usually solved that by resetting the "ever passed" flag and moved it to "always failed"16:05
cpaelzerI'm so close to make this work, now I want to solve it :-)16:05
cpaelzertest coverage FTW16:05
pittiadding an Architecture: restriction to mask a broken test seems wrong  to me, particualrly as the test is not intrinsically invalid on s390x?16:06
cpaelzeron this particular case I want to mask it because I give up on recteating16:06
cpaelzerso not the best example to discuss such a restriction16:06
pittiright, understandable - but making it an alwaysfail seems preferrable to me than hacking the source?16:07
pitti(or more simply, a force-badtest britney hint)16:07
cpaelzerpitti: this has 14 tests, 13 work16:07
cpaelzerso masking the one in s390x gives coverage of 1316:07
cpaelzerand a hint will just make it go undetected16:08
pittiah, ok16:08
pittiso [ `uname -m` = s390x ] || .. it is?16:08
cpaelzeryep that is what I'm writing atm16:08
cpaelzerin the Test-command16:08
xnoxdpkg --print-architecture16:09
xnoxis my choice usually =))))) hehe16:09
rbalintjuliank: i get sleepy, too, when i eat sugar and similar carbs, so i don't do that ;-)17:23
juliankI do eat some cashews17:24
juliankbrain power!17:24
NikThHi, any clue why this build has failed ? https://goo.gl/YvqqPQ18:03
mdeslaurmissing #include <errno.h> ?18:10
NikThmdeslaur: maybe this has something to do ? https://patchwork.kernel.org/patch/9162433 .I couldn't find any other relevant patch.18:21
mdeslaurNikTh: what are you trying to build exactly?18:22
juliankmdeslaur: Job: linux_4.14.0-10.201711231748.dsc the log says18:23
juliankit failed building a userspace tool18:23
juliankor well, libunwind18:23
NikThjuliank: and only on i386.18:25
juliankNikTh: Anyhow, probably missing include18:30
juliankbut no, there is an #include <errno.h>18:33
mdeslaurNikTh: http://kernel.ubuntu.com/git/ubuntu/unstable.git/commit/tools/perf/arch/x86/util/unwind-libunwind.c?id=4443d3b93af3c511e07cfc572803ebfa1f2b1c3618:35
mdeslaurNikTh: do you have that?18:36
NikThmdeslaur: I think you found it! This is great. Let me try building with again, but I'm quite sure that's the solution.18:40
NikThmdeslaur: Thank you very much !18:40
mdeslaurnp18:40
_9_aleksandr_9_Hello. I am new Ubuntu user. At the first time when I started Ubuntu from usb flash in live mode I had not problems. Installer had not saw any hard drives. He saw only usb flash. But when I tried to turn on my PC again from usb flash for installing Ubuntu installer not started. I have saw it http://qoo.by/3133 (the link contains also photos of bios).21:52
juliank_9_aleksandr_9_: hi, you might want to go to #ubuntu for user support21:53
juliank_9_aleksandr_9_: this channel is for development of ubuntu :)21:54
_9_aleksandr_9_juliank: Unfortunately they don't help me. Maybe you can help. If yes I will be thankful)21:56
juliank_9_aleksandr_9_: I'm over in #ubuntu now, that's the appropriate forum to discuss this22:00
_9_aleksandr_9_juliank: Ok. I am in #ubuntu also22:06
_9_aleksandr_9_juliank: please watch my video in #ubuntu or ##linux22:35
=== BrAsS_mOnKeY is now known as g2`
cesdohttps://youtu.be/1VvCFWWt6-s22:56

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