/srv/irclogs.ubuntu.com/2014/02/18/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== zz_mwhudson is now known as mwhudson
=== freeflying is now known as freeflying_away
roaksoaxbigjools: thoughts? http://pastebin.ubuntu.com/6952628/04:28
bigjoolsroaksoax: you probably have the system python package installed04:29
bigjoolsthe wrong one I mean04:29
roaksoaxbigjools: yeah, a higher version that the one requireD: http://paste.ubuntu.com/6952634/04:30
roaksoaxbigjools: ok, it seems a information issue. I didn't have daemontools installed and it complained about python-amqplib it seems04:34
bigjoolsroaksoax:  which branch is this?  amqplib is not in trunk04:34
roaksoaxbigjools: this is trusty trunk on saucy04:35
bigjoolsoh it won't work on saucy04:35
roaksoaxbigjools: yeah can see that now04:35
bigjools:)04:35
roaksoaxbigjools: anyway, I guess I'll fix the test in question tomorrow then04:35
roaksoaxbigjools: anyway, ttyl!04:35
bigjoolsroaksoax: cheers!04:36
jtvroaksoax: I'm just landing a UI for showing the commissioning results that we have in the database.04:38
jtvIt's not great, but I couldn't take the lack of visibility any more.  :)04:39
jtvLook for a link at the bottom of a node's details page.04:39
jtvI do wish we could link from documentation straight to specific methods in the API documentation.05:28
jtvbigjools: last planned branch for the Advanced Networking lane is up for review.05:35
bigjoolsjtv: sweet05:35
bigjoolsjtv: api docs need anchors, you mean?05:35
jtvYup.05:36
jtvAnd/or a big notice about what those anchors are.  :)05:36
bigjoolsjtv: "connecting a node and a network that are not connected is not an error"05:40
bigjoolsdon't understand05:40
bigjoolsas in, literally, I don't know what you mean by this05:40
jtvOops.  That should be disconnecting.05:40
jtvTypo.05:40
bigjoolsah!05:40
bigjoolsjtv: while you're at it05:40
bigjoolsjtv: in the preceding sentence that starts with "Or", the comma after "network" should be after the "Or"05:41
bigjoolsor, don't start a sentence with "or"05:41
bigjools:)05:41
jtvAnd while you're at it: https://code.launchpad.net/~jtv/maas-test/typo-2014-02-18/+merge/20685105:41
bigjoolsheh, done05:42
jtvThanks.  Ah, I see now: it was a typo the other way around.  I typed "not" when I meant "already."05:43
jtvSo: connecting a node and a network that are already connected is not an error.05:43
bigjoolsjtv: can I do a super quick pre-imp05:51
jtvbigjools: sure, modulo my laptop's boot time.05:54
bigjoolsjtv: call away when ready05:54
jtvMind if I get coffee too?05:55
bigjoolsjtv: no, actually can you hang on, I need to make a quick call06:03
jtvOK06:03
jtvHad some trouble logging in again, but it's working now...06:03
bigjoolsjtv: we should have had a call anyway, oops sorry.  hang on, on hold here06:06
jtvNo, that's tomorrow.  Want to do your pre-imp tomorrow? :-)06:07
bigjoolsjtv: oh heck :)06:12
bigjoolscalling you now06:12
=== CyberJacob|Away is now known as CyberJacob
jtvrvba: one thing I really miss is an ability to link from documentation straight to individual API calls (or handlers).08:44
rvbajtv: that's a good point.  We could add anchors for every method.08:45
rvbas/every method/all the methods/08:45
jtvFor all I know they might already exist...08:46
* jtv wonders why the maas-enlist package has a maas-commission.install08:46
rvbajtv: they do not exist: https://maas.ubuntu.com/docs/api.html08:48
jtvThen they should.  :)08:50
jtvWonder why that page is not loading at the moment...08:50
jtvAh here it comes08:51
jtvYup.  No anchors.  Not even any id attributes that we could use as of HTML5.08:54
rvbaThis page could be improved.  All the information is there but it's a bit difficult to follow because it's not greatly formatted.08:54
jtvYes, it's pretty ugly — hard to see what the structure is.08:54
rvbaIndeed.08:55
jtvWe could get a lot of improvement out of just generating headers for the handler classes, I think.08:55
jtvWith anchors, obviously.08:56
rvbaLike you said earlier, I think we want anchors for every single method.08:56
jtvYes, that would be even better.08:57
jtvBut ideally I'd want both.08:57
rvbaAgreed.08:57
=== teknico_ is now known as teknico
=== freeflying_away is now known as freeflying
gmbrvba: Do you remember how to fix "RuntimeError: Timed out waiting for dnsmasq lease for 52:54:00:f1:4d:cd." when running maas-test? It's happening all the time now on canonistack.13:24
gmbISTR we ran into this way back when.13:24
rvbagmb: sorry, I don't remember (I don't even remember seeing this error).13:36
gmbGnargh.13:36
* gmb tries bouncing libvirt13:39
rbasakgmb: that error's from uvtool. uvt-kvm is waiting for the MAC address of the VM to appear in /var/lib/libvirt/dnsmasq/default.leases so that it can pick up its IP13:44
rbasakgmb: I'm interested to know if the issue is that the timeout is too short, or if something has changed to cause it to never work.13:44
gmbrbasak: Okay. Anything I can do to aid debugging?13:48
rbasakgmb: a few things I guess, if you want to work with me?13:50
rbasakgmb: first, can you pastebin "virsh dumpxml <machine-name>"?13:50
rbasakgmb: "virsh list" should give you a list of machine names. Perhaps you only have one?13:51
rbasakI think maastest uses a UUID or something13:51
gmbrbasak: It does. Give me 5 minutes just to wrap up what I'm doing and I'll get started.13:51
rbasakgmb: sure13:51
gmbrbasak: http://paste.ubuntu.com/6954532/14:00
rbasakgmb: does the MAC in the error match the one on line 42?14:03
jtvHi rbasak — I see my problem wasn't a fluke and gmb had the same thing14:03
rbasakNext question after that. Does maastest use the --log-console-output option to uvt-kvm?14:04
gmbrbasak: Well, no, because the one in the error is an old one; we tear down the VM when m-t finishes (I've hacked it to leave it lying around).14:04
gmbrbasak: Not AFAIK; will check.14:05
rbasakgmb: while you're there, please add "--password foo" for testing.14:05
rbasakgmb: then we can log in on console and examine the VM from the inside14:05
gmbrbasak: Okay, on it.14:05
rbasakgmb: if you can remove --log-console-output if it's in use (otherwise no worries)14:05
gmbrbasak: It isn't. I'll add the --password option14:05
rbasakgmb: then, before it's timed out, you should be able to run "virsh console <machine-name>" and see a VT login, and then log in as ubuntu/foo14:05
gmbk14:06
rbasakFrom there, I'm interested to know if the VM has an IP on the same range as what dnsmasq on your host listens on (virbr0 interface on the host by default I think)14:07
rbasakIf it helps, "uvt-kvm wait" takes a --timeout option, which is the number of seconds to wait before timeout.14:08
gmbrbasak: Okay, it might be as simple as specifying that, but let me take a look anyway.14:09
rbasakOr, you might see through the VT that the VM is taking too long to boot for some reason.14:09
rbasakLooks like the default timeout is two minutes14:10
gmbrbasak: Right. So, I think the VM is taking too long to boot, and uvt-wait is puking. I'll try upping the timeout; the console was pretty sluggish.14:11
rbasakHmm, OK. I noticed that nested KVM is unusually slow on canonistack. Didn't think it was quite that bad.14:12
rbasakManpages are on the way, BTW. I'll try writing a diagnostics section, too.14:13
gmbrbasak: Yeah, we've seen that all the way through m-t developmnet. In fact m-t warns you about trying to run nested KVMs for that reason.14:13
gmbrbasak: Brilliant, thanks.14:13
* rbasak goes afk for a while14:13
rbasakgmb: happy to see uvtool being useful. BTW, I have a bunch of changes in trunk that I'll land in universe soon. I don't think it'll break maastest at all, but look out for it.14:14
rharperwhat's the best way to disable pserv.log?14:44
roaksoaxrharper: why would you want to disable pserv.log?14:52
rharperat least the version I have is 99% filled with ACKDatagram when sending data over tftp14:54
rharper2014-02-14 19:33:49+0000 [RemoteOriginReadSession (UDP)] Datagram received from ('10.245.0.130', 49156): <ACKDatagram(blocknum=12844)>14:54
roaksoaxrharper: that's fixed14:55
rharperrunning: python-maas-provisioningserver   1.4+bzr1693+dfsg-0ubuntu2.2~ctools0 on a precise host14:55
jtv1That gets sent to /dev/null by default, I thought...14:55
roaksoaxrharper: shouldn't show more of that stuff14:55
roaksoaxrharper: check /etc/maas/pserv.yaml?14:56
roaksoaxrharper: you can disable it there14:56
rharperroadmr: cool, so, unccomment or /dev/null ?14:56
rharpererr, roaksoax ^^14:56
roadmrrharper: hello :)14:56
rharperroadmr: sorry; tab completed, meant for roaksoax14:57
roadmrrharper: I know, at this point I'm just pulling your leg :)14:57
rharperhehe14:57
roaksoaxrharper: /dev/null IIR15:38
roaksoaxrharper: /dev/null IIRC15:38
rharperthanks15:38
=== mwhudson is now known as zz_mwhudson
=== Hi is now known as Guest89385
=== zz_mwhudson is now known as mwhudson
Guest3232Hi, when you deploy a service using juju etc, does it run on a single node? Im trying to umderstand the benefit of openstack on maas22:01
roadmrGuest3232: a service can have several units, each *unit* runs on a single node (if I understand correctly)22:04
roadmrGuest3232: as for openstack and maas, they're two different environments from juju's point of view22:05
roadmrGuest3232: if you juju deploy to your maas environment, by default it will deploy each unit on a separate machine22:05
roadmrGuest3232: if you juju deploy to the openstack environment, it should deploy each unit to a separate *virtual machine* (depending on how openstack is set up, many VMs may share the same physical machine)22:06
roadmrGuest3232: interestingly you can use juju to deploy openstack on a maas cluster, then use the same juju to deploy other services to that openstack cluster (hope I'm not confusing you)22:06
Guest3232Lol22:07
Guest3232So, with openstack a vm can span several nodes and run applications on it, but with just maas it runs om22:08
Guest3232on one machine only? With max resources of amsingle22:09
Guest3232*a single machine?22:09
Guest3232Im trying to work put the point of openstack if maas already spreads applications over several machines22:10
roadmrGuest3232: strictly speaking maas doesn't do that; it's juju doing the deployment on several machines22:11
roadmrGuest3232: maas just provides the machines for juju to deploy services22:11
Guest3232Ah i see22:11
roadmrGuest3232: I guess it depends on what the underlying hardware is22:11
Guest3232So at what point is openstack > juju22:11
roadmrGuest3232: same thing :) openstack is a "provider" of "machines" for juju to deploy services on22:12
roadmrGuest3232: the difference is that maas provides actual bare-metal machines (hence metal as a service) whereas openstack provides virtual machines22:12
Guest3232Ah cool, so i could get away with running web services, hadoop etc straight off maas and not bother with openstack?22:13
Guest3232If i use juju22:13
roadmrGuest3232: and I guess it depends on your hardware and scaling needs. If you have 10 really beefy machines, you can put openstack and juju deploy to openstack, so you can create say hundreds of VMs on your beefy servers and host 100s of units/services22:13
=== mwhudson is now known as zz_mwhudson
roadmrGuest3232: OTOH if you have 1000 lower-powered micro-servers, you could use maas and juju-deploy to that, so each unit gets its own, tiny hardware instance22:14
Guest3232Will juju put more than one application on a server if it thinks it can handle it?22:14
roadmrGuest3232: You could, yes. I suggest you read up on openstack and what benefits it offers you22:14
Guest3232Hmm ok thx22:15
Guest3232:)22:15
roadmrGuest3232: not unless you tell it to, and moreover, per the juju documentation, charms may not cooperate with each other22:15
roadmrGuest3232: "they will happily trample over other charms hosted on the same machine"22:15
Guest3232Ok so potentially with just juju, youll under use the full machines power22:15
roadmrGuest3232: exactly22:15
Guest3232Aaaah22:15
roadmrGuest3232: say you juju deploy wordpress and mysql to a maas cluster, each will get their own machine even if they could run on a single one22:16
Guest3232Ah i see22:16
roadmrGuest3232: for this simple example it's OK, but imagine a complex setup needing 10 different services22:16
Guest3232Not ideal22:16
Guest3232Ok cool so ill look at openstack22:16
roadmrGuest3232: with maas you'd need 10 physical machines22:16
roadmrGuest3232: with openstack potentially one would suffice, and 10 VMs would be spun up on that same hardware22:17
Guest3232I guess i was hoping to move away from having to keep loads of vms patched etc22:17
roadmrGuest3232: bear in mind, though, that openstack *does* require deployment on multiple machines (read the docs!)22:17
roadmrGuest3232: I have a toy openstack cluster here and it uses 10 machines22:17
roadmrGuest3232: but if the nova-compute node is beefy enough it could potentially host 100 VMs22:17
roadmrGuest3232: so see, you can host 100 units which would require 100 machines with maas alone, but using only 10 physical machines22:18
Guest3232Yeah ok cool i understand now22:18
Guest3232So is there a charn style way to deploy within openstack22:18
Guest3232*charm22:18
Guest3232Or is it manual creation and setup of an o/s via a new vm22:19
Guest3232Then adding httpd, sql etc and setting up the service22:19
roadmrGuest3232: oh you can juju deploy to an openstack cluster :)22:20
roadmrjuju deploy -e openstack wordpress22:20
roadmr(assuming you have an openstack environment configured)22:20
roadmrGuest3232: I have to go now, sorry, good night!22:20
Guest3232Thx later22:20
=== zz_mwhudson is now known as mwhudson
=== kevin is now known as Guest25053
bigjoolsmorning roaksoax23:19
roaksoaxbigjools: howdy!23:29
=== Guest25053 is now known as kkirkpatrick
=== CyberJacob is now known as CyberJacob|Away

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