/srv/irclogs.ubuntu.com/2016/10/04/#ubuntu-server.txt

=== sysop is now known as Guest93467
=== JanC_ is now known as JanC
seyeongkimhow can I do SRU process with Trusty Icehouse pkg? ( python-glanceclient, cinder) , I checked https://wiki.ubuntu.com/OpenStack/StableReleaseUpdates but link https://wiki.ubuntu.com/ServerTeam/OpenStack is down05:01
sarnoldseyeongkim: probably you can start with a bug first, that's liable to get noticed..05:05
seyeongkimThere are already. https://bugs.launchpad.net/ubuntu/+source/python-glanceclient/+bug/132366005:07
ubottuLaunchpad bug 1323660 in python-glanceclient (Ubuntu Trusty) "Glance image properties not copied to cinder volume with glance V2 API" [Undecided,New]05:07
sarnoldI can't make heads or tails of any of that... ow05:11
sarnoldIt looks a bit like an upstream author gave up on the fix05:12
sarnoldis there a fix? any idea how well it works? does it introduce any new regressiosn?05:13
seyeongkimfor kilo yes,05:13
seyeongkimI'm not sure whether it can be backported to icehouse.05:13
seyeongkimhttps://review.openstack.org/gitweb?p=openstack/python-glanceclient.git;a=commit;h=90407d9e473014c24eeab294192f9d3208f58ea705:13
seyeongkimhmm.. so far no regressions..05:14
seyeongkimbut need to be checked because this is accepted from liberty or reject backporting05:14
sarnoldthe patch is tiny... is that sufficient?05:15
seyeongkimyes for glanceclient, and for cinder, https://review.openstack.org/gitweb?p=openstack/cinder.git;a=commit;h=7470b1d66491042909e9a191a884cae2fa8a383805:16
sarnoldhey that looks complicted enogh to match the complicated bug :)05:17
seyeongkimI downloaded pkg using pull-lp-source and did patch with quilt-import but debuild -S show me error..05:18
sarnoldseyeongkim: so do you need both patches to be applied simultaneously? do either one in isolation break anything?05:18
seyeongkimboth needed for each pkgs... 1 for glanceclient, 1 for cinder.05:18
seyeongkimit's seprated.05:18
RustyShacklefordi'm going to set up plex server06:31
RustyShacklefordwhat do you think about sharing /var/lib/plexmediaserver in a samba share as well?06:31
RustyShacklefordto clarify, is it risky to share that folder with two services?06:44
sikunRustyShackleford, define risky.07:58
cpaelzerjamespage: since the DPDK configuration for openvswitch changed so much I'd want to propose some changes to the package08:37
cpaelzerjamespage: I only start to work but wanted to ask what you'd want08:37
cpaelzerjamespage: commits into the ovs git you have08:37
cpaelzerjamespage: same thing as LP merge proposal08:37
cpaelzerjamespage: debdiffs ...08:37
jamespagecpaelzer, you're ubuntu-server-dev now right?08:37
cpaelzeryeah I could commit to the git08:38
cpaelzerat least I assume so, I never checked what the permissions on it actually are08:38
cpaelzerjamespage: ^^08:39
cpaelzeryeah the path is under server-dev08:41
cpaelzerjamespage: I will prep something there - do you have any in flight changes that I should consider?08:41
jamespagecpaelzer, that's the one08:41
jamespagecpaelzer, no I'm all done for this release08:41
cpaelzerjamespage: ok, I'll ping you once I have something ready for review08:42
cpaelzerjamespage: do I need beisner for testing a potential upload ?08:43
Villagemaybe someone try run DC++ server on Ubuntu..?08:46
jamespagecpaelzer, no08:48
PCdudeHi all08:48
PCdudeI have some questions about openstack on ubuntu08:48
PCdudeI have put it in an askubuntu question08:48
PCdudehttp://askubuntu.com/questions/832736/openstack-with-autopilot-some-networking-clear-up08:48
sikunPCdude, so the requirements for OpenStack is actually 5 machines with two hard drives, two machines need dual NICs09:02
sikunmeaning two of the 5 need to have two NICs09:04
RoyKsikun: shouldn't it work well with VLAN?09:25
RoyKfor Linux it's just another NIC, just named eth0.10 or something and if the bandwidth is sufficient and the switch does its job, well, there you go09:27
sikunyes, but most guest operating systems still need to fill in the blank for the most part driver wise which is ok but as these VMs will boot via PXE that can be a pain in the ass sometimes when using vlan tagging09:28
RoyKthe host does the tagging09:30
RoyKit's all L2 stuff09:30
sikunyes, I know that. Yes, it will work, is it best practice? no.09:36
RoyKsikun: why not?09:39
RoyKsikun: if the bandwidth is sufficient... why not?09:39
RoyKsikun: we have 200 VMs or so on vmware and the hosts all use VLAN tagging on 10+ VLANs09:40
sikunit's best to separate public/private traffic.09:40
sikunWe have over 500 VMs, public traffic goes on specified NICs for public traffic while private does the same. We also backup utilizing private networking, and if we did that while it was all using a single NIC for public/private it'd bottleneck.09:42
sikunI say single nic in a broad generalization, of course there is NIC teaming in play.09:42
RoyKsikun: that's really nonsense - VLAN security is good these days, you really can't break out from a VM09:43
sikunprivate networking is in use for management purposes not security09:44
gargsmsI am trying to use CustomLog directive for Apache logs. This is what my declaration looks like `CustomLog "| /bin/grep -E --invert-match --line-buffered 'status:(200|206|302|304)' | sed -r 's/status:(\d*)/\1/' | cat >> /var/log/err.log" combined` This is never written to the file err.log09:47
gargsmsI tried replacing the custom log file names to the ${APACHE_LOG_DIR}/access.log but then it outputs the logs when I restart the apache2 service10:02
=== _degorenko|afk is now known as degorenko
=== sts_ is now known as sts
=== MrBIOS_ is now known as MrBIOS
Ussat\o/ patch day done11:48
rbasaksmoser: do you have a simple example of real world use of ssh-attach where not using ssh-attach is obviously more painful? I believe that it's useful, but I'm struggling to think of examples.13:01
smoserrbasak, of course.13:11
smoser$ ssh-attach brickies.net -- bash -c 'i=0; while [ $# -ne 0 ]; do echo "$i: $1"; shift; i=$(($i+1)); done' -- "one 1" "two 2" "three 3"13:11
smoser0: one 113:11
smoser1: two 213:11
smoser2: three 313:11
smoserthat gives you the same result as if you'd copied and pasted that 'bash -c...' portion on the remote system.13:13
smosertry to do something like that without ssh-attach.13:13
smoseror even "real world" like13:14
smoserhttps://gist.github.com/smoser/88a5a77ab0debf268b945d46314ea44713:14
smoserussh $name sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main" >/etc/apt/sources.list.d/proposed.list && apt-get update -qy'13:14
smoseror, i guess along those lines...13:19
smoserssh-attach foo -- sh -c 'for line in "$@"; do echo "$line"; done > /etc/apt/sources.list.d/my-sources.list' -- "deb http://archive.1/ trusty main" "archive 2 another".13:20
smoseryou can certainly re-write that to fight the quoting that occurs under you by ssh throwing all argumenst into a single string and feeding it to shell. .but it becomes hard when you have quotes or spaces or single-quote in your input.13:21
rbasakWhy would that last example not just work using ssh without ssh-attach?13:22
rbasakYour first example I don't really follow, as I'd never type that at the CLI in the real world :)13:24
rbasakAnyway, I'd be happy to stick this into a contrib/ussh/ directory or something in uvtool git, and then ship it in usr/share/doc/uvtool/examples/ or something? Then it can be maintained and available to others in one place.13:25
rbasakI wanted to understand it better separately to think about how to make "uvt-kvm ssh" better (or provide an alternative differently behaving command or whatever). But I still don't really follow your use case.13:25
=== alexisb is now known as alexisb-afk
fricklercoreycb: jamespage: seems like you didn't package neutron-dynamic-routing for newton, do you intend to do this at a later stage or will it just drop out of UCA after having been split into a new project upstream?15:25
jamespagefrickler, tbh it did not get on the list15:27
jamespagefrickler, will look at it early next cycle and look to backport for newton15:27
jamespagefrickler, but +1 month away as yet should think15:27
fricklerjamespage: hmm, too bad, so we'll have to take a look at building it ourselves. but thx for confirming15:28
jamespagefrickler, apologies15:29
smoserrbasak, the basic issue with ssh is that its params are: ssh host "command"15:44
smoserssh-attach changes that to:15:44
smoser ssh host command [arg1 [arg2 ...]]15:45
smoserfrom ssh whatever you pass it as the command to run gets shoved into the users shell on the other side and thus is exposed to that shells quoting rules15:45
rbasakThat's not my experience15:45
smoserin addition to the quoting rules of the shell you are pasting into15:45
smoserit most certainly is true.15:45
rbasakssh foo echo a b c\; echo d15:45
rbasaka b c15:45
rbasakd15:45
rbasakIf command were quoted, I'd expect an "echo" in the output.15:46
rbasakAIUI, ssh hands everything to "sh -c"15:46
smoserright15:46
smoserwhich means it gets interpreted by the shell15:46
smoserin addition to the shell on the local system15:46
smoseractually, rbasak your example is good15:48
smoserif you paste : echo a b c\; echo d15:48
smoseror type it on your local shell15:48
smoseryou'll get15:48
smosera b c; echo d15:49
smoserbut if you feed it to ssh:15:49
smoserssh sstack-185 echo a b c\; echo d15:49
smoserthen you get15:49
smosera b c15:49
smoserd15:49
naccrbasak: did you want to continue on our converstaion today? not urgent by any means15:50
rbasaknacc: bit short of time today, sorry.15:51
naccrbasak: nothing to apologize for!15:51
naccrbasak: i was planning on maybe seeing if we could use clamav as a testbed for the process? caribou has a new MR, which we could tag and i could see if we pick it up properly15:51
smoserbut:15:51
smoserssh-attach sstack-185 -- echo a b c\; echo d15:51
naccrbasak: locally, before I push it to the git tree15:51
smosera b c; echo d15:51
rbasaknacc: sure, but I think we should discuss further what we're doing with the upload tags.15:51
naccrbasak: ack15:52
smoserrbasak, that make sense? your example is actually perfect.15:53
rbasaksmoser: interesting, thanks. I see what you mean.15:54
rbasakInteresting because I'm so used to what ssh does, I didn't think it wrong :)15:54
smoserits the same as 'sg' or 'su' versus 'sudo'15:55
smosersudo == ssh-attach == lxc exec15:55
smosersg == su == ssh15:55
=== alexisb-afk is now known as alexisb
coreycbjamespage, was pykmip intended to go under barbican Suggests vs Recommends?16:56
kyle__Is there official documentation for how to get rc.local to work in 16.04, or a more systemdish approach to something working like that?17:56
=== degorenko is now known as _degorenko|afk
trippehkyle__: rc.local seems to work on my 16.04 systems18:02
trippehbut yeah write systemd services/units if you can18:03
trippehrc-local.service - /etc/rc.local Compatibility18:04
trippeh   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)18:04
kyle__systemctl status rc.local.service is telling me it's loaded, but nothing in it is run.  Nor are there any logs even referencing it.18:04
gargsmsI am filtering my Apache logs by piping the output using grep --line-buffered. I get the output written to the file in chunks of 4KB. Is there a way for it to be written continuously? Writing 4KB at a time causes me to lose at least 2 log lines per chunk as they don't confirm to the standard of my parser, mostly18:05
trippehkyle__: does it say it ran at all in status? eg active (exited) or somesuch18:07
trippehActive: active (exited) since fr. 2016-09-30 00:14:35 CEST; 4 days ago -- on my system18:08
kyle__It says status.. err18:11
kyle__inactive (dead)18:11
trippehcould try systemctl enable rc-local.service18:12
trippehthen reboot and see if it works18:12
kyle__I did that one other time, but OK :) Willing to try it again.18:14
trippehpretty sure I never had to do that, tho.18:14
kyle__Hum.  Same thing.  Didn't run, and status ends witH:18:15
kyle__  Active: inactive (dead)18:15
trippehkyle__: is the rc.local file executable?18:17
trippehand has the sh shebang at the top18:18
kyle__no... no it's ot.  ALthough I didn't know it generally had to be.18:18
kyle__Yeah, already has the shebang18:18
kyle__Gahh.  OK.  It was just misstng the execute.  Weird that it didn't even say peep about it in the logs.18:21
kyle__Thank you.18:21
trippehyeah, I think thats new with the systemd wrapping18:21
trippeh(not checked)18:22
* kyle__ sighs18:25
kyle__I know sysv init and upstart had their own problems, but this doesn't feel better18:25
trippehodd that it is would not flag as failing when ExecStart= is not executable. I need to try that out18:27
trippehbut now -> work18:27
kyle__heh.  Same here.  This was for a user who 'just had to' use 16.04 and rc.local.18:40
=== adam_g` is now known as adam_g
=== Mobutils_ is now known as Mobutils
=== bilde2910_ is now known as bilde2910

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