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

sarnoldsmoser: when you roll out the new cloud-init changes, could you include instructions on how to provide a datasource identifier via qemu commandline or libvirt or both? :)00:06
cjwatsonUnit193: not 0.68, but Simon's passed me some more limited security patches that are on my to-do list to apply.00:16
cjwatsonUnit193: at least probably not 0.68.  it seems like a stretch post-FF.00:16
Unit193cjwatson: OK, thanks.  I've been using a git snapshot package for the Ed25519 support, was wondering if I could finally get rid of it.  As always, thanks for the info.00:17
cjwatsonUnit193: I'll think about it :)00:18
Unit193:)00:21
=== lpotter_ is now known as lpotter
=== JanC is now known as Guest31516
=== JanC_ is now known as JanC
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== NComman`` is now known as NCommander
=== NCommander is now known as Guest57315
dokotoabctl, nacc, xnox: about zypper: the right thing to do is to have a libzypp transition (which was not done when doing the GCC 5 transitions)07:07
=== maclin1 is now known as maclin
pittiLaney: hm, I can't push to autopkgtest-cloud any more; do you mind grabbing http://www.piware.de/tmp/0001-autopkgtest-web-charm-Fix-description-of-github-stat.patch ?08:41
pittiLaney: I was looking what it would take to support alternative users for github requests, and spotted that in the meantime08:42
pitti(turns out I was confused and we don't actually need this, though)08:43
Laneypitti: righto09:07
LaneyI still haven't looked at that github stuff at all09:07
cult-only 1 day left!!11:50
=== _salem is now known as salem_
=== d1b_ is now known as d1b
Laneypitti: do you have a sec for a quick autopkgtest question?13:04
Laneyhttps://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-trusty/trusty/armhf/b/bbswitch/20170222_094343_2af9f@/log.gz13:04
Laneymissing apt update I guess, but how's that meant to happen?13:04
=== salem_ is now known as _salem
=== _salem is now known as salem_
pittiLaney: that looks very odd indeed -- I see the partial apt upgrade from --apt-pocket=proposed, but not the one from --apt-upgrade13:08
pittioh, I see -- we usually hide it: apt-get update | tee /proc/self/fd/213:12
pittiah no, it should appear on stdout for grepping for "Not Found", and also to stderr, so where did that go13:13
Laneyhttps://paste.ubuntu.com/24052958/13:14
Laneywith --debug13:14
zuldoko: ping...have you had a chance to look at those reviews yet?13:24
pittiLaney: whee, where did the --apt-upgrade go to,  it's not there at all13:25
Laneypitti: looks like it's meant to be in setup_commands, but isn't13:29
Laneyno wait, it is13:30
Laneybut it's after setup-canonical.sh13:30
Laneyand setup-canonical wants to do apt-get install build-essential on trusty13:30
pittiI don't see it in e. g. https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-zesty/zesty/amd64/l/lxc/20170221_084939_cab44@/log.gz either13:30
pittiLaney: it is? I don't see it in your pastebin at all13:31
Laneypitti: https://paste.ubuntu.com/24053024/13:32
pittiLaney: oh! so this is from setup-canonical (build-essential) indeed13:32
pittiLaney: so yes, seems we need to run --apt-upgrade before setup-canonical then?13:32
Laneyseems like it13:32
Laneymaybe just swapping the add_argument() will do it?13:32
pittifun that this never broke before13:32
pittithe argv.append() you mean? yeah, the order of --setup-commands is the one you give on the CLI13:33
pittiLaney: untested: http://paste.ubuntu.com/24053032/13:34
pittiLaney: I'm not completely sure that some of the setup scripts might need to run before upgrading the testbed13:35
Laneypitti: meh, I would rather fix autopkgtest so the order you give stuff doesn't matter13:35
pittiLaney: well, but it does13:35
pittiwe can't predict the order in which to run them if the user can't13:36
pittiit's not a given whether you need to run some setup before or after upgrading; think firewall rules or other networking setup13:36
Laneyjust make apt-upgrade always happen before setup commands13:36
Laneyhmm13:36
Laneygood point13:37
pittisetup-testbed for sure needs to run before13:37
pittiwell, actually not, as long as we use custom images (but we don't for stables)13:38
pittiI'd rather rearrange setup-canonical to install build-essential later, or just add an apt-get update right before it13:39
pitti(last is easiest, but also costs a few seconds extra)13:39
Laneywhat's this Jenkins testbed comment?13:40
Laneyis that still relevant?13:40
pittiLaney: yes, it is; until around that time we ran stuff on handcrafted VMs which had build-essential pre-installed13:43
pittiLaney: later on we fixed tests to declare that as a test dep if they needed to build stuff, but our standard cloud images don't have build-essential13:43
pittiso when we moved to the "new" infra, a lot of tests failed due to missing gcc and the like13:43
pittiso either we SRU all those to trusty, or (what we opted for back then) we just grandfather this to install build-essential into trusty testbeds13:44
Laneypitti: ok, so it's a transitional thing that was later fixed, that makes sense13:46
LaneyI'm worried about that MTU thing if I put the --apt-upgrade first13:52
pittiLaney: yeah; as a quick fix I'd just add an apt update into setup-canonical (for trusty)13:53
Laneypitti: Yeah, but then I get worried about dealing with that being flaky13:54
LaneyMaybe it won't be13:54
smosersarnold, we will have that, yes. how would you use it?13:56
smoserare you using the ec2 metadata service?13:57
pittiLaney: copy the retry bit from lib/autopkgtest_args.py?13:58
Laneyright13:58
pittiLaney: a simple apt-get update || (sleep 15; apt-get update) should probably do, too13:58
LaneyI did that for now (well, 10 instead of 15)13:58
smoserrbasak, is it approved behavior still for me to run usd import if there is a package missing that i want ?15:20
smoseror is there a "proper" way to get it15:20
smoserby 'run', i mean run with push15:20
rbasaksmoser: yeah just run with push15:21
rbasakusd import -l racb -v foo # is what I use15:21
smoserusd import -v --directory=foo --lp-user=smoser --lp-owner=usd-import-team foo15:26
smoseris what my wrapper does15:26
smoseri'll drop explicitly adding the --lp-owner15:27
dokozul: networking-bagpipe networking-bgpvpn os-faults accepted (wondering who else is doing source reviews ...)15:28
zuldoko: thanks!15:28
=== gaughen_ is now known as gaughen
LocutusOfBorgpitti, any idea about acct and  https://wiki.ubuntu.com/Teardown ?16:09
LocutusOfBorgI would like to drop the merge16:09
pittiLocutusOfBorg: https://merges.ubuntu.com/a/acct/acct_6.5.5-2.1ubuntu1.patch is wrong anyway16:10
pittiLocutusOfBorg: well, the debian/rules portion is16:10
LocutusOfBorgyes, the override in rules file16:10
pittidebian/acct.init.d is fine (and the only thing that is relevant)16:10
LocutusOfBorgsooooo sync?16:11
pittiif you want to go back in sync, it's not the worst thing in the world16:11
pittiit should at least be reported in Debian though, and applied there16:11
LocutusOfBorgis this thing still an issue with systemd?16:11
pittialthough in systemd it's completely irrelevant16:11
pittino, if a service is running, it will be stopped regardless of what that LSB header says, it's only a small optimization in Debian under sysvinit16:11
LocutusOfBorgso, since we don't support multiple init systems...16:11
pittiLocutusOfBorg: so yes, go sync it16:11
LocutusOfBorgdone thanks16:12
pittidropping deltas is always nice16:12
LocutusOfBorgmaybe I can commit on debian git16:13
LocutusOfBorgdone :)16:15
kierqueenhow id a package made ? after compiling my program using make ?17:52
kierqueenwhat then shall I do , use tar to compress, and archive17:52
kierqueen then where did .deb come in the story17:52
kierqueennacc: hi17:52
nacckierqueen: ok, are you asking how to make a new package?17:52
kierqueennacc yes17:56
kierqueennacc sorry for the late reply hope you don't mind17:57
nacckierqueen: it's fine17:57
nacckierqueen: you don't really need to use bzr, of course17:57
nacckierqueen: http://packaging.ubuntu.com/html/packaging-new-software.html is just a guide17:58
kierqueenyeah, the nwhat shall I use ?17:58
nacchttps://wiki.debian.org/HowToPackageForDebian may also help17:58
kierqueenI have a ismple C program I want to package it ?17:58
nacckierqueen: technically your SCM choice is irrelevant17:59
nacckierqueen: if it's a simple application, you may wnat to snap it17:59
nacckierqueen: http://www.snapcraft.io/17:59
nacckierqueen: requires some ramp-up, but a lot less knowledge of debian packaging18:00
nacckierqueen: why do you want to package up your C program as a .deb?18:00
kierqueendude most binaries that you download are in C or C++18:01
nacckierqueen: binaries are not in a language.18:01
kierqueenflightgear a large game, and tons of other packages of .deb they are all programs18:02
kierqueenbinaries are compiled, their source is C or C++ usually or python18:02
kierqueenI don't use java18:02
nacckierqueen: i genuinely asked to help -- making your own .deb for a simple program is probably overkill18:02
nacckierqueen: if it's a simple program, snapping will be fastger18:02
nacc*faster18:02
kierqueenyeah I like ubuntu is always lenient on you. actually I migrated from arch, so that old overkill arch habit18:03
kierqueenIn arch we use PKGBUILD and make that, if there is no build file for a software18:03
nacckierqueen: i know nothing about arch. If you insist on building your own .deb, read the above guides (and you can use dh_make to frame out your pacakge, potentially)18:05
kierqueennacc: I guess ubuntu is so friendly, that I wont need it at all :)18:06
kierqueenand I am not doing a computer related job either18:06
nacckierqueen: i have no idea what you're talking about now18:07
kierqueenso I don't need it , i feel18:07
kierqueennacc: ?18:07
kierqueenI don't need it ?18:07
nacckierqueen: you don't need what?18:07
kierqueenI am not a software developer, to package a thing ?18:07
nacckierqueen: I don't know if you need to package something or not18:07
kierqueento make a pakcge of a source ? why should I?18:07
nacckierqueen: I don't know, you asked the question...18:07
kierqueenwhy should I ? I am not getting paid anyway18:07
kierqueenwhy should anyone else if they are not getting paid, unless they are stupid, and want to kill their time18:08
viral_mutantI am building a deb package. I need to include a bunch of service files into the package. I dumped all the files in debian directory18:08
kierqueennacc: there are lots of linux hobbysts out their who want to kill their time18:08
nacckierqueen: ok, i'll assume you're trolling now18:08
kierqueenlol18:08
viral_mutantbut it picks only the one which matches the name exactly18:08
kierqueenno I am not18:09
naccviral_mutant: the name of the pacakge?18:09
kierqueennacc I don't have time to waste on trivial pc matters, there are other things in my llife, and ubuntu makes things easier, so no need , unless I get paid, but I don't DO A JOB IN THAT category18:10
nacckierqueen: i have no idea why that's relevant to discussing why you want to package your simple C program. I guess you're saying you don't. Then I don't understand why you asked the question in the first place.18:10
viral_mutantI am building openstack-account package. And the service files are named openstack-account.service, openstack-account-auditor.service, -reaper.service etc18:10
kierqueennacc you are right, I don't neeed it , I misjudged18:11
viral_mutantit includes only openstack-account.service in openstack-account.deb package18:11
naccviral_mutant: right, by default, dh_systemd will only install services named for the package, maybe?18:11
kierqueenwas just curious18:11
nacckierqueen: and you were given guides, and several suggestions18:11
kierqueenthat's all nacc nothing else, no other purpose18:11
viral_mutantnacc: but there must be a way to override it18:13
viral_mutantlike there is for the init files18:13
naccviral_mutant: i think you need to override dh_installinit in your rules and specify to install multiple named services18:14
naccviral_mutant: that's where that default is specified (dh_installinit by default uses the package name)18:15
viral_mutantyes, I am trying with that18:16
viral_mutantbut it’s not picking it. The man page says that —name option works for init files18:17
viral_mutantthere is no mention of service files18:17
naccviral_mutant: the manpage says it works for all types, what versin of ubuntu are you on?18:19
viral_mutant16.0418:19
sarnoldsmoser: just the usual stuff I think: create user with ssh keys, install different packages based on the 'type' of VM I want to spin up, etc18:20
nacchttp://manpages.ubuntu.com/manpages/xenial/en/man1/dh_installinit.1.html "associated defaults files, as well as upstart job files, and systemd service files"18:20
viral_mutantI am looking at manpage on the net18:20
naccviral_mutant: can you pastebin your d/rules?18:20
naccviral_mutant: and the output from building your package18:21
smosersarnold, where do you do it ?18:24
smoserlocally with kvm you mean ?18:24
smoseri suspect you'll be ok if you're launching things locally, and the intent is to not cause issue on any cloud. but just trying to get more example so i can (if possible) make sure i *dont* break you18:25
sarnoldsmoser: well, I haven't -written- my libvirt NIH yet :)18:26
sarnoldsmoser: I'm still NIHing simplestreams..18:26
smoser:)18:26
sarnoldwhich btw serde was able to derive implementations piece of cake. Amazing thing.18:27
smoser?18:27
sarnoldserde is rust's magic serialization / deserialization framework18:27
smoseroh ok.18:28
smosersarnold, well, if you use NoCloud (attached disk) it should all just work. if you are planning on using another datasource, then you'll have to "fake" out that datasource.18:30
sarnoldsmoser: thanks for the tip :D18:31
smoserif you're able to modify the kernel command line, or put a config in place, then you can do that too18:31
smoserkernel command line:18:31
smoserci.ds=Ec218:31
smoserwill make you do ec2.18:31
sarnoldooooo18:34
sarnoldthat's the magic sauce :)18:34
viral_mutantnacc: here is the d/rules file http://pastebin.com/MuiQcP1918:34
sarnoldthanks smoser :)18:35
viral_mutantI am using rules file bundled with Ubuntu swift-account package as reference18:35
naccviral_mutant: did you read the manpage? debian/package.name.init,18:39
nacc           debian/package.name.default and debian/package.name.upstart18:39
naccviral_mutant: which to me implies you need to put the .service file in a similar named structure18:39
=== lamont` is now known as lamont
=== rumble is now known as grumble
juliankMmh, apt seems to be tricky today. It failed three times in the download progress test. I know that's an unreliable test, but that's a new low (or rather, a high)...20:08
juliankLet's give that one more go. Everyone else did it right, just armhf wants to annoy me20:08
juliankNot that it's urgent with beta freeze, but it's still fairly annoying.20:09
pittijuliank: wrt. debian bug 855954 -- is there some version of "apt-cache policy pkg" that *only* gives me results for the package pkg?20:37
ubottuDebian bug 855954 in autopkgtest "autopkgtest: can't handle packages with a + in its name" [Normal,Open] http://bugs.debian.org/85595420:37
pittijuliank: by default it seems to do some kind of substring matching, and enclosing it between ^ and $ then gets confused by '+' in the package name20:38
pittijuliank: i. e. some equivalent of apt-get source's --only-source option?20:38
pittiI want to know the candidate version of a given package -- perhaps I shouldn't be using apt-cache for that20:39
juliankpitti: Not sure, I don't think so. Maybe ask python-apt instead20:39
pittijuliank: I can't assume that this is installed20:40
juliankpitti: Use apt-cache show <pkg>/candidate20:40
pittijuliank: ok, thanks; I just wanted to know whether I'm missing something obvious20:40
juliankpitti: But I'm not sure when /candidate was added to show, so please try if you need to run that on old distros :)20:41
pittiyeah, it needs to work on precise, will check; thanks!20:41
pitti(if it works on trusty, I could kick the code in a few months :) )20:41
juliankpitti: Hmm, that probably does matching as well20:41
juliankpitti: Maybe just escaping the allowed regex characters, and turn it into an anchored regex is easier20:42
pittiyeah, I'm currently trying that; a bit fiddly with posix shell and nested $(), but I'll pour the right amount of escaping into it :)20:42
pitti$ dash -c 'pkg=minisat+; apt-cache policy "^$(echo $pkg | sed -r "s/([.+])/\\\\\1/g")\$"'20:51
pittiain't that obvious :)20:51
juliankpitti: Whoa, what kind of regex is that?21:17
pittijuliank: well, apparently the one that tells apt-cache policy "please give me *THIS* package name *ONLY*" :)21:17
juliankpitti: The \  have an uneven number, that's a bit odd21:18
juliankwith one more \ it works as well21:19
juliankor not21:19
pittijuliank: yeah, true that21:19
pitti(haven't tested, but it sounds plausible)21:19
juliankwell, it gives me "minisat \+"21:19
pitti\\\\ through the two shells becomes \21:19
juliankAh no, input error21:19
pittiand \1 is the backref for sed21:19
juliankActually, the number of shells does not matter21:20
juliankJust running echo minisat+ | sed ... in the terminal has the same result as putting that inside a dash -c21:21
juliank$() has some odd quoting rules21:21
pittijuliank: TBH, I kept adding \ until it worked..21:23
pittithe sophisticated term for that that hides the fact that you don't understand what you are doing is "Test Driven Development" :)21:23
=== salem_ is now known as _salem
acheronukbarry: gpgme -> release seems to be happening :)22:00
barryacheronuk: yep, i believe it was blocked for beta1.  yay22:20
naccwhew and it looks like perl will transition too22:22
=== NCommander is now known as Guest76098
juliankI think I'm about to give up. I tried running the apt tests on armhf 4 times now, but they still fail with one of these test cases that fails from time to time23:05

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