/srv/irclogs.ubuntu.com/2018/07/27/#ubuntu-devel.txt

=== blahdeblah_ is now known as blahdeblah
seb128cjwatson, launchpadlib's getRequestedReviews() doesn't seem to list git merge proposals, do you know if that's a known issue? or maybe I'm using it wrong?08:42
cjwatsonseb128: Rings a bell ... ah yes, https://code.launchpad.net/~cjwatson/launchpad/git-getRequestedReviews/+merge/27113609:02
cjwatsonI need to finish a moderately large refactoring to make that work09:03
seb128:/09:03
seb128do you have any workaround solution you can think of?09:04
cjwatsonNot really, short of maybe scraping the web UI09:05
seb128k, what I though09:05
seb128oh well09:05
seb128thanks cjwatson!09:06
cjwatsonAdding a card for myself to revive that MP09:06
seb128cjwatson, thanks!09:11
rbasakmvo: that was quick!09:32
rbasakI asked security in #ubuntu-hardened09:32
mvorbasak: I will reply to the other questions in the bug09:33
rbasakinfinity: ^ did you see my comment?09:36
infinityrbasak: I read your comment pretty much as I was clicking accept.  We both noticed the subsequent commit (hence why mvo was so "quick" :P)09:37
rbasakAh :)09:37
infinityrbasak: I don't think the security concern is valid, FWIW.  If it is, we've done something very wrong, as UUIDs from libuuid are *never* guarnteed to be truly random.09:38
infinityrbasak: It's just that in some cases, they're kinda more random than others.09:38
infinityrbasak: So, I mean, if someone wants to hunt down if we're stupid, hunt away, but it shouldn't block this SRU even if it turns out we are stupid, we just need to stop being stupid.09:39
rbasakIf the collision risk goes from small to big, then that can introduce a security issue where there wasn't one before (iff we were relying on unguessable UUIDs for security purposes)09:39
infinityrbasak: I can't see how we'd be relying on that, to be fair.09:40
infinityrbasak: Any UUID generated on a build system is known to the world, and can be reproduced by, y'know, copying and pasting.09:40
rbasakWhat about on a production system?09:40
rbasakcloud-init + openstack does weird stuff09:41
rbasakAnyway, I can't pin down a specific case; I was only concerned that there might be one. So it's not possible for me to win this argument by showing you a case :)09:41
rbasakI just wanted someone else who can think about it to think about it harder.09:42
rbasakI guess you've done that :)09:42
rbasak(also I hear you're on the security team :-P09:42
infinityrbasak: The second-oldest active member!09:43
rbasakSounds like you're adding arbitrary qualifiers to work your way up the rank. Speaking as the oldest non-white (I think) SRU team member :-P09:45
infinityHahaha.09:45
infinityrbasak: Is that (you think you're the oldest non-white member) or (you think you're non-white)?09:45
rbasakThe former. But the latter amuses me :)09:46
infinityrbasak: I mean, you're one of the most stereotypically English people I know.  Is it possible you're just wearing a brown suit to throw everyone off?09:47
rbasak:-P09:48
rbasakStereotypically English but with a handy bonus race card :-)09:49
infinityrbasak: Does being Indo-British mean you get to enjoy tea twice as hard?09:50
mvorbasak: I can dig some more into the question especially if and how much the randomness might regress.09:50
mvorbasak: unless you two consider this settled here :)09:50
mvotea++!09:51
rbasakI think we're OK as long as some smart people have thought about it.09:51
rbasakmvo and infinity both qualify :)09:51
infinitymvo: With the second commit, on a running system with decent entropy, the overall result should be "basically the same as before".  In very early boot, randomness will definitely regress, but I really can't think of many times you generate a UUID in early init *and* care that it's globally unique.09:51
mvoinfinity: totally agree09:52
infinity(Plus, while the RFC and the name UUID claims global uniqueness, any mathmetician will tell you that's literally impossible to guarantee, it's the statisticians who will say "close enough")09:52
mvoinfinity: I also think parted is just silly09:52
mvoinfinity: it calls (indirectly) random_get_bytes 4 times when just doing "parted p"09:52
infinityAnd any security expert who listens to statisticians over mathmeticians is likely to have a bad day.09:52
mvoinfinity: so definitely something fishy going on there, fixing parted is probably also nice. I didn't want to waste too much time on this though (parted has way more layers :)09:53
infinityparted is evil incarnate.09:53
cjwatsonWould be nice to work out where that is in parted.  It might be specific to the disk layout ...09:53
infinityWhy are you even using parted instead of something simpler like sfdisk?09:53
mvoinfinity: I don't know, sorry, but afaik sfdisk has a similar problem a9cf659e0508c1f56813a7d74c64f67bbc962538 mentions sfdisk09:55
mvoinfinity, cjwatson I can look at gparted and timebox it09:55
mvoits an interessting problem for sure :)09:56
infinitymvo: So, wait.  Both sfdisk and parted are calling uuidgen when *growing* partitions, and they don't actually use the result for anything?09:56
infinitymvo: Cause if so, lol?09:56
infinityOr does growing imply giving it a new UUID because reasons?09:57
mvoinfinity: parted even call random_get_bytes (indirectly) when you just print partitions09:58
mvoinfinity: I have not looked at sfisk at all09:58
cjwatsonThe calls here are in gpt_alloc and gpt_partition_new09:58
sladendepends on the version of the UUID being requested to be generated ... eg. version 1 is MAC address + timestamp, which with reproducible builds, should produce the same result every time09:58
cjwatsonmvo: Are you using GPT on this disk?09:59
mvocjwatson: yes09:59
cjwatsonArguably a bug in parted's GPT code then.  When it's constructing internal data structures to match what's on the disk, it generates GUIDs even though it's about to read the new ones off disk.10:02
cjwatsons/the new ones/the existing ones/10:02
cjwatsonparted shares a fair bit of code between "create actual new partition" and "create new partition data structure and fill it in from what's on disk", and in this case the GUID generation is probably in the wrong place.10:03
cjwatsonIt might need some kind of internal marker to do lazy GUID generation.10:05
cjwatsonDo file a bug - it's not completely simple but shouldn't be too hard.10:05
cjwatsonI think it's just GPT.10:07
mvocjwatson: I filed 1783973 but I think its probably overkill to fix as long as we don't need crypto strengh randomness for uuids10:22
infinitymvo: Meh, it's wrong for anything to suck your entropy dry when it doesn't actually need any.10:26
infinityValid bug, even if the impact is minimized by the libuuid fix.10:26
Unit193..I don't suppose anyone would be interested in sponsoring irssi right now?11:08
chuNeed a maintainer?11:14
Unit193chu: I like merging from Debian, but alas I am but a measly packageset uploader.11:15
chuI thought about applying to look after the newest emacs but seems quite hectic11:17
Unit193I think I looked at that package once, bailed the crap out of there.11:17
chuSmart choice11:18
Unit193dget -x https://sigma.unit193.net/source/irssi_1.1.1-1ubuntu1.dsc  if anyone is interested++11:19
chuFancy11:21
juliankcyphermox: https://netplan.io/reference says different things than the netplan manpage, about timeouts specifically - netplan.io says they depend on the renderer, manpage says they are ms.13:18
gromeroHi. I think there is an issue with with 18.04.1 PPC64 ISO. 'isoinfo' complains about Joliet SVD not being present in the ISO:13:19
gromeroroot@pub:/var/lib/libvirt/isos# isoinfo -J -i ./bionic-live-server-amd64.iso # OK13:19
gromeroroot@pub:/var/lib/libvirt/isos# isoinfo -J -i ./bionic-live-server-ppc64el.iso # Fail13:19
gromeroisoinfo: Unable to find Joliet SVD13:19
gromeroI see a difference regarding the # of partitions:13:19
gromeroroot@pub:/var/lib/libvirt/isos# file ./bionic-live-server-amd64.iso13:19
gromero./bionic-live-server-amd64.iso: DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 1590408, 4672 sectors13:19
gromeroroot@pub:/var/lib/libvirt/isos# file ./bionic-live-server-ppc64el.iso13:19
gromero./bionic-live-server-ppc64el.iso: DOS/MBR boot sector; partition 1 : ID=0x96, active, start-CHS (0x3ff,255,63), end-CHS (0x3ff,255,63), startsector 0, 1634024 sectors; partition 2 : ID=0xff, start-CHS (0x3ff,255,63), end-CHS (0x3ff,255,63), startsector 2129919, 1936615684 sectors13:19
gromeroBasically it forbids virt-install --location flag to work properly on that ISO: https://pastebin.com/raw/A0XZaNmM13:20
gromeroDoes anybody have any clue on that?13:20
juliankgromero: I'm not an expert, so, what is that, how is it used, and is it relevant for ppc64el?13:21
juliankAFAICT, it is used when certain files are unicode encoded.13:22
gromerojuliank: Hi. Basically that error on Joliet SVD missing on that ISO, as far as I can tell, forbids that ISO to work properly with virt-install, i.e. I can't install a VM using the ISO on PPC64.13:22
gromerojuliank: I see. But do you know what's exactly the difference between Intel/AMD ISO and PPC64 that could trigger that error in isoinfo?13:24
gromerojuliank: you mean any file in the ISO?13:25
gpiccoliinfinity might be aware of this difference, let's see what he thinks when available13:25
gromero(using unicode encode)13:25
gromerogpiccoli: ok13:25
cyphermoxjuliank: sure, the netplan.io website needs an update, that doesn't happen automatically13:32
juliankcyphermox:it just got pointed out to me today, hence I thought I'd let you know :)13:33
cyphermoxyup, thanks13:42
cyphermoxpointed out by?13:42
cyphermox(feel free to send them my way, new features, bugs, etc.)13:43
juliankugh13:48
juliank$ petname -u13:48
juliank-yeti13:48
juliankno adjective with y?13:48
juliankgrr13:48
ograyodeling ?13:49
xnoxgromero, huh, that makes no sense =)13:56
xnoxgromero, amd64 has joliet, because it has uefi, and ppc64el, doesn't because it does not do eufi....13:56
xnoxgromero, you will find that e.g. arm64 is also joliet.13:57
xnoxgromero, this sounds like a bug in virt-install to me, and i'm not sure if that support ppc64el at all....?! does it work with any other ppc64el images for any other distro?13:57
xnoxgromero, also, why bother to use virt-install, when you can just directly boot ppc64el cloud-image that we provide?13:57
xnoxand provide appropriate metadata ISO to customize the instance, and resize the drive to needed size.13:58
gromeroxnox: virt-install just crash because of the Joliet error returned by make isoinfo. I would expect that virt-install is not that arch-specific also (aside from isoinfo issue). Let me try with RHEL.  I simply don't want to use cloud-image. Which cloud-image are you talking about specifically?14:01
xnoxgromero, https://cloud-images.ubuntu.com/bionic/current/ bionic-server-cloudimg-ppc64el.img14:02
xnoxgromero, which is pre-installed ubuntu-server, in qcow2 format, bootable, with cloud-init available, and awaiting e.g. seed.iso to be booted on the instance for autodiscovery and configuration14:02
xnoxgromero, at the bottom of https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html there is a section on how to create a custom seed.iso with your own ssh keys, packages to isntall/configure, tec.14:04
gromerook I'll use that to move on. thanks for the hint. However I really not satisfied yet about the complains of isoinfo. I would like to understand what's really going on, so if anybody could explain I would be glad. Let me try with RHEL (will get back soon). ;)14:04
xnoxgromero, at the bottom of https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html there is a section on how to create a custom seed.iso with your own ssh keys, packages to install/configure, etc.14:04
gromeroxnox: ok. I'll check that. Thanks!14:04
xnoxgromero, my initial suspection is that virt-install is expecting x86_64 .iso image with UEFI joilet partition for booting in e.g. uefi mode... which is all very x86_64 specific.14:05
xnoxgromero, i typically download and boot cloud images =) either directly with cmdline, via virt-manager, or with like uvt command line tool; or like with multipass command line tool, which provide the "give me a vm, ssh into it, quickly"14:06
xnoxdepending on what i'm doing.14:06
xnoxgromero, but i also have access to ppc64el openstack and MAAS =) so i have all the toys available to me to play with everything.14:06
gromeroxnox: I see. Openstack and MAAS is too overkill to my case... multipass and uvt sounds better tho :)14:08
gromeroxnox: thanks for the hints. I'll try uvt14:09
xnoxgromero, everything does work on x86_64... and if it doesn't for some reason on ppc64el, do shout and we'll try to fix all the things.14:09
xnoxgromero, our cloud-images and cloud-init are working on all arches to be directly launched to create VMs -> i.e. all launchpad builders for all 7 arches work like that.14:10
gromeroxnox: ok. I'll experiment other ISOs to see how it goes. I still think the root cause is that isoinfo is not able to list files in the ISO with -J -i <ISO> -p on ppc64le14:10
gromeroxnox: do you use multipass and uvt with the cloud images?14:11
xnoxgromero, sure, but it is arch specific whether or not .iso is a joilet or not.14:11
xnoxgromero, they default to our cloud images, yes.14:11
gromeroxnox: ah, ok. I'll check that so.14:11
xnoxi think i did on x86_64 and arm64 and s390x.... mostly.14:11
gromeroxnox: yes, but isoinfo should detect the differences between ISOs and handle it nicely I think.14:12
xnoxand sans bugs, it should all just work on ppc64el too. I mean booting with a custom seed.iso as per docs about does work on ppc64el and i have done that.14:12
gromeroyes, cloud image I'll probably work fine on ppc64le14:13
gromerowhat bugs me is that it didn't work with the ISO + virt-install as it does for other archs14:13
gromeroxnox: it does work perfectly with a RHEL 7.5 image: https://hastebin.com/raw/gobonexuwe14:21
gromeroxnox: just because isoinfo is able to list the content o RHEL's ISO14:22
xnoxgromero, please do $ ubuntu-bug virt-install14:22
xnoxand file details, and maybe we can figure out if patches to virt-install are needed, and/or isoinfo, and/or the way we produce our .iso images on ppc64el.14:22
xnoxgromero, i mean, we don't sabotage our images on purpose and we would rather them be as universally consumable as possible =)14:24
gromeroxnox: I would never think that Canonical sabotage their images or anything to be honest. And I still think the issue is with buggy isoinfo that is not smart enough to figure out the ISO particularities...14:26
gromerook. I can file a bug14:26
xnoxgromero, can even make the bug affect all the things you see should be fixed. in practice, silly things like that should just work, irrespective of the details.14:27
gromeroI don't think that not being able to list the ISO contents is a detail, but I'll file all the details I have in the bug. thanks.14:28
=== walbon is now known as gwalbon
dannfdmj_s76: not generally, no. why?15:10
=== TheMaster is now known as Unit193
=== TheMaster is now known as Unit193
Unit193LocutusOfBorg: Howdy, you alive?20:52
LocutusOfBorgUnit193, if you want to give me a merge... might be20:56
LocutusOfBorgbut going to sleep in 10 min20:56
Unit193LocutusOfBorg: https://sigma.unit193.net/source/irssi_1.1.1-1ubuntu1.dsc how did you know?! :D20:58
LocutusOfBorgI was going to ask you why you didn't gave me an irssi merge, already two days ago :)20:59
Unit193Please make sure to check the changelog so we don't anger $other_people21:00
LocutusOfBorgwhat do you mean?21:01
LocutusOfBorgdpkg-buildpackage -S -sa -d -v1.0.7-1ubuntu121:01
LocutusOfBorgand I'm going to sponsor21:01
LocutusOfBorgI don't get why the patch is applied only in Ubuntu, but meh21:01
LocutusOfBorgdput refuses to upload "devel" codename, but dupload does21:04
LocutusOfBorgI think I did it21:04
Unit193Perhaps you mean dput-ng?  I use dput.21:06
LocutusOfBorgI don't remember...21:07
LocutusOfBorgone for doing dcut dm, the other fails to do it21:08
LocutusOfBorgand then I install again the other one21:08
LocutusOfBorgand then I change it back once somebody asks me to allow a package21:08
LocutusOfBorgmeh, :/21:08
LocutusOfBorgI never found one tool to rule them all21:08
Unit193dput just does what you tell it, dput-ng tries to lint first (which is good, except when it doesn't know better and won't let you do something.)  It does make certain Debian specific things easier though.21:10
bdmurrayslangasek: the package installation in bug 1784065 includes dpkg and libglib2.0-0 but libglib2.0-0 happened first21:30
ubottubug 1784065 in glib2.0 (Ubuntu) "package libglib2.0-0 2.48.2-0ubuntu3 failed to install/upgrade: triggers ci file contains unknown directive `interest-await'" [Undecided,Incomplete] https://launchpad.net/bugs/178406521:30
slangasekbdmurray: yeah, the dpkg SRU is unrelated21:30
bdmurraydpkg:amd64 (1.17.5ubuntu5.8, 1.18.4ubuntu1.4) ?21:32
bdmurrayslangasek: its an upgrade from Trusty to Xenial21:33
slangasekbdmurray: oh21:34
slangasekbdmurray: did no one verify that trusty dpkg supported this syntax before we started changing xenial packages?21:35
bdmurrayslangasek: did no one suggest checking that? seriously I don't recall talking to juliank about it21:37
slangasekbdmurray: I assumed there were other people more familiar with dpkg involved in this who would have checked :)21:39
slangasekbdmurray: so, it's ok to still have the triggers changed, but it means that every package with this new syntax needs to have a pre-depends on newer dpkg21:44
bdmurrayslangasek: yes, I see that now21:44
bdmurrayslangasek: Are you updating the bug or shall I?21:50
slangasekbdmurray: please do21:50

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