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

inkata.00:04
inkataHi all, I'm learning uvtool + ubuntu cloud images for my KVM machine. When creating a new guest with uvt-kvm create it ends up running two disks. Why is that?00:06
inkatathanks00:06
tsimonq2inkata: #ubuntu is probably the best place for this. I'd help you, but unfortunately, I'm on a machine with no VM capabilities at the moment, so I can't confirm or deny or test.00:07
tsimonq2(and I don't know the tools well enough)00:07
sarnoldtsimonq2: I think the docs send uvtool users to this channel :)00:07
tsimonq2sarnold: oh?00:07
sarnoldtsimonq2: yeah, see the bottom of https://help.ubuntu.com/lts/serverguide/cloud-images-and-uvtool.html00:07
tsimonq2then nevermind, stay around and wait for someone to answer, sorry about that inkata :)00:08
sarnoldinkata: a quick read through the source gives me the impression that it's probably creating a cloud-init datasource00:10
sarnoldinkata: you can find more information on cloud-init here https://cloudinit.readthedocs.io/en/latest/ though I've found it severely underdocumented how you actually -use- cloud-init :/00:10
inkatatsimonq2: thanks man, as sarnold mentions, the docs point here.00:10
inkatasarnold: roger00:11
inkatasarnold: can't make heads or tails of cloud-init :-/00:21
sarnoldinkata: you either? :( sigh. it looks so useful but I can't ever find anything that says "put this file <here> and run <command> there in order to use it with libvirt" or something similar...00:21
inkatasarnold: exactly lol00:22
inkatamaybe it's a partition with a magic file on it or something00:23
sarnoldinkata: is it still visible in the resulting VMs? that might explain an awful lot about how to use the thing :)00:23
inkatasarnold: it's a disk, it shows on dmesg but it's not mounted. let me reboot the guest to try and see what's in it and report back00:25
rbasakinkata: Ubuntu cloud images are undifferentiated. The second disk is a cloud-init datasource which differentiates it (eg. has your ssh public key on it).00:25
rbasakIt tells your instance what to do when it boots, essentially.00:26
rbasakSee http://cloudinit.readthedocs.io/en/latest/topics/examples.html for details of what it can do. With uvtool, you can pass this in using --user-data, to save having to mess with creating the datasource manually.00:28
inkatarbasak: do I pass a local file to uvtool? a plain file ?00:29
rbasakinkata: you pass anything cloud-init will accept as userdata. That can be a shell script with an appropriate shebang, I believe, but usually it's in cloud-init's cloud-config format, which is yaml and covers pretty much anything you might need in a declarative format. Documentation at http://cloudinit.readthedocs.io/en/latest/topics/format.html00:32
rbasakinkata: re-reading your question, yes - a file.00:32
inkatarbasak: /me gasps in awe that's quite useful.. let me try with a simple touch /tmp/newfile00:33
rbasaksmoser: IMHO, http://cloudinit.readthedocs.io/en/latest/topics/examples.html should have every example start with #cloud-config. Otherwise people in a hurry will miss that, which I think will cause mostly silent failure, right?00:34
sarnoldomg yes, if #cloud-config is required for some reason that absolutely should be in every single example :)00:35
rbasakinkata: note that if using uvtool, if you specify --user-data then uvtool can no longer inject your ssh public key, since it uses cloud-init userdata to do that and you're overriding it.00:35
smoserrbasak, definitely true.00:35
rbasakinkata: so in that case, you should write to ~ubuntu/.ssh/authorized_keys yourself, or make alternative arrangements.00:36
rbasakinkata: if you use cloud-config then it's easier since there's a yaml key you can use to provide your ssh public key.00:36
inkatarbasak: cloud-init is a regular package I should install in my KVm host or in my regular desktop?00:40
inkatacloud-config* sorry00:40
rbasakinkata: cloud-config is a format that is defined by cloud-init that it accepts - not a package.00:43
rbasakThe format is a YAML schema, essentially. It is straightforward to write and modify by example.00:44
inkatarbasak: roger that00:44
rbasakinkata: look at http://cloudinit.readthedocs.io/en/latest/topics/examples.html, but stick "#cloud-config" at the top of any file you create so cloud-init knows it's getting cloud-config data.00:45
=== kklimonda is now known as Guest67032
inkatarbasak: Re: #cloud-config file, how can I get the name of the new guest to be used in my file? it used to say the new_guest_name in the login screen, now it only says ubuntu01:51
rbasakinkata: set the hostname and set manage_etc_hosts to localhost.01:55
inkatarbasak: but how to set the hostname dynamically in the cloud file? I need to catch uvt-kvm create THISHOSTNAME01:57
rbasakinkata: you'll need to wrap uvt-kvm and create a temporary --user-data file.01:59
rbasakinkata: if you override with --user-data, uvt-kvm cannot then do it for you.01:59
inkatarbasak: got it. This is getting to be more cumbersome than getting a fat server ISO and installing it from scratch lol02:00
rbasakReally? :)02:01
inkatakinda yeah :-P02:02
sarnoldman the only thing less documented than how to use cloud-init is how to use preseeding :)02:02
inkatarbasak: I'm setting the hostname to blahblah and it works!, but ssh keys are borked.. working on it..02:04
rbasakGreat!02:09
* rbasak goes to bed now02:09
inkatarbasak: thanks man!02:11
inkatarbasak: sarnold it's aliiiiive!!! but needs mooar scripting than I anticipated or need right now. Thanks for your help guys, sleep tight!02:16
sarnoldinkata: great! :D02:16
* inkata goes home02:17
=== seg_ is now known as seg
lucas_aiI'm at Stanford making a drone startup with AI (deep learning + SLAM) and I'm looking for people who're great at linux and systems to help out and learn AI. Is anyone in the Bay Area and interested?04:26
=== _ruben_ is now known as _ruben
wrksxWanted to upgrade from 14 LTS to 16 LTS, and got an issue with my /boot/grub/menu.slt09:12
wrksxit says the file changed, and the package maintainer's got a new version for this file.09:13
wrksxhere is my old menu.lst http://paste.debian.net/hidden/b02dfb5f/09:13
wrksxThis is a server I'm only able to access through ssh so I'm not sure I'm goin to use that grub menu at all.09:14
rbasakwrksx: this could be bug 1485685 if you're using a cloud image?09:24
ubottubug 1485685 in cloud-init (Ubuntu) "Users are prompted on upgrade of cloud images" [Medium,Triaged] https://launchpad.net/bugs/148568509:24
wrksxrbasak, ubottu, how can I confirm I'm using a cloud image?09:28
rbasakwrksx: how do you install the system?09:31
wrksxrbasak, it was installed by my hoster. I just ran an upgrade09:32
wrksxI suppose that mean it uses some kind of image anyway (since the hoster has to deploy a lot). But is that what you refer to as a cloud image I dunno09:33
rbasakIf you have an /etc/cloud/build.info then your system is based on a cloud image09:33
rbasakIf your hoster installed the system, perhaps they modified menu.lst.09:33
wrksxrbasak, I have no /etc/cloud09:34
wrksxrbasak, is that /boot/grub/menu.lst used to boot the server?09:35
rbasakThen it seems likely to me that your host modified menu.lst.09:35
rbasakYes, depending on your host environment.09:35
wrksxrbasak, two major diff between the two files, the hoster's one is referencing /initrd.img and /vmlinuz symlinks, and the package maintainer version is directly referncing inside /boot.09:37
wrksxthe other diff is that the hoster hass a biosdevname=0 on the kernel lines, which looks like important even if I don't know the purpose of it09:38
Andrew__Looking to chat to someone about conjure-up and if it supports spaces defined in MAAS?09:44
rbasakstokachu: ^09:49
wrksxhttps://wiki.ubuntu.com/Booting says that "Grub will find the /boot/grub/menu.lst which configures its interactive menu". I don't understand why this should be used to boot a server since no one is there to see the menu at reboot time09:50
rbasakWe don't use that any more I don't think.09:52
rbasakIt's still commonly used though when a host wants to boot a kernel directly rather than by emulating a regular system boot.09:53
wrksxrbasak, do you know a way to check what is used at boot time?09:53
rbasakNo, the guest can be fooled. Ask your host.09:54
wrksxrbasak, oh damn. I was afraid of hearing that09:54
rbasakYou could eliminate some methods by confirming they're not configured on the guest I suppose. But I don't really have the time to go through that, sorry.09:54
rbasakIt's not clear to me if your menu.lst modifications were made by an Ubuntu installer, by an Ubuntu bug or by your host.09:55
wrksxrbasak, that's alright thanks for the help, always appraciate it09:55
rbasakLook into net.ifnames=0 - you might need this after upgrade to stop your NIC names changing.09:55
rbasakAlso the grub-legacy-ec2 package, which your host may (or may not) use to boot your kernel directly.09:56
stokachuAndrew__: it uses juju underneath but there is no way to tell conjure-up to use a certain space10:21
Andrew__Ok thanks - was trying to see if I could do all the network definitions in MAAS instead of doing in advanced configuration10:24
Andrew__I have raised a issue around not being able to get into advanced configuration for cinder10:25
Andrew__Is there a way to target nodes in MAAS from conjure up?10:25
stokachuAndrew__: re: cinder that should be fixed if you want to test ppa:conjure-up/daily-git10:26
stokachuAndrew__: there isn't a way to target specific maas nodes via conjure-up unfortunately10:26
stokachuAndrew__: the best you can do is set which node to bootstrap with using --bootstrap-to10:27
=== dosaboy_ is now known as dosaboy
Andrew__ok10:28
wrksxOkay so I fucked up my system trying to go from LTS 14 to 1610:39
wrksxI was a bit careless because I thought there was no really important stuff on that box.10:40
wrksxNow it's gone I feel I underestimated the cost of that loss.10:40
wrksxSystem seemed not to boot10:41
wrksxUsing an option from the hoster I've been able to restart in 'rescue' mode10:41
Andrew__stokachu - all working in daily - thanks10:44
Andrew__stokachu - I am going through and setting all the networks in conjure-up advanced configuration is there any way to share common network configurations?10:46
=== Ussat is now known as Cthulu-2016
diddledanthese docs seem to reference an installer (openstack-installer) that doesn't exist on 16.04: https://help.ubuntu.com/lts/clouddocs/installer/12:36
diddledanthey're linked-to at the bottom of https://www.ubuntu.com/cloud/openstack12:37
stokachudiddledan: we need to fix that, openstack-installer is 14.04 only, http://conjure-up.io is for Xenial and above12:47
diddledanlooks like these different docs (again linked on the openstack page) reference outdated juju commands https://help.ubuntu.com/lts/clouddocs/en/Installing-Juju.html12:49
diddledanspecifically `juju generate-config` isn't available on 16.04 from what I can discern12:50
ws2k3is it save to delete the content of /var/cache/apt/archies ?13:08
FrezeI've got a execuatable call it `hello`   doing ls  it says  `hello -> user/bin/hello*` , however I can't run it from the terminal by typing `hello`14:01
Frezeoh wait14:02
Frezeare links relative to the folder you  `ls`14:02
RoyKyes14:03
RoyKanyway - the current directory isn't normally in PATH, and shouldn't be14:04
robert17Hi.  I'm trying to setup an existing Ubuntu-Server 14.04.5 LTS instance with an attached RAID-1 array.  I do this all the time on all sorts of other boxes with no issue.  Here, though, try as I might, I can create the array, manually assemble is from shell -- all looks good --14:07
robert17BUT, I can't manage to get it to assemble/start on boot.14:07
robert17AFTER boot, I can simply 'mdadm --assemble --scan', and all's good. But auto-assemble?14:07
robert17No dice ....  Is there something unique, or not quite ready, in Trusty?14:08
RoyKrobert17: did you mdadm --detail --scan >> /etc/mdadm/mdadm.conf && update-initramfs -u # ?14:22
robert17RoyK: Yep.  As always ....14:22
robert17"Quadruple-checked" superblocks, etc etc14:23
RoyKcheck mdadm.conf if it has some ghosts14:23
robert17'ghosts'?14:23
RoyKold references to former arrays of the same name14:23
robert17Ah. It does not14:23
robert17No errors in boot log afaict.  Just no startup.  Kernel mod's loaded.  Like I said, after startup, reassemble works perfectly.14:24
robert17Just a quiet, no-start on boot.14:25
RoyKis the raid in any lvm config or in fstab?14:29
robert17Nope, not yet.14:32
robert17RoyK: appears to be unique to Trusty.  Mine, anyway.  Ubu16 works just fine.15:03
RoyKrobert17: I don't think the raid will be activated until it's actually used15:32
robert17'used' ?  as in ... it has to be mounted?15:33
robert17Works fine "everywhere else" ...15:33
RoyKas in accessed15:38
robert17hm. Worth a try ... doing so now.15:39
robert17RoyK: Completely unneeded on Ubu 16 -- autoassembly on boot works with no access/mount, just mdadm.conf config.  OTOH, on Ubu 14, no autoassembly on boot, UNTIL ... create an /etc/fstab mount for the array.  Works now.15:48
robert17IIUC, that's going to be a problem if I want to boot from the array ...15:48
robert17It's got to assemble in order to GET to the /etc/fstab ... unless there's sufficient info in the initramfs15:49
RoyKrobert17: I've used raid1 for boot devices on most versions of debian/ubuntu, and never seen an issue with that15:53
RoyKrobert17: As I said, it usually assembles correctly, but isn't activated unless it's being touched by lvm or a filesystem or similar16:08
robert17RoyK: Do you by anychance need to use "dolvm" or "lvmwait=" in grub cmd line?16:10
RoyKrobert17: IIRC I've used lvwait once, but I don't remember the occation16:16
robert17RoyK: fwiw, setting "GRUB_CMDLINE_LINUX="dolvm lvmwait=/dev/mapper/VG_TEST-LV_TEST", where /dev/VG_TEST/LV_TEST is a VG+LV on PV=/dev/md1 seems to do the trick. No /etc/fstab mount or /etc/rc.local needed.  Of course, that still requires that there's a mountable FS somewhere on the array ...16:35
Bravenhello17:17
Bravendoes anyone know how to prevent a IF that is configured for DHCP from registering in DNS17:18
Frezethanks Royk17:19
Braven??17:27
=== eagleeyes is now known as eagle
=== eagle is now known as Guest8335
=== jelly-home is now known as jelly
Guest8335What is needed for the broadcom WiFi to work?18:15
madpropsanyone has compiled apache's mod_wsgi for python3 on xenial?18:24
madpropsthe version in the repo has a bug18:24
sarnoldmadprops: what bug number?18:34
madpropshttps://bugzilla.redhat.com/show_bug.cgi?id=134572518:35
ubottubugzilla.redhat.com bug 1345725 in mod_wsgi "python3-mod_wsgi: site.addsitedir() fails if multiple directories in python-path" [Unspecified,New]18:35
sarnoldmadprops: you could download the patch from the github issue; apt-get source the mod_wsgi package, apt-get build-depends for the mod_wsgi package, and try applying the patch18:45
sarnoldlooks like our packages are quite a bit older than the patch on github, it might take some massaging, but it's worth a try18:45
sarnoldmadprops: and if it works for you, you could post a debdiff to the debian bug and ubuntu bug and see if you can get it fixed for everyone else, too :)18:46
Guest8335Expansem19:03
sarnoldGuest8335: that's not a very good password.. hope it's not for anything important :)19:04
Guest8335Sarnold easy to say.19:05
Guest8335How can I find a kmod name?19:07
Guest8335Bcmwl-kernel-source looked to have built a module.19:08
Guest8335It appears it isn't loaded.19:08
sarnoldGuest8335: it looks like that generates a file named wl.ko19:09
sarnoldGuest8335: try running 'find /lib/ -name wl.ko -ls' and see if that finds anything19:10
Guest8335There was b43 it isn't a 43xx chip but it works on fedora.19:12
Guest8335sarnold: Whatever it built there's no recent wl .ko showing in /lib/19:20
Guest8335When the package was installed it looked like it built against the running kernel. Running make in use SRC doesn't work.19:21
sarnoldGuest8335: how about 'dkms status'?19:25
Guest8335Sarnold status?19:29
Guest8335It was installed it looks like something to. Do with virtualbox.19:29
=== dare is now known as udare
inkatarbasak: hi hi19:58
inkata.20:08
jamespagecoreycb, hey I sycned nova 14.0.1 to proposed20:18
coreycbjamespage, thanks20:18
bc2946088Probably a silly question, but upgrading a 14.04.05 MAAS(1.9) that controls openstack nodes to the latest HWE for continued support shouldn't affect anything with MAAS, right?20:43
roaksoaxbc2946088: what do you mean by to the latest HWE ?21:00
bc2946088roaksoax: using the 16.04 Xenial HWE Stack on 14.0421:19
=== not_phunyguy is now known as phunyguy
=== duxklr is now known as jemurray
=== arooni_team_b is now known as arooni
=== tomaw is now known as 02HAAAAAB
=== karstensrage_ is now known as karstensrage
=== 02HAAAAAB is now known as tomaw
=== skeezix-hf is now known as Ofir
=== Ofir is now known as skeezix-hf
jamespagecoreycb, release note looks good22:06
BrianBlaze420I am trying to set up an openvpn server22:18
BrianBlaze420oh it came to me22:18
BrianBlaze420<322:18
minxHi anyone with experience setting up ubuntu servers on lunanode vps?22:45

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