Hi all:

Okay I am adding additional information to the RFC so hopefully this
will make it more clear.  I hope to get this implemented soon so that I
can put Ganglia into SVN as a provided package.

In the previous email I have described what config.xml and the tags will
look like, now I would like to describe the new table that needs to be
added to oscar:

packages_servicelists
---------------------

fields: service    (name of service, eg. gmond, gmetad)
        __group    (which group this service belongs to: eg.
oscar_server, oscar_clients)
        package_id (ID number of the package)
 
We also need to write some API code to gather all the services that a
current node is providing.  This can be determined by:

1) Getting a list of all the packages installed on the node
2) Getting a list of all the services which are provided by all the
packages installed on the node

With this list of service names, I simply need to write a routine to
either start/stop all of the services.

Lastly, I will have to modify DelNode.pm to execute the stopping of
services on the node, (and possibly restart the server services), before
the node is actually deleted.

That's all - I hope this makes sense.  I plan to implement this ASAP.

Thanks,

Bernard

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Bernard Li
> Sent: Thursday, September 16, 2004 17:31
> To: [EMAIL PROTECTED]
> Subject: [Oscar-devel] RFC: OSCAR Package config.xml field 
> addition - service
> 
> Hi there:
> 
> I would like to propose that we add a new field in OSCAR 
> Package's config.xml file called 'service'.  This would store 
> the name of the service which a package provides.  It could 
> be divided up like the rpmlist into server and client, an 
> example for Ganglia:
> 
> <servicelist>
>   <service>gmond</service>
> </servicelist>
> <servicelist>
>   <filter group="oscar_server"/>
>   <service>gmetad</service>
> </servicelist>
> 
> This information also needs to be stored in ODA, could be 
> useful for cases when you want to remove a node, you can get 
> back a list of services from all the packages that are 
> installed on the node and turn off all the services before 
> removing the node from the system.
> 
> (The rationale here is right now, if you remove a node with 
> Ganglia installed, it still sends information back to the 
> headnode so that is not good).
> 
> Thanks,
> 
> Bernard
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one 
> of 170 Project Admins to receive an Apple iPod Mini FREE for 
> your judgement on who ports your project to Linux PPC the 
> best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php 
> _______________________________________________
> Oscar-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/oscar-devel
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to