/srv/irclogs.ubuntu.com/2017/10/27/#ubuntu-server.txt

drabthat issue of boot being stuck on /dev/sda1 is an annoying one that bit me in the past01:06
draband it's not KVM specific01:06
drabit happens on baremetal too for me01:07
draband indeed it's just a vt problem, hit alt-f1 and you have the login prompt, so nothing is actually stuck01:07
drabcan't figure out even what promt that is, becaue I can't back to it with any of the F keys01:07
dpb1drab: do you have a picture/video of the issue?01:12
=== jstevewhite is now known as stwhite
=== stwhite is now known as jstevehite
=== jstevehite is now known as jstevewhite
=== JanC_ is now known as JanC
=== JanC_ is now known as JanC
rbasakxnox: why sftp?09:38
xnoxrbasak, because it is encrypted, unlike annonymous ftp. And people should not be uploading security/embargoed/nda packages over unencrypted (default) channels.09:39
rbasakIs that the only encrypted channel available? Is HTTPS available, for example?09:45
rbasaknacc: I think that's in our roadmap?09:53
rbasak(yes)09:53
friendlyguyhi there! i am wondering which is the right config file for mariadb on 16.04.312:21
friendlyguythere is conf.d as well as mariadb.conf.d12:22
friendlyguyis it mariadb.conf.d/50-server.cnf ?12:23
rbasakFrickelpit: mariadb.conf.d for MariaDB-specific configuration. In case you have a MySQL client installed as well, for example.12:39
rbasakThough that combination will likely break things, separating the configuration allows you to switch more easily.12:40
Frickelpitrbasak: no, i use postgresql but thanks for the hint ;)12:44
rbasakOh I'm sorry.12:46
rbasakThat was for friendlyguy, who has left. Autocomplete failure.12:47
Frickelpitnp :)12:47
tomreynof course he left -you didnt repsond within 60s!12:48
tomreynok 12012:48
rbasakNever mind. I'm only the Debian MySQL maintainer who wrote the MySQL/MariaDB configuration file management mechanism for Debian and Ubuntu :)12:54
adacGuys, how do I completely clean iptables (iptables-persistent)?13:11
sdezieladac: if you want to stop applying any firewall rules, purging the iptables-persistent package and rebooting should do what you want13:19
adacsdeziel, ok Trying to purge it then, thanks13:19
sdezieladac: hmm, there is an easier way: service netfilter-persistent stop13:20
sdeziel(or iptables-persistent)13:21
adacsdeziel, what happesn when I restart service iptables-persistent start again?13:21
sdezieladac: it will bring the old rules back13:22
sdezieladac: stopping the service purges the currently loaded rules and ACCEPT everything13:22
adacsdeziel, hmm I see. Yeah I woulld like to have a command where I can erase these old rules from iptables-persstent13:22
sdezieladac: like erase and start fresh or erase and get rid of iptables?13:23
adacsdeziel, like completey wipe out all rules13:24
sdezieladac: OK then stop the service and purge the package13:24
adacsdeziel, kk Will do that. thank you!13:25
sdezielnp13:25
naccrbasak: i meant it is in 'future', which to me is still nebulous :)14:45
rbasaknacc: we could move it to 1.0 I suppose. I think we should do it soon, but whether it should be 1.0 or a 1.1 is debatable I think.14:48
naccrbasak: yeah, it feels like the importer is the only 1.0 goal -- everythig else (cli changes, etc, which are independent of the hashes) are now get done whenever, but not blocking 1.014:48
naccrbasak: or were we talking about different "it"s?14:49
rbasaknacc: I agree14:50
rbasaknacc: https://code.launchpad.net/~racb/usd-importer/+git/usd-importer/+ref/commit-graph-v215:31
rbasaknacc: you want a resubmit MP for that?15:31
naccrbasak: i think that would be good, as it will trigger a jenkins ru15:32
rbasakOK I'll do it now.15:33
naccrbasak: you may eed to rebase onto latest master?15:33
nacc*rebase15:33
naccthat doesn't affect the jenkins run, but will affect the meaing of the result and the actual merge :)15:34
rbasakOh15:34
rbasakI did the MP already.15:35
naccrbasak: it's ok15:35
rbasakI can rebase and force push. Will that work?15:35
rbasakhttps://code.launchpad.net/~racb/usd-importer/+git/usd-importer/+merge/33292515:35
naccrbasak: yep15:35
naccrbasak: it might lead to two jenkins jobs, but that's ok15:35
rbasakOK rebased and pushed. I had a few merge conflicts but I think I resolved them correctly.15:41
naccrbasak: thanks15:42
andreasis it common to have fakeroot in the build-depends bit of d/control?16:13
andreasI have debhelper already, and everything else I need, but dpkg-buildpackage is complaining that fakeroot isn't installed16:13
andreasI thougnt it would be installed indirectly, but maybe I have been installing devscripts too often16:13
andreasthis is on zesty16:13
naccandreas: dpkg-dev recommends fakeroot16:15
andreasI have it, but didn't have fakeroot16:15
andreasdebhelper pulled in dpkg-dev16:16
naccandreas: i believe you can pass -r to tell it to use something other than fakeroot16:16
naccwhich is why it's a recommends and not a depends16:16
andreasso every source package out there that does not have fakeroot in the build-depends list can only be built with a -r parameter?16:16
andreasor maybe our builders install recommends by default?16:17
naccandreas: dunno16:17
hallynrharper: around?20:18
hallynis 'qemu-nbd -c' supposed to be reliable, i.e. not return until /dev/nbd0 is really available?20:18
rharperhallyn:20:19
rharperit's not20:19
rharperwe had a bug in mount-image-callback related to that20:19
rharpersome race between the kernel and the dm layer IIRC20:19
rharperhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/162833620:22
ubottuLaunchpad bug 1628336 in linux (Ubuntu Yakkety) "mount-image-callback cannot mount partitioned disk image" [Medium,Fix released]20:22
rharpersome folks use udevadm settle inbetween qemu-nbd -c and whatever else they want to run20:22
rharperhallyn:20:22
=== JanC_ is now known as JanC
hallynrharper: is udevadm settle reliable for that?20:28
hallynif so, excellent20:28
rharperI think the blkdev reread in the bug is better20:28
hallynlooking,20:28
rharperudevadm settle just pokes to see if any events need processing, where as the reread is more likely what's needed20:29
hallynrharper: so with that you think it woudl be reliable?  Debating whether to spend the time doing loopback with offset mounts...20:29
hallynif nbd will ever fail then it's worth it, ...20:29
rharperwhy not kpartx ?20:29
hallynwell i dunno,20:30
rharperyou need nbd to do format to block device, then you need the kernel to probe for partitiions etc, and the kpartx will map the partitions to md (doing the offsets for you)20:30
rharpers/do format/translate format20:30
rharperhave you looked at mount-image-callback ?20:30
rharperin cloud-image-utils20:30
hallynhm.20:31
rharperit's most certainly going to be what you want20:31
rharperlets you mount up images, and chroot to run stuff in them, it supporst bind mounting system mount points inside and copying in/setup/cleanup resolv.conf so you can apt-update, etc20:31
hallyni have LVM lvs on partition 2...20:31
hallynif blockdev --rereadpt /dev/nbd0 is going to work...20:32
rharpershould be fine, kpartx will do the right thing;  do your qemu-nbd, then kpartx -l /dev/nbd0; it'll show you the mounts it'll make20:32
rharperpretty sure m-i-c handles lvm inside as well20:33
rharperwell, maybe just the kpartx; I can't say I've tried m-i-c with lvms inside; but kpartx will work for you (instead of your doing the offset mount yourself)20:34
hallyna veritable menu of options :)20:34
hallynso kpartx should end up faster than using nbd i assume20:35
sdezielhallyn: "kpartx -s" will wait for the partitions to be created before returning20:35
rharperwell, you need qemu-nbd if you have non-raw20:35
rharperif you have a raw then just kpartx20:35
rharperif you have qcow2 or vmdk or someother non-raw format that needs translated then you need qemu-nbd20:36
hallynjust raw20:37
hallynthanks rharper and sdeziel !20:37
sdezielnp20:38
hallyn(actually i'll probably switch to qcow2 anyway to not have to worry about maintaining sparse file)20:39
rharperno!!!20:40
hallyni half expected that reaction20:40
rharperdo you want your data or not?20:40
hallynwell , you know ,20:40
hallynkinda20:40
rharper=)20:40
sdezielqcow2 eats data?20:41
rharperit's complicated but qcow2 is not a simple format;  years ago we pushed on a simpler format that just did cow and a few other things20:41
sdezielqed?20:42
rharperthe metadata modification was large overhead to the format for high performance io; subsequently upstream qcow2 maintainers did a ton of work to clean up and improve performance which has made a huge diff20:42
rharperyea, qed20:42
rharperthat pushed the buttons to get qcow2 into shape20:42
hallynbut did qed ever get var enough to be usable?20:42
rharperabsolutely20:43
rharperit was raw + cow20:43
hallynright i thought qed pushed qcow2 to be usable, and now qcow2 was acceptable20:43
rharperthe format is still complicated20:43
hallynok20:43
sdezielthx for the info. Personally I only use zvols or LVs20:43
hallynwell raw makes it easier to twiddle teh data later so i'll heed yoru warning and stick with that anyway20:44
rharperyou can look at the internal coroutines needed to handle metadata writes;  I'm an always raw person20:44
hallynjust trying to decide whether to try figuring out how to use kpartx for this20:44
rharperkpartx -va /path/to/raw; mount /dev/mapper/loopNp3 /foo20:44
hallynor just use blockdev which is working .20:44
rharperumount /dev/mapper/loopNp3 ; kpartx -vd /path/to/raw20:44
hallynthat sounds ideal20:45
rharperI think for lvms you get different names under mapper20:45
rharperbut you'll see it20:45
rharperkpartx -l /path/to/raw will show you what it'll add without doing it20:45
hallynideally i'd have an easily parsable output line to tell me which loop device to use;20:45
hallynbut i'll play with it.20:45
hallynthanks again!20:45
rharperit does20:47
hallynit looks like it gives a lot of output, but i shoudl be able to do | grep loop | head -1 | awk ...20:48
rharperhttp://paste.ubuntu.com/25832415/20:50
rharperthat's some bash I had when parsing the output for picking out partitions20:51
hallynfmt is new to me20:52
hallynnice20:52
hallynrharper: but you're doing udevadm settle there?20:55
sdezielhallyn: I'm pretty sure you can skip that by using kpartx -vas20:56
hallynyeah the manpage sure suggests so :)  thx20:59
rharperyeah, old code; could/should have used -s21:00
=== albech1 is now known as albech
DaddyErichey got a quick question, i installed ubuntu server minimum server for vmware21:38
DaddyErici cannot seem to get a #!/bin/bash script working21:38
DaddyEricand yes in the bash script it has sudo before the commands21:39
DaddyErichas anyone had this problem before, and yes i did search21:39
sarnoldwhat errors are you getting?21:40
naccDaddyEric: your statements don't seem to go together (logically, to me)21:41
DaddyEricsudo: unable to execute ./multicraft-setup.sh: No such file or directory21:41
DaddyEricHangup21:41
naccDaddyEric: care to pastebin the script?21:41
naccDaddyEric: and presuambly the directory you are running it in's `ls -ahl`, if you are using relative executionn in your script21:41
DaddyErichttps://hastebin.com/gutecaheza.txt21:41
DaddyEricyes it in fact is21:41
naccDaddyEric: is this ... a hack to not use ansible or any number of other system management tools?21:42
naccDaddyEric: 1) you are using /bin/sh, not /bin/bash21:42
DaddyEricyes i changed that21:42
DaddyEricand it still does not work21:42
naccDaddyEric: 2) i see no mention of multicraft-setup.sh21:43
sarnoldnot you're not using /bin/sh but bin/sh21:43
naccsarnold: ha! :)21:43
DaddyErici know that i tried both21:43
sarnoldtry changing #!bin/sh to #!/bin/sh21:43
rsxDaddyEric: dos it have execution flag? i.e. chmod +x21:43
DaddyErici would not be here if it didnt21:43
naccDaddyEric: ok, no need to be short, you came here for help :)21:44
sarnoldDaddyEric: line 78 looks suspect21:44
naccDaddyEric: can you pastebin the exact command you ran and the exact output21:44
sarnoldDaddyEric: change the 'sudo cd' to 'cd21:44
naccDaddyEric: also line 7321:44
sarnoldDaddyEric: line 73 too21:44
naccI feel like this script seems pretty .. bad21:44
* sarnold ^5s nacc 21:44
naccway too much sudo21:44
sarnoldaye21:44
DaddyErici do that in case the user perms does not have permission for that directory21:45
sarnoldit's better to just make the user run sudo ./script21:45
DaddyEricyes and i have tried all of that21:45
naccDaddyEric: still no invocation or exact output21:45
DaddyErici would not be here asking for help if i did not know how to do that21:45
DaddyErici try sudo ./multicraft-setup.sh21:46
naccDaddyEric: also, consider using #!/bin/bash -x (or calling it with /bin/bash -x /path/to/script) so we can see what lie it's failig at21:46
DaddyEricand i get the bad filename21:46
sarnoldnacc: good idea21:46
naccDaddyEric: `ls -ahl .`21:46
naccDaddyEric: it does't say 'bad filename', it was tryign to run bin/sh before, probably21:47
naccDaddyEric: show us the *current* script and the exact execution output21:47
DaddyEric it does not do the apt commands before it21:47
naccDaddyEric: what?21:47
naccDaddyEric: give the output requested.21:48
DaddyErichttps://hastebin.com/wavebahuxo.txt21:48
sarnold$'update\r'21:48
naccDaddyEric: and the exact script /home/dtsmc/multicraft-setup.sh21:48
DaddyEricwhy is it doing that?21:48
DaddyErici already pasted that21:49
naccDaddyEric: no, you did not21:49
nacculess you left it at bin/sh21:49
DaddyErichttps://hastebin.com/icupabakoh.txt21:49
sarnoldyou didn't happen to write this thing on a windows machine did you?21:49
naccDaddyEric: seriously.21:49
naccDaddyEric: ow it says #!bin/bash21:49
naccDaddyEric: which is wrog21:49
nacc*wrong21:49
DaddyEricit is copied exactly from a working script21:49
naccDaddyEric: that script was wrong too21:49
DaddyEricand yes i used notepad++ to write it21:49
naccDaddyEric: i don't really care if it worked21:50
naccDaddyEric: well don't do that21:50
naccDaddyEric: `file /home/dtsmc/multicraft-setup.sh`21:50
naccDaddyEric: it's probably got embedded windows line endings21:50
DaddyEricmulticraft-setup.sh: ASCII text, with CRLF line terminators21:51
DaddyErichow do i remove them?21:51
DaddyEricconvert to asni right?21:52
naccdos2unix, iirc21:52
naccDaddyEric: and fix the shebang to be the correct path21:53
DaddyEricmulticraft-setup.sh: Bourne-Again shell script, ASCII text executable21:55
DaddyEricthats the output from file21:55
naccDaddyEric: oh, now provide the output from -x again21:55
DaddyEricthere we go simple fix21:55
DaddyEricits working now21:55
naccDaddyEric: ok21:56
DaddyEricGRUB_CMDLINE_LINUX="consoleblank=0"21:56
DaddyEricis that correct for disabling the console blanking21:56

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