/srv/irclogs.ubuntu.com/2012/09/17/#maas.txt

smoserjtv, if/when you see this, you can ssh to ubuntu@10.55.60.130 (bounce through chinstrap). I've imported your launchpad ssh keys there.01:04
smoseryou can poke around and see the issue, but basically, the following "should work" to get enlist the kvm node:01:05
smoser xkvm --netdev maasbr0,macaddr=:01 --    -drive file=system-01.img,if=virtio -curses01:05
roaksoaxsmoser: you should made that availoable on a wikipage :)01:09
smoser?01:09
roaksoaxsmoser: how you got MAAS working on canonicastack for it to enlist, dpeloy, etc01:10
smoserhttp://bazaar.launchpad.net/~smoser/maas/maas-pkg-test/view/head:/maas-ephemeral-test-quantal.txt01:11
smoserthat is clsoe.01:11
smoserthats basically what i'm doing01:11
smoserand that has the maas server on the instance not in any sort of container.01:11
smoseri'd like to make it so that the maas server is in a lxc container.01:11
smoseri'll improve on that a bit more tomorrow.01:12
roaksoaxawesome!01:12
smoserits pretty close.01:14
smoserand i hope to hvae some quantal images at least available that would work01:14
smoserthe biggest hting i'm waiting on now for quantal is bug 64328901:15
ubot5Launchpad bug 643289 in nfs-utils (Ubuntu Precise) "idmapd does not starts to work after system reboot" [High,Triaged] https://launchpad.net/bugs/64328901:15
smoseri have all the fixes i need collected at https://launchpad.net/~smoser/+archive/ephermal-fixes01:15
smoserbut the mountall i'm wwaiting on slangasek for01:15
smoserand either getting that is required or i have to hack around it in cloud-init (i have that ready, but i'd rather have the moutnall fix)01:16
smosergood night.01:16
roaksoaxack01:17
roaksoaxnight scoot01:17
jtvsmoser: got no access to 10.55.60.130.02:17
=== 50UABNR34 is now known as wallyworld
=== wallyworld is now known as Guest48627
mgzso, what I was doing before lunch,13:07
mgzwhen testing out schema migrations, is there an easy way to either trigger a rollback, or blow away the db, to go from scratch again?13:08
mgzthe overhead of reverting a change, creating a new migration, applying that, then removing both is a bit pointless for test data13:08
rvbamgz: you can always rm -rf db && make sampledata13:09
mgzrvba: thanks, just what I was after13:10
rvbanp13:10
smoserwhat daemon runs the tftp server?13:28
roaksoaxsmoser: pserv13:28
roaksoaxmaas-pserv13:28
smoserdo you know what interfaces it binds to?13:30
roaksoaxsmoser: i think is the one with the address of MAAS_DEFAULT_URL13:31
roaksoaxallenap: ^^13:31
smoserwhat is 'maas-dhcp/maas-dhcp-ip:' result in ?13:32
smoserthe debconf value (that i added) ?13:32
* allenap thinks13:34
roaksoaxsmoser: you mean maas-dhcp-addr?13:34
roaksoaxsmoser: tftp is different from dhcp13:34
jtv¾ different in fact!13:35
allenapsmoser, roaksoax: It listens on all interfaces, afaict.13:35
roaksoaxsmoser: thought maas-dhcp-addr should be the same as MAAS_DEFAULT_URL address IMHO since it is the same address that clients will contact, say for cloud-init meta-data server13:35
jtvdhcp currently listens on all, but is being fixed not to; dns didn't, but is being or has been fixed to listen on all interfaces.13:35
roaksoaxjtv: the usage of series is because bigjools requested it instead of release, beside the fact of course that there's a release() function13:36
jtvI see.  Wish I'd known!13:36
roaksoaxrvba: idk if you saw but I uploaded the branch that adds the distro_series support. So we can start adding tests :)13:37
smoserjtv, https://bugs.launchpad.net/maas/+bug/104706113:37
ubot5Ubuntu bug 1047061 in MAAS "dhcpd.conf next-server set to 127.0.0.1" [Critical,Fix released]13:37
jtvsmoser: is that the one you were talking about?13:37
jtvThe configuration problem you ran into?13:37
smosersee comment 1 there. that is what i was running into in https://bugs.launchpad.net/maas/+bug/105162613:37
ubot5Ubuntu bug 1051626 in MAAS "tftp import broken" [Critical,Confirmed]13:37
smoserright.13:38
rvbaroaksoax: I've seen that indeed :).  As promised I'll give you a hand with the tests.13:38
smoseri'm not sure what '--ip' is supposed to mean to 'maas config_master_dhcp', but a.) i had thought it meant next-server b.) one way or another next-server is wrong.13:38
jtvroaksoax: Also, I was wondering: since recently, the master worker sends the list of downloaded installable images to the server.  Maybe that should ultimately become the source of the “choices” list for OS releases.13:38
jtvsmoser: yeah, I thought that was a little unclear too.  The trick is to read it within the context of “dhcp”: “the IP address that serves DHCP.”13:39
smoserroaksoax, shoot. i did mean addr, but i was preseeding ip.13:39
smoserhm.. one way or another that is busted, but it should have done better.13:39
smoserjtv, but who cares what serves dhcp?13:40
smoserother than next server.13:40
smoserit seems broken that you're requiring both interface to listen too and ip address.13:40
jtvGood question.  I'm about as confused about this as you are.13:40
roaksoaxjtv: right makes sense13:41
jtvroaksoax: not saying it has to be that way right now — in fact people might not even like it because it means you don't get offered any operating systems to install until you have some.  But something to keep in mind as an answer to one of my points.13:41
roaksoaxsmoser: liston to would be basically on what interfaces to listen DHCP requests, and ip address is the "next-server" isn't it?13:41
jtvNo13:42
jtvAh13:42
smoserroaksoax, i thought the same thing as you.13:42
jtvI think maybe it should be, but isn't yet.13:42
rvbanext_server = get_maas_facing_server_address()13:42
roaksoaxjtv: yeah, bigjools mentioned that he would like that to become data driven, but something to do in the future as it would require lots of changes13:42
rvbaI don't see where that 'ip' is used in the code really… so I'm confused as well.13:42
jtvMaybe the ip is just the nodes-facing IP address of the cluster — which will _also_ be the tftp download address once we have proxies set up.13:42
smosercan i suggest that people actually try to use code they write?13:43
smoserrather than just assuming that if tests pass it works?13:43
jtvIn which case, yes it would also be the next-server, but wouldn't actually function as one yet until we have tftp proxies.13:43
rvbajtv: that's what Julian had in mind indeed… but where is this used?13:43
jtvScott knows the details.13:43
jtvsmoser: feel free to send hardware.  :)13:44
smoserjtv, canonistack works fine.13:44
smoserand a single system is all you need to test the vast majority of this.13:44
jtvThen maybe I should try that.  The address you told me to ssh into this weekend didn't let me in for some reason.  :(13:44
smoseryou have to bounce thorugh chinstrap13:45
smoser(i did say that)13:45
jtvWhat a coincidence.13:45
jtvBecause when you said that I actually did that.13:45
jtvDid I mention that it didn't work?13:45
smoseri dont have the instance any more , but i assume that your credentials weren't geting through.13:46
smoseri 'ssh-import-id jtv'13:46
jtvWell… maybe this was after you let the instance go.13:46
jtvOr it was taken from you, or whatever happened.13:46
smosernah. that was this morning. maybe 30 minutes ago.13:47
smoserhttps://wiki.canonical.com/InformationInfrastructure/IS/CanonicalOpenstack?action=show&redirect=CanoniStack13:47
jtvOr evening, as we like to call it.  ;)13:47
smoserthat is an *extremely* useful resource.13:47
jtvThanks.  Maybe I'll play with it tomorrow.13:47
smoseryou should set it up.13:47
smosernote, even EC2 or HP cloud can also test this tuff.13:47
smoserthe real value of canonistack is that you can get nested virtualization.13:47
jtvThat is nice, yes.13:48
smoserthere are no public clouds to my knowledge that have nested virt support.13:48
jtvI dared not run the script you pointed to the other day — it did an apt-get dist-upgrade without confirmation, and if I lose this system, I have nothing.13:49
jtvGood thing I spotted it!13:51
smoserthis is why we have instances.13:52
smoserand virtualization13:53
smoserok. i re-purposed bug 105162613:54
ubot5Launchpad bug 1051626 in MAAS "next-server written wrong" [Critical,Confirmed] https://launchpad.net/bugs/105162613:54
smoseri did'nt follow all of what you all were saying above13:54
smoserwhat do we need to do to make dhcp actually funciton.14:07
smoserrvba, how can i ask maas what its server ip is?14:14
smoserthe one it is listening to14:14
smoser(and is currently getting written aas 'next-server')14:14
rvbasmoser: get_maas_facing_server_address()14:15
smoseranyway other htan python?14:15
rvbasmoser: get_maas_facing_server_address extracts it from settings.DEFAULT_MAAS_URL.14:16
smoser$ echo 'from maasserver.server_address import get_maas_facing_server_address; print "\n%s" % get_maas_facing_server_address()' | sudo maas shell 2>/dev/null | grep -v "^>>>"14:21
smoser10.55.60.13014:21
roaksoaxDaviey: so you want me to ditch ipmitool in favor of freeipmi within MAAS right?14:25
roaksoaxallenap: can you point me to the package and upstream of the package you wanted me to upload?14:27
allenaproaksoax: The delay has served you well: it looks like it's not suitable after all. It wasn't suitable for the kind of thing that Francis and Scott had in mind last week, so I've switched to argparse.14:28
roaksoaxcool14:28
=== matsubara-afk is now known as matsubara
Davieyroaksoax: I think it should be considered14:41
Daviey:)14:41
roaksoaxDaviey: i don't mind changing it if necessary14:42
roaksoaxDaviey: it will require a few changes but it is possible14:43
Davieyroaksoax: ideally, we'd support both IMO14:48
roaksoaxDaviey: do we want to MIR ipmitool and freeipmi ?14:48
roaksoaxDaviey: not that is is simply to power on/off machines nothing else14:49
roaksoaxs/not/note14:49
Davieyroaksoax: JUST MIR'ing freeipmi seems more sensible IMO.14:49
DavieyIt's a more active and safer project IMO.14:49
Davieyroaksoax: Yeah, so we don't have to worry about kernel integration14:50
roaksoaxk14:50
roaksoaxDaviey: we don't need kernel integration when we use ipmitool either, since we are only using to send a command over the network14:52
Davieyroaksoax: For the MIR?14:53
roaksoaxDaviey: worry about kernel integration --> we only need 1 binary14:53
roaksoaxDaviey: but either way, i'll look into it14:53
Davieyroaksoax: right,i mean we are MIR'ing the whole shebang14:54
roaksoaxindeed14:58
=== cmagina is now known as cmagina_away
roaksoaxDaviey: bug #1052056 could you please ack?16:43
ubot5Launchpad bug 1052056 in freeipmi (Ubuntu) "[FFe] [MIR] freeipmi" [Undecided,New] https://launchpad.net/bugs/105205616:43
guimalufI would like to make maas node more sofisticated default settings. the most convinient way is going through cobbler and kickstart files?:17:47
smoserguimaluf, well, the going forward way is to basically allow cloud-init to handle that for you.17:49
smoserbut currently, you'd have to write your own api tool to launch an instance with user-data.17:50
guimalufsmoser, is cloud-init a script?17:50
smoserhttps://help.ubuntu.com/community/CloudInit17:50
guimalufsmoser, exactly, i'm trying to cutomize via maas.pressed file and maybe puppet. but isn't enough17:51
smoserwhy "isnt enough?"17:51
smosers/?"/"?/17:51
guimalufnot isnt enough. but I'm having difficult to find what I want. like partitioning many disks on my nodes. the default partitioning made trought partman is OK, but I can do nothing with the other disks. i'm on this many days and nothing happens...17:54
smoserah. yeah. i remmber. the only way you can accomplish that is via customization of the preseed.17:54
guimalufI know puppet and preseed is enough. I just can find the way...17:54
guimalufsmoser, I'm using a for-loop inside preseed file in the early-command, as you said, but this make the installation process freak out!17:55
guimalufand my maas set-up could never give the correct ssh-keys with the cloud-init. I'd to put a echo "ssh-key" >> /root/.ssh/auth_keys in the late command :/17:56
guimalufI dont know how can I use snnipets on the preseed file. On cobbler doc seems so easy. but when I put SNIPPET("asdf"); the installations get broken17:58
smoseryou're using maas on 12.04 ?17:58
guimalufI would like to know how maas deal with that...17:58
guimalufyep17:58
guimalufI thought the clock syncronization issue would be the only problem getting ssh-keys, but isnt the only one.17:59
smoserwell, the clock issue will most deifnitely block you18:03
smoserb18:03
smoserut there are other issues potentially to18:03
smoserfor some reason your installed node is not able to reach the maas metadata service18:03
smoserpossibly routing18:03
guimalufhmmmm make sense... the metadata service is 169.254.169.254? may I should create a iptables rule for that...18:04
guimalufI'm also using openstack, and this is the metadata server and it points to IP:80. which route should maas metadata points to?18:06
smosermaas has its own metadata service. 169.254.169.254 is the openstack metadata service.18:10
guimalufand how can I know wich is the address?18:12
guimalufI think this is happening cause my dhcp-server isnt the maas server18:12
guimalufso I need to put a rule on firewall to redirect metadata server to my maas server right?18:13
roaksoaxguimaluf: check that MAAS_DEFAULT_URL has the correct address in /etc/maas/maas_local_settings.py18:14
Davieyroaksoax: Forwarded to jdstrand18:15
roaksoaxDaviey: k thanks!18:16
guimalufroaksoax, is correct18:16
smoserguimaluf, and the nodes need to be able to get to the MAAS_DEFAULT_URL18:40
guimalufthey are.18:40
guimalufthey can do the PXE boot, ping, ssh, etc.18:40
smoserwell, then the next thing is to get into a node and run the cloud-init maas datasource18:52
smoserthere is a file in /etc/cloud/cloud.cfg.d/ with content in it for the acl.18:54
smoseryou can run that and it should show errors also.18:54
guimalufdo you mean run this command? # cloud-init maas datasource18:55
guimalufroot@node-782bcb77e1d4:~# cloud-init maas datasource18:55
guimalufbad command maas. use one of ('start', 'start-local')18:55
smoserno. sorry.18:56
smoserpython /usr/share/pyshared/cloudinit/sources/DataSourceMAAS.py18:57
=== cmagina_away is now known as cmagina
roaksoaxsmoser: will you make quantal images available for commissioning/enlistment?19:01
smoserworking on that right now. they dont work19:02
smoser:)19:02
smoserbiggest thing i'm waiting on is mountall19:02
roaksoaxsmoser: hehe ok, I can make available a package that has quantal support for you to test if you dont want to manually apply the patches19:02
smoserhttps://launchpad.net/~smoser/+archive/ephermal-fixes19:02
smosermaas is actually ok.19:03
roaksoaxk ;)19:03
smoseri'll upload openiscsi today19:03
roaksoaxDaviey: sill around?19:04
roaksoaxsmoser: ok cool!19:04
Davieyroaksoax: i am19:04
roaksoaxDaviey: where did you published the squashfs image? :)19:04
roaksoaxpublish*19:05
Davieyroaksoax: I haven't.. i manually exposed it via cp'ing it to a place on cdimage19:06
roaksoaxDaviey: is it still exposed? Are we going to keep exposing it?19:06
roaksoaxDaviey: or should I just use the mini.iso?19:07
Davieymini.iso doesn't ship the squashfs :)19:07
roaksoaxah i thought it did19:07
roaksoaxDaviey: in that case, I think it would make sense to make the iamge available somewhere in cdimage19:08
roaksoaxDaviey: that way we wont have to download the whole ISO19:08
Davieyhmm19:11
Davieyhttp://cdimage.ubuntu.com/ubuntu-server/daily/current/quantal-server-amd64.squashfs19:12
DavieyIt's only 61M19:12
Davieyroaksoax: That is temp' do not expect it to be there tomorrow19:12
roaksoaxDaviey: ok cool thanks19:12
roaksoaxsmoser: do you think it would be a good idea to change wget on maas-import-pxe-files to rsync instead?19:23
smoserroaksoax, no.19:27
smoserfor what, specifically?19:27
roaksoaxmaas-import-pxe-files19:27
smoserwhat files19:27
roaksoaxto donwload the required files19:27
roaksoaxinitrd.gz19:27
roaksoaxlinux19:27
roaksoaxetc19:27
roaksoaxetc19:27
smoserurl? example?19:27
smoserwhy would that be superior to wget19:27
roaksoaxsmoser: http://paste.ubuntu.com/1211666/19:28
roaksoaxsmoser: not just superior, but if a download process is broken or if we already have the latests image, then it wont download from 0% or re-download19:28
smoseris that stuff available via rsync ?19:30
smoseri dont think its really that big of a deal.19:30
roaksoaxsmoser: yeah19:30
smoseryou're looking at, what, 100M there?19:31
smoserat max.19:31
smoseractually.19:31
smoserno.19:31
smoserwe do not want rsync19:31
smoserdue to it being less proxyable19:31
roaksoaxok19:31
smoserie, you get the resume for all practicle purposes for free if you set http_proxy19:32
smosernow, for the lcoud-images, we coudl/should make those resume better.19:33
roaksoaxright19:34
roaksoaxi'm also trying to avoid the fact of having to download those files each time19:34
smoseruse a proxy, silly.19:34
roaksoaxlol will have to19:35
roaksoaxsmoser: did you make any change to the boot process to display the kernel parameters on enlistment/commissioning?19:50
smoseryes.19:52
roaksoaxsmoser: now, however, I don't see any ouput been displayed on the image itself whicle provisioning (as in I no longer see how it downloads maas-enlist, etc etc)19:53
roaksoaxnor during commissioning19:53
smoserits going to ttyS019:53
smoserwhich i think is actually more correct in this environment.19:54
smoserroaksoax, do you agree?19:55
roaksoaxsmoser: i have no say on this, It doesn't really matter to me19:55
roaksoaxsmoser: so yes, whichever you think is best, I agree19:55
smoserwell, console is almost certainly not being logged as text in any reasonable manner19:55
smoserconsole as in 'tty1' (video console)19:56
smoserttyS0 might be.19:56
roaksoaxyeah i agree that's probably the best place19:57
smoserroaksoax, i just built a quantal image20:01
smoserusing my ppa i pointed at20:01
smoserand have enlisted 3 systems20:01
smoserwhoowhoo!20:01
smoserusing the daily ppa of maas from this morning.20:02
roaksoaxsmoser: awesome!20:02
* roaksoax brb20:03
smoserroaksoax, hm.20:06
smosercan't i somehow deploy a node from the ui?20:06
roaksoaxsmoser yes you can20:07
smoserhm..20:07
roaksoaxsmoser not quantal though20:07
smoseroh. ok.20:07
smoserwait20:07
roaksoaxsmoser but you wont be able to release it nir delete it if you do so20:08
smoserroaksoax: ssh -L 10080:localhost:80 10.55.63.6420:08
smosertell me if what you see on http://localhost:10080/MAAS for 'node-525400123403' is other than expected20:09
roaksoax  smoser brb xhsnging locstiond20:13
smoserk20:14
roaksoaxsmoser: sorry about that20:46
smoserno worries20:47
roaksoaxsmoser: what is it that you wanted me to look at?20:48
smoserwell, one of those nodes is commissedon20:48
smoserhow would you push a button to install it?20:48
roaksoaxsmoser: you can't start it? or it can't commission? or you need it to commission?20:49
roaksoaxsmoser: or the button is there but it is greyed out?20:49
roaksoaxsmoser: if you add a node from the WebUI there's no start button IIRC20:50
smoserthe start button is greyed out20:51
smoser(you can look at the ui with the ssh above)20:52
roaksoaxsmoser: did you add an SSH key?20:52
roaksoaxsmoser: i think you need to add an ssh key in order for it to allow you to start the machine20:54
smoserroaksoax, no i did not add ssh key20:54
nov503hi, when i bootstrap juju, i forget to put the public key in maas. Now the system is installed but the key is not pushed to the system and I can't login into it.  Is there any way I can redo this?21:17
matsubarasmoser, hi there21:35
matsubarasmoser, I'm enlisting a node in the Lenovo lab but once it boots the image from the MAAS server it gets stuck waiting for eth1 to become ready. Did something change recently in the image that might cause that?21:36
roaksoaxsmoser: so I guess you figured by now that you need to add an ssh key in order to start them21:37
=== cmagina is now known as cmagina_away
smosermatsubara, nothing should be waiting on eth1. and the image hasn't changed (unless you're using 'daily', which would have taken configuration).23:59
smoseryou could be hitting a bug i supposed could exist.23:59

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