/srv/irclogs.ubuntu.com/2012/07/18/#maas.txt

=== matsubara-afk is now known as matsubara
=== matsubara is now known as matsubara-afk
roaksoaxallenap: ping13:03
allenaproaksoax: otp, done soon.13:10
guimalufis it possible to add maas server as a maas node? I would like to set up the maas server as the cloud-controller, glance and keystone.13:19
roaksoaxguimaluf: yeah you can enlist localhost, but for juju is not gonna be usefull because the maas server is the onein chanrge of turning on the machines you need13:20
allenaproaksoax: Going to be a bit longer.13:22
roaksoaxallenap: no worries, let me know when you done :)13:22
guimalufroaksoax, so my maas server should be uniq for this purpose? cause I've a powerfull server and run only the maas server will be a waste of resources.13:24
roaksoaxguimaluf: yeah, unless you deploy VMs with it13:25
guimalufthen should I put the maas server in a virtual machine ?13:25
guimalufdeploy vms with juju?13:25
roaksoaxguimaluf: you could, or you could have VMs contorlled by maas13:25
roaksoaxguimaluf: for juju they would only be nodes13:25
guimalufhmm13:26
guimalufI can't figure out how I'll use my 16 servers in juju + openstack IaaS13:27
guimalufroaksoax, another issue: when I run juju status openstack-dashborad there is public-address:null13:29
guimalufI dont know how will I make my cloud avaible.13:30
guimalufwhen will my node get the hypervisor installed?13:30
guimalufI'm bit confuse :(13:31
guimalufand bothering you alot, I thin13:31
guimalufthink13:31
roaksoaxTBH I have not done many openstack deployments with juju/MAAS13:31
roaksoaxso I don't know much about those bits13:31
roaksoaxguimaluf: someone who would be able to help you is adam_g13:31
roaksoaxbut he is at OSCON atm13:32
guimaluf:(13:33
smoserwell, if juju doesn't have the address, it would seem a general juju<->maas issue.13:46
allenaproaksoax: What's up?13:59
allenapThe stuff still hasn't gone upstream.13:59
allenap:)13:59
roaksoaxallenap: ok, so, there's something wrong with maas-pserv13:59
roaksoaxallenap: there's some weird thing happening. maas-pserv fails to start13:59
roaksoaxbut then magically, it starts14:00
allenaproaksoax: Do you have some logs for it?14:00
roaksoaxallenap: there's nothing :)14:00
roaksoaxallenap: can you spawn a canonicastack instace and install maas from quantal14:00
roaksoaxand see it for yourself to see if you have any ideas of what it might be?14:00
allenaproaksoax: I wonder if this is still the celeryconfig problem?14:00
roaksoaxallenap: might be, I imported the path14:01
allenaproaksoax: I've never used canonistack, so it might take me a while to figure it out.14:01
allenaproaksoax: If it's that, I'm working on it.14:01
roaksoaxallenap: so upstart says twistd doesn't know who 'maas-pserv' is14:01
roaksoaxallenap: so it is failing somewhere when the plugin does the import14:01
allenaproaksoax: Yeah, that sounds right. It can't import celeryconfig probably, but the import exception is being suppressed.14:01
roaksoaxallenap: I added the path in provisioningserver/plugin.py so I know it is importing thepath correctly14:02
allenaproaksoax: Let me fix the celeryconfig thing. If the problem is still there then I'll spend more time on it. Will that block you?14:03
roaksoaxallenap: yeah we have a broken maas in quantal :)14:03
allenaproaksoax: It's fairly broken in Precise too ;)14:04
roaksoaxallenap: heh but precise at least works14:05
guimalufroaksoax, when I expose a service I get the following error: http://pastebin.ubuntu.com/1098491/15:41
guimalufI'm  completely discouraged15:41
roaksoaxguimaluf: AFAIK, you cannot expose services with maas as that's like opening a port in ec215:42
roaksoaxthat's only a feature with ec2 i thi nk15:42
=== matsubara-afk is now known as matsubara
guimalufso how will I make my service avaible?15:43
roaksoaxguimaluf: the service is available15:51
roaksoaxguimaluf: if you are deploying instances with juju inside openstack, then you can use the expose command I believe15:51
guimalufroaksoax, I have onde node on my juju environment, I deployed, related and exposed many services, but where will I access my service? I cant get the public-address value, and I got this error on node juju log15:52
roaksoaxguimaluf: "Service exposing works by opening appropriate ports in the firewall of the cloud provider."15:54
roaksoaxif you are deployimng in baremetal that ncommand is not necessary15:54
guimalufbut when I access my node address nothing happens15:55
guimalufall my services have agent-state:pending15:55
guimaluf:/15:55
roaksoaxthat means that they are trying to get installed or something wrong is going on there15:56
guimalufroaksoax, probabily something wrong in the node right?16:12
roaksoaxguimaluf: yes in the node16:12
guimalufthere is nothing in /var/log/juju :/ only the error above16:14
guimalufI'll install openstack without juju :/ time is near :(16:16
roaksoaxguimaluf: is that on the client machines?16:17
guimalufroaksoax, yep16:17
guimaluf/var/log/juju/provision.log16:17
roaksoaxguimaluf: there's no machine-agent.log nor provision.log?16:17
guimalufprovision log http://pastebin.ubuntu.com/1098491/16:17
roaksoaxrvba: bug #102622816:29
ubot5Launchpad bug 1026228 in MAAS "No way to DELETE or get a node back to 'Ready' from WebUI" [Undecided,New] https://launchpad.net/bugs/102622816:29
roaksoaxguimaluf: there was an error with juju apparently, do you have any cloud-init logs?16:29
guimalufroaksoax, http://pastebin.ubuntu.com/1098589/16:39
roaksoaxguimaluf: were you seeing this error? 2012-07-18 13:14:46,016:1882(0x7fe067770700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:44068] zk retcode=-4, errno=111(Connection refused): server refused to accept the client17:17
guimalufroaksoax, nop. only ZOO_INFO17:19
roaksoaxsok17:20
roaksoaxsmoser: there seems to be an issue when importing the data source after the bootsrrap17:21
smoserroaksoax, ?17:25
roaksoaxsmoser: juju does not get installed after juju bootstrap with maas17:25
roaksoaxi'm redploying17:26
smoserbecause cloud-init isn't getting its datasource17:26
roaksoaxsmoser: it is getting the ssh keys from MAAS17:26
roaksoaxnot the juju stuff though17:26
smoserroaksoax, can you give me more info and/or access?17:27
roaksoaxsmoser: is in my local environment, let me finish re-bootstrapping17:28
roaksoaxsmoser: apache: http://pastebin.ubuntu.com/1098663/17:28
roaksoaxsmoser: ah never mind I think I found the issue17:31
roaksoaxit seems to be proxy17:31
roaksoaxsmoser: for some reason sources.list ends up with ubuntu-mirror17:34
roaksoaxsmoser is that done by cloud-init?17:34
smoserroaksoax, yes.17:35
smoseryou have broken dns17:35
smoserhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/97450917:35
ubot5Ubuntu bug 974509 in cloud-init (Ubuntu) "cloud-init selects wrong mirror with dns server redirection" [Low,Confirmed]17:35
smosercloud-init noticed that you had a host on your network (named 'ubuntu-mirror') and assumed that you wanted to use that mirror.17:36
roaksoaxsmoser: I don't this is MAAS on a VM17:36
smoseryour issue is that you also have a host named "roaksoax-uses-a-broken-dns-provider-that-does-dns-hijacking"17:36
roaksoaxdns/dhcp is libvirt17:36
smosertry it.17:37
smoserthats the problem. cloud-init does a dns lookup and its getting a valid response for that 'ubuntu-mirror'17:37
smoser(rather than a not found response)17:38
roaksoaxsmoser: right, but it is libvirt the one controlling DNS17:38
smoserwell libvirt is letting dns pass through17:38
smoserdnsmasq is cacheing only for libvirt.17:38
smoserchange your hosts dns to use 8.8.8.8 and restart libvirt.17:39
smoser(note, it is annoying, and something that will get fixed in one way or another).17:39
roaksoaxsmoser: did you happen to figure out how to select a particular dns server on a wifi connection at all times?17:41
Davieygood luck with that17:43
smoserman dhclient-script17:43
smoserit would seem its possible there.17:43
Davieypossible == hack17:43
smoserbut that will likely cause issues on public wifi17:43
smoserits not a hack. its explicitly listed as how to do it.17:44
smoseroh. or also17:44
smoser /etc/dhcp/dhclient.conf17:44
smoserhm..17:45
smoserbut no, with resolvconf that wont work17:45
roaksoaxand againa another reason why I hate the change in resolvconf :)17:45
roaksoaxsmoser: but anyuways, any way to disable cloud-init trying to use a mirror? What If I don't really want it to automatically use one17:46
smoseryou can feed it one with user-data.17:46
roaksoaxsmoser: right, but shouldn't default behavior be not to try to do that?17:48
roaksoaxsmoser: cause, in my cause for exmaple, is breaking my maas implementation and might be breaking others too17:48
roaksoaxsmoser: cuase either way, that's the reason why we pass http://pastebin.ubuntu.com/1098696/ to the preseed17:50
roaksoaxs/to the/in the17:50
smoserroaksoax, shouldn't the default behavior be to not have broken dns?17:51
roaksoaxsmoser: then I guess we should go all the way to resolveconf :)17:51
smoserbut having this feature off by default would essentially defeat its purpose.17:51
smoserthe idea was to not have to modify the image and get magical selection of your local mirror17:52
smoseri'm confused though17:52
smoseroh.17:52
smoseryeah, that does suck17:52
smoseryou preseed the install, and that gets it right17:53
smoserand then cloud-init finds a better mirror17:53
smoseryou can fix it through late_command here.17:53
roaksoaxsmoser: right, then I guess we should have an option within MAAS to disable that17:53
smoserwell, this [miss]feature is probably going to change.17:54
roaksoaxsmoser: cuase, for example, in my particular case, how was I supposed to know I had a broken DNS on a clean machine and when I haven't played with DNS?17:54
roaksoaxi wouldn't have notice at all if it wasn't for what cloud init found17:54
roaksoaxso that means, like me, there might be others with the same issue17:54
roaksoaxhaving mirrors on a MAAS network, but not wanting to use them17:55
smoserso.. i'm told that the way chrome handles this is that it tries dnslookups of never-will-exist domains.17:55
smoserand then says "oh, you have broken dns"17:55
smoserroaksoax, so..17:56
smosercobbler  cobbler/password  password xcobbler17:56
smoseris there any reason that i'd pre-seed that in quantal?17:56
roaksoaxsmoser: in pserv.yaml?17:57
roaksoaxsmoser: yeah it gets replaced on postinst17:57
smoserhm..17:57
smoserin zimmer-build17:57
roaksoaxah lol17:57
smoseri used to do that17:57
smoserto set a password for cobbler17:57
roaksoaxno not really needed17:58
roaksoaxmaas should take care of settings its own user now17:58
smoserso should i remove that even if on precise?17:58
roaksoaxI believe so17:58
smoserwhat about updating /var/lib/cobbler/snippets/maas_proxy17:59
smoserany reason to do that on quantal17:59
smoser?17:59
roaksoaxyeah it should probably stay18:00
smoserok... what about /etc/cobbler/cobbler.conf ?18:00
smoseris that still around?18:00
roaksoaxsmoser: you mean settings? yes still needed until we drop it18:00
smoseri'm looking at zimmer-build/ud-build.txt18:01
smoserand there are hacks/modifications for cobbler that are done18:01
smoserand i was just trying to see if each is still necessary18:01
roaksoaxsmoser: I don't really think we need any since all the setup is done by maas itself18:02
roaksoaxthough we need to ensure that maas set's the correc tproxy, and next_server18:02
smoserit updates /var/lib/cobbler/snippets/maas_proxy ?18:02
smosererr... wait.18:03
smoseris there a way that i can tell maas to use my *other* proxy?18:03
smoserthat is what the proxy hack was doing18:03
roaksoaxsmoser: nope there's not. so that's why we should keep that.18:03
roaksoaxand making sure next_server and server and MAAS_DEFAULT_ULR are set correctly18:03
smoserand then the cobbler init hack18:03
smoserare you looking at this?18:04
smoseri make cobbler update its network address on start18:04
roaksoaxsmoser: so the cobbler network address update should be kept, + make sure it is updated on /etc/maas/maas_local_settings.py18:05
roaksoaxcause they should be the same18:05
smoserso i should just change that hack to read it from /etc/maas/maas_local_settings.py ?18:05
smoserfrom DEFAULT_MAAS_URL ?18:06
roaksoaxsmoser: yes,18:06
roaksoaxthat could also be a way to fix this18:06
smoserPYTHONPATH=/etc/maas python -c 'import maas_local_settings, urlparse; print urlparse.urlsplit(maas_local_settings.DEFAULT_MAAS_URL)[1]'18:09
roaksoaxsmoser: looks good to me18:12
smoserroaksoax, http://paste.ubuntu.com/1098737/18:14
smoseri'm gonna test that18:14
roaksoaxcool, looks good to me18:15
smoserroaksoax, wait.18:23
smoserdoes maas try to figure that value out on its own?18:23
smoseror how can i tell it to re-get it.18:23
smoserthe problem is that i build the zimmer image, and then save it. and when it boots it has a new ip address.18:24
roaksoaxsmoser: ah riught, it tries to figure out on postinst, so you need to obtain it the way you were doing it, and update maas_local_settings, and update cobbler18:25
smoserbugger.18:25
smoserroaksoax, which of the /etc/init/maas-* files do i need to change so they dont start until MAAS_URL iset correctly?18:31
roaksoaxsmoser: actually that part is run by apache218:31
roaksoaxthrough the wsgi.py file18:31
smoserfun.18:32
smoserroaksoax, so what do you think.18:41
smoseri get the right address18:41
smoserand then what?18:41
smoserdo i update /etc/maas/local_settings.py ?18:41
smoserand dpkg-reconfigure maas ?18:42
smoserwill that do it?18:42
roaksoaxsmoser: dpkg-reconfigure maas updates maas_local_settings.py and cobbler settings18:42
smoserupdates it from what?18:42
roaksoaxsmoser: is a debconf questions that asks for the IP address18:43
smoserok. so i'm going to just go with this:18:46
smoser sudo dpkg-reconfigure -pmedium maas18:46
=== roaksoax_ is now known as roak
=== roak is now known as andreserl
=== andreserl is now known as roaksoax_
=== Daviey_ is now known as Daviey
=== roaksoax_ is now known as roaksoax
smoserroaksoax,20:48
smoserin apt-get install of maas (during zimmer build for quantal)20:48
smoser/tmp/maas.config.12013: 32: /tmp/maas.config.12013: dbc_go: not found20:48
smosermaas failed to preconfigure, with exit status 12720:48
smoserFetched 62.5 MB in 7s (8324 kB/s)20:48
smoserSelecting previously unselected package libavahi-common-data:amd64.20:48
smoser(Reading database ... 46830 files and directories currently installed.)20:48
roaksoaxsmoser: that seems like dbconfig-common is missing or failing or something20:48
smosercan you depend on that from config?20:49
roaksoaxsmoser: yeah20:49
=== wgrant_ is now known as wgrant

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