Hi everyone, the following is about my current work to manually determine package dependencies for the 11 agents, which are part of Colorado-I.
I already got some positive feedback by Detlef Ulherr for SUNWscPostgreSQL, SUNWsctomcat and SUNWscmys, and from Neil Garhtwaite for SUNWscdhc and SUNWscsmb - thanks a lot! I specifically seek review for SUNWscapc (HA Apache) SUNWscdns (HA DNS) SUNWsckrb5 (HA Kerberos) SUNWscnfs (HA NFS) SUNWscs1as (HA SunOne Appserver / Glassfish) since I am not the agent expert for them, I would appreciate if the owners could have a look to verify and sanity check with the dependencies I found and determined. Here is what I did: Step 1) Going through all source files of the individual agents, I did record the commands getting invoked by the code, the corresponding packages for those commands, and which agent did really use them, marked with a "*" in the correspinding row. I did also record which files I did analyze. The result is in a StarCalc sheet, available at http://opensolaris.org/os/project/colorado/files/Colorado-I-IPS-agent-dependencies-20090210.ods Step 2) The StarCalc sheet can get saved as .csv file, where the separator is "," and content of fields is kept in double quotes. The result is available at http://opensolaris.org/os/project/colorado/files/Colorado-I-IPS-agent-dependencies-20090210.cvs.txt Step 3) Have a script which uses awk to extract the package list by looking at the "*" recorded for each package. This then results into a sorted list of uniq packages. The script I used is available at http://opensolaris.org/os/project/colorado/files/map-agent-package-dependency.ksh.txt Step 4) Verify the list shown by the script of Step 3) and insert the missing entries into the usr/src/ipsdefs/<package>/depend_static file. I did leave out entries already recorded within depend_auto. The result can be reviewd within the following webrev: http://cr.opensolaris.org/~frueauf/colorado-1-ips-agent-dependencies/ Please note the following: - I did bump the year to 2009 within the common copyright file. Guess the same needs to be done within the core gate (was only recently done within the pkgdefs area, but not within ipsdefs). Is it ok to have it part of this review/putback? I am also happy to leave it out, if required. - I did add the dependency to the group package ha-cluster-framework-minimal to all packages. That way if the user just installs the agent package, it should pull in all required packages in order to configure a working cluster. - The following files contain questions, where I seek input, before I finalize and send out the webrev to ha-clusters-discuss: * SUNWscapc/depend_static * SUNWscdns/depend_static * SUNWsckrb5/depend_static * SUNWscnfs/depend_static * SUNWscs1as/depend_static a) for some I am not sure to record the OpenSolaris package dependency for the application - specifically I don't know if it is a good idea to depend on just one version. I would be fine with nfs and krb5, but I doubt if we want that for dns and apache - although we have hardcoded paths. At least in the case of apache we offer choice, and maybe users do not want both versions. b) for the non-GDS based agents my auto conversion recorded the dependencies from the pkgdefs common depend file. I would tend to delete those entries, but would like to get feedback how reasonable they are. Greets Thorsten -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~