[05:22] <mborzecki> morning
[06:02] <mborzecki> mardy: hey'
[06:04] <mardy> mborzecki: hi!
[06:06] <mardy> mborzecki: I'm struggling with writing a unit test. I don't understand how to do mocking in Go... and on the interwebs I can't find anything useful
[06:06] <mardy> I found this: https://stackoverflow.com/questions/36688872/golang-test-mock-functions-best-practices, but still doesn't answer the main question (if you search for "mardy" in the page you'll find the question I just added)
[06:07] <mardy> they all explain how to mock a function or an interface, but not how to mock a package
[06:11] <mborzecki> mardy: quich chat maybe?
[06:11] <mborzecki> and you can share your screen then
[06:14] <mardy> oh, thanks, sure
[06:16] <mardy> mborzecki: sent you an invite
[06:30] <mborzecki> mvo: hey
[06:32] <mvo> good morning mborzecki
[06:46] <zyga-mbp> good morning
[06:46] <zyga-mbp> mvo: hey :-)
[06:46] <zyga-mbp> how are you doing?
[06:46] <mvo> good morning zyga-mbp ! I'm good, thank you
[06:48] <zyga-mbp> mvo: I'm working on something that could be useful for you when completed: a way to run spread tasks against a lava installation
[06:48] <zyga-mbp> mvo: lava supports quite a lot of devices for automation, so it might be an alternative to test flinger
[06:49] <zyga-mbp> mvo: we should have it working in a week or two
[06:49] <mvo> zyga-mbp: nice! do we use that in our cert lab too?
[06:50] <zyga-mbp> mvo: I don't know, even if it's really apt-get install away to get working, there's some initial config (admin user, register devices) but it could be something to consider especially if the target board is supported already
[06:50] <zyga-mbp> mvo: and plars has long linaro history so it's not entirely foreign
[06:51] <zyga-mbp> mvo: anyway, for us it's a way to have one infra layer for linux and zephyr
[06:51] <mvo> zyga-mbp: cool, I guess I shall talk to plars (?)
[06:51] <zyga-mbp> mvo: while being able to use spread locally during development and in CI
[06:51] <mvo> zyga-mbp: neato
[06:51] <zyga-mbp> mvo: for linux at least, zephyr is a big unknown for now :)
[06:51] <zyga-mbp> mvo: cool, I'll let you guys know when it's working
[06:52] <zyga-mbp> mvo: if you want to see any of the patches and have a chance to review we can do that too, but I don't know if you have the time to invest in that activity
[06:52] <zyga-mbp> mvo: we literally just have the first two patches up for review
[06:53] <mborzecki> zyga-mbp: prs to spread upstream?
[06:54] <zyga-mbp> mborzecki: sure but I'm still waiting on the small PR to unbreak tests
[06:54] <zyga-mbp> I have patches that fix go 1.6 support, make go vet happy
[06:54] <zyga-mbp> I can all post those but really, someone has to review
[06:54] <mvo> zyga-mbp: I organized a review meeting for monday, I hope to land some of the pending spread PRs then
[06:54] <zyga-mbp> mvo: oh that's cool
[06:54] <zyga-mbp> mvo: next monday?
[06:54] <zyga-mbp> I can post more then
[06:54] <mvo> zyga-mbp: let's see how this goes
[06:54] <zyga-mbp> cool, thank you for organizing that!
[06:55] <zyga-mbp> I will post everything I have that's relevant
[06:55] <mvo> zyga-mbp: my pleasure
[06:55] <zyga-mbp> woot, that's great
[07:05] <pstolowski> morning
[07:13] <mvo> good morning pstolowski
[07:15] <zyga-mbp> good morning pedronis :)
[14:37] <cachio_> mborzecki, hi, tumbleweed is failing to build https://github.com/snapcore/snapd/pull/10367/checks?check_run_id=2794258646#step:5:3568
[14:37] <cachio_> any idea about how to fix it?
[14:59] <mborzecki> cachio_: hm looks weird, the builds on OBS are green, although the last rebuild was 3 days ago
[15:08] <mborzecki> pedronis: opened https://github.com/snapcore/snapd/pull/10377 which should be fairly easy to land
[15:10] <pedronis> mborzecki: thx
[16:02]  * cachio_ lunch
[16:07] <pedronis> ijohnson[m]: https://github.com/snapcore/snapd/pull/10266 is ready for re-reviews I think
[16:08] <ijohnson[m]> pedronis: ack will add it back to my queue
[16:12] <pedronis> thx
[16:18] <mvo> could someone do a quick double check at 10378, I need a +1 for merging
[16:18] <ijohnson[m]> mvo: looking now
[16:18] <mvo> ta
[16:20] <ijohnson[m]> mvo: approved
[16:31] <dob1> hi, hy a snap application cannot enter a directory mounted via autofs ?  it gives me permission problem with all snap applications while I have no problem to access that dir with my user via terminal/other application
[16:31] <dob1> I get this error  Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)
[16:35] <dob1> ah because snap apps can only access home dir?
[16:36] <dob1> https://askubuntu.com/a/1033617     why this limitation?  it makes no sense....
[16:36] <ijohnson[m]> dob1: snaps need to be given permission to access files through interfaces, the mount-observe interface would give access to /proc/self/mountinfo IIRC
[16:37] <dob1> ijohnson[m], and how?
[16:38] <ijohnson[m]> dob1: are you building your own snap or are you using someone else's snap ?
[16:38] <dob1> someone else
[16:38] <ijohnson[m]> dob1: you can check if the snap has the mount-observe interface plug defined with `snap connections <name-of-snap>`, if it shows up then all you need to do is `snap connect <snap-name>:mount-observer`
[16:39] <ijohnson[m]> s/mount-observer/mount-observe
[16:40] <dob1> ijohnson[m], it's not
[16:40] <dob1> let me say, not to critic the work of someone else, but it's so complicated ... why ? in 2021 I just want to access a file other that my home dir....
[16:42] <ijohnson[m]> dob1: then you need to ask the publisher to add that connection to their snap, you should be able to contact them if you look at `snap info <snap-name> | grep contact`
[16:53] <dob1> ijohnson[m], why there is a such limitation by default?
[16:55] <ogra> dob1, because everyone can upload and create snaps in the store the apps run in a confined space
[16:56] <ogra> dob1, the interfaces allow you as a user to decide if you trust the app enough to give it permissions to access info, hardware or places of your system
[16:57] <ogra> (imagine IOS or android apps)
[16:57] <dob1> well it's not the same
[16:58] <ogra> sadly the author of your app did not add the interface plug you need here
[16:58] <dob1> ios and android apps (more ios ones) are checked by apple and google before user can use them from app/play store
[16:58] <ogra> the same happens with snap apps
[16:58] <ogra> they run through a ton of automatic checks on upload
[16:58] <dob1> that's fine then
[16:59] <ogra> the difference is that n IOS or android you get a popup asking you for the permissions when the app tries to access i.e. your GPS
[16:59] <ogra> snaps do not have that integration yet
[16:59] <ogra> so you need to come here and ask 🙂
[17:00] <ogra> and then ask the snap developer to add the missing plug
[17:00] <RzR> the other option would be to let user define forbiden interfaces and let the application deal with this
[17:00] <dob1> this application is a mp3 player, it makes sense that I want to load my mp3s from another location than my home....
[17:00] <ogra> eventualy snaps will also ask about the permissions interactively ....
[17:01] <RzR> or let user define granted paths for app (ie: ~/Music by default)
[17:01] <ogra> well, most player apps tat need this have the removable-media plug ... if yu connect it it will give you access to /mnt and /media where i.e. usb disks get automounted
[17:02] <ogra> does "snap connections <the app you have>" list removable-media  ?
[17:02] <dob1> ogra, it lists this one
[17:03] <ogra> try mounting your disk in media or mnt ... and use snap connect to connect the interface
[17:03] <ogra> that should get you going
[17:03] <ogra> RzR, ~/Music is included in the home interface
[17:03] <dob1> ogra, I installed another app in the meanwhile, no problem.  I was just considering how this system works.  I am used to just apt
[17:04] <ogra> yeah 🙂
[17:04] <ogra> snaps are closer to mobile or tablet apps than to apr/rpm
[17:04] <ogra> *apt
[17:04] <RzR> ogra, but maybe user want to not expose ~/Documents
[17:04] <ogra> also incuded in home
[17:05] <ogra> oh that ...
[17:05] <ogra> yeah ... we dont have such fine grained management yet
[17:05] <dob1> ogra, the idea of permissions make sense, it's not as you said user friendly but as RzR said it would be nice that the user can add any permission he wants
[17:06] <ogra> well, snaps do support xdg portals ... with that you can access anything on the filesystem the user has read access to
[17:06] <ogra> but it requires the app developer to implemet it
[17:06]  * cachio_ afk
[17:06] <ogra> not all apps have that
[17:08] <dob1> can I read more about the checks on the apps?
[17:08] <dob1> do you have some link?
[17:08] <ogra> https://code.launchpad.net/review-tools should have some of it
[17:09] <ogra> they are also packaged as a snap 😉
[17:09] <ogra> so you can "snap install review-tools" and run them at home
[17:09] <dob1> to be honest this is the part that worried me most
[17:09] <ogra> to check a snap before uploading
[17:10] <ogra> there is also a CVE checker builtin to check for known security vulnerabilities ... in case you want to check other peoples snaps yu have installed
[17:10] <dob1> ogra, where is is?
[17:10] <ogra> i just gave you the link above 🙂
[17:11] <ogra> (or the command to install the binary)
[17:11] <dob1> I take a look, thanks
[17:12] <RzR> I think there is at least 2 roles regardings such policies
[17:12] <RzR> what developer wants
[17:12] <RzR> and what user is ready to give
[17:12] <ogra> well, my mom doesnt care ...
[17:13] <RzR> i care of my mom :)
[17:13] <ogra> she just wants to use the SW ... and wants to be safe .... i.e. not have her gmail passwords stolen by an mp3 player app
[17:14] <RzR> an other option would be to have pre-defined settings approved by some trusty org like EFF
[17:14] <ogra> and TBH the majority of ubuntu users is on a technical level of my mom
[17:14] <ogra> uh, what has the EFF to do with packaging software ?
[17:15] <RzR> maybe not EFF itself
[17:16] <RzR> but they can approve that some policies are trustworthy or not
[17:16] <RzR> this mean policies should be in other channels
[17:16] <ogra> so can the ubuntu security team
[17:16] <RzR> like adblockers's black/white lists for the web
[17:16] <RzR> sorry if i am unclear
[17:17] <RzR> but I would be eager to apply to my systems some rules that will restrict the applications I use
[17:17] <ogra> you need to be deeply into the implementation to understand implications of what an interface does or doesnt allow
[17:17] <RzR> instead of writing then myself
[17:17] <ogra> i dont think comparing it to URL list of adblockers is a good analogy
[17:17] <RzR> your MP3 player is a good example
[17:18] <RzR> what is reasonable and what is not
[17:18] <ogra> well, the philosophy of snap security is "less is more" ... meanings to be as locked down as pssible .... and then open peice by piece
[17:18] <RzR> but it's clear for me that it can't be done only by one entity
[17:19] <RzR> good philosophy
[17:19] <RzR> well there are several problem here
[17:19] <ogra> so as requirements come in, interfaces are added and extended
[17:19] <ogra> but effectively the decision should lie at the user
[17:19] <RzR> but I wish a system that can be hardened user's side
[17:20] <ogra> it can
[17:20] <RzR> good
[17:20] <ogra> you can always disconnect interfaces
[17:20] <RzR> this is valuable feature
[17:55] <pedronis> ijohnson[m]: I reviewed https://github.com/snapcore/snapd/pull/10347
[23:47] <mwhudson> does anyone have any idea why my snap build is failing with
[23:48] <mwhudson> /root/parts/subiquity/install/usr/bin/python3: No module named pip
[23:55] <mwhudson> and after snapcraft clean, multipass is complaining about the "snacraft remote" not working?
[23:59] <mwhudson> oh ssl errors in the logs grunk


