Hi,

On Thu, Aug 18, 2016 at 2:57 PM, Juan Hernández <jhernand@redhat.com> wrote:
On 08/18/2016 01:56 PM, Sandro Bonazzola wrote:
> Hi,
> looking at $ LC_ALL=C rpm -qlvp
> http://resources.ovirt.org/pub/ovirt-master-snapshot/rpm/fc24/noarch/ovirt-engine-backend-4.1.0-0.0.master.20160817221906.git75736af.fc24.noarch.rpm|grep
> jar |grep -v ^l |grep common
>
> I see:
>
> -rw-r--r--    1 root    root                    77761 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/com/netflix/config/main/archaius-core.jar
> -rw-r--r--    1 root    root                    16442 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/com/netflix/hystrix/contrib/main/hystrix-metrics-event-stream.jar
> -rw-r--r--    1 root    root                   290223 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/com/netflix/hystrix/main/hystrix-core.jar
> -rw-r--r--    1 root    root                   738300 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/io/reactivex/rxjava/main/rxjava.jar
> -rw-r--r--    1 root    root                    33218 Aug 18 00:19

I think these ^ are all related to the use of Hystrix, Roman will know.


They are on epel7 and fc23 and newer. 

The package names are rxjava, archaius-core, hystrix-metrics-event-stream and hystrix-core, exactly like the jar name.

For epel7 it will definitely work, on fedora we have to try it out. 
There might be a dependency to google guava on the newer archaius. Newest and very old archaius versions don't have this guava dependency.
At least everything except archaius-core can be taken from fedoa too.
 
> /usr/share/ovirt-engine/modules/common/org/apache/avalon/framework/main/avalon-framework-api.jar
> -rw-r--r--    1 root    root                    61021 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/avalon/framework/main/avalon-framework-impl.jar
> -rw-r--r--    1 root    root                   401858 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-awt-util.jar
> -rw-r--r--    1 root    root                   558892 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-bridge.jar
> -rw-r--r--    1 root    root                   310919 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-css.jar
> -rw-r--r--    1 root    root                    10257 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-ext.jar
> -rw-r--r--    1 root    root                    67900 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-extension.jar
> -rw-r--r--    1 root    root                   242866 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-gvt.jar
> -rw-r--r--    1 root    root                   601098 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-svg-dom.jar
> -rw-r--r--    1 root    root                   121997 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-transcoder.jar
> -rw-r--r--    1 root    root                   128286 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/batik/main/batik-util.jar
> -rw-r--r--    1 root    root                   569113 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/commons/main/xmlgraphics-commons.jar
> -rw-r--r--    1 root    root                  3079811 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/apache/xmlgraphics/fop/main/fop.jar

Avalon framework, Batik, xmlgraphics and FOP can't be replaced by links,
because the versions included in Fedora are newer than what we need, and
they don't work correctly for us.

> -rw-r--r--    1 root    root                     6071 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/ovirt/engine/api/metamodel-server/main/metamodel-server.jar

This ^ is an oVirt project, but not distributed as RPM, only via Maven
Central, so it can't be replaced with a link.

> -rw-r--r--    1 root    root                     8225 Aug 18 00:20
> /usr/share/ovirt-engine/modules/common/org/ovirt/engine/core/auth-plugin/main/auth-plugin.jar
> -rw-r--r--    1 root    root                     4012 Aug 18 00:22
> /usr/share/ovirt-engine/modules/common/org/ovirt/engine/core/logger/main/logger.jar

These ^ are part of the engine, they should go in
/usr/share/java/ovirt-engine, and should be replaced by links.

> -rw-r--r--    1 root    root                   370051 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-aop.jar
> -rw-r--r--    1 root    root                   731512 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-beans.jar
> -rw-r--r--    1 root    root                  1097552 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-context.jar
> -rw-r--r--    1 root    root                  1078737 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-core.jar
> -rw-r--r--    1 root    root                   262990 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-expression.jar
> -rw-r--r--    1 root    root                     7243 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-instrument.jar
> -rw-r--r--    1 root    root                   423369 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-jdbc.jar
> -rw-r--r--    1 root    root                   265523 Aug 18 00:19
> /usr/share/ovirt-engine/modules/common/org/springframework/main/spring-tx.jar
>

The version of the spring framework in Fedora (3.2) is older than the
one we need (4.2), so those can't be replaced by links.

> Are there chances we can replace (some of the) above bundled jar files
> with symlinks to system provided jar as we did for the other ones (at
> least on fc24)?
>

--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.