Bug 577 - need service action for smf(5) manifests
: need service action for smf(5) manifests
Status: RESOLVED FIXINSOURCE
Product: pkg
actions
: unspecified
: Other Solaris
: P3 minor (vote)
: ---
Assigned To: Bart Smaalders
: pkg/actions watcher
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-02-21 15:26 UTC by Stephen Hahn
Modified: 2008-10-10 22:40 UTC (History)
9 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Stephen Hahn 2008-02-21 15:26:13 UTC
We need a service action to simplify delivery (and removal) of smf(5) services
delivered via manifests in packages.  The initial functionality of the service
action should be 

1.  Install/remove/update service and instances based on manifest contents, and

2.  Register the service-package relationship in an index.
Comment 1 Bart Smaalders 2008-02-21 17:34:28 UTC
I've started working on this; there are a couple of subtleties to note:

 * a manifest file can deliver more than one service
 * addition/removal/upgrade to a live root image needs to run
   appropriate smf commands - see [ir].manifest files in ON Nevada gate
 * moving manifests between packages appears as a removal and then a 
   installation of a new manifest.  This will delete user customizations
   until support for this goes into smf profiles project, so for now manifest   
   migration between pkgs should be done in non-live images.

- Bart
Comment 2 David Comay 2008-02-21 21:42:03 UTC
*** Bug 574 has been marked as a duplicate of this bug. ***
Comment 3 David Comay 2008-02-21 21:43:48 UTC
*** Bug 560 has been marked as a duplicate of this bug. ***
Comment 4 Bart Smaalders 2008-02-22 18:47:48 UTC
This turns out to be fairly simple to implement w/ a subclass of the file
action.
The only additional attribute is fmri; this is required and is the one or more
fmris delivered by the manifest.  The inclusion of the file hash via
subclassing means the service action will be updated whenever the manifest
changes; this will insure that modifying the manifest will cause it to be
re-imported on a live system.  The fmris are also indexed so that searching for
which package delivers a service is simple.
Comment 5 David Comay 2008-04-22 22:04:30 UTC
*** Bug 1413 has been marked as a duplicate of this bug. ***
Comment 6 Bart Smaalders 2008-10-10 22:40:31 UTC
Fixed in 584:22bc748edce6