Bug 8198 - installadm delete-service doesn't remove service's data directory.
: installadm delete-service doesn't remove service's data directory.
Status: RESOLVED FIXED
Product: installer
installadm
: unspecified
: ANY/Generic OpenSolaris
: P2 critical (vote)
: ---
Assigned To: Alok Aggarwal
:
:
: 2009.06-04
:
:
: 6372
  Show dependency treegraph
 
Reported: 2009-04-15 10:49 UTC by Ethan Quach
Modified: 2009-04-17 07:37 UTC (History)
2 users (show)

See Also:


Attachments


Note

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


Description Ethan Quach 2009-04-15 10:49:05 UTC
delete-service, with or without -x, isn't removing the install service's
/var/ai/<port> directory.  Upon the next create-service, the new service
could end up just re-using that directory in it entirety without even
knowing.

Workaround:

  After deleting a service, rm -rf its /var/ai/<port> directory.
Comment 1 Ethan Quach 2009-04-15 11:25:21 UTC
I'm marking this a potential blocker.  The potential issue is that when
an existing /var/ai/<port> data directory is reused for some new
service, the default manifest in that directory might not be compatible
with the new service.
Comment 2 Alok Aggarwal 2009-04-16 15:24:32 UTC
/var/ai/<port> gets re-used multiple times when create-service/delete-service
is done. The failure to clean out /var/ai/<port> upon a delete-service then 
can potentially result in stale information being used to serve up a new
service thus leaving the door open for ensuing pandemonium.

Implementing the fix to remove /var/ai/<port> when a delete-service is done.
Comment 3 Alok Aggarwal 2009-04-17 07:37:23 UTC
Fixed in changeset 543:b159355029e1