Details
-
Clarification
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
False
-
%
-
Undefined
Description
Just to not lose it.
With ENTESB-15342, a problem was found related to patch mechanism in Fuse 7.8.0.GA. Initially I (blame me) thought it's some corner case, but in fact, there was really a problem with patch:add command started from Fuse 7.8.0.GA.
As always, it is recommended (see FUSEDOC-4432) to "patch the patching mechanism" first, so a patch is applied with latest patching mechanism and commands. But usually this step is skipped.
This time however, by taking full DEV version of Fuse 7.9 and when trying to patch Fuse 7.8.0.GA, we're getting:
Karaf started in 1s. Bundle stats: 13 active, 13 total ____ _ _ _ _ _____ | _ \ ___ __| | | | | | __ _| |_ | ___| _ ___ ___ | |_) / _ \/ _` | | |_| |/ _` | __| | |_ | | | / __|/ _ \ | _ < __/ (_| | | _ | (_| | |_ | _|| |_| \__ \ __/ |_| \_\___|\__,_| |_| |_|\__,_|\__| |_| \__,_|___/___| Red Hat Fuse (7.8.0.fuse-780038-redhat-00001) http://www.redhat.com/products/jbossenterprisemiddleware/fuse/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Open a browser to http://localhost:8181/hawtio to access the management console Hit '<ctrl-d>' or 'shutdown' to shutdown Red Hat Fuse. karaf@root()> patch:add file:///home/ggrzybek/.m2/repository/org/jboss/fuse/fuse-karaf/7.9.0.fuse-790046/fuse-karaf-7.9.0.fuse-790046.zip Error executing command: Unable to download patch from url file:/home/ggrzybek/.m2/repository/org/jboss/fuse/fuse-karaf/7.9.0.fuse-790046/fuse-karaf-7.9.0.fuse-790046.zip
What has to be done at this stage is to update the patching mechanism, because the patch was actually added and its content was copied over FUSE_HOME/system repository. So we can invoke:
karaf@root()> patch:update Current patch mechanism version: 7.8.0.fuse-780038-redhat-00001 New patch mechanism version detected: 7.9.0.fuse-790046 Uninstalling patch features in version 7.8.0.fuse-780038-redhat-00001 Installing patch features in version 7.9.0.fuse-790046
and add the SAME patch again:
karaf@root()> patch:add file:///home/ggrzybek/.m2/repository/org/jboss/fuse/fuse-karaf/7.9.0.fuse-790046/fuse-karaf-7.9.0.fuse-790046.zip [name] [installed] [rollup] [description] [CVEs] fuse-karaf-7.9.0.fuse-790046 false true fuse-karaf-7.9.0.fuse-790046 - Current patch mechanism version: 7.9.0.fuse-790046 No newer version of patch bundles detected
This time, new version of patch mechanism was used to patch:add the full patch and there are no more problems.
CC: gmalinko, rhn-support-tmielke, janstey, ecervena@redhat.com