[02:34] <Pikkachu> can anyone help me with my ppa?
[10:15] <pikkachu> I have wrong diffs in ppa packages, how to fix it?
[16:13] <jrib> hi, I'd like to mirror https://github.com/mason-larobina/luakit.git on launchpad.  I think I've set this up correctly at https://code.launchpad.net/~jrib/luakit/devel, but the latest revisions are not being imported.  Why?  Does it have something to do with the way the branches are named in luakit?  What can I do about it?  Thanks.
[16:19] <jelmer> jrib: by default, launchpad imports the master branch
[16:20] <jrib> jelmer: can that be changed?
[16:37] <jrib> jelmer: and see here I created a new branch and it has some later revisions :/  I'm confused: https://code.launchpad.net/~jrib/luakit/develop
[16:37] <jelmer> jrib: you can add ",branch=NAME" to the URL to import the branch named NAME
[16:40] <jrib> jelmer: thanks, let me try that
[16:42] <jrib> jelmer: am I correct that I need to delete the current branch and create a new one?  I can't find a way to edit the git branch location
[16:44] <jelmer> jrib: yeah, I think so
[17:33] <sreich> jrib: yeah, i had to delete it and make a new one as well
[17:34] <jrib> sreich: thanks, I ended up doing that
[17:37] <jrib> oops, except the import failed :)  https://code.launchpad.net/~jrib/luakit/develop
[17:37] <jrib> erm, let me try with git://
[22:09] <mfisch> Is there way to see whether my dput to a personal PPA went through (or what went wrong if it did not)?  It has been about 7 hours since my dput, and I got nothing
[22:17] <james_w> mfisch, if you didn't get an email and there's nothing on the PPA page then it's 99% probable that there was a problem with the signature
[22:17] <james_w> e.g. being signed with a key that isn't associated with a Launchpad account
[23:12] <mfisch> james_w: aha, well I was trying to dput it unsigned
[23:23] <mfisch> james_w: and once signed it was there in like 60 seconds
[23:23] <mfisch> james_w: thx
[23:39] <pikkachu> can anyone help me with problems in my ppa?
[23:49] <wgrant> pikkachu: The files will usually be removed 2-3 weeks after they are unused by published packages. We only bypass that schedule in cases of copyright issues.
[23:57] <pikkachu> wgrant: ah thanks... but what's to be "used" by published packages? to be dependencies of published packages?
[23:58] <pikkachu> will the diffs be updated? the diffs between the packages are between deleted and published version
[23:59] <pikkachu> I'm not sure if the diff is static (generated once at building/publishing) or generated dynamically on page request...


