/srv/irclogs.ubuntu.com/2010/01/22/#ubuntu-server.txt

gregcoithi 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:32
jiboumansgregcoit: a pastebin with the errors would be useful ofc.. and make sure your php.ini doesn't contain custom entries00:34
gregcoitjiboumans: of course - sorry00:34
jiboumansgregcoit: no need to appologize ;) but if everything is vanilla and errors are popping up, it'd warrant a bug report00:35
gregcoitjiboumans: vanilla php:00:35
gregcoithttp://pastebin.com/d4d9c3ad300:36
gregcoitall those files exist in /usr/share/cacti/site/lib/00:37
jiboumanshmm, that does look suspicious.. can you pastebin add_graphs.php as well please?00:38
jiboumans(dont have the source handy)00:38
gregcoitjiboumans: np - the relevant section: http://pastebin.com/d5a1595e300:39
gregcoitjiboumans: thta's also the top of the script minus the copyright - nothing is processed before thos lines00:40
jiboumansgregcoit: hmm, this obviously isn't set: include_once($config["base_path"]."/lib/api_automation_tools.php");00:42
jiboumanssince your previous paste shows /lib/...php00:42
gregcoitagreed00:42
DDwithis is with apache2?00:42
gregcoityes00:42
DDwihow are you accessing it ?00:42
gregcoitbut these script are for cli only00:42
DDwivirtualhost ?00:42
gregcoitnow via apache00:42
gregcoiter, not00:42
jiboumansgregcoit: how does a  'find /usr/share/cacti -type f' look like?00:43
gregcoitspits out 272 files00:43
jiboumansmind pastebin'ing those too? last one, i promise :)00:44
gregcoitjiboumans: np00:44
gregcoithttp://pastebin.com/d30b37dcd00:45
jiboumansgregcoit: ok, i'm happy to say 'bug' at this point00:46
jiboumansgregcoit: those 3 pastes + a dpkg -l for the relevant packages should make a good report00:47
gregcoit:(  i was hoping you were going to say I'm crazy...  Ok, I'll file.  Thanks for the support!00:47
=== dendrobates is now known as dendro-afk
gregcoitjiboumans: you got it00:47
jiboumansgregcoit: the workaround is pretty straightforward (but i guess you saw that already); it's not ../include/global.php it's ../site/include/global.php00:47
gregcoitfunny 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:49
gregcoitjiboumans: sorry to take your time00:50
jiboumansgregcoit: no worries. don't forget to hit the 'this affects me' button :)00:51
jiboumansand with that, it's time for sleep...nn00:51
gregcoitjiboumans: si.  and subscribed!00:51
=== dendro-afk is now known as dendrobates
maxagazI 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 filesystem02:27
maxagazcan I just move the content to another disk ?02:27
maxagazwhat else do I need to do to make this work ?02:28
qman__maxagaz, you need to install grub to the new disk, which is fairly simple to do02:38
qman__and then modify /etc/fstab to update the UUIDs02:39
maxagazqman__, what command should i use to have the same content on the new disk with permissions... ?02:44
twbmaxagaz: you can just move content from one disk to another.02:45
twbmaxagaz: simply boot some third medium (e.g. a live CD), then dd the entire 80GB from the first disk to the second.02:46
twbmaxagaz: then, increase the partition and filesystem size (or simply allocate another partition).02:46
maxagaztwb, will dd also take the swap ?02:47
twbmaxagaz: dd is copying the contents of the disk bit-for-bit.02:47
maxagaztwb, dd isn't convenient as I need free space somewhere to put the generaed image02:48
twbmaxagaz: just put both disks in the system at once02:48
qman__and dd one whole disk to the other whole disk, like /dev/sda to /dev/sdb02:50
qman__then resize the partitions or create a new one02:50
twbYup02:50
qman__if you do that, grub copies too, and you only need to edit /etc/fstab02:50
twbqman__: I was assuming this was a disk REPLACEMENT -- in which case, /dev/sda is still /dev/sda and the UUID and LABEL are unchanged02:51
maxagaztwb, ok so, during the dd, I have /dev/sda and /dev/sdb, and after removing /dev/sda, /dev/sdb becomes /dev/sda, right?02:56
maxagazso non need to change /etc/fstab02:57
qman__I was under the impression that the UUID would change anyway, but I haven't tested it myself02:58
qman__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 channel02:59
twbmaxagaz: just so.03:00
twbqman__: the UUID would be DD'd, too.  It's a property of the filesystem, not the disk.03:00
qman__ah, that's true03:00
twbAt least, the UUIDs that fstab cares about03:00
qman__yeah03:00
twbDisks have serial numbers03:01
maxagazwhat's the dd command syntax to use to make the copy ?03:02
qman__dd if=/dev/sda of=/dev/sdb03:03
twbdd if=/dev/sda of=/dev/sdb, where sda is the source and sdb is the target03:03
qman__you could add tweaks like bs=1M if you want, too03:03
twbmake sure they're the right way around before you start.03:03
qman__though I'm pretty sure it defaults to a sensible block size anyway03:03
maxagazqman__, what does bs=1M means ?03:03
qman__sets the block size to one megabyte03:03
qman__it may or may not make the transfer faster03:04
qman__it all depends on the hardware, and it's not really needed03:04
maxagazhow to change the partition size ?03:09
maxagazwith parted, by just resetting the last block ?03:09
qman__no, you need to resize03:10
qman__I usually do it with gparted03:10
qman__from a live disc03:10
twbYou need to write a new partition table, and then to run resize2fs (or equivalent).03:10
twbparted can do both operations at once for ext2 filesystems, but I don't really trust it.03:11
twbqman__: both operations can be done online, as long as you restart after editing the partition table.03:11
=== erichammond1 is now known as erichammond
TVrotsurbrain!ops03:35
ubottuHelp! Channel emergency! soren, lamont, mathiaz or tom03:35
maxagazqman__, twb, thanks a lot03:37
uvirtbot`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/51102005:01
blaenkhey guys, I have an sqlite database that I need to access as its owner in order to modify it05:36
blaenkhow can I do this?05:36
blaenkI just did sudo chmod ug+s thefile.db but that didn't seem to work05:36
uvirtbot`New bug: #511058 in vsftpd (main) "/etc/init/vsftpd.conf contains an error." [Undecided,New] https://launchpad.net/bugs/51105807:41
uvirtbot`New bug: #511057 in vsftpd (main) "/etc/init/vsftpd.conf contains an error." [Undecided,New] https://launchpad.net/bugs/51105707:42
=== deegee_1 is now known as deegee
NublaIIgood 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
NublaIIthe machine is faily big, and it all happens in less than a minute... everything is fine and next minute it's gone08:41
acalvodid you check apache's logs?08:48
NublaIIyeah, but I couldn't find anything out of the ordinary...08:48
NublaIInot even on the error.log08:48
acalvodid you increase log verbosity?08:48
NublaIILogLevel debug08:49
NublaIII don't think I can go much further on that end...08:50
acalvohow does it breaks, with a segmentation fault?08:50
NublaIInope... it just hangs with too many children08:50
NublaIIswapping out...08:50
NublaII99% of the day it's fine08:51
NublaIIbut then a couple of times a day it just goes bersecker08:51
NublaIIit hovers around 70 servers all day long08:51
NublaIIand it goes all the way up to 140 (the limit) and dies...08:52
NublaIII've done a little math and tried to make it so the max number of servers never gets all the available ram...08:54
NublaIIbut it fluctuates a little, so from time to time I starts swapping like crazy and I have to kill it all08:54
acalvois it always at the same time of day?09:04
acalvo(just trying to see if you have some background process)09:04
NublaIImmm... not always the same09:05
NublaIIbut kind of similar...09:05
acalvomaybe you've some cron job or something09:05
NublaIIbetween 11.30pm and 12.30am09:05
acalvothat eats some RAM09:05
NublaIIchecked that, and I have nothing running at that time...09:06
NublaIII am tempted of just setting a cronjob to restart apache every 6 hours...09:06
NublaII:P09:06
acalvoI did one time to solve one problem09:07
acalvois it related to a peek hour?09:08
NublaIInot really... peak time for us is before that... it's sleep time in theory ;)09:09
NublaIIyesterday I was monitoring it and it was running fine, 70 processes chugging along... and in 20 seconds it just went through the roof09:10
acalvowell, you could really use some kind of report10:14
acalvoof the system10:14
acalvoand check that10:14
acalvoI've had some problems with openLDAP10:15
acalvoeventually I've found out that was something related to another program10:15
acalvoI'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:25
_rubenacalvo: 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 www10:42
qman__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 root10:42
qman__to refer to the root, use an @10:42
acalvowell, I've thought that if I can't ping domain.com and resolve it, I'll can't browse http://domain.com10:43
acalvonow it's fixed, I guess I just have to find where to put the .htaccess file10:43
acalvoI've thought that I could put the redirection in the definition of the site (in /etc/apache/sites-available)10:44
_rubenacalvo: wouldnt surprise me if you could (never tried myself)10:48
_rubeni'd probably do the redirection using php/perl/whatever im using for the site10:48
acalvogood option, btw10:51
acalvoI'll give it a try if I can't do it using apache's config files10:51
qman__you can do it either way, even in plain HTML if you want10:52
qman__each option has its own advantages and disadvantages10:52
qman__but it's done with the website/web server, not in DNS10:52
acalvoI know, but if the DNS wasn't resolving correctly, it could not work10:58
acalvohowever10:58
acalvoI've tried setting up this site in apache10:58
acalvo<VirtualHost *:80>10:58
acalvo    ServerAlias example.com10:58
acalvo    RedirectMatch permanent ^/(.*) http://www.example.com/$110:58
acalvo</VirtualHost>10:58
acalvoit kills the actual www.example.com10:59
uvirtbot`New bug: #502071 in spamassassin "FH_DATE_PAST_20XX scores on all mails dated 2010 or later" [High,Fix released] https://launchpad.net/bugs/50207111:02
_rubenyou dont have a servername for that vhost11:02
acalvowell, I do11:03
acalvoI have a site domain.com and a www.domain.com11:03
acalvoI'm trying to use the ServerAlias directive11:04
acalvobut it screws up more all the things11:05
acalvothis is the www.domain.com file: http://paste.ubuntu.com/360589/11:05
qman__you can't have two sites that listen on *:8011:06
qman__each site must listen on a separate IP or domain name11:06
qman__so, domain.com:80 and www.domain.com:8011:07
acalvowell, I've a lot of sites, and all of them are listening on *:80 (and are working great...)11:07
acalvoif I need to have more than one domain name, should I specify it?11:08
auit never worked for me with *:8011:08
auonly worked with ip:8011:08
acalvohttp://paste.ubuntu.com/360591/11:08
acalvothis is another working on the same server11:09
acalvoI've a bunch more11:09
acalvoshould I fix that?11:09
NublaIII have mine working with <VirtualHost *>11:13
NublaIIdo you have anything running with ssl?11:13
NublaIIif you wanna use that syntax I believe you need to have the line11:13
NublaIINameVirtualHost *11:13
NublaIIon the default vhost file11:13
acalvoI do have some sites under SSL11:13
acalvowhere should I put the namevirtualhost?11:15
acalvoin the default site (/etc/apache/sites-available/default)?11:16
NublaIImmm... I have it on the first line of the default one11:16
neribertohi everybody!!11:16
NublaII/etc/apache2/sites-available/default11:16
acalvowell, I've tried and now:11:17
acalvo * 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 results11:17
neribertosomeone rebuild the ubuntu server from source and recompile to a new ISO?11:17
NublaIII guess you have to use * or *:80 on all of them...11:17
NublaIIand since you have ssl on there you shoud use *:80... I guess :)11:17
acalvolet's see11:17
acalvo*:80 on all of them?11:17
acalvoor in the namevirtualhost directive?11:18
acalvonow:  * Reloading web server config apache2                                                                                                                       [Fri Jan 22 12:18:31 2010] [warn] NameVirtualHost *:80 has no VirtualHosts11:19
NublaIIhow many virtualhosts do you have?11:19
acalvo711:20
acalvoand 2 ssl11:20
NublaIII *believe* if you have "NameVirtualHost *:80" on the default vhost11:20
NublaIII think you need to use the *:80 on all the <VirtualHost *:80>11:21
acalvook, it is working like this11:21
NublaIII was asking how many to see how much trouble would it be for you to try it11:21
acalvohowever I can't redirecty from domain.com to www.domain.com11:21
NublaIIsince you can't mix11:21
acalvoif I try to open domain.com it tries to download the typical "it works" file11:21
NublaIIand I'm guessing your domain.com config goes to a vhost that is different from 000-default, right?11:23
acalvoshould go, yes11:24
NublaIIcan you resend the config file for domain.com? I lost the scrollback11:24
acalvothis is www.domain.com: http://paste.ubuntu.com/360589/11:26
acalvonow I'm using some redirection matches in the default site of apache11:26
acalvothere is no domain.com now11:26
ycy___hi there12:02
ycy___on my system there's always active x11vnc12:02
ycy___and I don't know where, on startup, it is launched12:02
ycy___how do I know where x11vnc is launched?12:02
ycy___I mean, in which file...12:02
sorenycy___: Try asking in #ubuntu.12:03
neribertoi've been download a ISO of source...how can I rebuild this?12:11
joegardnerHello 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 poor12:29
joegardnerand i have 100mb card12:29
mealstromjoegardner: check with iperf real speed.12:35
joegardnermealstrom: sry what do you meen?12:45
mealstromjoegardner: if it is a problem with data cable you ll see it with iperf utility (client server)12:48
mealstromif not -- you ve got some wrong option in conf12:49
joegardnermealstrom: well i've tried both with cable and wifi12:49
joegardnermealstrom: but you know it's like it's getting stucked12:49
joegardnermealstrom: and streaming movies from the server works fine12:50
mealstromjoegardner: I've got some similar problem with vsftp when wasn't using passive ports or passive ports range was small12:52
joegardnermealstrom: okey...I've also got vsftp12:53
mealstromyou can check how many ports / conenctions it opens12:54
pmatuliswith 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?13:51
Disconnectsmoser: got a sec? not quite understanding how get_data_source is expected to work.14:36
smosersure14:37
smoser(it probably shoudl be part of the constructor)14:38
smoserbut the general idea is to search through a list of "cloud data providers" and find one.14:39
smoserright now that list is only ec2.14:39
Disconnectfiring 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
Disconnectalthough as I was about to explain the path I followed I realized it was really wrong. so maybe i'm ok :)14:39
* Disconnect missed the datasource-map entirely somehow :(14:40
smoseri will admit that I hven't  made a concerted effort at thinking about anything other than lucid.14:41
smoseri know there are some lucid specific things.14:41
smoserthe 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
smoserif that type is 'auto', then search through the available "cloud types" to find one.14:42
smoserif it is "ec2" (or possibly other in the future) , use that.14:43
Disconnectyah 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:43
DisconnectI think where I went wrong tracking it landed me in the cache directories, which don't exist yet :)14:44
smoserwow. you've made a lot of effort.14:44
smoseryeah, so 2 things there.14:44
smosera.) 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:44
smoserb.) you may have noticed in 'get_data' in ec2, it will read from ec2init.cachedir/ec2//user-data.raw and /meta-data.pkl14:45
smoserwhich are not written anywhere.14:45
smoseri'm using those to supply a mock ec2 datasource14:46
smoseri put those files into an image and boot.14:46
smoserDisconnect, i took your ec2-get-data patch also14:47
Disconnectyah saw that :)14:48
Disconnectlooks like a conflict between boto_utils and boto.utils. wheee15:01
* 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:02
Disconnectsomewhere along the way i'm not getting into DataSourceEC215:21
Disconnectyah dslist is empty. hmm.15:22
Disconnectoh.15:23
Disconnect        if not conf.has_key("cloud_type"):15:23
Disconnect            conf["cloud_type"]=None <------ shouldn't that be auto?15:23
Disconnectsmoser: 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
smoserhm... that is copied verbatim from boto15:28
smoseron success it 'return resp.read()' no?15:29
Disconnecti gotcha. (fyi 'import time')15:31
Disconnecthmm. so it logs the error, waits retries*2 seconds and tries again. that makes more sense.15:31
Disconnecthmmm. except empty user-data returns 200-OK with len 015:33
=== dendrobates is now known as dendro-afk
jiboumansmathiaz: ping?15:40
* jiboumans blinks15:40
orudiehow can I check which version of java i have installed ?15:40
uvirtbot`New bug: #511205 in ntp (main) "Computer reboots when enabling/disabling ntp" [Medium,Confirmed] https://launchpad.net/bugs/51120515:41
geniiThat sounds like a really nasty bug15:42
screen-xorudie: java -version15:53
smoserDisconnect, "except empty user-data returns 200-OK with len 0" ?16:00
smoseryou're saying that is the response from Eucalyptus?16:00
Disconnectsmoser: it was a bug on my end, urllib2 doesn't take proxies arg. (the lack of error output was leading me astray)16:00
smoserok16:01
Disconnectbut yah, if there is no userdata euca returns 200 with length 0 (http://pastebin.ca/1761659) this is, i suspect, entirely correct :)16:04
=== dendro-afk is now known as dendrobates
jjohansensmoser: re test kernels failing, so it is succeeding in direct kvm boot but failing euca cloud? right16:17
smosersorry. bad english16:18
smoser"In each of the above cases, the included kernel fails."16:18
smosers/included/not-your-testing-kernel/16:18
smoserincluded in the image/archive, jjohansen16:18
smoseryours pass my tests.16:18
jjohansenah, I was taking from the email that it was failing and trying to figure it out16:19
jjohansensmoser: in that case if you are happy, I will issue a pull request16:19
smosernote, limited testing, i just booted, saw that it booted to successful login prompt and then killed it.16:20
smoserit could have been on fire at the time16:20
smoser:)16:20
=== robbiew_ is now known as robbiew
jjohansen:)16:20
smoserbut from a "did we turn the right noptions on" perspective, the answer is yes, it looks good.16:21
uvirtbot`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/51124516:21
grapplehave 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 77716:57
grappleanyone have a clue as to why?16:59
Picigrapple: 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 -a17:00
grappleanyone help with permissions?17:06
ScottKgrapple: Did you see Pici's reply to you?17:06
grappleoh, ok... newbie here17:07
grappleso then i would do this: sudo cp-a file /home/username17:07
grappleer, cp -a file /home/username17:08
grappleworks thanks...17:08
grapplewoot!17:08
=== mathiaz_ is now known as mathiaz
mathiazjiboumans: do you have access to the ubuntuserver blog?17:23
jiboumansmathiaz: still not (as per last email)17:23
mathiazjiboumans: hmmm... wired - I need to investigate that then17:24
mathiazjiboumans: I've already invited three times - but it seems to work correclty :(17:24
jiboumansi get the invite, i accept it.. but then... nothing shows up on the dashboard / etc17:25
madcat1990I'm in need of assistance, can someone help me?17:59
madcat1990hmm just ask.... ok18:00
madcat1990Anyways, I am in need of help with a network bridge on ubuntu server 9.1018:00
madcat1990namingly, bringing the internet of a wireless connection to a wired connection18:00
madcat1990but giving the wired connection a ip through a DHCP server on said server18:01
madcat1990in other words, making the server work as a router x)18:01
mealstromhaven't understand what you need18:06
mealstromdhcp server -  wifi - network - client  ?18:07
TeTeTaubre: hey there :)18:08
uvirtbot`New bug: #511295 in dovecot (main) "dovecot -n silently reports wrong configuration when using dovecot-postfix" [Undecided,New] https://launchpad.net/bugs/51129518:21
mathiazsmoser: I'm thinking about existing images that rely on 169.254.169.254 being reachable18:24
mathiazsmoser: on a related note, is the InstanceId available from the meta-data service?18:24
smoseryes.18:25
mathiazsmoser: awesome - that's gonna help in my big puppet master plan :)18:25
mathiazsmoser: so you plan to enable or disable by default access to 169.254.169.254 on a lucid image?18:25
smoserenable by default.18:26
smosermathiaz, "instance id" is also available to you as a part of the "DataSource" object in ec2init.18:26
Disconnectsmoser: any idea what would cause self.cfg to be None?18:28
mathiazsmoser: 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
smoserDisconnect, i just am fixing that :)18:28
smoserif there is no "cloud-config" user data.18:28
Disconnectoh. well good lemme know, been arguing with it all day ;)18:28
smosermathiaz, right now, the metadata information is available in filesystem as pickle format python object18:32
mathiazsmoser: yeah - I'd suggest to go for a more inter-operable format18:32
mathiazsmoser: other whise only python script will be able to load the configuration18:32
mathiazsmoser: I'd suggest yaml18:32
smoseri think that would be in keeping, with yaml usage elsewhere. i can dump it along side the pckl file.18:33
mathiazsmoser: so that we don't restrict which langage should be used18:33
mathiazsmoser: why would keep the pckl file?18:34
mathiazsmoser: you can reload the yaml data from other python script18:34
smoseri dont know.18:34
smoseronly if it were speed18:34
mathiazsmoser: or are their more information in the objects that could not be represented in a yaml file?18:34
smoserwhich may or may not be a.) true b.) a worry18:34
smoserno more info than can be represented in a hierarchical key/value set18:35
smoserremember, it all comes from a web "filessytem"18:35
mathiazsmoser: well - is the metadata service providing such a huge amount of data?18:35
mealstromhow to mount samba guest (+rw) share using fstab to local system (/var/shares or /media/shares) with rw ? ..18:35
mealstromhave tried but didn't solve it :(18:35
mathiazsmoser: right - another option would to actually use directories and files18:35
mathiazsmoser: I prefer yaml though - as it translates into native objects in most languages18:36
mathiazsmoser: if you'd use directories and files you couldn't easily use map, filters on the data structure18:37
mathiazsmoser: whereas if you already have everything as a hash table, it may be easier18:37
Disconnectat the end of the day though, python is only a small part of what might be using this information18:37
mathiazsmoser: the up side of directories+files is that you can easily write shell scripts to leverage that information18:38
Disconnectrandom binary files that can only be read by the originating app or derivatives is hardly the unix way :)18:38
mathiazsmoser: and upstart jobs are the first users of that information18:38
mathiazsmoser: so you could write upstart jobs that do things like: [ -e /etc/cloud-config/puppet ] && apt-get install puppet18:39
mathiazsmoser: the problem with yaml is that using it from shell scripts is hard18:40
mathiazsmoser: and upstart jobs are mainly shell scripts18:40
smoseri'm not disabreeing18:40
smoserbut i will disagree that yaml is easily usable by shell18:40
mealstrom.//192.168.1.1/incoming/media/shares/incomingcifsguest,rw00 -- only READ works :(. But when connecting via gnome commander smb -- RW works.18:41
mathiazsmoser: right - yaml and shell don't play well together18:41
mathiazsmoser: so may as first iteration, provide a directory/file layout for the meta-data service18:42
smoserhm... i think we're miscommunicating here18:43
smoserthere are 2 things. or possibly 3 things18:43
smosera.) metadata service18:43
Disconnectsmoser: how do i get it to detect text/cloud-config userdata?18:44
smoser(Disconnect, hold on)18:45
smosermeta data service has info like: http://paste.ubuntu.com/360818/18:45
smoserb.) user data18:46
smoseruser data is essentially binary blob , whatever the user wnats to put there can go there.18:46
smoserc.) cloud config18:46
smosercloud config is transported to ec2 inside of user data.18:46
Disconnect..you changed the ssh key on that paste right? :)18:46
smoserec2-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 yaml18:46
mathiazsmoser: isn't user-data part of the meta-data info?18:47
smoserthe metadata service will be cached on disk, now that is in python pickle, but i agree yaml would be more useful.18:47
smosermathiaz, not really. you get at them from the same "service", but they're different.18:47
smoserDisconnect, funny, no18:47
smoser:)18:47
Disconnectmetadata needs to be updated periodically though - i could attach and detach storage, for example, without warning.18:48
smoserbut thats just my public key18:48
smoseryou can put that wherever you want!18:48
Disconnectheh18:48
smoserDisconnect, do you know that metadata service is updated?18:48
smoseri didn't think that that changed previously.18:49
smoserbut now with ebs volumes that cna be turned off, it can (and user data) can change on restart.18:49
mathiazsmoser: right - the whole reason to remove access to the meta-data service after boot is based on the assumption that it's static information18:49
mathiazsmoser: user data can change on reboots?18:50
mathiazsmoser: I though it would stay the same during the whole instance life18:50
smosermathiaz, on re-starts18:50
smosernot reboots18:50
smoseryou can stop/start an ebs root instance18:50
mathiazsmoser: re-starts == new instance?18:50
smoseryeah, and you do get a new instance id.18:50
mathiazsmoser: ah right - ebs root instance18:50
smoserbut the filesystem "kept"18:50
smoserso that is somethign that has to be addressed.18:51
smoserbut i dont know if metadata service changes when you attach a volume. should check that.18:51
mathiazsmoser: is http://paste.ubuntu.com/360818/ the actually data received when do a wget on the metadata service?18:52
mathiazsmoser: or is it delivered in a different format at the http level?18:52
smoserno. its delivered in an annoyying format18:53
smoseryou do a get, either get data or a list18:53
smoserand then you do a get for each item in the list18:53
smoseradn repeat18:53
Disconnectsmoser: doesn't look like it changes.18:53
mathiazsmoser: ok - the meta data crawler is reponsible for creating a dictionary like you've pasted18:54
smoseryes18:55
smoserso, if you like, we can put that data in a yaml format18:55
mathiazsmoser: it seems that providing a directory/file structure representation would be trivial then18:55
mathiazsmoser: I'm trying to address the issue that shell and yaml don't play well together18:56
Disconnectbtw 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
smoserwell, your example of 'puppet-config' is not going to exist.  puppet-config will come from cloud-config, not metadata18:56
Disconnectthat also suggests a format that might work for shell - present it locally exactly as its found on the http server.18:56
smosercloud-config, by your suggestion, is yaml18:56
smoserwe can dump it to disk too in some directory format, but i dont know that it is necissary18:57
Disconnectsmoser: real quick tho, getting ec2-init to detect cloud-config data..? hoping to demo in a few mins :)18:57
smoseruser data18:57
smoserhttps://wiki.ubuntu.com/ServerLucidCloudConfig18:58
smosertake that example, and put add to the top "#cloud-config"18:58
Disconnectah ok. thats the part i was missing :)18:58
smoserthen pass that as your user data (you can compress it too with gzip)18:58
Disconnectcool. i just need to feed it the user and tell it not to apt-get and all should be well.18:59
Disconnectoh. a thought on that actually.18:59
Disconnectthe 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
smoserDisconnect, yeah. i know that.19:00
Disconnectok :)19:00
smoserso 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 user19:01
smoserso that you can create an image with the /etc/cloud/cloud.cfg that you always send in user data.19:01
mathiazsmoser: you're right wrt to puppet19:02
Disconnectsweeet i'm set for an actual demo now :)19:05
racquadhi 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:21
racquadplease, any idea?19:28
smoserblacklist vga16fb maybe19:28
racquadsmoser, where?19:29
smoser/etc/modprobe.d/bad-vga.conf19:30
racquadsmoser, vga16fb is not listed on lsmod19:31
smoserhm...19:31
uvirtbot`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/51131419:31
racquadsmoser, I have tried also vga=771 to force a lower resolution, didn't work19:31
smoserracquad, try 'nomodeset' on kernel config line?19:33
racquadnot yet19:33
smosersorry for not knowing off the top of my head19:33
=== cyphermo1 is now known as cyphermox
racquadsmoser, it worked. thanks a lot19:39
smoserDisconnect, fyi, the exceptions for 'None' cloud config should be fixed in my branch now.19:47
Disconnectcool19:48
Disconnecti'll prolly have another patch to send up before the weekend19:48
smoseri am still hoping to get a package together and sponsored and into the lucid images tonight.19:54
Disconnectsmoser: i'll post the patch now. some whitespace fixes, better error messages and cloud_type should default auto, not None20:03
smoserDisconnect, no, it should be default 'None' :-(20:03
smoseras 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 service20:03
Disconnectleast-surprise (and sane defaults) both say "try to determine which of the one cloud types we're in"20:04
smoserit used to behave that way, people complained, so heres where we are.20:04
Disconnectthats a need for sane timeouts20:04
smosersane timeouts are i think hard to comebuy20:04
smoserits better now, i think i wait like 20 seconds or something20:04
smoserit did wait > 1/2 hour20:04
smoser(and tried multiple times :)20:05
smoserthe problem is that you can come up and check for the metadata service before it is up20:05
Disconnectnot including the urllib2 timeout its 2+4+8+16+..seconds. bad :(20:05
smoserso you cant rely on it.20:05
smoserbut for now lets leave it at None. the images will have it configured to 'auto'20:06
Disconnectactually looks like that is changed. so its 10s plus urllib.20:07
Disconnectbut 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:08
mealstromcan you help me figure out where is the problem with fstab on mounting samba share (guest) with RW rights?20:12
mealstromafter mounting only ROOT can write/delete files or directories there. And user only can CHANGE files (RW) but not create or delete20:12
mealstromfstab //192.168.1.1/incoming/media/shares/incomingcifsrw,guest0 020:13
mealstrommtab //192.168.1.1/incoming /media/shares/incoming cifs rw,mand 0 020:13
dthackerIn ntp.conf, what is the name of the setting that limits correction if the time is too far off from the sync server?20:23
unit3man page doesn't say?20:24
dthackerunit3: only if you look at the correct man page.  Found it! :)20:26
unit3haha what was it?20:26
dthackersanity limit, but it's set with a cl parameter when you invoke ntpd, not in the .conf20:27
unit3ahhh20:33
erichammondsmoser, mathiaz: The EC2 instance id stays the same through EBS boot instance stop/start cycles.20:36
smoseroh really.20:36
smoseryeah, i guess i knew that.20:36
Disconnectsmoser: 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
Disconnect(sorry, was afk)20:43
smoserwell, 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 up20:44
Disconnectsubmitted the patch #51134820:46
Disconnectthink i got all the jaunty-specific bits out20:46
erichammondsmoser: 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
erichammondFYI, at least public-hostname and public-ipv4 can change while an instance is running.20:50
smoserand they change in the metadata ?20:51
erichammondNow 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
erichammondsmoser: running a quick test20:51
smosererichammond, 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
erichammondsmoser: Ok, thanks20:52
smoserthere absolutely is an issue with the metadata service, though.20:52
smoserit possibly contains sensitive data and there is no method of controlling access to it.20:52
smosersuch that a compromise of any user that could do an http request could get at it.20:53
erichammondThis 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
resnois it a security risk to run a router and data backup on the same machine?20:54
resnorouter and actually data. for a home network20:54
erichammondsmoser: Yes, I just verified that public-hostname changes when an elastic IP address is associated or disassociated with an instance.20:56
smoserthank you for verifying that erichammond20:58
smoserit seems wierd to speak a full name in irc.  like i'm very formal with "mr erichammond"20:59
erichammondsmoser: I used to have "esh" but somebody else took it after I left IRC for a while.20:59
=== luis__lopez is now known as luis_lopez
erichammondI figured this way people would know who I was.21:00
=== 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
erichammondmr_scott_moser_sir: Heading off to the office on my long commute through rain (always makes traffic more fun in LA)21:03
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
unit3kickban vtf plz.21:33
guntbert!ops21:33
ubottuHelp! Channel emergency! soren, lamont, mathiaz or tom21:33
th0mz_./ignore vtf21:34
guntbertth0mz_: thanks - forgot ignore :)21:35
th0mz_stupid spammer21:36
th0mz_..;21:36
th0mz_.21:36
guntbertth0mz_: and remember and tell: don't ever click on such a link :)21:37
guntbert!ops | ctcp flood - please set +R21:38
ubottuctcp flood - please set +R: Help! Channel emergency! soren, lamont, mathiaz or tom21:38
nikoguntbert: already done21:38
guntbertniko: see it , thank you21:39
smosermathiaz, ping21:48
mathiazsmoser: hi21:48
smoserwoudl you be willing to sponsor an ec2-init upload for me ?21:48
smoserjust uploaded build to ppa, i want to give it a quick final test from there and then be good.21:49
mathiazsmoser: sure - np21:50
mathiazsmoser: if you could post the bzr branch, or the debdiff21:50
smoserbranch coming21:51
smosermathiaz, lp:~smoser/ec2-init/ec2-init.devel.pkg21:54
smosermathiaz, its "start in 9 hours" https://launchpad.net/~smoser/+archive/ppa/+builds?build_state=pending21:55
gclericexit21:57
smoseri just checked it builds in a sbuild here. so that shouldn't be a problem21:58
smosermathiaz, 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.21:59
=== dendrobates is now known as dendro-afk
=== erichammond1 is now known as erichammond
ptingis there a designated script to reset the mysql debian-sys-maint user?22:24
unit3do you mean reset its password?22:47
unit3I don't think so, I think you've just gotta edit the conf file and the mysql database entry.22:47
unit3but I could be wrong.22:47
ptingunit3, ya, the password. i just wanted to sync up all the db user/passwords in my farm22:54
unit3gotcha. well, that's not that hard.22:55
unit3if you sync the "mysql" table between then, then the mysql auth info is synced.22:55
unit3and then you just need to sync the less /etc/mysql/debian.cnf file.22:55
ptingunit3, true. it would be nice if it was in the preseed process22:55
ptingya, i'll do that. thx22:55
unit3erm -less. ;)22:55
HypnozI have a few nfs mounts in /etc/fstab that aren't mounting on bootup, but mount -a works22:59
Hypnozanyone know a better way to put the line in fstab so it doesn't timeout22:59
unit3do you have the _netdev option on them so it knows to mount them only after the network is up?23:00
Hypnoznah i heard about that23:01
Hypnozso it would be NFSpath localpath nfs _netdev 0 023:02
Hypnoz?23:02
=== robbiew is now known as roobiew_
=== erichammond1 is now known as erichammond
unit3Hypnoz: yeah, or nfs4 for the filesystem type.23:13
unit3depending on your server.23:13

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