Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

Dev Chat 07/07/2011

VERSION 1 
Created on: Aug 3, 2011 10:09 AM by Nick Yeates - Last Modified:  Aug 3, 2011 10:38 AM by Nick Yeates

Paul gave details on new 3.x UI -> Routers -> Facades Code methodologies

 

[07-Jul-2011 09:34:14] <Jane_Curry> Got a new version of the UserRoles ZenPack
[07-Jul-2011 09:35:05] <Jane_Curry> There was a super append from Chet yesterday with ZenPack example code - message/59676#59676 did you see it??
[07-Jul-2011 09:36:43] <Keo-w> ther an easy way for zenoss only to alert me for specific events. right now it's alerting me for like every warning.
[07-Jul-2011 09:42:50] <jmp242> Keo-w: check the Admin guide
[07-Jul-2011 09:42:55] <jmp242> for Alerting rules
[07-Jul-2011 09:43:00] <jmp242> and set up appropriate ones
[07-Jul-2011 09:45:48] <jmp242> Hey, anyone seen this thread? message/59680#59680
[07-Jul-2011 09:46:03] <jmp242> I'm wondering if I'm right that he needs to modify a component template to get disk queue lenght
[07-Jul-2011 09:47:25] <Hackman238> Jane_Curry: Interesting
[07-Jul-2011 09:47:53] <Hackman238> Jane_Curry: Oh, you'll be happy to know I'm building a Zenoss 3.x/4 Technique zenpack
[07-Jul-2011 09:48:38] <Hackman238> jmp242: Thats correct
[07-Jul-2011 10:18:56] <fragfutter> jmp242: if i'm not totaly of, just create a template with the same name somewhere in the tree. Components will also walk up the tree until they find one matching their name
[07-Jul-2011 10:24:26] <jmp242> Oh ok
[07-Jul-2011 10:24:30] <jmp242> Thanks fragfutter
[07-Jul-2011 10:26:44] <Jane_Curry> Hackman238: Great to hear you are building a ZenPack - bad news that we might need one!
[07-Jul-2011 10:27:02] <dhopp> Hackman238:  zenoss 3.x/4 technique zenpack?  what is that for?
[07-Jul-2011 10:35:09] <Hackman238> Jane_Curry: I dont understand
[07-Jul-2011 10:35:40] <Hackman238> dhopp: Zenpack that covers all the mysterious UI functionality of Zenoss 3.x/4 zenpacks
[07-Jul-2011 10:36:08] <fragfutter> i would guess it is a hint at not getting documentation from zenoss inc
[07-Jul-2011 10:36:17] <Jenza> Jane_Curry: Hey, are you about?
[07-Jul-2011 10:37:04] <Hackman238> fragfutter: 'Hint hint-idy hint hint' as said by Stewie from Family Guiy
[07-Jul-2011 10:37:19] <dhopp> Hackman238:  as a learning tool?
[07-Jul-2011 10:37:35] <Hackman238> fragfutter: Just kidding. Its my understanding Zenoss will soon hit us with some useful docs.
[07-Jul-2011 10:38:00] <Hackman238> dhopp: Yes.
[07-Jul-2011 10:38:08] <dhopp> Hackman238:  very nice
[07-Jul-2011 10:48:16] <rocket> that is the plan .. however examples are always nice to go with documentation
[07-Jul-2011 11:01:23] <Jane_Curry> Jenza: Yup.....
[07-Jul-2011 11:01:58] <Jenza> Was just going to say thanks for the Juniper zenpack.
[07-Jul-2011 11:02:14] <Jane_Curry> So what's the plan for providing better documentation - it's been talked about for many months now......
[07-Jul-2011 11:02:23] <Jenza> Found one bug in the Juniper device bit, but I think it only rears it's head when you're using an olive
[07-Jul-2011 11:02:31] <Jane_Curry> Jenza: Great - what have you tested it against?
[07-Jul-2011 11:02:37] <Jenza> Just olives
[07-Jul-2011 11:02:44] <Jenza> so, virtualised junipers.
[07-Jul-2011 11:02:59] <Jane_Curry> Any issues???
[07-Jul-2011 11:03:26] <Jenza> Just wait I said earlier. Given it's virtual a few of the maps don't work
[07-Jul-2011 11:03:32] <Jenza> but there was one bit in the juniper device, sec.
[07-Jul-2011 11:04:20] <Jenza> om.setHWProductKey doesn't get set and it throws an error when trying to concat NoneType + str
[07-Jul-2011 11:04:28] <Jenza>   File "/opt/zenoss/ZenPacks/ZenPacks.ZenSystems.Juniper-1.0-py2.6.egg/ZenPacks/ZenSystems/Juniper/modeler/plugins/JuniperDeviceMap.py", line 49, in process
[07-Jul-2011 11:04:28] <Jenza>     om.setHWProductKey = om.setHWProductKey + ' ' + om._modelNumber
[07-Jul-2011 11:04:28] <Jenza> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
[07-Jul-2011 11:04:36] <Jenza> Apart from that it works fine
[07-Jul-2011 11:13:28] <Jane_Curry> Is this an official IRC now???
[07-Jul-2011 11:16:46] <f00fSteR> welcome chan!
[07-Jul-2011 11:17:25] <nyeates> Hello anyone.
[07-Jul-2011 11:17:45] <nyeates> Today, now, 15 mins ago, is a scheduled developer chat.
[07-Jul-2011 11:18:02] <fragfutter> back to the future
[07-Jul-2011 11:18:10] <jmp242> nice - dev chat
[07-Jul-2011 11:18:21] <nyeates> To be truthful, I missed it because literally we are smack in the middle of heavy community replanning.
[07-Jul-2011 11:18:49] <jmp242> Hmm, are we going to have a community discussion?
[07-Jul-2011 11:19:23] <nyeates> We had a internal meeting yesterday and had some good debate. No decisions yet - just putting out all of the communities and our frustrations.
[07-Jul-2011 11:21:19] <nyeates> I belive Simon is drafting a discussion question for the blog.
[07-Jul-2011 11:23:01] pmcguire is now known as ptmcg
[07-Jul-2011 11:23:33] <Jane_Curry> so what shall we chat about today..............................
[07-Jul-2011 11:23:33] <nyeates> So fire away any dev questions, etc. I just got Paul to come over
[07-Jul-2011 11:23:43] <ptmcg> Sorry, I overslept
[07-Jul-2011 11:23:56] <nyeates> All of Zenoss Inc overslept today
[07-Jul-2011 11:24:04] <Jane_Curry> So what's the plan for providing better documentation for ZenPacks - it's been talked about for many months now......
[07-Jul-2011 11:24:05] <ptmcg> (not really, was digging into some WMI bits)
[07-Jul-2011 11:24:07] <rocket> Paul you didnt do that did you?
[07-Jul-2011 11:24:51] <Jane_Curry> Sounds like Hackman238 is building a zenoss 3.x/4 technique zenpack - could we have more details??
[07-Jul-2011 11:25:19] <ptmcg> I don't know if I would call it a "plan", but I was just putting together some integration notes for the post-Avalon Dev Guide update - new integration points for event processing
[07-Jul-2011 11:26:06] <ptmcg> So I think there is a new Dev Guide in the works after Avalon goes out, but I don't know timing - I think there is a *lot* of updating needed for that doc
[07-Jul-2011 11:28:04] <rocket> nyeates: this probably will be something you and/or the additional resource for community should be driving
[07-Jul-2011 11:28:21] <rocket> Jane_Curry: I know internally we are supposed to help you with your docs when we get time.
[07-Jul-2011 11:28:39] <ptmcg> I was working on some ZenPack tickets this week, and I see that there is a ZenPackTemplate directory in core - is that supposed to be the pattern for ZenPack devs to follow?
[07-Jul-2011 11:28:55] <nyeates> Yes. when we go from 1 PT position to 2FT community positions it will help. Also an increased focus on technical aspects of the community has been discussed.
[07-Jul-2011 11:29:16] <Jane_Curry> yeh - no disrespect but you guys don't exactly have spare time coming out of your ears....
[07-Jul-2011 11:30:15] <ptmcg> That is one of the most respectful comments I've heard in months, actually
[07-Jul-2011 11:30:31] <nyeates> The thing that paul said above is that it was about avalon and events - so really this means nothing to community right now. Im fighting fighting for relstorage and the new event system and my hopes are that we can see these come to the community... and therefore also the documentation.
[07-Jul-2011 11:30:54] <ptmcg> Ah, sorry
[07-Jul-2011 11:31:41] <Hackman238> Jane_Curry: Details on the pack?
[07-Jul-2011 11:32:12] <nyeates> It was relevant, Im glad you spoke up Paul, as sometimes other devs do not....
[07-Jul-2011 11:32:35] <Jane_Curry> If you have them - and they are shareable - yup
[07-Jul-2011 11:32:49] <nyeates> I am curious to hear these details too, as im not aware of them either
[07-Jul-2011 11:34:31] <Hackman238> Its just a zenpack for Zenoss 3.x and 4 that implements various GUI methods in a well commented manner so another zenpack author can unzip it and find the parts of the UI that they need to implement into their pack
[07-Jul-2011 11:35:05] <Hackman238> Basically a working model
[07-Jul-2011 11:35:18] <fragfutter> Hackman238: you know paster templates?
[07-Jul-2011 11:35:38] <Hackman238> fragfutter: I dont understand
[07-Jul-2011 11:36:49] <Jane_Curry> Hackman238: sounds incredibly useful - like the Zenoss example ZenPack - in spades, doubled & vulnerable
[07-Jul-2011 11:37:18] <fragfutter> Hackman238: in plone (and a few other products) paster is used to generate the basic structure of a new "module".
[07-Jul-2011 11:37:29] <nyeates> Hackman238: is there a location / url for it yet?
[07-Jul-2011 11:37:50] <Hackman238> nyeates: Negative. Not yet, soon though.
[07-Jul-2011 11:38:18] <Hackman238> nyeates: It covers the '+' menus, custom facades, dynamic views, etc
[07-Jul-2011 11:39:26] <Jane_Curry> Dynamic Views - this sounds like Enterprise (aka Service Dynamics )
[07-Jul-2011 11:39:43] <nyeates> Hmmm, ive just learned about facades being conglomerate external interfaces - sort of like an API, but different.
[07-Jul-2011 11:39:50] <nyeates> this is avalon stuff
[07-Jul-2011 11:41:05] <Jane_Curry> Different question - why have I acquired a green jersey in the chat people menu???
[07-Jul-2011 11:41:16] <nyeates> Also routers, but not the networking type, the code type. Being a class that the browser interacts with.
[07-Jul-2011 11:41:49] <nyeates> Hopefully ppl in here will be needing to know this avalon stuff soon in the future :-)
[07-Jul-2011 11:42:11] <fragfutter> Jane_Curry: i would guess op (irc op status)
[07-Jul-2011 11:42:14] <nyeates> I gave you auto Ops. IRC channel operator.
[07-Jul-2011 11:42:27] <Jane_Curry> Still waiting for any announcements that say anything though
[07-Jul-2011 11:43:04] <Jane_Curry> fragfutter: and what does irc op status mean / confer (not being a guru in any way on chat....)
[07-Jul-2011 11:43:16] <Hackman238> Jane_Curry: Yes, dynamic view is only ent
[07-Jul-2011 11:43:19] <nyeates> Me and a few devs felt it was weird to have only Zenoss Inc be ops. A first step in a better direction of shared community interaction, I hope Jane.
[07-Jul-2011 11:43:24] <fragfutter> Jane_Curry: you can kick me if i start to annoy you
[07-Jul-2011 11:43:39] <Hackman238> Jane_Curry: Op
[07-Jul-2011 11:43:50] <fragfutter> Jane_Curry: change the topic, so everyone knows that now is a dev session (because nyeates forget to change it)
[07-Jul-2011 11:43:59] <ptmcg> UI->router->facade->impl code was set up pre-Avalon, Nick
[07-Jul-2011 11:44:13] <Jane_Curry> Still waiting for any announcements that say anything though - this was in answer to Nick hoping that us Core folk would need to know about Avalon stuff
[07-Jul-2011 11:44:19] <nyeates> Paul: thx for correction:-)
[07-Jul-2011 11:44:41] <nyeates> What is impl?
[07-Jul-2011 11:45:15] <ptmcg> implementation
[07-Jul-2011 11:45:33] <Jane_Curry> Can you point me to help stuff on op status - how do I change the topic
[07-Jul-2011 11:45:41] <Simon4>  /topic foo
[07-Jul-2011 11:45:52] <ptmcg> Great Simon, you just changed the topic!
[07-Jul-2011 11:46:01] <Jane_Curry> works!
[07-Jul-2011 11:46:04] <nyeates> ptmcg: And the arrows denote some hierarchy, or no?
[07-Jul-2011 11:46:06] <Simon4> ptmcg: apart from my lack of ops?
[07-Jul-2011 11:46:21] <ptmcg> Not hierarchy, calling flow
[07-Jul-2011 11:47:10] <Jane_Curry> I know I'm getting to sound like an echo here, but...
[07-Jul-2011 11:47:49] <Jane_Curry> So what's the plan for providing better documentation for ZenPacks - it's been talked about for many months now......
[07-Jul-2011 11:47:50] <nyeates> ptmcg: What does calling flow mean? Can you explain this?
[07-Jul-2011 11:49:31] <nyeates> Jane: There is no specific, detailed plan currently. The only thing on my list is to get your docs reviewed, and that kind of got put on hold b/c of this community upheavel. It will be easier to make this plan once we know where community direction is headed, and what resources we have, etc.
[07-Jul-2011 11:50:40] <ptmcg> (I hope I'm getting this right) The UI calls back to the Zope server, which dispatches to a router, which calls the facade, which then calls the actual implementation code, which then returns the data back to the facade, to the router, to the webserver, which sends the response back to the UI
[07-Jul-2011 11:51:39] <fragfutter> ptmcg: sounds legit
[07-Jul-2011 11:53:21] <Jane_Curry> ptcmg: sounds COMPLICATED!!!
[07-Jul-2011 11:53:23] * gloin wants to ask a support-type question but does not want to interfere with dev chat. Alas!
[07-Jul-2011 11:53:36] <nyeates> Complex was my first thought too.
[07-Jul-2011 11:53:40] <ptmcg> Each layer does its own work at its own level of abstraction - the implementation code can work in the functional space of the domain objects, independent of any operation within a webserver, or any pollution of browser/http details
[07-Jul-2011 11:54:05] <Hackman238> fragfutter: Nein, sorry
[07-Jul-2011 11:55:26] <fragfutter> Hackman238: then ignore my question and continue. It's not worth the effort to learn it. It would only have been a nice idea to get a zenpack-template constructor.
[07-Jul-2011 11:55:54] <Hackman238> fragfutter: I'll add it to my list of things to read up on for future projects
[07-Jul-2011 11:56:47] <Hackman238> ...to do list has recenty grown by a magnitude of 10 since I just aquired the licensing and resources for one of my long standing projects.
[07-Jul-2011 11:57:47] <ptmcg> The router layer deals with interactions with the webserver, adapting requests to the facade API; the facade API gives a consistent interface to underlying domain objects
[07-Jul-2011 11:58:42] <jmp242> gloin: ask away, dev chat is good for that too
[07-Jul-2011 11:58:45] <ptmcg> The underlying domain objects interact among themselves with many object interfaces, but the facade only exposes the significant parts of those interfaces
[07-Jul-2011 11:58:51] <nyeates> ptmcg: are routers and facades general design patterns, or specific to python or js?
[07-Jul-2011 11:58:51] <Hackman238> ptmcg: Ever seen this problem? "ERROR:zen.RRDView:(111, 'Connection refused')" while doing a getRRDValues?
[07-Jul-2011 11:59:45] <ptmcg> They are general design patterns - I've used them in Python, Java, C++...
[07-Jul-2011 12:00:01] [disconnected at Thu Jul  7 12:00:01 2011]
[07-Jul-2011 12:00:02] [connected at Thu Jul  7 12:00:02 2011]
[07-Jul-2011 12:00:21] [zenoss-logger (logger bot) has joined #zenoss]
[07-Jul-2011 12:00:33] <ptmcg> Hackman238: doesn't ring a bell, one of the support guys may have more insight on it
[07-Jul-2011 12:00:34] <Jane_Curry> ptmcg: We need a picture - or pictures....
[07-Jul-2011 12:00:49] <gloin> thanks jmp242. I'm trying to install the LDAP plugins and can't because on RHEL the systemwide install is python2.4 while the zenoss rpm packages provide a local instance of python2.6 that does not provide python-ldap. Trying to install python-ldap by hand is leading to dependency nightmare.
[07-Jul-2011 12:01:21] <jmp242> Hmmm, are you sure you're installing it via the .egg easy install in the "correct" python version?
[07-Jul-2011 12:01:22] <Hackman238> Jane_Curry: ASCII diagrams!
[07-Jul-2011 12:01:24] <jmp242> i.e. the local one
[07-Jul-2011 12:01:33] <jmp242> do it as the zenoss user etc. . .
[07-Jul-2011 12:01:48] <nyeates> ptmcg: This is good info you just gave us - hopefully it will be in the dev guide you said you were working on. Nad as jane said, pictures are nice.
[07-Jul-2011 12:01:55] <Jane_Curry> I'll settle for PDF piccys on the website
[07-Jul-2011 12:02:05] <fragfutter> gloin: login as zenoss user, run easy_install python-ldap
[07-Jul-2011 12:02:12] <nyeates> ...or napkin snapshots ;-)
[07-Jul-2011 12:02:20] <gloin> jmp242: going per here: docs/DOC-2510
[07-Jul-2011 12:02:48] <ptmcg> IRC constrains my graphical options...
[07-Jul-2011 12:02:58] <Jane_Curry> or whiteboard photos...
[07-Jul-2011 12:02:59] <gloin> fragfutter: thanks!
[07-Jul-2011 12:03:23] <jmp242> yea, what he said
[07-Jul-2011 12:03:30] <gloin> fragfutter: nevermind, build fails just as it did when I tried by hand
[07-Jul-2011 12:03:36] <jmp242> that page is almost certainly wrong
[07-Jul-2011 12:04:02] <ptmcg> gloin: I worked on the LDAP upgrade for 3.0, isn't there also a new dependency on pyasn...
[07-Jul-2011 12:04:05] * ptmcg checking notes
[07-Jul-2011 12:05:07] <jmp242> hmm, it seems like you can't install python-ldap using yum to me
[07-Jul-2011 12:05:18] <gloin> jmp242: only for python2.4
[07-Jul-2011 12:05:48] <ptmcg> Man, these notes are from last July!
[07-Jul-2011 12:06:00] <fragfutter> thats why you need to run an easy_install.
[07-Jul-2011 12:06:15] <gloin> fragfutter: and easy_install fails
[07-Jul-2011 12:06:18] <jmp242> Just what I thought
[07-Jul-2011 12:06:26] <jmp242> are you runnin easy_install in the local python?
[07-Jul-2011 12:06:29] <fragfutter> and it tells you that it misses what? gcc? some headers?
[07-Jul-2011 12:06:42] <gloin> In file included from Modules/LDAPObject.c:18:
[07-Jul-2011 12:06:42] <gloin> /usr/include/sasl/sasl.h:349: warning: function declaration isn’t a prototype
[07-Jul-2011 12:06:51] <gloin> etc
[07-Jul-2011 12:07:06] <fragfutter> gloin: and a bit up most likely something about a missing header
[07-Jul-2011 12:07:50] <gloin> http://pastebin.com/wgE4jzhE
[07-Jul-2011 12:08:07] <gloin> It might be in there but I'm not seeing it
[07-Jul-2011 12:09:27] <nyeates> Any ideas for a channel topic? Humor encouraged
[07-Jul-2011 12:09:57] <fragfutter>  /topic community will get avalon, message queue and relstorage in 2011
[07-Jul-2011 12:10:12] <Simon4>
[07-Jul-2011 12:10:14] <gloin>  /topic http://www.youtube.com/watch?v=FvR6HOGWgn0 if you see gloin, run!
[07-Jul-2011 12:10:32] <Hackman238> All your bits r belong to us?
[07-Jul-2011 12:11:09] <gloin> fragfutter: did you see pastebin? Only 37 lines long
[07-Jul-2011 12:12:03] <gloin> I'm not sure why easy_install run is assuming presence of /opt/openldap-RE24/ since none such exists
[07-Jul-2011 12:12:22] <fragfutter> gloin: *hm* maybe the 2.4.1 pyhton ldap requires a newer cyrus library
[07-Jul-2011 12:12:52] <gloin> back to dependency hell
[07-Jul-2011 12:13:18] <nyeates> We had a tshirt that said that
[07-Jul-2011 12:13:20] <dhopp> Hackman238:  on your Core installs are any of them 3.x?
[07-Jul-2011 12:13:23] <jmp242> I have some
[07-Jul-2011 12:13:28] <jmp242> I love them nyeates
[07-Jul-2011 12:13:32] <gloin> ActiveDirectory (This object from the LDAPMultiPlugins product is broken!)
[07-Jul-2011 12:13:34] <gloin> hrm
[07-Jul-2011 12:14:14] <Hackman238>  --/topic grep "def doom" $ZENHOME/lib/* -R
[07-Jul-2011 12:14:23] <Hackman238> dhopp: Yes
[07-Jul-2011 12:14:27] <ptmcg> gloin: my notes from a year ago indicate these versions:  python-ldap 2.3.11, OpenLDAP 2.24.1, OpenSSL 0.9.80, cyrus-sasl 2.1.23
[07-Jul-2011 12:14:27] <fragfutter> gloin: do you require sasl?
[07-Jul-2011 12:14:35] <dhopp> Hackman238:  do you have them connecting to LDAP?
[07-Jul-2011 12:14:40] <Hackman238> dhopp: Yes
[07-Jul-2011 12:14:46] <dhopp> Hackman238:  what OS?
[07-Jul-2011 12:14:51] <dhopp> Hackman238:  Centos 5?
[07-Jul-2011 12:14:54] <Hackman238> dhopp: Redhat, RPM install
[07-Jul-2011 12:14:55] <ptmcg> gloin: so 2.4.1 is beyond what I had
[07-Jul-2011 12:15:22] <gloin> wondering if I need to do a reinstall
[07-Jul-2011 12:15:48] <gloin> the tricky part was this is a dev box to test upgrades, it started off at 2.5 using a zenrestore from the production box
[07-Jul-2011 12:15:51] <Hackman238> gloin: What OS, and zenoss install type?
[07-Jul-2011 12:15:57] <gloin> the upgrade to 3 went fine
[07-Jul-2011 12:16:06] <gloin> Hackman238: rhel5, rpm upgrade
[07-Jul-2011 12:16:23] <Hackman238> gloin: Should not have such trouble with ldap
[07-Jul-2011 12:16:50] <Hackman238> gloin: protip- rpm's of dep libraries wont work unless you want to link all over.
[07-Jul-2011 12:17:04] <Hackman238> gloin: Let me check my docs
[07-Jul-2011 12:17:05] <dhopp> Hackman238:  I had some issues because 3.x using python 2.6 by centos/redhat 5 uses 2.4
[07-Jul-2011 12:17:23] <Hackman238> dhopp: Like I said, cant use the rpm's for the deps
[07-Jul-2011 12:18:17] <gloin> Hackman238: so instead of rpm should it be stack install?
[07-Jul-2011 12:18:26] <Hackman238> gloin: no no
[07-Jul-2011 12:18:43] <Hackman238> gloin: rpm deps for ldap is what I am refering to
[07-Jul-2011 12:18:48] <gloin> ah
[07-Jul-2011 12:18:55] <gloin> so how to work around
[07-Jul-2011 12:19:05] * gloin sees fixing a wiki page somewhere after all this is done
[07-Jul-2011 12:19:07] <Hackman238> download python-ldap-2.3.13.tar.gz
[07-Jul-2011 12:19:11] <Hackman238> unzip as zenoss user
[07-Jul-2011 12:19:14] <Hackman238> cd to dir
[07-Jul-2011 12:19:25] <Hackman238> as zenoss, python setup.py install
[07-Jul-2011 12:19:34] <gloin> ok
[07-Jul-2011 12:19:48] <Hackman238> download LDAPUserFolder-2.12.tgz & LDAPMultiPlugins-1.7.tgz and install as perscribed
[07-Jul-2011 12:20:18] <nyeates> Thanks everyone for dev chat. Devs.... free to roam :-)
[07-Jul-2011 12:21:22] * ptmcg back to WMI...

Comments (0)