[00:15] <ruben23> hi guys
[00:15] <ruben23> can i do Active directory and domain controller on mixed linux and windows client...?
[00:16] <ruben23> any suggestion
[00:22] <ruben23> any one to suggest..?
[00:35] <Callum__> ruben23: yes you can
[00:36] <Callum__> I can't believe my luck hehe, found four unused 300GB drives at work for me to take <3
[00:36] <Callum__> external SCSI drives that I can use in my server system...
[00:38] <ruben23> Callum__: can you explain how is done just a background idea
[00:39] <Callum__> ruben23: a specially configured Samba server can connect to a Windows Server AD-DS forest (but cannot create one)
[00:40] <ruben23> Callum__: i dont have exisitng AD windows server, just want to start with linux server
[00:40] <Callum__> ruben23: Samba can only create a NT-style domain, not an Active Directory forest
[00:41] <jMCg> Callum__: Samba 4 too?
[00:42] <Callum__> jMCg: I'm pretty sure Samba 4 will be able to create an AD-DS forest...
[00:48] <ruben23>  Callum__:ok so samba 4 can stand alone to be a DC/AD right for my network..?
[00:48] <Callum__> ruben23: not sure, plus Samba 4 is pretty unstable right now...
[00:49] <ruben23> ow ok
[00:49] <ruben23> whatt can you suggest on my requirements..?
[00:50] <ruben23> just do simple directory management for mixed windows and linux client
[01:45] <shizzle> do you guys use Apache MINA FTPServer to allow users to ftp to the apache www directory?
[02:02] <shizzle> what should I use to setup ftp to my apache www share?
[02:05] <jpds> shizzle: vsftpd?
[02:06] <shizzle> ok yeah i instlaled that and can ftp to my box, but goes to users share
[02:07] <shizzle> trying to figure out how to make it go to the apcahe www dir
[02:08] <jpds> shizzle: https://help.ubuntu.com/8.04/serverguide/C/ftp-server.html
[02:41] <Sattvic> Anyone have experience with Eucalyptus?
[02:44] <Sattvic> I have a few easy questions for a server admin...
[02:50] <lullabud> looking for a good network based enterprise backup solution.  anybody have suggestions?
[02:52] <Sattvic> @lullabud - not jungledisk - way too slow
[02:53] <lullabud> hah, good to know, Sattvic.  i'll stay away from them.
[02:54] <lullabud> i can't remember the one we used at my last company... their windows config tool was ridiculous, but their linux stuff was easy.
[02:54] <lullabud> i am hoping to do something with rdiff-backup to an offsite long-term archive.
[02:54] <lullabud> or something to that effect...
[03:35] <shizzle> How can I make all files in a directory inherit permissions from it's directory?
[03:51] <ubuntuNewBe> hey is this where I can get some help for server applications?
[03:55] <lullabud> ubuntuNewBe: yes
[03:58] <ubuntuNewBe> ty lullabud, does anybody here have experience with ssl certs that can answer a question or two?
[04:00] <lullabud> ubuntuNewBe: fire away
[04:01] <ubuntuNewBe> I am trying to understand a couple of lines of ssl code on one of the ubuntu pages.
[04:01] <ubuntuNewBe> what do these 2 lines mean? openssl req -new -key smtpd.key -x509 -days 3650 -out smtpd.crt # has prompts
[04:01] <ubuntuNewBe> openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
[04:01] <ubuntuNewBe> does the 2nd line create a self signed cert?
[04:01] <ubuntuNewBe> lullabud, does this line create a root self-signed cert?  openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
[04:03] <ubuntuNewBe> I got this line from the instructions to enable ssl on postfix from this page:  https://help.ubuntu.com/community/Postfix
[04:03] <lullabud> ubuntuNewBe: no, a certificate will usually have .crt for its file extension
[04:03] <lullabud> here is a tutorial you can check out - http://www.akadia.com/services/ssh_test_certificate.html
[04:04] <lullabud> you're almost there with what you got
[04:04] <lullabud> the's just the last line:  openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
[04:04] <ubuntuNewBe> lullabud, like i said I got this from a ubuntu help page for postfix mail server.  So is this cert secure or not?
[04:05] <lullabud> ubuntuNewBe: it looks like it's not a certificate, just a request and a private key
[04:05] <lullabud> you still have to generate your certificate
[04:06] <ubuntuNewBe> oh okay, I understand what you are saying now.  Another line on the tutorial is:  openssl req -new -key smtpd.key -x509 -days 3650 -out smtpd.crt
[04:06] <lullabud> crt is a certificate.  csr is a certificate signing request, and .pem is a key store
[04:06] <lullabud> yes
[04:06] <ubuntuNewBe> so is that a secure crt?
[04:07] <ubuntuNewBe> or does it have to signed by a root cert first?
[04:07] <lullabud> you know, i'm not the best with ssl, so i can't answer these questions with certainty
[04:07] <lullabud> but, it looks like that's a valid self signed cert
[04:07] <ubuntuNewBe> okay, no problem
[04:07] <lullabud> or, rather, it will be.
[04:07] <ubuntuNewBe> thanks
[04:07] <lullabud> de nada
[04:07] <lullabud> good luck with that
[04:08] <ubuntuNewBe> I apprecate the info, and the link
[13:12] <mrcoodles> hello , im trying to setup zoneminder under ubuntu server 9.1 with a simple webcam. i've managed to save jpegs from the webcam using fswebcam. is there a way i can pipe the output of fswebcam to something that can do streaming for zoneminder ?
[13:23] <twb> mrcoodles: what kind of stream does zoneminder expect?
[13:28] <mrcoodles> a lot of stuff i suppose, source type is file , local, remote or ffmpeg
[13:29] <twb> Sounds like you need to understand what those mean
[18:43] <gop-> how do I rename a user I just created in ubuntu server
[18:43] <gop-> via cli
[18:43] <gop-> useradd -???
[18:46] <Aison> is it possible to install ubuntu server with legacy grub?
[18:46] <Aison> and not grub2?
[19:21] <sherr> gop-: usermod modifies user accounts. But I don't think you can rename a user. maybe delete the user and re-create for that.
[19:28] <alonswartz> hey guys, I just asked this question in #ubuntu-ec2 but maybe one of you know, is there any work being done to automount ebs volumes via udev (on ec2 instances)?
[19:28] <frojnd> hey
[19:34] <frojnd> I'm trying to learn some grep commands there :) I'm trying to sort out text from  ~/.recently-used file alphabetically. I tried like cat ~/.recently-used | grep '<URI>' | sort -d but this isn't enough. I'd only like to get from grep: /home/frojnd/Downloads/Proga.odt So without <URI>file:// and without </URI> at the back.. What option would I need to use in order to get sucuh output?
[19:34] <frojnd> Not just for this line, for may lines that are within ~/.recently-used
[19:49] <frojnd> any ideas'
[19:49] <frojnd> ?
[20:08] <frojnd> I got it with cut :)
[20:08] <frojnd> cat ~/.recently-used | grep '<URI>' | sort -d | cut -c 13- | cut -d "<" -f1
[20:50] <steph_uniko> http://apache.pastebin.ca/1839946 <-- got this when trying "apt-get install apache2" (done "apt-get update" before) - running 9.10. any good advises? thanks :)
[21:53] <eagles05138785> im sshed into my server and i have openssh-server installed and kde installed yet its complaining about the user not being added to the X group yet there is no group called X any ideas what im missign?
[22:03] <eagles05138785> im sshed into my server and i have openssh-server installed and kde installed yet its complaining about the user not being added to the X group yet there is no group called X


