/srv/irclogs.ubuntu.com/2013/08/16/#maas.txt

kurt__bigjools: are you around?00:17
bigjoolskurt__: yes00:17
kurt__hi - I've been struggling with an issue with OAuthunathorized and juju-gui00:18
kurt__this is with vmware, so I believe it is a clock issue00:18
kurt__the clock on the vm is exactly 7 hours off00:18
kurt__have you had any success with vmware and getting the clocks in the maas clients to sync?00:19
bigjoolsare you in mountain time by any chance?00:19
kurt__PST00:19
bigjoolsI've never used vmware with maas00:19
bigjoolswe have previously used qemu00:19
kurt__it works well, except for this clock issue00:19
bigjoolsbut not for a while00:19
bigjoolsthe unauth problem has been solved now for a long time, what is your exact problem?00:20
kurt__after bootstrap and I go to install juju-gui, the status goes to pending and never does anything past that.00:21
kurt__I look at the maas.log and its full of OAuth unauthorized errors00:21
bigjoolsis the bootstrap a VM?00:21
bigjoolsI need to go OTP, back later00:21
kurt__yes00:22
kurt__bigjools: see http://pastebin.ubuntu.com/5979922/ for logging of juju-debug and maas errors here http://pastebin.ubuntu.com/5978813/00:29
bigjoolskurt__: ok back. Is the clock on the bootstrap node also out by 7 hours?01:10
bigjoolskurt__: so the logs don't have enough context, can you send the entire log01:12
bigjoolsah I see where the time problem comes from now, it's not cloud-init, it's between juju and maas01:13
kurt__no01:19
kurt__bigjools: actually, let me check that, but I believe that is the case01:20
kurt__ah, you see a problem?01:20
bigjoolsI thought you were talking about booting the nodes themselves, they talk using oauth to the maas api01:20
bigjoolsbut your problem here is definitely the clock skew, you need to fix that, no way around it01:21
kurt__right01:21
kurt__so is there a way to do this with cloud-init?  like how it was solved with kvm?01:21
bigjoolsthe problem is between juju and the maas sever01:21
bigjoolsserver01:22
bigjoolsat least looking at your logs01:22
bigjoolsso are the clocks out of whack between those?01:22
kurt__I was just spinning the nodes up to check01:22
bigjoolsit's nothing to do with the nodes01:24
kurt__eh…ok.  but the time is off between the root juju node and the maas controller01:25
bigjoolsyes, that's what I meant, sorry01:25
bigjoolsthe bootstrap node's time needs to be fixed01:25
kurt__http://pastebin.ubuntu.com/5991152/01:25
kurt__right - but it get fubarred on boot/set up - so isn't that something that can be fixed via cloud-init?01:26
bigjoolslooks ok then01:26
kurt__no - they are off01:26
bigjoolsjust a different timezone, the utc stamp will be the same no?01:26
kurt__its off by 7 hours no matter what01:27
bigjoolsoh got it wrong way around01:27
bigjoolsyes, so fix that :)01:27
kurt__lol01:27
kurt__how?01:27
kurt__its happening on boot/creation of the node01:27
bigjoolsI don't know, you will need to check the vmware docs01:27
bigjoolsfor now you could set it manually01:28
bigjoolsor run ntpd01:28
kurt__there is an option to sync the clocks which I have tried both ways, and it has no effect01:28
kurt__do you know how this problem was solved with kvm?01:29
bigjoolsI don't know if it was ever a problem with kvm01:29
bigjoolsafaik it just used the host's time01:29
kurt__and if I went the ntpd route, how would I go about making it happen automatically?  do I need to hack cloud-init?01:31
kurt__or mount the images and hack those, ugh :(01:31
=== CyberJacob|Away is now known as CyberJacob
roaksoaxbigjools: just tested02:12
roaksoaxin a clean install02:12
roaksoaxno issues02:12
roaksoaxwhatsoever02:12
roaksoaxbigjools: i'm guessing they had newer kombu/celery?02:12
=== CyberJacob is now known as CyberJacob|Away
roaksoaxbigjools: so just ttested both upgrade from cobbler based maas to newer maas, and fresh install of newer maas and went without issues02:25
=== CyberJacob|Away is now known as CyberJacob
bigjoolsroaksoax: ok thanks for testing04:00
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== racedo` is now known as racedo
=== CyberJacob is now known as CyberJacob|Away
natefinchrvba: are you around?  I have some questions about maas and azure13:55
rvbaHi natefinch.13:58
rvbaGo ahead.14:00
natefinchrvba: hi.. I'm a new juju dev, working on a project to add IP Addresses to the info we return on instances14:00
natefinchrvba: starting with maas... is the IP address of a node exposed anywhere?  I see they have a hostname, but I don't see IP address as something that you can get from the API14:02
rvbanatefinch: indeed, it's not exposed on the API, but we have the hostnane <-> IP stored internally so it's something we could expose.14:03
rvbathe hostname <-> IP correspondence*14:04
natefinchrvba: that would definitely be useful, save us a DNS lookup at least... but obviously we have to work with what's in the API right now.  Just wanted to make sure I wasn't missing anything14:04
rvbanatefinch: of course, we only have that information if MAAS is configured to manage the dhcp server.14:05
natefinchrvba:  ahh, hmm, interesting point... so it's not something we would be able to rely on being there 100% anyway.  OK, good to know.14:06
rvbaNow that I think of it, I'm pretty sure the IP is displayed on the UI (on a node's page) so it really should be on the API.  Let me check…14:06
rvbanatefinch: confirmed (it's even me who added that a couple of weeks ago), the list of IP addresses attached to a node is a field on the json representation of a node you get when querying the API.14:09
rvbaAgain, it's the empty list if MAAS does not manage the dhcp server.14:10
rvbanatefinch: https://bugs.launchpad.net/maas/+bug/106477714:11
ubot5Launchpad bug 1064777 in MAAS "If a node's IP address is known, it's not shown anywhere" [High,Fix committed]14:11
natefinchrvba: nice14:12
natefinchrvba: now about azure....14:14
mgzexcellent, and the api is already multiple-ip-address aware14:15
natefinchrvba: the only IP Address I see exposed in azure is on RoleInstance... I'm not really very familiar with the object model of Azure, so I'm not sure if that's the correct place to be getting it from14:16
rvbanatefinch: Azure's model allows you to do complex things.  For juju, we use a simple model which is one juju node = one hosted service with one deployment in it containing one role instance.14:18
natefinchrvba: ahh, good, that's exactly the information I was missing14:19
mgzrvba, given the HostedServiceDescriptor on azureInstance, how do you get to RoleInstance?14:19
rvbanatefinch: we really should put a tiny README file somewhere in the Azure provider code.  /me writes a note about that.14:20
rvbamgz: just one sec, let me check something…14:21
natefinchrvba: this is what I had come up with: http://pastebin.ubuntu.com/5992900/14:21
rvbamgz: yes, the way natefinch has done it seems right (modulo the fact that the deployment might be in progress in which case RoleInstanceList[0] will blow up).14:24
natefinchGood point, I'll throw in a check to make sure it's non-empty14:24
rvbanatefinch: is that returning the internal or the external IP address by the way?14:24
natefinchrvba: depends on what that IP address represents :)  We're planning to expose both... this was just me hacking around to figure out how the object model works14:25
rvbanatefinch: each machine has an internal IP used for machine to machine communication (that IP belongs to the internal Virtual Network attached — conceptually — to each environment) and an external IP which is what you get when you resolve the hostname.14:27
rvbanatefinch: the IP Address you're returning here is the internal IP.14:30
mgzrvba: have you guys figured out what the scope of internal ips is?14:31
rvbamgz: the scope of internal ips?14:32
mgzis it across the whole cloud, or constrained to your account or deployment?14:32
rvbanatefinch: that's a real-world result of what you get back from a GetDeployment API request to Azure: http://paste.ubuntu.com/5992942/14:34
rvbanatefinch: as you can see, the external IP is also there, but in the VirtualIPs section at the bottom (AFAIK that's not something gwacl captures but that would be very easy to add).14:34
mgzthat's probably worth doing, can be a follow up merge proposal that depends on a gwacl change14:37
rvbaVery easy for us to do… just file the bug please :)14:38
mgzI was thinking we could just do it :014:38
rvbaEven better :)14:39
natefinchmgz: we want to return both the internal and the external IP, right?14:40
mgznatefinch: yup, but just the (external) hostname and internal ip is fine for a start14:41
natefinchmgz: ok, cool14:41
rvbanatefinch: fwiw, here is a "graphical" representation of how the Azure provider uses Azure objects: http://paste.ubuntu.com/5992973/14:47
natefinchrvba: nice, thanks14:48
rvbanatefinch: and here is the result of listing the nodes on a live MAAS server with the CLI (which uses the API): http://paste.ubuntu.com/5992978/14:48
natefinchrvba: great14:50
natefinchrvba: one last question - are both the maas and azure addresses assumed to be IPv4?14:58
rvbanatefinch: maas parses the lease file written by the dhcp server.  Right now the dhcp server is configured to use IPv4.15:00
natefinchrvba: but in theory it could be IPv6 at some point, then?  I guess it's safer not to assume v415:01
rvbanatefinch: yes15:01
rvbanatefinch: in Azure, gwacl treats the IP as strings.  And apparently Azure only speaks IPv4.15:01
mgzwe can detect from the string we get15:01
natefinchrvba: huh interesting. ok15:01
natefinchmgz: yeah, I was just looking at that15:01
mgzI've not written in every nice constructor for addresses yet15:02
natefinchmgz: no big deal. really, it doesn't need a constructor, the only part that you might want to calculate is the AddressType15:03
rvbanatefinch: internally MAAS uses netaddr which is totally ready to use IPv6 addresses.15:04
mgznatefinch: right, and NewAddress does that (but doesn't set the other fields)15:05
=== CyberJacob|Away is now known as CyberJacob
kurt__If I have my internet facing network for maas controller on network A (eth0 - 192.168.1.x) and my maas clients on network B (eth1 - 172.16.118.x) with DHCP enabled - can I give internet access to my clients?  Do I need to enable IP forwarding on the maas-controller and what do I need to do for routing?15:42
=== CyberJacob is now known as CyberJacob|Away
kurt__If I have my internet facing network for maas controller on network A (eth0 - 192.168.1.x) and my maas clients on network B (eth1 - 172.16.118.x) with DHCP enabled - can I give internet access to my clients?  Do I need to enable IP forwarding on the maas-controller and what do I need to do for routing?17:23
roaksoaxkurt__: yeah you'd need NAT for the machines to access the internet17:24
roaksoax(but yes ip forwarding)17:25
roaksoaxkurt__: but nothing for rounting. SO you only need to configure your iptables for NAT and that'd be all17:26
kurt__so are iptables deployed on the clients by default?17:28
roaksoaxkurt__: iptables are only needed on the maas server because it is the gateway to the internet17:29
kurt__do I need to install iptables to get the NAT'ing I need to make this happen?17:30
roaksoaxkurt__: yes, you need to configure iptables for NAT to work obviously17:30
roaksoaxkurt__: for example: http://ubuntuforums.org/showthread.php?t=1715735&p=10608101#post1060810117:31
kurt__Thanks.  I am running in to a problem with juju-gui requiring to do an apt-get update.  This is one solution.  But it's a little frustrating because it breaks the cloud model for maas17:31
kurt__I guess another solution would be to install a locally mirrored repository17:33
kurt__and do apt-get update against that17:33
roaksoaxkurt__: so all the nodes you deploy with maas require internet access or as you said local mirror that can be resolved by the clients17:34
kurt__roaksoax: will deploying iptables in the way the guide sent require more administrative tasks in the form of constantly updating iptables for all of my access needs, or does that configuration simply configure NAT and doesn't implement the blocking features of iptables?17:37
kurt__I'm trying to weigh the benefits of each solution.  I would assume best practices would be to have a locally installed mirror so it doesn't break mass's cloud model17:38
roaksoaxkurt__: what are you referring with the cloud model?17:40
roaksoaxwe do say that maas client nodes require internet access to perform package installations17:40
kurt__outside world should not have access to internal clients17:41
roaksoaxso part of maas is being able to give internet access to the nodes17:41
roaksoaxso if you do that by NAT'ing then that's completely fine17:41
kurt__ah ok17:41
kurt__I was thinking more along the lines of openstack17:41
roaksoaxwhen you configure a default gateway for any node, (which is possible a router) the router does NAT17:41
kurt__I have all of my clients pointed at the internal IP address of my controller17:42
kurt__ie. 172.16.118.1017:42
roaksoaxkurt__: right17:42
kurt__ok, I just need to get NAT set up17:43
kurt__I'm deploying on vmware and am close to getting this working17:43
roaksoaxyeah so that the machjines can get internet access17:43
kurt__dealt with the time clock issues myself17:43
roaksoaxjamespage: ^^17:43
roaksoaxare you deploying aginst vmware vm's?17:44
kurt__yes :)17:44
kurt__most everything is there....17:44
kurt__very close to getting it all working...17:44
kurt__this is actually vmware fusion on mac osx17:44
roaksoaxah! so that's why the clock issues might have been related to..17:45
roaksoaxanyway i'll brb17:45
kurt__I was even going as far as to try to get libvirt working in mac osx to auto-boot the machines17:45
kurt__yes, but I figured out how to handle that17:45
=== CyberJacob|Away is now known as CyberJacob
kurt__roaksoax: these instructions worked: http://wernerstrydom.com/2013/02/23/configure-ubuntu-server-12-04-to-do-nat/18:18
roaksoaxkurt__: cool18:37
kurt__apt-get update still isn't working correctly on the client node :(18:38
roaksoaxkurt__: make sure you can access the internet18:42
kurt__roaksoax: http://pastebin.ubuntu.com/5993771/18:42
roaksoaxkurt__: and what happens when you do apt-get update ?18:44
roaksoaxor sudo apt-get update18:44
kurt__http://pastebin.ubuntu.com/5993719/18:44
roaksoaxkurt__: are you sure you are using a correct ppa?18:45
roaksoaxErr http://ppa.launchpad.net quantal/main i386 Packages                                                                                                                                                                                                404  Not Found18:45
roaksoaxkurt__: there's no quantal ppa18:45
roaksoaxfor it18:46
roaksoaxonly precise and raring18:46
roaksoaxkurt__: https://launchpad.net/~juju-gui-charmers/+archive/stable check there on the "Published In:"18:46
kurt__I was using this guide http://ceph.com/dev-notes/deploying-ceph-with-juju/ originally, then went to the bzr branch18:47
roaksoaxkurt__: well the PPA being used does not exist. can you pastebin your /etc/apt/source.list18:48
kurt__cat: /etc/apt/source.list: No such file or directory18:49
roaksoaxkurt__: sources.list sorry18:49
kurt__http://pastebin.ubuntu.com/5993789/18:50
roaksoaxkurt__: what about whatever is under /etc/apt/sources.list.d/18:50
roaksoaxkurt__: another thing, you are using quantal for that node, while the guide says to use precise (Ubuntu 12.10 LTS)18:52
kurt__http://pastebin.ubuntu.com/5993799/18:53
kurt__I thought Quantal was 12.10?18:54
kurt__and Precise was 12.04?18:54
roaksoaxwhere is this comming from: Failed to fetch http://ppa.launchpad.net/juju-gui-charmers/stable/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found18:54
roaksoaxthe juju-gui-charmers/stable in quantal ppa does not exist18:55
roaksoaxso there should be a place where that's happening18:55
roaksoaxor that is18:55
kurt__maybe from the bzr branch I'm using for juju-gui locally?18:55
roaksoaxmaybe18:56
roaksoaxbut that is apt-get update failing18:56
kurt__when I run the apt-get update...right18:56
roaksoaxso something either in sources.list or sources.list.d/18:56
kurt__that is being run directly from the node18:56
roaksoaxhas that ppa18:56
roaksoaxright but that ppa must have been added in sources.list.d/ somehwere for it to show up in apt-get update18:57
kurt__its in the pastebin I put in I think18:57
kurt__in /etc/apt/sources.list.d/juju-pkgs-quantal.list18:58
roaksoaxyeah that's for juju18:58
roaksoaxbut not for juju-gui-charmers PPA18:58
roaksoaxthis =-> http://ppa.launchpad.net/juju-gui-charmers/stable/ubuntu/dists/quantal/main/binary-amd64/Packages is ppa:juju-gui-charmers/stable18:58
kurt__ah…I should be looking on root node I think18:58
kurt__I missed this one: http://pastebin.ubuntu.com/5993870/19:14
kurt__roaksoax: do I need to comment one of those out or remove that entirely?19:16
roaksoaxkurt__: comment it out and do: sudo add-apt-repository ppa:juju-gui-charmers/devel19:26
roaksoaxmaybe the charm tries to import that ppa that doesn't exist19:26
kurt__I just hacked it to point to precise -is your way better?19:26
kurt__I was looking at this https://code.launchpad.net/~bac/charms/precise/juju-gui/unified-ppa/+merge/16703919:27
roaksoaxyou could do that but that's pretty much a broken approach on how to obtain things if the systems is quantal and you are trying to install precise packages19:28
kurt__are you referring to what they are doing in the url or my approach with hacking for precise? :) I assume the latter19:30
roaksoaxyeah19:30
roaksoaxthe latter19:30
roaksoaxcheck the juju-gui charm you are using, probably it is the one setting that repository (ppa) when it shouldn't19:31
roaksoaxor maybe you need to use precise instead of quantal19:31
roaksoaxthis should relly be uncomplicated19:31
kurt__isn't that the purpose of charms? :P19:31
kurt__lol19:31
roaksoaxyes19:31
roaksoaxexactly19:31
roaksoaxbut maybe you are deploying a precise charm in quantal19:31
roaksoaxand that's whats causing the issue19:32
kurt__that is exactly what I'm doing19:34
roaksoaxthen that's why it is failing19:34
roaksoaxyou shoul;d be using precise19:34
kurt__because there's no quantal charm for juju-gui, right?19:34
roaksoaxyeah19:34
roaksoaxthere's probably a bug in that charm too19:35
kurt__besides the one that is referenced in that ceph guide - which appears to be broken19:35
roaksoaxyeah probaly things chagned since it was written (the guide)19:35
kurt__so what do you suggest?19:35
roaksoaxredeploy in precise19:35
kurt__reverting to precise19:35
kurt__ok19:35
roaksoaxkurt__: or check the charm config for the juju-gui charm19:35
roaksoaxto see if it allows you to change the ppa where to install juju-gui from19:36
kurt__what part of the charm controls that, do you know?19:37
kurt__or is it done in the environments.yaml?19:38
roaksoaxmaybe in config.yaml19:38
roaksoaxi'd sugesst that the easiest is to use precise19:38
roaksoaxthe easies and fastest19:38
kurt__can precise images be easily mixed with quantal maas cntrl?19:39
roaksoaxyes19:39
roaksoaxwhen you juju deploy you can specify the release you want to install IIRC19:39
roaksoaxor you do it in environments.yaml19:39
kurt__http://pastebin.ubuntu.com/5993936/19:40
kurt__will I need to destroy my maas environment then?19:40
roaksoaxkurt__: yeah change that to precise19:40
roaksoaxkurt__: yeah19:41
kurt__darned :)19:41
roaksoaxhold on19:41
kurt__getting all of the time stuff to work correctly is a bit of a pain19:41
roaksoaxheh not really, it is quite easy tbh19:42
kurt__not with vmware ;)19:42
roaksoaxbut i guess we lack some documentation to get quick started19:42
kurt__I have to set stuff manually in vmware19:42
kurt__to get OAuth to work19:43
kurt__roaksoax: were you checking something before I move forward?19:46
kurt__you asked me to wait19:46
roaksoaxyeah but nonne replies19:47
roaksoaxyeah just destroy and restart19:51
kurt__ok.  thanks roaksoax.  This has been a process trying to get this working :D19:59
roaksoaxheh i bet ;)20:04
kurt__roaksoax: what's the destroy env command for maas?20:35
roaksoaxkurt__: juju destroy-environment20:36
kurt__that's juju20:37
kurt__oh, that's all I need to do then, right?20:37
kurt__maas will recommission nodes20:37
kurt__got it20:37
kurt__do I want to get rid of that juju-origin: ppa parameter?20:40
kurt__roaksoax: success! juju-gui running on vmware fusion on mac osx! :D22:41
roaksoaxkurt__: nice!! see it wasnt so hard once you use precise ;)22:42
kurt__I had a lot of problems in the beginning.  I think its essential for the internal clients to have internet access.22:44
kurt__Next on the agenda is to get openstack working :)22:44
kurt__And to make libvirt work with OSX so maas can automatically start hosts.  That part is tricky22:45
=== CyberJacob is now known as CyberJacob|Away

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