Why the osgi:update command rolls back the patched bundle to older bundle version.
Issue
- Why the
"osgi:update"command rolls back the patched bundle to older bundle version.
Step-1). Take a fresh JBoss A-MQ 6.0 and then start it.
Step-2). Check the "mq-web-console" bundle ID (60)
JBossA-MQ:karaf@root> osgi:list | grep mq-web-console
[ 133] [Active ] [ ] [ 60] mq-web-console (5.8.0.redhat-60024)
Step-3). Now install the following patches:
patch:add file:///NotBackedUp/FuseSource/Installers/PATCHES_A-MQ-600/jboss-fuse-6.0.0.redhat-024-r2-prereq.zip
patch:install jboss-fuse-6.0.0.redhat-024-prereq
patch:add file:///NotBackedUp/FuseSource/Installers/PATCHES_A-MQ-600/jboss-fuse-6.0.0.redhat-024-r2.zip
patch:install jboss-fuse-6.0.0.redhat-024-r2
patch:add file:///NotBackedUp/FuseSource/Installers/PATCHES_A-MQ-600/jboss-fuse-6.0.0.redhat-024-r2p1.zip
patch:install jboss-fuse-6.0.0.redhat-024-r2p
- Validate Patches are installed successfully or not?
JBossA-MQ:karaf@root> patch:list
[name] [installed] [description]
jboss-fuse-6.0.0.redhat-024-r2p1 true null
jboss-fuse-6.0.0.redhat-024-prereq true null
jboss-fuse-6.0.0.redhat-024-r2 true null
Step-4). Run the osgi:list command again to check what is the version of "mq-web-console"
JBossA-MQ:karaf@root> osgi:list | grep mq-web-console
[ 133] [Active ] [ ] [ 60] mq-web-console (5.8.0.redhat-60065)
NOTICE: The "mq-web-console" version is upgraded from "5.8.0.redhat-60024" to "5.8.0.redhat-60065".
Step-5). Now update the "mq-web-console" bundle and then do the "osgi:list" again:
JBossA-MQ:karaf@root> osgi:list | grep mq-web-console
[ 133] [Active ] [ ] [ 60] mq-web-console (5.8.0.redhat-60065)
JBossA-MQ:karaf@root> osgi:update 133
JBossA-MQ:karaf@root> osgi:list | grep mq-web-console
[ 133] [Active ] [ ] [ 60] mq-web-console (5.8.0.redhat-60024)
NOTICE: The "mq-web-console" version is downgraded from "5.8.0.redhat-60065" to "5.8.0.redhat-60024".
Environment
- Red Hat JBoss Fuse
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
