/srv/irclogs.ubuntu.com/2017/03/08/#ubuntu-server.txt

drabmmmh is there a way to reset a container to its original image? kinda like restoring froma  snap, except that its the original image02:44
drabI don't wanna destroy the container because it has a whole bunch of configs I wanna preserve, altho I could sae those and reapply them if there's no other way02:45
drabwith LXD I mean02:45
sarnoldhow would you pick which bits to save and which to roll back?02:46
drabI was thinking more along the lines of automating what I'd do manually, save config, destroy, relaunch, reapply config02:47
sarnoldah02:47
sarnoldsort of like juju or ansible or salt or puppet or chef or whatever's hot -this- week? :)02:48
drabnot like a real snap/restore operation, but make it transparent as if it was02:48
drabyeah, that's acually what I was about to do... with ansible02:48
draball my other hosts are on that, so just getting the hang of it to manage containers too02:48
drabbut I've yet to crack that nut so I was looking for shortcuts while experimenting02:48
drabbut it's a good time as any I guess to figure it out02:49
st3fannHi there, I am making an OpenVZ template from a debian minimal install, and I noticed that all of the packages I installed are stored in .deb files at /var/cache/apt, and I wanted to know if these are safe to delete03:46
st3fannI did run apt-get clean and apt-get autoclean, but this did not seem to remove the files.03:46
sarnoldst3fann: yes, those are safe to delete03:53
sarnoldI'm surprised apt-get clean didn't do the trick03:53
sarnoldbut feel free to delete them all03:54
st3fannme too03:54
st3fannwent to separate threads, and some said if one didnt clear it the other should03:54
st3fanndo I just remove the entire directory sarnold?03:54
sarnoldst3fann: I'd recommend just deleting the files03:54
sarnoldprobably the directory would be recreated with proper permissions if needed but I never like finding out the hard way when things don't work as expected :(03:54
st3fannSounds good - any way to restart apt after to see if it's okay? I might just move a file to see if it causes any issues03:55
st3fannyep was just thinking the same thing :)03:55
sarnoldapt isn't a long-running service; just apt-get update && apt-get -u dist-upgrade or whatever your favorite finger-macros are :)03:55
drabok, that wasn't so bad, automation done, pretty sweet actually03:56
st3fannsarnold: awesome, thank you so much! Ill try it out right now03:56
draband half of the hr was waiting for images to redownload since I managed to wipe my local test repo...03:56
sarnolddrab: d'oh :/03:57
sarnoldst3fann: excellent :) have fun03:57
sarnolddrab: https://xkcd.com/303/ (not the same, but close)03:57
drablol, I thought of that actually, and it actually did provide me with an excuse for a break to practice writing characters03:58
sarnoldnot bad :)04:00
drabmmmh04:44
draba minute and a half to stop a blank container, that doesn't seem right04:44
drabis there a way to figure out what's going on in cases like this?04:44
st3fanndoes anyone here have any experience with solusvm/openvz?04:49
lynorian!anyone04:49
st3fannlynorian: ?04:51
lynoriancan you ask your question instead of saying anyone have expirence with solusvm/openvz04:51
lynorianI unfortanetly do not04:51
st3fannI have created a template from a vm that i had running on solusvm, and when I created a new VM, it is not able to boot04:52
st3fannI don't see any errors, it tells me to look in: dmesg, and I have this error: EXT4-fs (ploop14464p1): loaded balloon from 12 (4096 blocks)04:52
st3fannthanks04:52
=== aw17 is now known as AW17
cpaelzergood morning06:47
lordievaderGood morning08:22
danpawlikcoreycb: Hello. I don't know if it is good, but nova-common from cloud-archive ocata "branch" is failing on installation09:56
sonu_nkhi i installed phantomjs on my ubuntu server.. not i want to check where it is intalled .. how can do ?12:04
cpaelzersonu_nk: with "dpkg -l <pkg>" you can list files owned by a package12:05
cpaelzersonu_nk: sorry -L12:05
cpaelzersonu_nk: lower case lists install state andversion, upper case is content (--listfiles)12:05
sonu_nki installed using this command sudo apt-get install phantomjs12:05
sonu_nkthankyou working cpaelzer12:08
sonu_nkalso one more thing .. using this command  sudo apt-get install phantomjs ubuntu installed its lower version .. Why ??? but its have its new version on  phantomjs site12:08
cpaelzersonu_nk: this is the version in the Ubuntu Archive for your Ubuntu release12:09
sonu_nkubuntu server installed 1.9.0 version but there is 2.1.1...12:10
sonu_nkcpaelzer, so means 1.9.0 is good and tested12:10
sonu_nkright12:10
cpaelzeryou are likely on Trusty12:10
cpaelzerwhich is good, but to admit a 3 year old release12:10
cpaelzerthere 1.9 was current12:10
cpaelzeron Later Ubuntu Releases (>=Xenial) you'd get 2.1.112:10
=== costingalan is now known as cgalan
coreycbdanpawlik, in what way does it fail to install?12:36
coreycbdanpawlik, fwiw i just installed nova-common from the ocata cloud archive successfully on a new xenial machine12:39
danpawlikcoreycb: strange12:40
danpawlikcoreycb: I will paste you error log12:40
danpawlikcoreycb: http://paste.openstack.org/show/8slHZRzdvr48sW3wThMt/12:41
danpawlikcoreycb: wait, This error is normall because I have sqllite parameter in nova.conf12:41
danpawlikbut there was also onother error that it want to execute command which was changed12:42
danpawlikin ocata12:42
danpawliklet me check one more time on clean host12:42
coreycbdanpawlik, ah right, the package will try to sync the db if you are using sqlite in nova.conf12:42
danpawlikIMHO there should be condition for that... or?12:43
coreycbdanpawlik, yeah i don't think that accounds for the api database12:43
coreycbdanpawlik, so that needs to be fixed12:43
=== tinwood_swap is now known as tinwood
danpawlikit just irritates me when I would like to deploy host "all in one" using puppet ;P12:44
coreycbdanpawlik, we might consider removing that sqlite bit since it's not meant for production use12:45
danpawlikcoreycb: if someone will test Openstack he/she must use something "better" :p12:47
danpawlikIt strange that Openstack developers doesn't drop support for sqllite12:47
danpawlikIMHO12:47
coreycbdanpawlik, i opened a bug for that: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/167107812:48
ubottuLaunchpad bug 1671078 in nova (Ubuntu) "nova sqlite db migration failing for ocata" [Undecided,New]12:48
danpawlikcoreycb: nice, thanks12:49
frickleroh, who had the funny idea of changing the group name libvirtd to libvirt for Ocata? how do you handle that for upgrades?13:05
cpaelzerfrickler: I think that was done post xenial to align with Debian13:12
cpaelzerfrickler: upgrades usually deal with this by dupping the gid13:12
cpaelzerfrickler: if there is nothing it adds libvirt (as it formerly added libvirtd)13:13
cpaelzerfrickler: if there is already a libvirtd it creates a new group libvirt with the same gid13:13
cpaelzerfrickler: that way old and new names are synonyms13:13
cpaelzerI'm even more confused by libvirt vs libvirt-qemu groups sometimes13:15
cpaelzerfrickler: let me know if that explains (a bit)13:15
fricklercpaelzer: o.k., thanks, now I just need to teach that to our cookbooks ;)13:18
coreycbjamespage, zul: do you know if ocata-proposed has been tested? it'd be nice to get qemu promoted for bug 1667033.14:02
ubottubug 1667033 in qemu (Ubuntu) "nova instance console log empty" [High,Fix released] https://launchpad.net/bugs/166703314:02
jamespagecoreycb: i've not done so - did the promotions late yesterday14:06
coreycbjamespage, ok.  let me kick off some tests.  it looks like kolla is tripping over it in the gate.14:06
coreycbdanpawlik, It sounds like what you're hitting is similar to this so you are likely missing a step prior to installing ocata nova-common: https://bugs.launchpad.net/tripleo/+bug/165679114:29
ubottuLaunchpad bug 1656791 in tripleo "Mitaka to Newton undercloud upgrade needs "nova db online_data_migrations" after the undercloud upgrade" [High,In progress]14:29
Genk1Hello14:34
Genk1Every mail client I use "Evolution, Thunderbird, mutt..." is based on DNS to resolve domain names14:34
Genk1is there a way to tell the clients to use /etc/hosts instead14:35
Genk1?14:35
Genk1I have a local server for test named : mail.example.com14:35
Genk1but the client doesn't ask the hosts file instead he use the DNS frist14:36
danpawlikcoreycb: another beautiful log file: http://paste.openstack.org/show/47mfXRuNNEbt9OZ0q1IJ/14:46
odcGenk1: isn't that what /etc/nsswitch.conf is for?14:49
coreycbdanpawlik, we'll need some context on that, ceph-mds installs ok for me on xenial14:50
danpawlikdpkg -l | grep ceph14:50
danpawlikii  ceph                                 10.2.3-1xenial                        amd64        distributed storage and file system14:50
danpawlikii  ceph-base                            10.2.3-1xenial                        amd64        common ceph daemon libraries and management tools14:50
danpawlikii  ceph-common                          10.2.3-1xenial                        amd64        common utilities to mount and interact with a ceph storage cluster14:50
danpawlikii  ceph-fs-common                       10.2.3-1xenial                        amd64        common utilities to mount and interact with a ceph file system14:50
danpawlikii  ceph-fuse                            10.2.3-1xenial                        amd64        FUSE-based client for the Ceph distributed file system14:50
danpawlikii  ceph-mds                             10.2.3-1xenial                        amd64        metadata server for the ceph distributed file system14:50
danpawlikii  ceph-mon                             10.2.3-1xenial                        amd64        monitor server for the ceph storage system14:50
danpawlikii  ceph-osd                             10.2.3-1xenial                        amd64        OSD server for the ceph storage system14:50
Genk1odc,  I already have : hosts:          files mdns4_minimal [NOTFOUND=return] dns14:50
danpawlikii  libcephfs1                           10.2.3-1xenial                        amd64        Ceph distributed file system client library14:50
danpawlikii  python-ceph                          10.2.3-1xenial                        amd64        Meta-package for python libraries for the Ceph libraries14:50
danpawlikii  python-cephfs                        10.2.3-1xenial                        amd64        Python libraries for the Ceph libcephfs library14:50
Genk1so it means to look for hosts file first14:51
danpawlikcoreycb: Reading package lists... Done14:51
danpawlikBuilding dependency tree14:51
danpawlikReading state information... Done14:51
danpawlikThe following packages were automatically installed and are no longer required:14:51
danpawlik  liblttng-ust-ctl2 liblttng-ust0 liburcu414:51
danpawlikUse 'apt autoremove' to remove them.14:51
danpawlikThe following additional packages will be installed:14:51
danpawlik  ceph-common ceph-mds libcephfs1 librados2 libradosstriper1 librbd1 librgw2 python-ceph python-cephfs python-rados python-rbd14:51
danpawlikThe following packages will be REMOVED:14:51
danpawlik  ceph-base ceph-mon ceph-osd14:51
danpawlikThe following packages will be upgraded:14:51
danpawlik  ceph ceph-common ceph-mds libcephfs1 librados2 libradosstriper1 librbd1 librgw2 python-ceph python-cephfs python-rados python-rbd14:51
danpawlik12 upgraded, 0 newly installed, 3 to remove and 58 not upgraded.14:51
danpawlik2 not fully installed or removed.14:51
danpawlikNeed to get 0 B/40.7 MB of archives.14:51
danpawlikAfter this operation, 327 MB disk space will be freed.14:51
danpawlikDo you want to continue? [Y/n]14:51
Genk1danpawlik, ?14:51
danpawlik(Reading database ... 77997 files and directories currently installed.)14:51
danpawlikPreparing to unpack .../ceph-mds_10.2.5-0ubuntu0.16.04.1_amd64.deb ...14:51
danpawlikUnpacking ceph-mds (10.2.5-0ubuntu0.16.04.1) over (10.2.3-1xenial) ...14:51
danpawlikdpkg: error processing archive /var/cache/apt/archives/ceph-mds_10.2.5-0ubuntu0.16.04.1_amd64.deb (--unpack):14:51
danpawlik trying to overwrite '/usr/bin/cephfs-table-tool', which is also in package ceph-common 10.2.3-1xenial14:51
danpawlikdpkg-deb: error: subprocess paste was killed by signal (Broken pipe)14:51
danpawlikProcessing triggers for ureadahead (0.100.0-19) ...14:51
danpawlikProcessing triggers for man-db (2.7.5-1) ...14:52
danpawlikErrors were encountered while processing:14:52
danpawlik /var/cache/apt/archives/ceph-mds_10.2.5-0ubuntu0.16.04.1_amd64.deb14:52
danpawlikE: Sub-process /usr/bin/dpkg returned an error code (1)14:52
danpawlikI will remove all  cepch packages, install one more time 10.2.3 and upgrade to 10.2.514:52
danpawlikGenk1: sorry for spaming14:52
danpawlikI should paste it on pastebin14:52
coreycbdanpawlik, next time please share a link to a pastebin14:52
danpawliksorry14:52
odcwow14:52
odcGenk1: i don't know then :(14:52
danpawlikcoreycb: http://paste.openstack.org/show/IF4qthaWuncT8tiSMkR6/14:52
coreycbdanpawlik, what is the source of those packages?  they don't appear to be coming from the ubuntu archive.14:56
coreycbdanpawlik, this is the xenial version of ceph-mds: 10.2.5-0ubuntu0.16.04.114:56
danpawlikcoreycb: http://packages.ubuntu.com/xenial-updates/ceph14:56
coreycbdanpawlik, what does 'apt-cache policy ceph-mds' show?14:58
zulcoreycb: ok with this? http://pastebin.ubuntu.com/24139226/14:59
zioprotozul: that is not good14:59
zioprotoit will make only 50 migrations14:59
zioprotoit is not sure that all the migrations are done15:00
zulzioproto: do you have a suggestion then?15:00
zioprotoI am talking about su -s /bin/sh -c 'nova-manage db online_migrations' nova15:00
zioprotozul: the user should run those migration by hand15:00
zioprotobecause if you have a big database15:00
zioprotothat is a big impact15:00
zioprotofor this reason it is only 50 at the time15:01
zioprotobut running just 50 migrations in that script does not make any sense15:01
zulzioproto/coreycb/jamespage: maybe we should not be configuring databases then15:01
zioprotoalso it is the first time I see nova-manage db sync in the package15:02
zioprotoconsider that the database migration cannot be downgraded15:02
coreycbzul, i think the only reason we do that for sqlite is so the service will start by default15:02
zulcoreycb: yeah thats the reason15:02
jamespagezul, zioproto, coreycb: I tend to agree that we should just stop trying todo any db syncs in the packaging - the sqlite is a waste of time and just delays install15:02
zioprotozul: if you put a check that those commands are run only in case of sqlite than it makes sense15:02
jamespagethe packages should be checking for sqlite before running syncs15:03
zulzioproto: that command only runs if there is a sqlite database anyways15:03
jamespageotherwise its always a remote database, and you don't want N instances of nova-cloud-controller all trying todo a db sync during the same update15:03
danpawlikcoreycb: priv15:04
zulhttp://pastebin.ubuntu.com/24139262/15:04
zioprotook sorry from the diff it was not evident that it was inside a if block for sqlite only15:05
zioprotofor sqlite maybe is okay15:05
zulif we remove the sqlite stuff from the postinst then we would have to change the dep8 tests as well15:05
coreycbjamespage, zul: i'm ok with dropping that db migration from the package.  the problem though is we probably will have services that don't start by default.15:05
coreycbzul, yeah you'd probably have to use sqlite in the dep8 tests15:05
* jamespage spin out another thought15:05
jamespagemaybe we should not start services by default then15:05
zulcoreycb: or we can do mysql15:05
zuljamespage: yes please15:06
jamespagezul: using mysql in the dep8 tests is a good idea (see neutron)15:06
zuljamespage: manila already uses mysql in the dep8 tests btw15:06
zulso its pretty easy to do15:06
jamespagezul: yeah there are a few projecst that just don't play nice with sqlite15:06
jamespagezul: my original plan was to re-produce the functional test env for dep-8 tests15:07
zuljamespage: ack15:07
jamespagebased on the openstack gate specs15:07
jamespagebut never quite got to that15:07
zulim at ltitle hestiant to change services not to start this close to the end of the cycle though15:08
zulbut that online migration should be ok for sqlite databases though15:08
coreycbzul, i'd hold off until pike for that15:10
cetexso, i'm working on improving our automation a bit, we're currently building AMI's from scratch with a concoction of debootstrap and a couple of bash scripts.15:13
cetexgot stuck..15:36
cetexwhat i'm wondering is: how does ubuntu currently provision their AMI's they have in aws?15:37
cetexwhat tooling is used to build the ami?15:37
freakynlHi, I just installed Ubuntu 16.04 LTS fresh and updated it as a VMware VM. Gave it a reboot now, it's been hanging for over 5 minutes now on 'A start job is running for Unattended Upgrades Shutdown'. It's just been fully updated... Is this normal? It's a bare installed, removed open-iscsi (why is that running by default anyways?) and LVM (same question, don't use LVM) and nothing else yet.16:22
drabany recommendation to figure out why a container takes a long time to stop?16:46
drabI've had an idle container take 1.5min to stop and I'd like to figure out why16:46
drabbut couldn't see anything in lxc.log for the container or lxd.log that indicate reasons, just start stopping and stopped times16:47
naccfreakynl: ubuntu server or desktop?16:50
nacccetex: may want to ask in #ubuntu-server16:50
drabI thought this was ubuntu-server :)16:50
rbasakIt is :)16:51
rbasakIt might not be container-specific. If there's a service that fails to stop and systemd waits to kill it, then that could cause a delay too.16:51
Picinacc is lost16:51
drabrbasak: yeah, I thought that may be the case, and maybe it just happened that one time for non lxc related reasons, been tarting and stopping the same container a lot for testing16:52
drabjust trying to make sure I iron out any issue before moving this to prod16:52
naccPici: just responding to older messages :)16:53
naccPici: and yes to the latter! :)16:53
nacccetex: sorry about that!16:53
drablike they say, the best way to find oneself is to lose oneself in the service of others ;), seems a good fit for ubuntu/freenode help desk support :)16:54
=== vonsyd0w_ is now known as vonsyd0w
cetexnacc: no problem, i just wish someone knew how they do it ;D17:56
naccOdd_Bloke: --^ amazon ami generation question18:24
mamadgwhat is OversignHeader means in Opendkim , i read document many time but i dont understand it , english is not my first , could anyone explain it to me ?18:50
naccmamadg: you've read the manpage for opendkim.conf?18:54
mamadgnacc: yes i read man 5 opendkim.conf ...19:01
antoniobeyahi asked this question in #ubuntu but was redirected here19:05
antoniobeyahhello, it looks like there was an 16.04 lts release today/yesterday but I am unable to find the release notes- are they in progress?  https://uec-images.ubuntu.com/releases/16.04/release-20170307/unpacked/19:05
antoniobeyah1:03 PM that directory normally has a release_notes.txt but it is empty19:05
naccrcj: --^ ?19:05
antoniobeyahi was redirected to http://cloud-images.ubuntu.com/xenial/20170307/unpacked/release_notes.txt, I may have just been looking in the wrong place19:07
antoniobeyahthanks for the time, it looks like that has what I need to know19:07
sarnoldantoniobeyah: hrm maybe you caught it at a funny time? this loads for me now https://uec-images.ubuntu.com/releases/16.04/release-20170307/unpacked/release_notes.txt19:25
sarnoldantoniobeyah: thanks for pointing this out :) I've never seen these files but I like the look of them. useufl.19:26
antoniobeyahha, must have been the case.  it was certainly empty when I looked19:26
antoniobeyahI'm not sure the different between uec-images and cloud-images but it seems the cloud-images one had the release_notes before the uec one.  I plan on using the cloud-images link going forward.  ( http://cloud-images.ubuntu.com/xenial/20170307/unpacked/release_notes.txt)19:27
naccyeah i assume there is  some syncing going on, and there is a delay19:31
aernanhow do I enable directory indexing of home directories with HTTPD/Apache2 from stock configuration?19:48
_rubenwhat would be the "easiest" way to mimic an ubuntu server installation using debootstrap?19:48
_ruben(or other tool that allows to do an install into a directory)19:49
Odd_Blokeantoniobeyah: nacc: uec-images is deprecated, so cloud-images.ubuntu.com should be used in preference. :)19:49
antoniobeyahOdd_Bloke: ah, thanks19:52
naccOdd_Bloke: thanks! :)20:15
=== ddstreet_away is now known as ddstreet
yyyyyanyone ever ran into an issue where a folder within a mount-point seems to have / mounted within it — i.e. a “loop”?21:22
yyyyyi have some volume group mounted on /sub/ and when i go to /sub/x i see /sub/x/bin, /sub/x/etc /sub/x/vmlinuz (!!!). there's no symbolic links on x and nothing mounted there on fstab or /proc/mounts.21:23
yyyyyi'm at a loss over why this is happening.21:23
yyyyyubuntu server 16.04.121:23
sarnoldyyyyy: check /proc/self/mounts21:23
yyyyysarnold: nothing there as well for the /sub/x entry that seems to have a loop.21:25
yyyyymy other intuition would be some other sysadmin (or an attacker?) created hardlinks to that location21:25
yyyyyinsanely, i can even check /sub/x/proc and every single /proc entry is there!21:28
yyyyyi have never seen this before, in about twenty years of using linux 8/21:29
jancoowHi there. My nfs server is starting on the wrong interface. Its on my "wan" port instead of my "lan" port21:31
jancoowhow can I specify the correct interface for the nfs kernel server?21:31
yyyyysarnold: is there some FUSE driver that could accomplish what i'm seeing?21:31
sarnoldyyyyy: probably, but it'd show up in the /proc/self/mounts output, no?21:32
yyyyyi would assume so too21:35
yyyyymy guess is someone made some hardlinks there. i'm going to backup running services and delete that directory. since it's a loop, it shouldn't delete the file itself as there will be another entry as count for that inode.21:36
yyyyyawful, awful situation.21:36
sarnoldyyyyy: making hardlinks to directories is ot permitted21:37
sarnoldyyyyy: which is why I suspect it's bindmounts intstead21:37
sarnoldyyyyy: but maybe symlinks could give similarly confusing output depending upon which tool is reporting the paths21:37
yyyyyit's definitely not a symlink for that directory. there are other files inside that are not shared with /.21:38
yyyyya reboot is not getting rid of it, also.21:38
yyyyyi've checked with both `ls` and `exa` for the presence of links.21:38
=== JanC_ is now known as JanC
yyyyyand a `sudo umount /sub/x` gives a `umount: /sub/x: not mounted` error.21:40
yyyyyplus, the files there seem to not always match the timestamps of what's on /21:47
sarnoldoh21:47
sarnolddid someone perhaps run debootstrap there?21:47
yyyyynot that i'm aware of!21:48
yyyyywould that account for the files?21:48
yyyyyi'm assuming blasting it out is no problem, then.21:50
yyyyythere's 80G in the /proc that's there (!!!)21:50
yyyyylost connection here. to clean up a leftover debootstrap is it enough to just delete the folder?22:06
powersjnacc: I created a PPA for a package for someone to test, I want to also create a debdiff to attach to the bug. Should the debdiff changelog entry have the version from the ppa, what the release version should be, or does it matter?22:10
sarnoldyyyyy: you didn't miss anything while you were away; if it -is- a debootstrap that's probably fine to delete it. or maybe someone did an rsync -a / host:/sub/x/  ? it's really worth being -clear- you know why you're deleting it..22:27
naccpowersj: for sponsorship, your debdiff should be what you want uploaded22:35
naccpowersj: ideally the sponsor will review your debdiff, so if hte ppa version was there, they would complain and ask you to fix, or fix themsevles upon sponsoring (after discussing with you)22:36
powersjnacc: ok thanks!22:36

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