You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Sergiy Shyrkov <my...@gmail.com> on 2016/07/26 15:22:54 UTC
Feature and Karaf upgrades
Hello guys,
I would need some hints / help on the following topic, please.
What is the best or proper approach to "replace" (upgrade) of a feature in
Karaf, say, we would like to replace feature "foo-1.0" with "foo-2.0". Our
migration tool is running off-line (Karaf is stopped) and copying the
artifacts/feature descriptor for foo-2.0 to the Karaf system folder (so
the artifacts are available). Now, what is the way to let Karaf upgrade to
that feature when started?
A similar question for the upgrade of Karaf itself.
I saw the "Upgrade guide" (at
https://karaf.apache.org/manual/latest/update-notes.html#_update_guide ).
Does it mean that after an upgrade of Karaf we would need to start a clean
container (meaning purging the data folder with bundle cache, etc.)?
Thank you very much in advance for any hints / directions!
Kind regards
Sergiy
--
Sergiy Shyrkov
Software Architect
Jahia Solutions Group SA
http://www.jahia.com
Re: Feature and Karaf upgrades
Posted by Sergiy Shyrkov <my...@gmail.com>.
Hello,
thank you for the prompt reply and for the details Achim!
We are using Karaf 4.0.5, so this is promising :-)
Kind regards
Sergiy
On Tue, 26 Jul 2016 20:59:40 +0200, Achim Nierbeck
<bc...@googlemail.com> wrote:
> Hi Sergiy,
> The best or proper approach to upgrade features depends on the version
> you use.Now let's assume you're using Karaf 4.0.x. In that case just
> install feature foo-2.0.The feature resolver of Karaf 4 does use the
> same resolver as the bundle resolver.Therefore with installing feature
> foo-2.0, the resolver will find that those bundles and features
> of foo-1.0 aren't used anymore and will un-install those not longer
> needed. At least it should findthose un-used, if not you still have
> others depending on it.
>
> If you're using Karaf 3.x then you'll need to uninstall your feature
> foo-1.0 first and after that install foo-2.0.
> Regarding an upgrade, yes a clean start of Karaf is recommended.
>
> regards, Achim
>
>
> 2016-07-26 17:22 GMT+02:00 Sergiy Shyrkov <my...@gmail.com>:
>> Hello guys,
>>
>> I would need some hints / help on the following topic, please.
>>
>> What is the best or proper approach to "replace" (upgrade) of a feature
>> in Karaf, say, we would like to replace feature "foo-1.0" with
>> "foo-2.0". Our >>migration tool is running off-line (Karaf is stopped)
>> and copying the artifacts/feature descriptor for foo-2.0 to the Karaf
>> system folder (so the >>artifacts are available). Now, what is the way
>> to let Karaf upgrade to that feature when started?
>>
>> A similar question for the upgrade of Karaf itself.
>> I saw the "Upgrade guide" (at
>> https://karaf.apache.org/manual/latest/update-notes.html#_update_guide
>> ).
>> Does it mean that after an upgrade of Karaf we would need to start a
>> clean container (meaning purging the data folder with bundle cache,
>> etc.)?
>>
>>
>> Thank you very much in advance for any hints / directions!
>>
>> Kind regards
>> Sergiy
>>
>>
>> --Sergiy Shyrkov
>> Software Architect
>> Jahia Solutions Group SA
>> http://www.jahia.com
>
>
>
> --
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> & Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
--
Sergiy Shyrkov
Software Architect
Jahia Solutions Group SA
http://www.jahia.com
Re: Feature and Karaf upgrades
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Sergiy,
The best or proper approach to upgrade features depends on the version you
use.
Now let's assume you're using Karaf 4.0.x. In that case just install
feature foo-2.0.
The feature resolver of Karaf 4 does use the same resolver as the bundle
resolver.
Therefore with installing feature foo-2.0, the resolver will find that
those bundles and features
of foo-1.0 aren't used anymore and will un-install those not longer needed.
At least it should find
those un-used, if not you still have others depending on it.
If you're using Karaf 3.x then you'll need to uninstall your feature
foo-1.0 first and after that install foo-2.0.
Regarding an upgrade, yes a clean start of Karaf is recommended.
regards, Achim
2016-07-26 17:22 GMT+02:00 Sergiy Shyrkov <my...@gmail.com>:
> Hello guys,
>
> I would need some hints / help on the following topic, please.
>
> What is the best or proper approach to "replace" (upgrade) of a feature in
> Karaf, say, we would like to replace feature "foo-1.0" with "foo-2.0". Our
> migration tool is running off-line (Karaf is stopped) and copying the
> artifacts/feature descriptor for foo-2.0 to the Karaf system folder (so the
> artifacts are available). Now, what is the way to let Karaf upgrade to that
> feature when started?
>
> A similar question for the upgrade of Karaf itself.
> I saw the "Upgrade guide" (at
> https://karaf.apache.org/manual/latest/update-notes.html#_update_guide ).
> Does it mean that after an upgrade of Karaf we would need to start a clean
> container (meaning purging the data folder with bundle cache, etc.)?
>
>
> Thank you very much in advance for any hints / directions!
>
> Kind regards
> Sergiy
>
>
> --
> Sergiy Shyrkov
> Software Architect
> Jahia Solutions Group SA
> http://www.jahia.com
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master