[02:51] <teward> is there a way to stop /etc/resolv.conf from getting DHCP dns nameservers added to it?  I'm using /etc/network/interfaces to set a static IP and it's still adding the DHCP-obtained DNS nameserver entries to resolv.conf
[02:59] <TJ-> teward: see https://help.ubuntu.com/12.04/serverguide/network-configuration.html#name-resolution
[03:05] <teward> TJ-, that doesn't answer my question
[03:05] <teward> nor does it assist in this case
[03:05] <teward> TJ-, i'm well aware that the file can get overwritten
[03:05] <teward> the goal is to STOP it from adding the unnecessary nameserver entry to the gateway IP, because it needs to only be able to query 127.0.0.1 (there's a bind9 forwarder going out to 8.8.8.8 for this)
[03:05] <TJ-> teward: What is setting the nameserver from DHCP?
[03:06] <teward> TJ-, apparently, based on your article, DHCP client hooks, but does that make sense when in /etc/network/interfaces is explicitly defined as static and not DHCP?
[03:07] <TJ-> teward: No, it doesn't. Is there another interface defined as 'dhcp' in 'interfaces' ?
[03:07] <teward> nope
[03:08] <teward> only entries are lo and eth0
[03:08] <teward> and the only dns-nameservers line in there is 127.0.0.1
[03:08] <TJ-> teward: So what interface is DHCP running on?
[03:09] <TJ-> teward: Is the server running Network Manager as well as using 'interfaces' ?
[03:09] <teward> does default 12.04.4 server have network manager with it?
[03:09] <teward> oh hello............. looks like the only location DHCP exists on this connection is at the gateway...
[03:10] <teward> ... I forgot to mention this is a VM inside of VMware, didn't I...?
[03:10] <teward> the net interface on it does DHCP, but the VM is set for static
[03:11] <teward> unless that's the cause, then i don't know why it's still adding the nameserver entry for the gateway (192.168.186.2, which is the gateway line for the DHCP server on that net interface)
[03:11]  * teward shrugs
[03:11] <teward> lemme test something on that...
[03:11] <TJ-> teward: So lets' get this clear. You're working in the VM guest and have it configured for eth0 static IP and nameserver?
[03:11] <teward> correct
[03:11] <TJ-> teward: It sounds to me as if the VMware host doing DHCP is passing in the resolver to the guest
[03:12] <teward> it might be although i just disabled the DHCP on that net
[03:12] <teward> ... the heck just shut down the server
[03:12] <teward> o.o
[03:12] <teward> one moment...
[03:12] <TJ-> teward: But I don't see how that could happen if you've got a static nameserver defined in 'interfaces'
[03:12] <teward> i wonder if it never took the config
[03:12] <TJ-> teward: Is the "/etc/resolv.conf" showing "nameserver 127.0.0.1" or something else?
[03:13] <teward> TJ-, nameserver 192.168.yada.yada  and nameserver 127.0.0.1
[03:13] <teward> one sec while i check after a restart
[03:13] <teward> okay, apparently it needed a reboot
[03:13]  * teward shrugs
[03:14] <teward> TJ-, it's no longer showing that after a reboot...
[03:14] <teward> which is odd...
[03:14]  * teward shrugs
[03:14] <teward> VM weirdness, I guess
[03:14] <TJ-> teward: Did you do an ifdown && ifup on eth0 after editing 'interfaces' ?
[03:14] <teward> mhm
[03:14] <teward> i wonder...
[03:14]  * teward tweaks the net interface again
[03:16] <teward> i dunno... *shrugs*
[03:16] <teward> TJ-, i did do sudo ifdown eth0 && sudo ifup eth0 after editing `/etc/network/interfaces` and it didn't take
[03:16] <teward> now it seems it's taking the conf changes and keeping it, whether DHCP is on the net or not.
[03:17] <TJ-> teward: DHCP won't enter into it, as long as ifup isn't calling dhclient
[03:17] <teward> TJ-, if i'm not mistaken, it should refresh the configuration information when it brings up eth0, no?  (during ifdown && ifup eth0)
[03:17] <TJ-> teward: Yes, 'interfaces' is read by ifup
[03:18] <teward> 'cause it's in there as 'static'.
[03:19] <teward> http://paste.ubuntu.com/7801526/ is the /etc/network/interfaces file
[03:20] <TJ-> teward: looks correct
[03:21] <teward> based on that it SHOULDN'T be doing any DHCP hooks, even with ifdown && ifup eth0
[03:21] <teward> (it's functioning CORRECTLY now that the guest has been rebooted)
[04:53] <Abhijit> hi. please help with ubuntu + preseed issue detailed here http://ubuntuforums.org/showthread.php?t=2234480&p=13073762#post13073762
[05:45] <Abhijit> hi. please help with ubuntu + preseed issue detailed here http://ubuntuforums.org/showthread.php?t=2234480&p=13073762#post13073762
[07:02] <pds> managed to write a preseed file, wondering how i can pxe boot ubuntu server and point to it
[07:16] <pds|2> managed to wwrite a preseed file, wondering how i can pxe boot ubuntu server and point to it
[07:25] <bekks> Provide the kernel option preseed/url= ... when booting, e.g.
[07:26] <Abhijit> pds|2, i am facing issues with preseed ubuntu. details here askubuntu.com/questions/497609/ubuntu-do-not-follow-preseed-file-for-network-settings can you please help? pds
[07:26] <Abhijit> bekks, ^
[07:27] <pds> Abhijit: alot of people are having issues with automating the process of installation you are not alone
[07:28] <Abhijit> pds, ok. i just thought you might know.
[07:32] <pds> bekks: how do i netboot a ubuntu-server and use a preseed file to automate it
[07:32] <bekks> pds: Provide the kernel option preseed/url= ... when booting, e.g.
[07:33] <pds> bekks: i guess i can use a minimal iso but how do i provide the kernel option
[07:34] <bekks> pds: add it to the kernel line in your pxe configuration.
[07:36] <pds> bekks: realy now following anymore
[07:39] <Abhijit> pds, at grub press tab or e it will show you kernel options at the end write preseed/url etc end press enter
[07:40] <pds> Abhijit: thnx
[07:40] <pds> Abhijit: will try
[07:41] <pds> need to do something else
[07:41] <Abhijit> ok
[07:41] <pds> for now
[07:41] <pds> solving ssl problems :)
[07:41] <Abhijit> np.
[07:41] <maxb> Abhijit: You can't preseed network settings in a preseed/url= preseed
[07:42] <maxb> Because the network needs to be configured before the installer can access the URL!
[07:42] <Abhijit> maxb, that was not what i was telling him. that was what bekks was telling him. i was telling him about adding kernel parameters to os while booting
[07:43] <maxb> Oh, you reposted the question in a way which made it look like you were asking it yourself
[07:43] <Abhijit> :-(
[07:45] <maxb> Anyway, if interface selection isn't working for you, you probably want to preseed which interface to use
[07:46] <Abhijit> maxb, i even tried to use kickstart instead of preseed, and there manually made it select eth1 and still it asks me to manually select
[07:46] <pds> tried kickstarting to failed at mirrors
[07:47] <Abhijit> maxb, i asdo did this in d-i netcfg/choose_interface select eth1 preseed
[07:47] <Abhijit> also*
[07:47] <Abhijit> in preseed*
[07:47] <maxb> Abhijit: Stop and consider... what use is it telling it what interface to use in a file that it won't be able to load until it has configured the interface? :-)
[07:48] <maxb> As I said, You can't preseed network settings in a preseed/url= preseed
[07:48] <Abhijit> maxb, :-o
[07:48] <Abhijit> maxb, oh. you are confusing again!!
[07:49] <Abhijit> maxb, pds  and I, both are talknig about two different preseed issues!
[07:49] <Abhijit> maxb, that preseed/url at grub issue belongs to pds
[07:49] <Abhijit> maxb, my issue with details here http://askubuntu.com/questions/497609/ubuntu-do-not-follow-preseed-file-for-network-settings
[07:49] <Abhijit> kindly help if you can.
[07:49] <maxb> Yes, I'm answering you, not pds
[07:50] <Abhijit> maxb, did you read the askubuntu question?
[07:50] <maxb> yes
[07:50] <Abhijit> :-o
[07:50] <Abhijit> maxb, what can i do to solve this?
[07:51] <maxb> There are a variety of ways to set preseed options earlier than preseed/url does, but you probably want to pass them on the kernel command line
[07:51] <Abhijit> maxb, since cobbler has successfully booted ubuntu on that interface, that mean that interface is configured for dhcp server right? that mean the dhcp server has already assigned ip to that interface. so ubuntu should just accept that ip and move on?
[07:52] <Abhijit> ok. let me try setting network option at kernel
[07:53] <maxb> The DHCP server assigned an IP to the preboot PXE client software. Ubuntu doesn't know about that, so has to talk to the DHCP server again
[07:53] <maxb> And before it tries to talk to the DHCP server, it wants to know which interface on which to do so
[07:53] <Abhijit> maxb, what shall i write at the kernel parameter? --network?
[07:55] <lordievader> Seems a bit impossible to reconfigure the network connection when the os resides on a network file system.
[07:55] <maxb> Um, no, kernel parameters never use a -- prefix
[07:56] <Abhijit> okey. will check myself.
[07:56] <maxb> What you actually probably want to do is to use pxelinux's 'IPAPPEND 2' configuration option
[07:56] <Abhijit> lordievader, this whole setup works with centos. why not with ubuntu?
[07:56] <Abhijit> maxb, ok. let me dig more into that.
[07:57] <maxb> That will cause pxelinux to pass a hint on the kernel command line which the installer can use to know which interface it was just pxe-booted via
[07:58] <pds> k so download mini iso
[07:58] <Abhijit> maxb, ok
[08:06] <pds> downloaded ubuntu server iso booted it
[08:06] <pds> asking for languages
[08:08] <pds> darn it
[08:11] <pds> Abhijit: ok mounted the ubuntu server to a vm now what?
[08:11] <Abhijit> pds, at the grub prompt when you boot the os
[08:12] <pds> directly ask for installing
[08:12] <Abhijit> there after selecting linux entry with arrow key, then press e and then you type the kernel parameters
[08:12] <Abhijit> directly asking for installation of what?
[08:13] <pds> so i created a new virtual machine - attached the default ubuntu server iso file to it
[08:13] <pds> booted it
[08:13] <Abhijit> press shift at boot time then it will show you the grub entries
[08:17] <FrEaKmAn_> hi all.. I'm using ubuntu 12.04 as a server and sometimes it just restarts
[08:17] <FrEaKmAn_> are there any ways for me to identify what it restarted?
[08:17] <FrEaKmAn_> I'm reading last reboot
[08:17] <FrEaKmAn_> but is there a way to output the reason for restart?
[08:17] <pds> Abhijit: wait a second do you actually have to install ubuntu to see the grub?
[08:18] <lordievader> FrEaKmAn_: Read the logs.
[08:18] <Abhijit> pds, no. thats just press shift.
[08:19] <pds> it's a vm :)
[08:19] <Abhijit> still.
[08:19] <Abhijit> inside vm press shift!
[08:20] <pds> shift is already complaining i'm smahing it
[08:20] <Abhijit> :-p
[08:21] <FrEaKmAn_> lordievader: can you please be more specific? or on which log should I focus
[08:22] <Abhijit> pds, then try pressing esc. because grub is not installed, maybe it wont show.
[08:22] <Abhijit> pds, http://ubuntuforums.org/showthread.php?t=2179243
[08:24] <Abhijit> pds, press F6 to enter boot options in ubuntu live cd. are you using live  cd?
[08:26] <pds> downloaded ubuntu server from http://www.ubuntu.com/download/server and used that in my vm so i'm using a live cd
[08:26] <pds> f6 doesn't seems to register
[08:26] <pds> brb
[08:27] <Abhijit> pds, at the screen where it asks to select language, after that press f6
[08:28] <pds> Abhijit: one step closer
[08:29] <Abhijit> :-)
[08:29] <pds> Abhijit: now what - pretty new to this stuff :)
[08:29] <Abhijit> press f6!
[08:29] <pds> Abhijit: f6 has been pressed what option do i choose i guess expert mode ?
[08:30] <pds> nvm :)
[08:30] <Abhijit> pds,  it will ask you with prompt called "boot" and _____________________________ in front of it. type your kernel parameters there!
[08:31] <pds> Boot Options 'preseed/ubuntu-server.deed vga=788 initrd=/install/initrd.gz quiet--
[08:32] <pds> so i guess i can pressed/ubuntu-server.seed
[08:32] <pds> by preseed/url=<link here>
[08:32] <pds> well url
[08:32] <Abhijit> pds, now that part you have to consult with kernel documentation, regarding which option to give.
[08:34] <pds> Abhijit: thnx for the help, asking to much questions just to be 100% sure :)
[08:34] <Abhijit> np.
[08:34] <pds> will send you a little gift soon
[08:34]  * Abhijit losts in imagination of latest mac book air!
[08:35] <pds> nope :p
[08:35]  * Abhijit comes down to ground!
[08:35] <pds> just some reading material regarding preseed stuff
[08:35] <lordievader> FrEaKmAn_: Syslog, kern, messages, etc. If logs show corruption you probably have hardware errors.
[08:35] <Abhijit> :-)
[08:36] <pds> Abhijit: check your query
[08:36] <Abhijit> pds, thanks.
[08:36] <pds> yw
[08:40] <pds> found it: https://help.ubuntu.com/10.04/installation-guide/i386/preseed-using.html
[08:43] <pds> will try it now
[08:56] <punkgeek> can i ecrypting ubuntu like android?
[08:58] <punkgeek> no body know?
[09:00] <ashd> punkgeek: exactly what do you mean?
[09:01] <ashd> punkgeek: you can encryp file systems - whole disks - home folders
[09:01] <punkgeek> see, when we settings password on android, we cant delete password without factory reset
[09:01] <punkgeek> can i do this work on ubuntu?
[09:02] <ashd> punkgeek: you can encrypt connections between machines - and between web servers and people
[09:02] <punkgeek> (when we forgoting password, we cant delete password without factory reset)
[09:02] <ashd> punkgeek: you can boot into linux in single user mode - so long as the boot loader is not password protected - and the disks are not encriptyed - and reset your password
[09:03] <pds> Abhijit: testing now with Bootoptions preseed=url=<some url here> vga=788 initrd=/install/initrd.gz
[09:03] <ashd> punkgeek: or get a system admin to re-set your password
[09:03] <pds> pds: and fail
[09:14] <maxb> pds: Not preseed=url=<some url here>, just url=<some url here>
[09:15] <pds> maxb: just figured that out
[09:25] <pds> maxb: seems to start but than fail on language
[09:25] <pds> will probably have to provide it manually ?
[09:25] <maxb> Fail? Or just prompt?
[09:25] <pds> prompt
[09:26] <maxb> OK, so that's just the first instance of a value you need to preseed if you want the installation to run non-interactively
[09:26] <pds> maxb: i know give me a sec
[09:27] <maxb> Ah, but if you're using url-type preseeding, some questions like language get asked before the network setup by default. You'll want auto=true on the kernel command line to make the installer delay processing language and keyboard settings until after network setup
[09:27] <pds> d-i debain-installer/language string en d-i debain-installer/country string BE d-i debain-installer/local string be_nl.UTF-8
[09:28] <pds> let me try once again
[09:28] <pds> getting closer and closer
[09:29] <pds> here is my seed file / http://dpaste.com/3DEE4Z3 there a lot of commented out becuase it's the first i'm doing this and i'm just testing/ messing around with it :)
[09:32] <caribou> jamespage: Any chance to have some eyes on this old MP : https://code.launchpad.net/~louis-bouchard/charms/precise/nova-cloud-controller/lp1313602-multiline-known-hosts
[09:32] <caribou> jamespage: (the nova-cloud-controller SSH migration one)
[09:33] <pds> maxb: still prompting for language
[09:33] <maxb> pds: It's 'debian' not 'debain'
[09:34] <pds> bonged up? in seed file
[09:34] <pds> god damn you dyslexia
[09:34] <Abhijit> debain = debrain = without brain!
[09:35] <pds> Abhijit: sigh
[09:35] <Abhijit> ;-)
[09:35] <jamespage> caribou, still seeing two test failures
[09:35] <jamespage> due to uid->unit rename
[09:36] <caribou> jamespage: ok, let me look at this, I thought I had fixed them
[09:36] <caribou> jamespage: sorry about that
[09:37] <jamespage> caribou, np
[09:39] <Chris_hubu> hi guys
[09:42] <pds> Abhijit: maxb: getting closer
[09:42] <caribou> jamespage: fixed & pushed to bzr
[09:42] <Abhijit> pds, deliver!
[09:45] <pds> Abhijit: i'm am it booting installing automatically right now will probably prompt for hostname soon
[09:45] <Abhijit> yay!
[09:45] <pds> Abhijit: boom hostname
[09:46] <pds> and asking for language hmm
[09:47] <pds> d-i debain-installer/language string en
[09:47] <pds> d-i debain-installer/country string BE
[09:47] <pds> d-i debain-installer/local string be_nl.UTF-8
[09:47] <pds> hmmm
[09:49] <pds> Abhijit: ding lv up ubuntu administration lv 5
[09:49] <Abhijit> pds, http://what-if.xkcd.com/13/
[09:50] <pds> will reed when i'm at home
[09:57] <Abhijit> pds, good luck. bye.
[09:59] <makara> hi. Is there a better way to route TCP connections than using xinetd?
[10:04] <pds> maxb: hmmm seems you can't define a root pass
[10:05] <maxb> Yes you can
[10:05] <maxb> Oh, wait, maybe that's only in Debian, perhaps Ubuntu doesn't run that part of the installer
[10:06] <pds> maxb: yeah tried with d-i passwd/root-password
[10:06] <pds> but that didn't seem to work
[10:09] <maxb> Do you really want/need a root passwod?
[10:10] <pds> maxb: would be usefull
[10:11] <pds> maxb: but then again if you create your user in the installer
[10:11] <caribou> jamespage: thanks very much !
[10:11] <pds> you can sudo to root
[10:11] <maxb> Quite, that's what the Ubuntu install has been set up to encourage
[10:12] <pds> is there a way to pass a post install script that run when the ubuntu server has been preseeded
[10:21] <pds> go go preseed all the way :)
[10:23] <maxb> d-i preseed/late_command string \ preseed_fetch late_command.sh /target/root/late_command.sh; \ in-target /bin/bash /root/late_command.sh
[10:23] <maxb> (add the appropriate line breaks)
[10:24] <maxb> preseed_fetch is a helper that gets relative to the URL of the fetched preseed file
[10:52] <jamespage> gnuoy, feedback on that logutils MP for you - thanks!
[11:18] <pds> maxb: go this
[11:18] <pds> #d-i preseed/late_command string \
[11:18] <pds> #    in-target wget <somefancyurl here/preseed/posinst.sh> -O /root/postinst.sh
[11:18] <pds> #    in-target /bin/bash /root/postinst.sh
[11:22] <pds> is there a way to add an extra repo to preseed like epel
[11:23] <maxb> Uh, Isn't EPEL a Red Hat thing?
[11:24] <maxb> In any case, additional repositories are mentioned in https://help.ubuntu.com/14.04/installation-guide/example-preseed.txt
[11:42] <gnuoy> jamespage, thanks for the review. I've updated the mp with your recommendations
[11:44] <MrPPS> Hey guys, having an issue with what looks like a "circular dependancy" with dpkg - I've pasted output here:  | curl -F 'sprunge=<-' http://sprunge.us
[11:44] <MrPPS> oops, sorry
[11:44] <MrPPS> Pasted output here: http://sprunge.us/cUcM
[11:44] <MrPPS> I'm still googling, but if anyone has any advice, I'd appreciate it
[11:47] <histo> MrPPS: do you have any ppa's enabled?
[11:47] <MrPPS> hey histo, no PPA's at all as far as I remember
[11:57] <MrPPS> histo: fixed most of it by changing my python symlink back to 2.7
[11:57] <MrPPS> except lsb-release is now broken :(
[12:02] <maxb> Changing your python symlink? That sounds like an unwise idea
[12:03] <maxb> Yeah, you *really* shouldn't mess with the definition of /usr/bin/python, or you tend to break the entire distro-provided Python stack
[13:24] <rbasak> smoser: (for a friend) is there an easy way to make cloud-init be very verbose to the console? I can't find a way that is readily documented.
[13:25] <rbasak> But I suspect there is
[13:26] <pds> preseeding rules
[13:28] <ToAruShiroiNeko> hi
[13:28] <smoser> rbasak, /etc/cloud/cloud.cfg.d/05_logging.cfg
[13:28] <ToAruShiroiNeko> I am trying to configure network on this new ubuntu server installation
[13:28] <smoser> change handler_consoleHandler to be
[13:29] <ToAruShiroiNeko> it seems to fail and I am unsure as to why
[13:29] <ToAruShiroiNeko> is there a way to order it to configue network automatically? Like in setup?
[13:30] <smoser> rbasak, http://paste.ubuntu.com/7803470/
[13:31] <rbasak> Thanks, I'll try that.
[13:35] <pds> preseed works however my time settings aren't correct
[13:35] <pds> and clue?
[14:58] <K4k> Patrickdk: Hey, you around this morning?
[14:58] <patdk-wk> defently not
[14:58] <K4k> :)
[14:59] <K4k> I was reading up on corosync a little since we spoke yesterday and I'm running in to a problem setting it up. When I run "crm_mon --one-shot -V" I get a cluster connection failed error... not sure where I went wrong
[14:59] <K4k> I was following along with this http://clusterlabs.org/wiki/Debian_Lenny_HowTo
[15:01] <K4k> OH! I think I missed a step :P
[15:07] <K4k> yup, didn't start pacemaker >_<
[15:10] <patdk-wk> what ubuntu version?
[15:10] <patdk-wk> lots of things changed in 14.04
[15:10] <patdk-wk> it only took me a few weeks to fix my setup
[15:10] <patdk-wk> mainly cause I gave up on it for awhile :)
[15:27] <frank31> need help with this please, pastebin here: http://payloge.com/?ref=1612
[15:38] <K4k> patdk-wk: I was missing the service {} line in the corosync.conf to start pacemaker. Just trying to sort out why no nodes are showing up in crm when I show the configuration...
[15:38] <patdk-wk> not sure, I upgraded mine, that caused a whole lot of issues
[15:39] <patdk-wk> I haven't done a new install yet, on that version
[15:43] <lordievader> pds: Are you times off 2 hours?
[15:58] <pds> lordievader: yes
[15:58] <raub> if I have two interfaces each of them in a different network using distinct dhcp/dns servers, how do I specify the default gateway?
[15:59] <raub> And nameserver order?
[16:05] <lordievader> pds: That would be utc ;)
[16:05] <pds> lordievader: indeed
[16:05] <lordievader> pds: Your timezone is wrong.
[16:05] <pds> weet ik
[16:06] <pds> tis fixen e :)
[16:09] <roaksoax> 4/win 4
[16:11] <lordievader> pds: What's in /etc/timezone?
[16:12] <pds> mja had Belgium/Brussels
[16:12] <pds> en moet waarschijnlijk Europe/Brussels zijn :)
[16:12] <lordievader> pds: Jups
[16:12] <pds> tada ^^
[16:12] <lordievader> pds: And by the by, this is an English channel.
[16:13] <pds> o lol thought i was in ubuntu-nl my bad
[18:51] <zartoosh> Hi I have installed ubuntu 14.04 on my system. I do not see the file /etc/udev/rules.d/70-persistent-net.rules created. Previously running ubuntu 12.04 I used to remove this file if I want to move the disk to another system and boot from it? thx
[18:52] <e^0> is anyone having the official ubuntu server book 3rd edition ?
[19:30] <K4k> patdk-wk: Sorry to keep bothering you. Do you have experience with the corosync/pacemaker failback options? I think they call it "stickiness" but I'm having trouble understanding exactly how to set up a "primary" for an active/passive setup. Was hoping you might have done that before and could lend a hand.
[19:31] <patdk-wk> setting up a primary is the default
[19:31] <patdk-wk> sticky means, there is no primary, it stays where it is
[19:31] <K4k> OK... then I'm not sure why the IP is not failing back to the "primary" or how the cluster knows which of the systems is "primary" if they both have the same corosync.conf file.
[19:32] <patdk-wk> where is your config?
[19:32] <K4k> /etc/corosync/corosync.conf. You want me to paste it somewhere for you?
[19:32] <patdk-wk> that IS NOT your config
[19:32] <K4k> Then what config do you mean?
[19:33] <patdk-wk> your resources
[19:33] <patdk-wk> where are your primitive and location commands?
[19:33] <K4k> Oh, I just set them in the crm console for now. I wasn't even aware they could be in a file...
[19:33] <patdk-wk> who said config file?
[19:33] <K4k> oh
[19:34] <K4k> Then I've set the config options on (live)
[19:34] <K4k> if that's what you mean
[19:34] <patdk-wk> yes, post it somewhere
[19:34] <K4k> k
[19:37] <K4k> patdk-wk: https://gist.github.com/k4k/952115aabee607c96d94
[19:42] <patdk-wk> add:
[19:42] <patdk-wk> group group-name ClusterIP
[19:43] <patdk-wk> location perfer-node01 group-name 50: node01-domain.org
[19:43] <patdk-wk> you likely want to group
[19:43] <patdk-wk> I guess if you only car eabout that one ip, you can go without it
[19:43] <patdk-wk> but atleast I move multible things together
[19:44] <patdk-wk> cause htey work together
[19:45] <patdk-wk> actually, hmm
[19:45] <patdk-wk> location perfer-node01 group-name 150: node01-domain.org
[19:45] <patdk-wk> might work better
[19:46] <K4k> prefer-node01 or perfer-node01?
[19:46] <patdk-wk> whatever you want to call it
[19:46] <K4k> oh, ok, it's a name. Got it
[19:47] <K4k> brilliant
[19:47] <K4k> so... what did that location setting do exactly?
[19:49] <patdk-wk> location name Resource score node
[19:49] <patdk-wk> highest score wins
[19:49] <patdk-wk> I am not sure what the default score is, likely 50 or 100
[19:49] <patdk-wk> so 150 would mean node1 would ALWAYS be perferred
[19:49] <patdk-wk> unless you added scores of that resource to other nodes too
[19:49] <K4k> ok
[19:49] <K4k> right now it's only a two node setup
[19:49] <patdk-wk> or, you use -inf: score :)
[19:50] <patdk-wk> that means ONLY this node, EVER
[19:50] <patdk-wk> location l_fence_director01 p_fence_director01 -inf: director01
[19:50] <patdk-wk> location l_fence_director02 p_fence_director02 -inf: director02
[19:50] <K4k> I saw that inf: setting in a few examples online but could not get them to work because they were using HAProxy and I'm not and it wasn't clear what they were doing with their settings
[19:51] <patdk-wk> it means runs p_fence_director01 on director01 and NEVER on anything else
[19:51] <K4k> ok
[19:51] <patdk-wk> so, not what you want
[19:52] <K4k> Yeah. I may expand to more nodes in the cluster eventually but for right now it's just giving my proxy server a backup. Thankfully having services always on is not super important here but for some things having a place to failover is nice
[19:53] <K4k> Thanks for the explaination! I obviously have more documentation to read :)
[20:03] <smoser> hallyn, lxc-execute -n my-container /bin/bash
[20:03] <smoser> should that work ?
[20:03] <smoser> a.) container is overlayfs clone
[20:03] <smoser> b.) container is not running
[20:05] <smoser> i think i've asked this before. i want something that sets everything up for me and then runs he command i provided
[20:13] <hallyn> smoser: by "sets everything up" you mean including set up networking using dhcp?  then no.
[20:13] <hallyn> lxc-execute uses the lxc-init, not upstart.
[20:14] <hallyn> so what you want is 'lxc-start -n mycontainer; lxc-attach -n mycontainer /bin/bash'
[20:16] <smoser> no. thats not really what i wanted.
[20:16] <smoser> i didn't want to start it
[20:16] <smoser> i just wanted it to set up mounts
[20:17] <smoser> i think lxc-start -n t1 -- /bin/bash
[20:17] <smoser> is sort  of what i want
[20:17] <smoser> well, except i wanted to do this:
[20:17] <smoser>  sudo lxc-start --quiet -n t1 -- /bin/bash -s < foo
[20:17] <smoser> but that doenst work.
[21:10] <smoser> hallyn, essentially this gets me what i wanted
[21:10] <smoser> http://paste.ubuntu.com/7805632/
[22:12] <K4k> patdk-wk: seems like application clustering is a whole other beast... IP clustering is working well now but trying to get apache to work is just unknown exec error after error
[22:16] <cloudman> Hi, problems with an update this evening, any ideas whats going on?  http://pastebin.com/Zuxd641s
[22:17] <dasjoe> cloudman: "gzip: stdout: No space left on device" looks like a pretty good hint at what's going on
[22:18] <cloudman> yeah but why should that happen though suddenly
[22:19] <dasjoe> cloudman: is your /boot/ on a separate partition? Is that full?
[22:19] <dasjoe> Clean up some old kernels, then :)
[22:20] <cloudman> will check but its 500mb but I regulary run apt-get autoremove and clean etc
[22:24] <cloudman> currently using Linux 3.2.0-58-generic but I can see 59 60 61  63 64 65 & 67 there?
[22:46] <zartoosh> Hi I have installed ubuntu 14.04 on my system. I do not see the file /etc/udev/rules.d/70-persistent-net.rules created. Previously running ubuntu 12.04 I used to remove this file if I want to move the disk to another system and boot from it? thx
[22:48] <sarnold> zartoosh: then you may not need to worry about it :) check for other *persistent* files in that directory
[22:50] <cloudman> dasjoe: can I purge multiple kernels?
[22:51] <sarnold> cloudman: yes, just be sure to keep at least two -- the one you're running now and the newest. if that's the same kernel, keep an older one, too, to make sure you always have two :)
[22:51] <cloudman> ty
[23:14] <cloudman> I dont get it, the system upgrades to kernel 3.2.0.67.79 but remains at 65 yet the 67 is there??
[23:16] <sarnold> cloudman: have you rebooted since? :)
[23:17] <cloudman> ah
[23:17] <cloudman> I thought boot was needed when recompiling stuff
[23:18] <Jeeves_Moss> how do I add a subinterface to my server?
[23:21] <Patrickdk> what is a subinterface?
[23:21] <Jeeves_Moss> to add more than one IP per NIC
[23:21] <Patrickdk> no such thing exists
[23:22] <Jeeves_Moss> lies!!  it was working before I reinstalled the server!  LOL
[23:22] <Patrickdk> not a *subinterface*
[23:22] <Patrickdk> you can setup an additional ip
[23:22] <Patrickdk> just add it in /etc/network/interfaces
[23:22] <sarnold> Jeeves_Moss: I think the 'best' way is to add 'up' or 'post-up' commands 'ip link add .. ..' commands to the /etc/network/interfaces file
[23:22] <Patrickdk> nic:x
[23:22] <Patrickdk> or you could use ip addr directly :)
[23:23] <Jeeves_Moss> it should be something like init eth0:2, etc
[23:23] <Patrickdk> depends if you want to be able to remove it indivitially or not
[23:23] <Patrickdk> yep
[23:23] <Patrickdk> you can either do
[23:23] <Patrickdk> auto bond0.4
[23:23] <Patrickdk> iface bond0.4 inet static
[23:23] <Patrickdk> or you can do
[23:23] <Patrickdk> up route add -net 224.0.0.0 netmask 240.0.0.0 bond0.4
[23:24] <Patrickdk> oh opps
[23:24] <Patrickdk> auto eth0:4
[23:24] <Jeeves_Moss> thanks
[23:24] <Patrickdk> iface eth0:4 inet static
[23:25] <Patrickdk> odd, it cut my label
[23:25] <Patrickdk> up route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 label eth0:4
[23:25] <Patrickdk> the label is what makes it what you are expecting
[23:25] <Patrickdk> without the label, it's invisible, but works fine
[23:26] <Patrickdk> just the old depressiated ifconfig doesn't see it
[23:28] <Jeeves_Moss> https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_One_Interface
[23:29] <hallyn> smoser: you could also do that using the python api.  but in general that looks useful.  perhaps worth shipping with lxc
[23:29] <smoser> yeah, i figured i could do it with the python api, but subprocess and tty allocation is often a pita
[23:30] <smoser> maybe not.  but it always seems more complicated in python to do the equalent
[23:39] <mgriffin> if someone asks how to reset mysql root password in this channel, is there an faq response or maybe send to #mysql?
[23:39] <mgriffin> i have an faq response in #mysql for ubuntu root password reset
[23:39] <mgriffin> mysql -u$(awk '$1 ~ /user/ {print $3}' /etc/mysql/debian.cnf | head -1) -p$(awk '$1 ~ /password/ {print $3}' /etc/mysql/debian.cnf | head -1) -e"set password for root@localhost = password('foobar');"
[23:39] <mgriffin> just sharing
[23:40] <mgriffin> tldr, cat /etc/mysql/debian.cnf and you now have a valid account
[23:40] <Patrickdk> there is none
[23:40] <Patrickdk> but you can attempt to teach it to ubottu
[23:41] <mgriffin> !help
[23:43] <mgriffin> !mysqlroot is cat /etc/mysql/debian.cnf for a usable account
[23:51] <hallyn> smoser: if you were feeling bored, as i'm sure you must be, you could submit htat script to lxc-devel :)  i really like it as far more useful than lxc-execute.
[23:52] <smoser> for the moment: https://gist.github.com/smoser/49444542158f2e5f88f1