/srv/irclogs.ubuntu.com/2017/07/26/#ubuntu-server.txt

hehehesarnold: is mongodb some crap?00:04
hehehe:D00:04
heheheI just started to use it and it seems interface initially is cumbersome00:04
sarnoldhehehe: I've gotten the impression that mongo is brittle and takes way more resources than one might think00:06
hehehewell what to do00:07
hehehe:D00:07
sarnoldand I'm slightly terrified of its eventual consistency thing00:07
sarnoldand apparently you ought to consider using numactl when starting it to ensure that it gets memory and lots of it00:07
heheheis there a quick way there to make admin user?00:13
hehehe:D00:13
heheheanyway good news new chat coming soon :)00:16
heheheso i can at last move to chat where most people come to talk00:16
hehehe:)00:16
hehehenot just iddle00:16
tomreynfluvvell: with the (limited, no output, just summaries) information you provided, i provided all the suggestions i could. i then went afk. i'll head to bed now. if you would like more suggestions, i would suggest you put the actual output of some informational commands (such as 'mdadm --detail /dev/md0', 'cat /proc/mdstat' and the (in- and) output of the command that does not result in the expected result) on a pastebin and ask your00:19
tomreynquestion again.00:19
=== genpaku_ is now known as genpaku
=== giraffe is now known as Guest17892
=== clvx is now known as Guest44118
lwizardlwhat is a good media backend server to use so kodi and read the media over the network06:06
lordievaderGood morning06:08
lwizardlmorning06:09
lordievaderHey lwizardl06:15
lwizardlwhats up06:15
lordievaderFirst coffee of the day. With you?06:16
lwizardlnice, I'm just trying to figure out what would be the best backend server setup to use for kodi media files06:31
=== tohuw is now known as Guest12040
zioprotohello09:59
zioprotocoreycb, jamespage on Newton Xenial I am working on a problem were snapshotting a instance with a LVM backend fails. In the log files I see apparmor complaining. I never had problems with apparmor so far... so I am not sure this is a maybe a false positive. So everything I try to snapshot an instance I see this in the kernel log: https://pastebin.com/JTiiSNRz10:00
zioprotothis virt-aa-helper that cant read a couple of config files could block the all thing ?10:00
zioprotoI get a nice stacktrace in nova-compute.log that ends with libvirtError: internal error: unable to execute QEMU command 'migrate': Migration disabled: failed to allocate shared memory10:01
jamespagezioproto: I don't think so - the virt-aa-helper is used on instance creation to create an apparmor profile for the instance10:01
zioprotobut why this pops up when creating to snapshot ?10:02
jamespagezioproto: hmm10:02
jamespagezioproto: anything in the libvirt or qemu log files10:03
jamespage?10:03
zioprotojamespage: https://pastebin.com/HbckXxvf10:03
zioprotowait I check libvirt log file10:03
zioprotolibvirt.log also complains about apparmor10:04
zioprotohttps://pastebin.com/wBZJyrJ010:04
zioprotoall seems related10:04
zioprotodo you think it makes sense to dig into this virt-aa-helper to solve the snapshotting issue ?10:09
zioprotojamespage: still there ?11:02
jamespagezioproto: yeah sorry - been having internet trouble - just replaced a socket for one with an in-built microfilter11:09
zioprotojamespage: no problem, when you a chance to look into this apparmor thing tell me your opinion about it.11:17
jamespagezioproto: tbh I'm a bit flummoxed - newton has the version of libvirt and qemu from xenial11:18
jamespagezioproto: did this work with previous versions?11:18
jamespagezioproto: looks similar to https://bugs.launchpad.net/fuel/+bug/163826911:19
ubottuLaunchpad bug 1638269 in Fuel for OpenStack "OSTF Launch instance, create snapshot, launch instance from snapshot failed" [Critical,Fix released]11:19
zioprotoI have no idea if it worked before. Probably not. Usually we use the ceph backend. But for some users we force the lvm backend. We do this using a property in a private flavor. Then with host aggregates we make those flavor land on specific hypervisors where nova.conf has 'lvm' in the [libvirt] section. Now one of our users tried to make a snapshot. I was expecting a LVM snapshot to be created, but actually11:21
zioprotonothing happens11:21
zioprotojamespage: but this looks like a patch for trusty https://review.fuel-infra.org/#/c/28086/2/debian/apparmor/libvirt-qemu11:23
zioprotoplease forgive me ! I just found out that this hypervisor is actually still on trusty11:25
zioprotojamespage: upgrading libvirt-bin from 1.3.1-1ubuntu10.5~cloud0 to 1.3.1-1ubuntu10.9~cloud0 upgraded the apparmor files and fixed all the problems. Now I can do snapshots ! not sure if it was apparmor or libvirt internals11:53
jamespagezioproto: \o/11:53
zioprotojamespage: I reproduced it on another Hypervisor. There is a second thing. Not only upgrade libvirt. Also in /etc/apparmor.dabstractions/libvirt-qemu this patch is required: https://review.fuel-infra.org/#/c/28086/2/debian/apparmor/libvirt-qemu12:10
zioprotojamespage: what about this patch ? Is this something that should be included in a package ? the file /etc/apparmor.d/abstractions/libvirt-qemu belongs to the package libvirt-bin that I just upgraded at the latest version 1.3.1-1ubuntu10.9~cloud012:14
zioprotoshould I submit a patch for that package ?12:14
jamespagezioproto: raise a bug - I'll ask christian to look next week (he's the libvirt maintainer in the server team)12:51
smoserrbasak, can you help me out ?13:12
smoser https://code.launchpad.net/~logan/ubuntu/+source/scim-chewing/+git/scim-chewing/+merge/32757513:12
smoseri think i just confused things.13:12
rbasaksmoser: done13:38
smoserthanks13:40
jbichahi, should LP: #1618188 be added to Trello as something to watch, help out with or whatever?14:41
ubottuLaunchpad bug 1618188 in ubuntu-meta (Ubuntu) "systemd journal should be persistent by default: /var/log/journal should be created; remove rsyslog from default installs" [Wishlist,Triaged] https://launchpad.net/bugs/161818814:41
rbasakjbicha: that feels like a feature request to me and not a regression or bug?14:46
rbasakAIUI, rsyslog behaviour remains unaffected.14:46
rbasakAnd by feature request, I mean one where a decision has not been made. So there's no action on it currently, so I'm not sure what a Trello card would do.14:52
rbasakOr are you asking us to drive it in some particular direction, and if so, which?14:52
jbichaI think Ubuntu should consider enabling a persistent systemd journal by default before 18.04 LTS15:00
jbichait's a complicated issue: maybe we don't need both a persistent systemd journal and rsyslog15:01
jbichaso I'm suggesting that y'all add it to your backlog of things to look into15:03
rbasakOK, thanks.15:04
rbasakI guess it's an open question as to what we actually want to do here.15:04
rbasakdpb1, kirkland: ^15:04
rbasakrharper and smoser also maybe? ^15:04
jbichathe bug points out that there was some discussion on ubuntu-devel back in February15:04
bipulWhat is MASS Regional controller?15:21
dpb1maas region controller in theory can have multiple rack level controllers registered to it15:26
dpb1bipul: https://docs.ubuntu.com/maas/2.1/en/intro-concepts#controllers <-- see for more15:27
bipulCan we control my vm with mass?15:27
dpb1yes15:29
dpb1look over the docs, there are some good tips about vm usage in there15:29
smoserrbasak, i kind of think we shoudl be logging to a file, and i'm pretty sure rharper agrees.15:35
rbasaknacc: how about http://paste.ubuntu.com/25177407/15:39
rbasakPrints the directory from top level subcommand code if --no-clean is in use.15:39
naccrbasak: i would rather we didn't change any functionality first, then decide on whether it makes sense to always print it15:39
naccrbasak: that is, just do it unconditionally, then file a bug saying you want `git ubuntu clone` to be less verbose15:40
naccrbasak: but note, you need to change all the callers for GitUbuntuRepository(), not just clone15:40
cyphermoxnacc: rbasak: could I please have an import of shim-signed?15:40
rbasaknacc: can we just decide that now?15:40
cyphermox(looks missing to me, or maybe I don't know where to look)15:41
rbasaknacc: I don't think library code should _ever_ output to stdout/stderr.15:41
naccrbasak: this isn't about library code15:41
rbasakI also think that commands should in general be silent.15:41
naccrbasak: i'm saying right now `git ubuntu clone` always prints where it clones to15:41
rbasakTAOUP principle.15:41
naccrbasak: right, those are *two* commits then15:41
naccrbasak: and one is a change in behavior15:41
rbasakSure. I'm requesting a change in behaviour.15:41
naccright, but it's easier to review as two steps15:42
naccand easier to revert :)15:42
rbasakI don't think it's worth writing all the code to pull out the printing of stuff up one level only to then remove it.15:42
naccI fundamentally disagree :)15:42
rbasakIt will be easier to revert, but only as much easier as it is to write the code in the first place.15:42
rbasakIt doesn't save anything overall whether we decide to revert or not.15:42
rbasakshould _ever_ output> except on caller request, of course.15:43
naccso you're saying that `git ubuntu clone`, which uses a tempdir by default, shouldn't tell the user what the tempdir is, unless they pass --verbose?15:43
nacctaht's asinine to me15:43
naccthe user doesn't *know* that they need to pass that flag, until it's possibly too late15:44
naccrbasak: the no-clean thing was an example, not the rule, sorry15:45
naccrbasak: the rule is, if the user wouldn't know what the directory we are using is, emit it15:45
rbasakgit ubuntu clone uses a tempdir by default?15:46
naccrbasak: yes15:46
naccrbasak: err, not clone, import, sorry15:46
rbasakI thought it mirrored "git clone".15:46
naccrbasak: the thing you just pastebinned :)15:46
naccrbasak: also, `git ubuntu clone` should be *more* verbose, tbh. it should show the `git fetch` output15:46
naccright now it's silent for *way* too long15:46
naccand i think a regular user will ^C it every time15:46
naccthinking it's hung15:46
rbasakI agree with commands that take time showing progress.15:47
rbasakIn this case I think it should mirror "git clone", though I appreciate that since it doesn't do that exactly this may be difficult and we'll have to compromise with some other status output.15:48
nacc+1 on that15:48
nacci want `git ubuntu import` to emit the directory used unconditionally (or at least whenever a tempdir is used)15:48
nacci guess for the remainder of the submcommands, it doesn't matter. `git ubuntu review` will also need to follow that pattern15:48
rbasakI don't think either should be necessary. But I'll concede whenever --no-clean is used, as I see that as mainly a debug option.15:49
naccrbasak: hrm? what do you mean by "either"?15:49
rbasak1) emit unconditionally; 2) only when --no-clean is used and a directory wasn't given.15:50
naccrbasak: i'm suggesting consolidating those to 1) if no directory is given, emit the directory used15:50
naccrbasak: otherwise that information is *not* available to the user15:50
rbasakI agree that not having it available to the user is bad.15:51
rbasakI think this is a symptom of a poor CLI option though, rather than a lack of output.15:51
naccrbasak: not sure i follow?15:51
naccrbasak: what option are you referring to?15:51
rbasakPerhaps we shouldn't permit --no-clean when a directory name isn't given for example.15:51
naccrbasak: the directory option, period, is optional, regardless of other flags15:52
naccrbasak: e.g., if you ^C the importer, you can go look at where it is15:52
naccrbasak: but if you don't emit the tempdir used, you can't15:52
rbasakAnd I'm arguing that --no-clean makes no sense if a directory is not given. Because how would the user know where it is? Printing it is a hack.15:52
nacc... the user knows where it is because we tell them?15:53
naccif you're suggesting a separate change in functionality, just do that15:53
rbasakRight, and I'm saying that's a poor show.15:53
naccI don't see anything poor about it, but in the end, I really don't care15:53
rbasakI'm trying to hammer out our differences so we can agree on a path across all three interacting pieces :)15:53
naccI think having to pass a directory when I do offline imports will make me actively use the importer less15:54
nacc:)15:54
rbasakPerhaps we should default to the package name then, like "git clone"?15:55
naccor require a directory15:56
rbasaknacc: I only tacked this on in there because I was under the impression that you already agreed.15:56
naccrbasak: my point was with the current functionality, you need not pass a directry15:56
rbasaknacc: I can just drop it from this MP and we can work this out later?15:56
naccrbasak: if you think the user should always pass a directory, or default to using the srcpkg name, then do that, but as a clear functional change15:57
naccrbasak: which needs to be propogated to all wiki pages, the manpage, etc.15:57
naccrbasak: and the bash completion script :)15:57
rbasakI never thought that you considered the logging info printout as part of the CLI definition :)15:57
* rbasak has always seen it as noise15:58
* nacc thinks you haven't debugged the importer quite as much as I have :)15:58
naccrbasak: i think the idea of dropping logging.info from internal library code is +100. I think the idea of changing user-facing functionality in the same commit is -100.15:59
naccrbasak: I think you can change the user-facing functionality in a second commit and it goes to at least a positive value :)16:00
rbasaknacc: I agree with what you're saying. But I also think that if the conclusion is to drop user-facing functionality, then we can do that in one commit. This commit :)16:03
rbasakThough I admit the commit message should be different then.16:03
naccthat's fair, then. I guess my point was that what you had (commit message wise), did not match the effect (to me) and thus I had to pay closer attention to the review and think if it's ok.16:05
kirklandrbasak: ack, thanks16:10
bipuli have installed mass on my VM , but what will be the next step ?16:18
naccrbasak: do you want to do a HO today in prep for tmrw?16:35
rbasaknacc: I was thinking about suggesting that :)16:41
rbasaknacc: was just checking my schedule. I'm free now.16:42
naccrbasak: ok, give me one sec to resolve dpb1's upload :)16:43
rbasakack16:43
=== Masterph_ is now known as Masterphi
naccrbasak: use the standup HO?16:48
rbasakomw16:49
rbasaknacc: I'm there.16:49
naccrbasak: actually, do you want me to land your branches since we agreed?17:45
rbasaknacc: sure. Though I think both MPs need minor modifications?18:11
rbasaknacc: IIRC a comment about using Version as an interface, and the moving of logging.info to everything that calls the GitUbuntuRepository constructor?18:11
naccrbasak: ack, i'm stacking that on top18:13
naccrbasak: if you're ok with that18:13
rbasaknacc: yeah that's fine thanks!18:32
naccrbasak: fyi, just pushed a new branch and requested review for a fixed SRU versioning test20:42
drabhi, dumb networking question that's eluding me..21:08
drabif I add an ip alias to an interface, say eth0:121:08
drabconnections inbound for that ip will be routed out from the main ip associated to eth021:08
drabI'm guessing because that's default route for the main table and both ips belong to the same network so that can't be used to pick the alias one21:09
drabis there some way with policy routing or something else that I can force outgoing connections to use the same interface/ip they came in through?21:09
sarnolddrab: take a look at http://lartc.org/howto/lartc.rpdb.multiple-links.html22:06
drabsarnold: oh, yeah, I've done that on the gw, but I thought there was something "simpler" here given it's an alias interface22:31
drabguess not22:31
sarnolddrab: alias interfaces are wonky22:31
drab(the gw has two uplinks)22:31
sarnoldbest forget those as quick as you can :)22:31
drabyeah, it's just for a migration, maybe I shuold have asked that question instead22:31
sarnoldjust add multiple addresses to the nic as needed..22:31
drabneed to move a service from one box to another that eventually will be on a diff ip22:32
drabso wanted to add the old/current ip as an alias until settings propagate throuhgout the network22:32
drab(it's the dns server and the lease if 48hrs)22:32
rbasaknacc: here are a couple of additional cases that fail. The second is a little debatable but I think core devs/SRU would agree that it is what they expect should that situation arise. The first one is surely common though.23:26
rbasakhttp://paste.ubuntu.com/25180158/23:27
rbasaknacc: but your MP objectively improves things, so I wouldn't want to hold that up. I just wonder (without having looked at your code) whether we're headed in the right direction, or there's something fundamental about our approach we need to change.23:27
naccrbasak: line 9 of your paste, that version doesn't look right? 1.01-ubuntu1.17.10.1 is definitely not right? should be 1.0-1ubuntu1.17.10.1 ?23:36
naccrbasak: similar on line 10?23:36
naccrbasak: not sure if that changes the result :)23:36
rbasakSorry, yes. Checking.23:36
naccrbasak: i made the exact same typos and thought i had broken things when i was working on the change :)23:36
rbasakStill fails I think23:37
rbasakI don't like going >80 cols, but I'm not sure how to make that better :-/23:38
naccrbasak: ack, failure reproduced, let me see if i can see why23:39
rbasakI get all passed now!23:39
naccrbasak: what's the diff? :)23:39
rbasakI added a further test, now one failure23:40
rbasakhttp://paste.ubuntu.com/25180232/23:40
hashwagonWhat's the correct method of adding a Windows shared printer to an ubuntu server via Samba? Is it added through smbclient?23:41
rbasaknacc: my current failure is that if the series part is set in the past or the future, for the same base and major version, then I think the series form must be used23:42
naccrbasak: cool, let me see if i can figure that out, it appears to not see the same base version, if i had to guess23:42
naccrbasak: yeah23:42
naccrbasak: something with versioning.py l.132 i think23:43
naccrbasak: http://paste.ubuntu.com/25180252/23:45
naccrbasak: that passes here23:45
rbasakOK, give me a few minutes to catch up23:46
naccrbasak: basically, if our current version is a prefix of any prior or future version, we should use the series-version. Although that's not quite right, as it will false match ubuntu1 to ubuntu11 ..23:46
naccrbasak: http://paste.ubuntu.com/25180277/ specifically fails23:50

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