[Carbon-dev] Uninstalling features
samindaw at wso2.com
Thu Sep 24 00:33:00 PDT 2009
The reason for this type of behaviour is the dependancies among features.
For example the service-management feature is dependant on service-hosting
feature. Therefore if you try to uninstall the service hosting feature it
will not be uninstalled since the service-management feature is dependant on
* Imagine the case you have a pure carbon and you try to install
service-management only. Then due to the dependency the service-hosting will
also be installed as a dependant feature. how p2 sees the installed features
will be like this,
\_ service-hosting feature
Here the service-hosting is present as a subfeature of service-management.
If you try to uninstall the service-management feature it will uninstall
both service-management and service hosting features.
* Imagine you try to install both the service-hosting and service-management
features (in the given order). Then the p2 will see the installed features
Here both the service-hosting and service-management features are in the
scenario 1: uninstall the service-management feature only the
service-management will be uninstalled and service-hosting is left intact.
* feature b*
* feature c*
* feature d*
scenario 2: uninstall the service-hosting feature.
* \_ service-hosting feature*
What happens here is that thoerotically the service-hosting feature is
uninstalled. But due to the dependancy the profile is updated to look at it
as a dependant feature for service-management feature. Therefore practically
speaking the service-hosting feature isn't uninstalled.
Currently our command line commands do not depict these dependencies. We
need to update it to show dependancies so that they can understand why some
features were not uninstalled. I think we can clearly show these once we got
UI console for p2 up and running.
On Thu, Sep 24, 2009 at 9:55 AM, Sameera Jayasoma <sameera at wso2.com> wrote:
> Hi Srinath.
> The bundle you were trying to uninstall "*
> org.wso2.carbon.governance.ui.policy*" belongs to the "*
> org.wso2.carbon.governance.metadata.server.feature.group*" feature. AFAIK,
> it is not possible to uninstall the bundle, because there is a feature
> depends on the it. The recommended approach is to perform provisioning
> operations with features, not with bundles. And also we haven't tested this.
> But you can install/uninstall bundles and p2 will figure out the depedencies
> and install them also.
> Here are the steps that I followed to uninstell metadata feature and they
> worked :)
> osgi> provaddrepo
> // add the metadata repo
> osgi> provaddartifactrepo
> // add the artifact repo
> You need add the repository even when you need to uninstall things.
> osgi> provlinstalledg //lists the installed features
> osgi> provuninstall org.wso2.carbon.governance.metadata.ui.feature.group
> This metadata feature depends on following bundles. In order to achieve
> your goal of uninstalling ui.policy bundle, now you can try installing
> following bundle except the ui.policy bundle. This may not work for other
> features. :)
> On Wed, Sep 23, 2009 at 9:58 PM, Afkham Azeez <azeez at wso2.com> :
> I heard that you need to add the repo first to avoid this issue. You cannot
>> uninstall bundles but only features. So you need to do a "provlg" and get
>> the list of features and then uninstall.
>> On Tue, Sep 22, 2009 at 12:08 PM, Srinath Perera <srinath at wso2.com>wrote:
>>> Hi All;
>>> I am trying to uninstall selected features from carbon. I tried
>>> following command
>>> provuninstall org.wso2.carbon.governance.ui.policy 2.0.1
>>> But got the following error. Can anyone has a clue?
>>> uninstallation failed
>>> Installable unit not found: org.wso2.carbon.governance.ui.policy 2.0.1
>>> Repositories searched:
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at java.lang.Thread.run(Thread.java:619)
>>> Srinath Perera, Ph.D.
>>> WSO2 Inc. http://wso2.com
>>> Blog: http://srinathsview.blogspot.com/
>>> Carbon-dev mailing list
>>> Carbon-dev at wso2.org
>> Afkham Azeez
>> azeez at wso2.com
>> WSO2 Inc. http://wso2.com
>> Blog: http://afkham.org
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
> Carbon-dev mailing list
> Carbon-dev at wso2.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Carbon-dev