Skip to main content

[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs

  • From: Bart Smaalders < >
  • To:
  • Subject: [pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs
  • Date: Wed, 21 Aug 2013 11:50:39 -0700
  • Organization: Oracle

On 08/20/13 23:50, Sajith C.R. wrote:
Thanks Tim and Bart for info.
I am still facing the issue even after adding SMF dependencies.
I have added optional_all dependencies for SMF-X depends SMF-Y depends SMF-Z 
so that disable of SMF-Z is called first, then SMF-Y and then SMF-X. But 
still they get called in parallel when uninstalling the packages.
Is this a SMF issue or IPS issue?

Thanks & Regards,
Sajith


-----Original Message-----
From: Bart Smaalders 
[mailto: ]
Sent: Monday, August 19, 2013 11:08 PM
To: 

Subject: [pkg-discuss] Re: Issues with SMF services while uninstalling IPS 
pkgs

On 08/18/13 04:26 PM, Tim Foster wrote:


The OS doesn't start or stop SMF services serially, so making changes to
IPS to do so would just move the problem elsewhere (eg. nothing would
stop a user running multiple 'svcadm disable' commands in parallel)

If something's breaking because you expect services to be stopped
serially, then you really need to fix that by defining SMF dependencies,
as you suggest.


There is an RFE open to add a command line flag to pkg(1) to have it
wait until all actuators have finished starting/stopping before
returning, but I don't think that will really help you here.

We _must_ disable all the services at once, because pkg doesn't parse
smf manifest.

Note that pkg is designed to combine the total changes to the system
requested by the user into a single operation, and the resulting
changes are made to the system as one single packaging operation,
NOT as a series of packaging operations.  This is required in order
to allow packages to exchange content, rename directories, etc.

Services are disabled (and restarted/enabled) the same way - as a
single call to svcadm.  This is necessary since pkg cannot and should
not determine which one to do first; instead, that's left to SMF
to decide using the dependencies specified in the manifests.

If your services are missing dependencies, you'll need to add
them so that services are disabled in the correct order.

- Bart





I discussed this with the smf team.  They suggested that
you'll need to make sure that the restart_on attribute of the dependency needs to be set to "restart" for this to work.

- Bart



--
Bart Smaalders                  Solaris Core OS

  http://blogs.oracle.com/barts
"You will contribute more with Mercurial than with Thunderbird."
"Civilization advances by extending the number of important
 operations which we can perform without thinking about them."


[pkg-discuss] Issues with SMF services while uninstalling IPS pkgs

Sajith C . R . 08/17/2013

[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs

Tim Foster 08/18/2013

[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs

Bart Smaalders 08/19/2013

[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs

Sajith C . R . 08/21/2013

[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs

Bart Smaalders 08/21/2013
 
 
Close
loading
Please Confirm
Close