[00:32] hi all - i think I found a bug. If you have cacti installed in either karmic or jaunty server, type php /usr/share/cacti/cli/add_device.php --help and a bunch of errors will scroll by - looks like incorrect paths for includes. Am I crazy or should I report this? (not reported yet for either jauunty or karmic - hard to beleive) [00:34] gregcoit: a pastebin with the errors would be useful ofc.. and make sure your php.ini doesn't contain custom entries [00:34] jiboumans: of course - sorry [00:35] gregcoit: no need to appologize ;) but if everything is vanilla and errors are popping up, it'd warrant a bug report [00:35] jiboumans: vanilla php: [00:36] http://pastebin.com/d4d9c3ad3 [00:37] all those files exist in /usr/share/cacti/site/lib/ [00:38] hmm, that does look suspicious.. can you pastebin add_graphs.php as well please? [00:38] (dont have the source handy) [00:39] jiboumans: np - the relevant section: http://pastebin.com/d5a1595e3 [00:40] jiboumans: thta's also the top of the script minus the copyright - nothing is processed before thos lines [00:42] gregcoit: hmm, this obviously isn't set: include_once($config["base_path"]."/lib/api_automation_tools.php"); [00:42] since your previous paste shows /lib/...php [00:42] agreed [00:42] this is with apache2? [00:42] yes [00:42] how are you accessing it ? [00:42] but these script are for cli only [00:42] virtualhost ? [00:42] now via apache [00:42] er, not [00:43] gregcoit: how does a 'find /usr/share/cacti -type f' look like? [00:43] spits out 272 files [00:44] mind pastebin'ing those too? last one, i promise :) [00:44] jiboumans: np [00:45] http://pastebin.com/d30b37dcd [00:46] gregcoit: ok, i'm happy to say 'bug' at this point [00:47] gregcoit: those 3 pastes + a dpkg -l for the relevant packages should make a good report [00:47] :( i was hoping you were going to say I'm crazy... Ok, I'll file. Thanks for the support! === dendrobates is now known as dendro-afk [00:47] jiboumans: you got it [00:47] gregcoit: the workaround is pretty straightforward (but i guess you saw that already); it's not ../include/global.php it's ../site/include/global.php [00:49] funny thing. I searched for cacti bugs on launchpad- found none. as soon as i type the problem in "file a bug" - up pops the exact issue. So, alrady filed. And yeah, thanks for the answer! [00:50] jiboumans: sorry to take your time [00:51] gregcoit: no worries. don't forget to hit the 'this affects me' button :) [00:51] and with that, it's time for sleep...nn [00:51] jiboumans: si. and subscribed! === dendro-afk is now known as dendrobates [02:27] I have a server which hard drive is to small (80GB), I want to change it for a 160 GB, but without having to reinstall the filesystem [02:27] can I just move the content to another disk ? [02:28] what else do I need to do to make this work ? [02:38] maxagaz, you need to install grub to the new disk, which is fairly simple to do [02:39] and then modify /etc/fstab to update the UUIDs [02:44] qman__, what command should i use to have the same content on the new disk with permissions... ? [02:45] maxagaz: you can just move content from one disk to another. [02:46] maxagaz: simply boot some third medium (e.g. a live CD), then dd the entire 80GB from the first disk to the second. [02:46] maxagaz: then, increase the partition and filesystem size (or simply allocate another partition). [02:47] twb, will dd also take the swap ? [02:47] maxagaz: dd is copying the contents of the disk bit-for-bit. [02:48] twb, dd isn't convenient as I need free space somewhere to put the generaed image [02:48] maxagaz: just put both disks in the system at once [02:50] and dd one whole disk to the other whole disk, like /dev/sda to /dev/sdb [02:50] then resize the partitions or create a new one [02:50] Yup [02:50] if you do that, grub copies too, and you only need to edit /etc/fstab [02:51] qman__: I was assuming this was a disk REPLACEMENT -- in which case, /dev/sda is still /dev/sda and the UUID and LABEL are unchanged [02:56] twb, ok so, during the dd, I have /dev/sda and /dev/sdb, and after removing /dev/sda, /dev/sdb becomes /dev/sda, right? [02:57] so non need to change /etc/fstab [02:58] I was under the impression that the UUID would change anyway, but I haven't tested it myself [02:59] I thought the whole point of the UUID was that it is unique to the disk, and wouldn't change if you plugged it into a different channel [03:00] maxagaz: just so. [03:00] qman__: the UUID would be DD'd, too. It's a property of the filesystem, not the disk. [03:00] ah, that's true [03:00] At least, the UUIDs that fstab cares about [03:00] yeah [03:01] Disks have serial numbers [03:02] what's the dd command syntax to use to make the copy ? [03:03] dd if=/dev/sda of=/dev/sdb [03:03] dd if=/dev/sda of=/dev/sdb, where sda is the source and sdb is the target [03:03] you could add tweaks like bs=1M if you want, too [03:03] make sure they're the right way around before you start. [03:03] though I'm pretty sure it defaults to a sensible block size anyway [03:03] qman__, what does bs=1M means ? [03:03] sets the block size to one megabyte [03:04] it may or may not make the transfer faster [03:04] it all depends on the hardware, and it's not really needed [03:09] how to change the partition size ? [03:09] with parted, by just resetting the last block ? [03:10] no, you need to resize [03:10] I usually do it with gparted [03:10] from a live disc [03:10] You need to write a new partition table, and then to run resize2fs (or equivalent). [03:11] parted can do both operations at once for ext2 filesystems, but I don't really trust it. [03:11] qman__: both operations can be done online, as long as you restart after editing the partition table. === erichammond1 is now known as erichammond [03:35] !ops [03:35] Help! Channel emergency! soren, lamont, mathiaz or tom [03:37] qman__, twb, thanks a lot [05:01] New bug: #511020 in postfix (main) "package postfix None [modified: /var/lib/dpkg/info/postfix.list] failed to install/upgrade: subprocess pre-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/511020 [05:36] hey guys, I have an sqlite database that I need to access as its owner in order to modify it [05:36] how can I do this? [05:36] I just did sudo chmod ug+s thefile.db but that didn't seem to work [07:41] New bug: #511058 in vsftpd (main) "/etc/init/vsftpd.conf contains an error." [Undecided,New] https://launchpad.net/bugs/511058 [07:42] New bug: #511057 in vsftpd (main) "/etc/init/vsftpd.conf contains an error." [Undecided,New] https://launchpad.net/bugs/511057 === deegee_1 is now known as deegee [08:41] good morning. I am running a server with apache2-mpm-prefork, and every day it goes down a couple of times, and I can't quite figure out why it is... I know it runs out of memory, when too many children are left open. How can I troubleshoot it? [08:41] the machine is faily big, and it all happens in less than a minute... everything is fine and next minute it's gone [08:48] did you check apache's logs? [08:48] yeah, but I couldn't find anything out of the ordinary... [08:48] not even on the error.log [08:48] did you increase log verbosity? [08:49] LogLevel debug [08:50] I don't think I can go much further on that end... [08:50] how does it breaks, with a segmentation fault? [08:50] nope... it just hangs with too many children [08:50] swapping out... [08:51] 99% of the day it's fine [08:51] but then a couple of times a day it just goes bersecker [08:51] it hovers around 70 servers all day long [08:52] and it goes all the way up to 140 (the limit) and dies... [08:54] I've done a little math and tried to make it so the max number of servers never gets all the available ram... [08:54] but it fluctuates a little, so from time to time I starts swapping like crazy and I have to kill it all [09:04] is it always at the same time of day? [09:04] (just trying to see if you have some background process) [09:05] mmm... not always the same [09:05] but kind of similar... [09:05] maybe you've some cron job or something [09:05] between 11.30pm and 12.30am [09:05] that eats some RAM [09:06] checked that, and I have nothing running at that time... [09:06] I am tempted of just setting a cronjob to restart apache every 6 hours... [09:06] :P [09:07] I did one time to solve one problem [09:08] is it related to a peek hour? [09:09] not really... peak time for us is before that... it's sleep time in theory ;) [09:10] yesterday I was monitoring it and it was running fine, 70 processes chugging along... and in 20 seconds it just went through the roof [10:14] well, you could really use some kind of report [10:14] of the system [10:14] and check that [10:15] I've had some problems with openLDAP [10:15] eventually I've found out that was something related to another program [10:25] I've my domain.com set up with BIND. However, I want that if someone loads domain.com on a browser it redirects to www.domain.com. If I ping domain.com on any computer it resolves to 127.0.0.1. How can I add an entry in the main BIND file to link domain.com to a computer? [10:42] <_ruben> acalvo: the actual redirection will need to be done by your webserver, concerning bind you'll probably want to specify the same ip address for @ as for www [10:42] acalvo, you can't redirect from bind, you have to do that on the website, but the DNS entry you want to modify is the root [10:42] to refer to the root, use an @ [10:43] well, I've thought that if I can't ping domain.com and resolve it, I'll can't browse http://domain.com [10:43] now it's fixed, I guess I just have to find where to put the .htaccess file [10:44] I've thought that I could put the redirection in the definition of the site (in /etc/apache/sites-available) [10:48] <_ruben> acalvo: wouldnt surprise me if you could (never tried myself) [10:48] <_ruben> i'd probably do the redirection using php/perl/whatever im using for the site [10:51] good option, btw [10:51] I'll give it a try if I can't do it using apache's config files [10:52] you can do it either way, even in plain HTML if you want [10:52] each option has its own advantages and disadvantages [10:52] but it's done with the website/web server, not in DNS [10:58] I know, but if the DNS wasn't resolving correctly, it could not work [10:58] however [10:58] I've tried setting up this site in apache [10:58] [10:58] ServerAlias example.com [10:58] RedirectMatch permanent ^/(.*) http://www.example.com/$1 [10:58] [10:59] it kills the actual www.example.com [11:02] New bug: #502071 in spamassassin "FH_DATE_PAST_20XX scores on all mails dated 2010 or later" [High,Fix released] https://launchpad.net/bugs/502071 [11:02] <_ruben> you dont have a servername for that vhost [11:03] well, I do [11:03] I have a site domain.com and a www.domain.com [11:04] I'm trying to use the ServerAlias directive [11:05] but it screws up more all the things [11:05] this is the www.domain.com file: http://paste.ubuntu.com/360589/ [11:06] you can't have two sites that listen on *:80 [11:06] each site must listen on a separate IP or domain name [11:07] so, domain.com:80 and www.domain.com:80 [11:07] well, I've a lot of sites, and all of them are listening on *:80 (and are working great...) [11:08] if I need to have more than one domain name, should I specify it? [11:08] it never worked for me with *:80 [11:08] only worked with ip:80 [11:08] http://paste.ubuntu.com/360591/ [11:09] this is another working on the same server [11:09] I've a bunch more [11:09] should I fix that? [11:13] I have mine working with [11:13] do you have anything running with ssl? [11:13] if you wanna use that syntax I believe you need to have the line [11:13] NameVirtualHost * [11:13] on the default vhost file [11:13] I do have some sites under SSL [11:15] where should I put the namevirtualhost? [11:16] in the default site (/etc/apache/sites-available/default)? [11:16] mmm... I have it on the first line of the default one [11:16] hi everybody!! [11:16] /etc/apache2/sites-available/default [11:17] well, I've tried and now: [11:17] * Reloading web server config apache2 [Fri Jan 22 12:16:41 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results [11:17] someone rebuild the ubuntu server from source and recompile to a new ISO? [11:17] I guess you have to use * or *:80 on all of them... [11:17] and since you have ssl on there you shoud use *:80... I guess :) [11:17] let's see [11:17] *:80 on all of them? [11:18] or in the namevirtualhost directive? [11:19] now: * Reloading web server config apache2 [Fri Jan 22 12:18:31 2010] [warn] NameVirtualHost *:80 has no VirtualHosts [11:19] how many virtualhosts do you have? [11:20] 7 [11:20] and 2 ssl [11:20] I *believe* if you have "NameVirtualHost *:80" on the default vhost [11:21] I think you need to use the *:80 on all the [11:21] ok, it is working like this [11:21] I was asking how many to see how much trouble would it be for you to try it [11:21] however I can't redirecty from domain.com to www.domain.com [11:21] since you can't mix [11:21] if I try to open domain.com it tries to download the typical "it works" file [11:23] and I'm guessing your domain.com config goes to a vhost that is different from 000-default, right? [11:24] should go, yes [11:24] can you resend the config file for domain.com? I lost the scrollback [11:26] this is www.domain.com: http://paste.ubuntu.com/360589/ [11:26] now I'm using some redirection matches in the default site of apache [11:26] there is no domain.com now [12:02] hi there [12:02] on my system there's always active x11vnc [12:02] and I don't know where, on startup, it is launched [12:02] how do I know where x11vnc is launched? [12:02] I mean, in which file... [12:03] ycy___: Try asking in #ubuntu. [12:11] i've been download a ISO of source...how can I rebuild this? [12:29] Hello guys! I have installed ubuntu-server on my server computer but I have a problem I have set up a NFS server and while transfering files to and from the server the speed is really poor [12:29] and i have 100mb card [12:35] joegardner: check with iperf real speed. [12:45] mealstrom: sry what do you meen? [12:48] joegardner: if it is a problem with data cable you ll see it with iperf utility (client server) [12:49] if not -- you ve got some wrong option in conf [12:49] mealstrom: well i've tried both with cable and wifi [12:49] mealstrom: but you know it's like it's getting stucked [12:50] mealstrom: and streaming movies from the server works fine [12:52] joegardner: I've got some similar problem with vsftp when wasn't using passive ports or passive ports range was small [12:53] mealstrom: okey...I've also got vsftp [12:54] you can check how many ports / conenctions it opens [13:51] with quotas, if i set a user quota for /home/user and a group quota (where user is member of group) for /home/share/user which quota will be enforced when touching either of these directories? [14:36] smoser: got a sec? not quite understanding how get_data_source is expected to work. [14:37] sure [14:38] (it probably shoudl be part of the constructor) [14:39] but the general idea is to search through a list of "cloud data providers" and find one. [14:39] right now that list is only ec2. [14:39] firing everything at S20 (so after network, etc etc etc) but its bailing immediately with Could not find data source / Failed to get instance data. [14:39] although as I was about to explain the path I followed I realized it was really wrong. so maybe i'm ok :) [14:40] * Disconnect missed the datasource-map entirely somehow :( [14:41] i will admit that I hven't made a concerted effort at thinking about anything other than lucid. [14:41] i know there are some lucid specific things. [14:42] the idea is that /etc/cloud/cloud.cfg contains 'cloud_type', which is a comma delimited list (maybe it should be a proper YAML list) [14:42] if that type is 'auto', then search through the available "cloud types" to find one. [14:43] if it is "ec2" (or possibly other in the future) , use that. [14:43] yah the jaunty part is mostly ok I think. upgraded a couple of minor python dependencies and created an old-style init script to fire cloud-config-ready, which then replaces the existing network/mounts test. (old upstart doesn't have the network-is-up tests or anythign good like that) [14:44] I think where I went wrong tracking it landed me in the cache directories, which don't exist yet :) [14:44] wow. you've made a lot of effort. [14:44] yeah, so 2 things there. [14:44] a.) the goal is to cache the ec2 crawl after the first time and store off th objects after we've processed evertyhign, so the later scripts don't have to do that. [14:45] b.) you may have noticed in 'get_data' in ec2, it will read from ec2init.cachedir/ec2//user-data.raw and /meta-data.pkl [14:45] which are not written anywhere. [14:46] i'm using those to supply a mock ec2 datasource [14:46] i put those files into an image and boot. [14:47] Disconnect, i took your ec2-get-data patch also [14:48] yah saw that :) [15:01] looks like a conflict between boto_utils and boto.utils. wheee [15:02] * Disconnect doesn't see any good way to tie the two branches together (my jaunty patches and your upstream) .. maybe through creative use of quilt. [15:21] somewhere along the way i'm not getting into DataSourceEC2 [15:22] yah dslist is empty. hmm. [15:23] oh. [15:23] if not conf.has_key("cloud_type"): [15:23] conf["cloud_type"]=None <------ shouldn't that be auto? [15:28] smoser: in boto_utils retry_url whats with the sleep? if i'm reading it correctly, it tries, continues-on-error and then reports an error and delays 2*n seconds even on success..? [15:28] hm... that is copied verbatim from boto [15:29] on success it 'return resp.read()' no? [15:31] i gotcha. (fyi 'import time') [15:31] hmm. so it logs the error, waits retries*2 seconds and tries again. that makes more sense. [15:33] hmmm. except empty user-data returns 200-OK with len 0 === dendrobates is now known as dendro-afk [15:40] mathiaz: ping? [15:40] * jiboumans blinks [15:40] how can I check which version of java i have installed ? [15:41] New bug: #511205 in ntp (main) "Computer reboots when enabling/disabling ntp" [Medium,Confirmed] https://launchpad.net/bugs/511205 [15:42] That sounds like a really nasty bug [15:53] orudie: java -version [16:00] Disconnect, "except empty user-data returns 200-OK with len 0" ? [16:00] you're saying that is the response from Eucalyptus? [16:00] smoser: it was a bug on my end, urllib2 doesn't take proxies arg. (the lack of error output was leading me astray) [16:01] ok [16:04] but yah, if there is no userdata euca returns 200 with length 0 (http://pastebin.ca/1761659) this is, i suspect, entirely correct :) === dendro-afk is now known as dendrobates [16:17] smoser: re test kernels failing, so it is succeeding in direct kvm boot but failing euca cloud? right [16:18] sorry. bad english [16:18] "In each of the above cases, the included kernel fails." [16:18] s/included/not-your-testing-kernel/ [16:18] included in the image/archive, jjohansen [16:18] yours pass my tests. [16:19] ah, I was taking from the email that it was failing and trying to figure it out [16:19] smoser: in that case if you are happy, I will issue a pull request [16:20] note, limited testing, i just booted, saw that it booted to successful login prompt and then killed it. [16:20] it could have been on fire at the time [16:20] :) === robbiew_ is now known as robbiew [16:20] :) [16:21] but from a "did we turn the right noptions on" perspective, the answer is yes, it looks good. [16:21] New bug: #511245 in autofs (main) "portmap is not started during boot process before autofs and hence autofs does not work properly" [Undecided,New] https://launchpad.net/bugs/511245 [16:57] have a prob with permissions... have ubuntu server with instructor and 20 students. inst wants to cp files from his home dir to theirs, but the users cannot get write access even tho the files are set for 777 [16:59] anyone have a clue as to why? [17:00] grapple: Are the destination files set with those permissions? or just the source file. If just the latter then you need to make sure you are using cp -a [17:06] anyone help with permissions? [17:06] grapple: Did you see Pici's reply to you? [17:07] oh, ok... newbie here [17:07] so then i would do this: sudo cp-a file /home/username [17:08] er, cp -a file /home/username [17:08] works thanks... [17:08] woot! === mathiaz_ is now known as mathiaz [17:23] jiboumans: do you have access to the ubuntuserver blog? [17:23] mathiaz: still not (as per last email) [17:24] jiboumans: hmmm... wired - I need to investigate that then [17:24] jiboumans: I've already invited three times - but it seems to work correclty :( [17:25] i get the invite, i accept it.. but then... nothing shows up on the dashboard / etc [17:59] I'm in need of assistance, can someone help me? [18:00] hmm just ask.... ok [18:00] Anyways, I am in need of help with a network bridge on ubuntu server 9.10 [18:00] namingly, bringing the internet of a wireless connection to a wired connection [18:01] but giving the wired connection a ip through a DHCP server on said server [18:01] in other words, making the server work as a router x) [18:06] haven't understand what you need [18:07] dhcp server - wifi - network - client ? [18:08] aubre: hey there :) [18:21] New bug: #511295 in dovecot (main) "dovecot -n silently reports wrong configuration when using dovecot-postfix" [Undecided,New] https://launchpad.net/bugs/511295 [18:24] smoser: I'm thinking about existing images that rely on 169.254.169.254 being reachable [18:24] smoser: on a related note, is the InstanceId available from the meta-data service? [18:25] yes. [18:25] smoser: awesome - that's gonna help in my big puppet master plan :) [18:25] smoser: so you plan to enable or disable by default access to 169.254.169.254 on a lucid image? [18:26] enable by default. [18:26] mathiaz, "instance id" is also available to you as a part of the "DataSource" object in ec2init. [18:28] smoser: any idea what would cause self.cfg to be None? [18:28] smoser: how do you plan to make the meta-data information available in the filesystem? [18:28] * Disconnect has got everything running on time and in order, or so it seems, except for the fact that its not getting a config. [18:28] Disconnect, i just am fixing that :) [18:28] if there is no "cloud-config" user data. [18:28] oh. well good lemme know, been arguing with it all day ;) [18:32] mathiaz, right now, the metadata information is available in filesystem as pickle format python object [18:32] smoser: yeah - I'd suggest to go for a more inter-operable format [18:32] smoser: other whise only python script will be able to load the configuration [18:32] smoser: I'd suggest yaml [18:33] i think that would be in keeping, with yaml usage elsewhere. i can dump it along side the pckl file. [18:33] smoser: so that we don't restrict which langage should be used [18:34] smoser: why would keep the pckl file? [18:34] smoser: you can reload the yaml data from other python script [18:34] i dont know. [18:34] only if it were speed [18:34] smoser: or are their more information in the objects that could not be represented in a yaml file? [18:34] which may or may not be a.) true b.) a worry [18:35] no more info than can be represented in a hierarchical key/value set [18:35] remember, it all comes from a web "filessytem" [18:35] smoser: well - is the metadata service providing such a huge amount of data? [18:35] how to mount samba guest (+rw) share using fstab to local system (/var/shares or /media/shares) with rw ? .. [18:35] have tried but didn't solve it :( [18:35] smoser: right - another option would to actually use directories and files [18:36] smoser: I prefer yaml though - as it translates into native objects in most languages [18:37] smoser: if you'd use directories and files you couldn't easily use map, filters on the data structure [18:37] smoser: whereas if you already have everything as a hash table, it may be easier [18:37] at the end of the day though, python is only a small part of what might be using this information [18:38] smoser: the up side of directories+files is that you can easily write shell scripts to leverage that information [18:38] random binary files that can only be read by the originating app or derivatives is hardly the unix way :) [18:38] smoser: and upstart jobs are the first users of that information [18:39] smoser: so you could write upstart jobs that do things like: [ -e /etc/cloud-config/puppet ] && apt-get install puppet [18:40] smoser: the problem with yaml is that using it from shell scripts is hard [18:40] smoser: and upstart jobs are mainly shell scripts [18:40] i'm not disabreeing [18:40] but i will disagree that yaml is easily usable by shell [18:41] .//192.168.1.1/incoming /media/shares/incoming cifs guest,rw 0 0 -- only READ works :(. But when connecting via gnome commander smb -- RW works. [18:41] smoser: right - yaml and shell don't play well together [18:42] smoser: so may as first iteration, provide a directory/file layout for the meta-data service [18:43] hm... i think we're miscommunicating here [18:43] there are 2 things. or possibly 3 things [18:43] a.) metadata service [18:44] smoser: how do i get it to detect text/cloud-config userdata? [18:45] (Disconnect, hold on) [18:45] meta data service has info like: http://paste.ubuntu.com/360818/ [18:46] b.) user data [18:46] user data is essentially binary blob , whatever the user wnats to put there can go there. [18:46] c.) cloud config [18:46] cloud config is transported to ec2 inside of user data. [18:46] ..you changed the ssh key on that paste right? :) [18:46] ec2-init rips it out, yaml configuration and writes that yaml config file to a file on the filesystem that can be then read by antying reading yaml [18:47] smoser: isn't user-data part of the meta-data info? [18:47] the metadata service will be cached on disk, now that is in python pickle, but i agree yaml would be more useful. [18:47] mathiaz, not really. you get at them from the same "service", but they're different. [18:47] Disconnect, funny, no [18:47] :) [18:48] metadata needs to be updated periodically though - i could attach and detach storage, for example, without warning. [18:48] but thats just my public key [18:48] you can put that wherever you want! [18:48] heh [18:48] Disconnect, do you know that metadata service is updated? [18:49] i didn't think that that changed previously. [18:49] but now with ebs volumes that cna be turned off, it can (and user data) can change on restart. [18:49] smoser: right - the whole reason to remove access to the meta-data service after boot is based on the assumption that it's static information [18:50] smoser: user data can change on reboots? [18:50] smoser: I though it would stay the same during the whole instance life [18:50] mathiaz, on re-starts [18:50] not reboots [18:50] you can stop/start an ebs root instance [18:50] smoser: re-starts == new instance? [18:50] yeah, and you do get a new instance id. [18:50] smoser: ah right - ebs root instance [18:50] but the filesystem "kept" [18:51] so that is somethign that has to be addressed. [18:51] but i dont know if metadata service changes when you attach a volume. should check that. [18:52] smoser: is http://paste.ubuntu.com/360818/ the actually data received when do a wget on the metadata service? [18:52] smoser: or is it delivered in a different format at the http level? [18:53] no. its delivered in an annoyying format [18:53] you do a get, either get data or a list [18:53] and then you do a get for each item in the list [18:53] adn repeat [18:53] smoser: doesn't look like it changes. [18:54] smoser: ok - the meta data crawler is reponsible for creating a dictionary like you've pasted [18:55] yes [18:55] so, if you like, we can put that data in a yaml format [18:55] smoser: it seems that providing a directory/file structure representation would be trivial then [18:56] smoser: I'm trying to address the issue that shell and yaml don't play well together [18:56] btw if you want a quick commandline look at the metadata 'M_URL=http://169.254.169.254/2009-04-04/meta-data/ ; wget -O - -q $M_URL | while read a; do wget -O "$a" "$M_URL$a";done' works. doesn't keep following trees (so public keys won't work) but its a start. [18:56] well, your example of 'puppet-config' is not going to exist. puppet-config will come from cloud-config, not metadata [18:56] that also suggests a format that might work for shell - present it locally exactly as its found on the http server. [18:56] cloud-config, by your suggestion, is yaml [18:57] we can dump it to disk too in some directory format, but i dont know that it is necissary [18:57] smoser: real quick tho, getting ec2-init to detect cloud-config data..? hoping to demo in a few mins :) [18:57] user data [18:58] https://wiki.ubuntu.com/ServerLucidCloudConfig [18:58] take that example, and put add to the top "#cloud-config" [18:58] ah ok. thats the part i was missing :) [18:58] then pass that as your user data (you can compress it too with gzip) [18:59] cool. i just need to feed it the user and tell it not to apt-get and all should be well. [18:59] oh. a thought on that actually. [19:00] the user config belongs in the image, not in the instance, unless you are going to create the user at firstboot. the name is fixed when the image is made. [19:00] Disconnect, yeah. i know that. [19:00] ok :) [19:01] so that doesn't fit all that wlel, but in general i liked that we just merged /etc/clouc/cloud.cfg and whatever came from the user [19:01] so that you can create an image with the /etc/cloud/cloud.cfg that you always send in user data. [19:02] smoser: you're right wrt to puppet [19:05] sweeet i'm set for an actual demo now :) [19:21] hi guys, I have just installed 9.10 server, but it keeps changings the screen resolution. I want a plai text resolution. How can I do it? [19:28] please, any idea? [19:28] blacklist vga16fb maybe [19:29] smoser, where? [19:30] /etc/modprobe.d/bad-vga.conf [19:31] smoser, vga16fb is not listed on lsmod [19:31] hm... [19:31] New bug: #511314 in bind9 (main) "package bind9 1:9.6.1.dfsg.P1-3ubuntu0.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/511314 [19:31] smoser, I have tried also vga=771 to force a lower resolution, didn't work [19:33] racquad, try 'nomodeset' on kernel config line? [19:33] not yet [19:33] sorry for not knowing off the top of my head === cyphermo1 is now known as cyphermox [19:39] smoser, it worked. thanks a lot [19:47] Disconnect, fyi, the exceptions for 'None' cloud config should be fixed in my branch now. [19:48] cool [19:48] i'll prolly have another patch to send up before the weekend [19:54] i am still hoping to get a package together and sponsored and into the lucid images tonight. [20:03] smoser: i'll post the patch now. some whitespace fixes, better error messages and cloud_type should default auto, not None [20:03] Disconnect, no, it should be default 'None' :-( [20:03] as if you default it to auto, then people 'apt-get install ec2-init' and it hangs their system for minutes on boot looking for ec2 data service [20:04] least-surprise (and sane defaults) both say "try to determine which of the one cloud types we're in" [20:04] it used to behave that way, people complained, so heres where we are. [20:04] thats a need for sane timeouts [20:04] sane timeouts are i think hard to comebuy [20:04] its better now, i think i wait like 20 seconds or something [20:04] it did wait > 1/2 hour [20:05] (and tried multiple times :) [20:05] the problem is that you can come up and check for the metadata service before it is up [20:05] not including the urllib2 timeout its 2+4+8+16+..seconds. bad :( [20:05] so you cant rely on it. [20:06] but for now lets leave it at None. the images will have it configured to 'auto' [20:07] actually looks like that is changed. so its 10s plus urllib. [20:08] but in any case, 'the images' could have all this stuff configured to begin with. the fact that this is a package says they might not :) [20:12] can you help me figure out where is the problem with fstab on mounting samba share (guest) with RW rights? [20:12] after mounting only ROOT can write/delete files or directories there. And user only can CHANGE files (RW) but not create or delete [20:13] fstab //192.168.1.1/incoming /media/shares/incoming cifs rw,guest 0 0 [20:13] mtab //192.168.1.1/incoming /media/shares/incoming cifs rw,mand 0 0 [20:23] In ntp.conf, what is the name of the setting that limits correction if the time is too far off from the sync server? [20:24] man page doesn't say? [20:26] unit3: only if you look at the correct man page. Found it! :) [20:26] haha what was it? [20:27] sanity limit, but it's set with a cl parameter when you invoke ntpd, not in the .conf [20:33] ahhh [20:36] smoser, mathiaz: The EC2 instance id stays the same through EBS boot instance stop/start cycles. [20:36] oh really. [20:36] yeah, i guess i knew that. [20:43] smoser: couldn't it wait in the background if it can't get the metadata? until it issues the cluster-config event nothing will happen, and it can either background for a few mins and exit or wait until it finds the controller.. [20:43] (sorry, was afk) [20:44] well, fo rnow that woud'nt be so bad, and i like the idea. bu tthe general goal is for ec2-init to block all things on boot. such that you could modify anything you wanted in the system prior to those things coming up [20:46] submitted the patch #511348 [20:46] think i got all the jaunty-specific bits out [20:50] smoser: As you know, I am skeptical of the proposal to block access to meta-data and user-data because there are other EC2 software applications written out there that Ubuntu developers do not control and which access these resources. [20:50] FYI, at least public-hostname and public-ipv4 can change while an instance is running. [20:51] and they change in the metadata ? [20:51] Now that Amazon has shown they are open to meta-data and user-data being changed, I would not assume that it will always take an instance stop/start to do this. [20:51] smoser: running a quick test [20:52] erichammond, i agree that it might be problematic to turn it off. it is default not disabled. so theres really nothing to worry about. [20:52] smoser: Ok, thanks [20:52] there absolutely is an issue with the metadata service, though. [20:52] it possibly contains sensitive data and there is no method of controlling access to it. [20:53] such that a compromise of any user that could do an http request could get at it. [20:54] This is an EC2-wide issue that has been under a lot of discussion. Shlomo did a great study on the various ways you can pass sensitive info to an instance and the tradeoffs. [20:54] is it a security risk to run a router and data backup on the same machine? [20:54] router and actually data. for a home network [20:56] smoser: Yes, I just verified that public-hostname changes when an elastic IP address is associated or disassociated with an instance. [20:58] thank you for verifying that erichammond [20:59] it seems wierd to speak a full name in irc. like i'm very formal with "mr erichammond" [20:59] smoser: I used to have "esh" but somebody else took it after I left IRC for a while. === luis__lopez is now known as luis_lopez [21:00] I figured this way people would know who I was. === smoser is now known as mr_scottmoser === mr_scottmoser is now known as smoser === RoyK is now known as __w_h_y___u_n_d_ === __w_h_y___u_n_d_ is now known as RoyK [21:03] mr_scott_moser_sir: Heading off to the office on my long commute through rain (always makes traffic more fun in LA) === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [21:33] kickban vtf plz. [21:33] !ops [21:33] Help! Channel emergency! soren, lamont, mathiaz or tom [21:34] ./ignore vtf [21:35] th0mz_: thanks - forgot ignore :) [21:36] stupid spammer [21:36] ..; [21:36] . [21:37] th0mz_: and remember and tell: don't ever click on such a link :) [21:38] !ops | ctcp flood - please set +R [21:38] ctcp flood - please set +R: Help! Channel emergency! soren, lamont, mathiaz or tom [21:38] guntbert: already done [21:39] niko: see it , thank you [21:48] mathiaz, ping [21:48] smoser: hi [21:48] woudl you be willing to sponsor an ec2-init upload for me ? [21:49] just uploaded build to ppa, i want to give it a quick final test from there and then be good. [21:50] smoser: sure - np [21:50] smoser: if you could post the bzr branch, or the debdiff [21:51] branch coming [21:54] mathiaz, lp:~smoser/ec2-init/ec2-init.devel.pkg [21:55] mathiaz, its "start in 9 hours" https://launchpad.net/~smoser/+archive/ppa/+builds?build_state=pending [21:57] exit [21:58] i just checked it builds in a sbuild here. so that shouldn't be a problem [21:59] mathiaz, i've got to step out, and will check back later. let me know if you need anything else. i know that its annoying that my branch has no common ancesstor with lp:ubuntu/ec2init. i have to fix that. === dendrobates is now known as dendro-afk === erichammond1 is now known as erichammond [22:24] is there a designated script to reset the mysql debian-sys-maint user? [22:47] do you mean reset its password? [22:47] I don't think so, I think you've just gotta edit the conf file and the mysql database entry. [22:47] but I could be wrong. [22:54] unit3, ya, the password. i just wanted to sync up all the db user/passwords in my farm [22:55] gotcha. well, that's not that hard. [22:55] if you sync the "mysql" table between then, then the mysql auth info is synced. [22:55] and then you just need to sync the less /etc/mysql/debian.cnf file. [22:55] unit3, true. it would be nice if it was in the preseed process [22:55] ya, i'll do that. thx [22:55] erm -less. ;) [22:59] I have a few nfs mounts in /etc/fstab that aren't mounting on bootup, but mount -a works [22:59] anyone know a better way to put the line in fstab so it doesn't timeout [23:00] do you have the _netdev option on them so it knows to mount them only after the network is up? [23:01] nah i heard about that [23:02] so it would be NFSpath localpath nfs _netdev 0 0 [23:02] ? === robbiew is now known as roobiew_ === erichammond1 is now known as erichammond [23:13] Hypnoz: yeah, or nfs4 for the filesystem type. [23:13] depending on your server.