Hi Bernard, I think we have to look into what Packages_servicelists table has now before we get to your questions. Packages_servicelists table shows the list of package services according to the group of nodes. Right now, we have only ganglia(package id = 5) services (gmond and gmetad) and gmond should be run at all nodes(oscar_server and oscar_clients) and gmetad should be run at only oscar_server. mysql> select * from Packages_servicelists; +--------------+------------+---------+ | group_name | package_id | service | +--------------+------------+---------+ | all | 5 | gmond | | oscar_server | 5 | gmetad | +--------------+------------+---------+ 2 rows in set (0.00 sec)
So, services of a package are installed on the nodes whose group is specified in "Package_servicelists" table. > However, it doesn't make much sense when the function > returns services of packages that are not installed (thus it will try > to stop non-existing services). In what case did you get services of packages that are not installed? So, you mean, even though ganglia is not installed on any nodes, when some nodes are removed, we get still the same contents of above Packages_servicelist table and a function will try to restart the services? (Packages_servicelists table is not populated unless ganglia is installed on any nodes). Or since some nodes do not have ganglia installed and they do not belong to the above groups (all or oscar_server), they should not have ganglia services? (currently all nodes should be in one of the above groups: all or oscar_server) ). Well either of cases does not seem to be possible. Regards, - DongInn Bernard Li wrote: > Hi guys: > > I am trying to figure out the exact purpose of this function call. > Should it list all the services of all packages or just the packages > that are installed? > > Either way, we need to be able to pass an argument to it to specify > that we are only interested in services of installed packages. > > This function call is currently used in lib/OSCAR/DelNode.pm such that > services can be stopped and restarted appropriately when a client is > deleted. However, it doesn't make much sense when the function > returns services of packages that are not installed (thus it will try > to stop non-existing services). > > You probably want to check whether the package is installed or not by > using the Group_Packages table. > > Thanks, > > Bernard > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