[10:59] <Scott_> Hi, am new to ubuntu studio, although I've used Ubuntu for several years.
[10:59] <Scott_> I'm not sure if all of the documentation is up to date.
[11:00] <Scott_> I'm trying to learn about audio production.
[11:06] <Scott_> I'm starting out with audacity.  I've purchased a Scarlett 2i2 interface, but I'm experiencing a bit of latency.
[11:07] <Scott_> Are there any suggestions for dealing with that?  it sounds good while I'm playing, but the playing back the recording everyting is out of sync.
[11:08] <Scott_> I have the low latency kernel, and I followed the instructions for setting up jack.
[11:08] <Scott_> It there a way in audacity to adjust the track to compensate?


[02:04] <axw_> wallyworld: so renaming caasprovisioner -> caasoperatorprovisioner?
[02:05] <axw_> wallyworld: and adding caasunitprovisioner
[02:05] <wallyworld> um, yeah, i think so
[02:23] <axw> wallyworld: https://github.com/juju/juju/pull/8166
[02:23] <wallyworld> looking
[02:25] <wallyworld> axw: lgtm
[07:45] <axw> wallyworld: https://github.com/juju/juju/pull/8169
[07:46] <wallyworld> ok
[07:46] <wallyworld> axw: i've got one up also but there's a feature test failure i'm looking at - there's an issue with directory names
[07:47] <axw> ok
[15:17] <balloons> wpk, did you get a chance to look at the spaces test PR? https://github.com/juju/juju/pull/8165
[17:11] <bdx> https://bugs.launchpad.net/juju/+bug/1736022
[17:11] <mup> Bug #1736022: failed to bridge devices: bridge activaction error: bridge activation failed: Killed old client process <juju> <juju:New> <MAAS:New> <https://launchpad.net/bugs/1736022>
[17:12] <bdx> any idea whats going on there^
[17:12] <bdx> ?
[22:55] <dnegreira> Hi everyone, I am interested on developing the ability to use LXD as a provider for juju, in order to be able to use an existing remote LXD server. I have read an article from 2015 that it is not possible due to the LXD lack of interface to manage the storage and the firewalling. I have been following closely the development of LXD and I can see that the interface to manage the storage is there
[22:55] <dnegreira> already but not the firewalling. I am willing to write some code so that LXD has some interface to manage firewalling towards the containers and have already spoken with them. Besides the firewalling and storage part, is there anything else that I should be looking into in order to be able to use LXD as a remote for juju ?