[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Nir Soffer
On Wed, Sep 16, 2020 at 4:59 PM Martin Perina  wrote:
>
> Hi,
>
> I've switched back the build to EL7 until we overcome the nonexistence of 
> publican package on EL8. I've just rebased your patch so it should be built 
> in CI properly now.

Thanks!

But it "ci build" still fails in:

Downloaded: 
http://artifactory.ovirt.org/artifactory/ovirt-mirror/org/apache/ant/ant/1.9.4/ant-1.9.4.jar
(1972 KB at 22666.1 KB/sec)
[INFO] Executing tasks

main:
[mkdir] Created dir:
/home/jenkins/workspace/ovirt-engine-api-model_standard-check-patch/ovirt-engine-api-model/target/generated-publican
 [copy] Copying 9 files to
/home/jenkins/workspace/ovirt-engine-api-model_standard-check-patch/ovirt-engine-api-model/target/generated-publican
 [xslt] Processing
/home/jenkins/workspace/ovirt-engine-api-model_standard-check-patch/ovirt-engine-api-model/target/generated-docbook/model.xml
to 
/home/jenkins/workspace/ovirt-engine-api-model_standard-check-patch/ovirt-engine-api-model/target/generated-publican/en-US/API_Guide.xml
 [xslt] Loading stylesheet
/home/jenkins/workspace/ovirt-engine-api-model_standard-check-patch/ovirt-engine-api-model/target/generated-publican/en-US/API_Guide.xsl
 [exec] perl: warning: Setting locale failed.
 [exec] perl: warning: Please check that your locale settings:
 [exec] LANGUAGE = (unset),
 [exec] LC_ALL = (unset),
 [exec] LANG = "C.UTF-8"
 [exec] are supported and installed on your system.
 [exec] perl: warning: Falling back to the standard locale ("C").
 [exec] FATAL ERROR: http:2020 in  on line 0: Unknown IO error at
/usr/bin/publican line 936.

Build is fine now in Fedora 32, using java-8 to build the api model,
and switching back
to java-11 for building the engine.

>
> Regards,
> Martin
>
>
> On Wed, Sep 16, 2020 at 2:37 PM Nir Soffer  wrote:
>>
>> On Wed, Sep 16, 2020 at 1:54 PM Benny Zlotnik  wrote:
>> >
>> > yes, it can be switched with alternatives:
>> > $ sudo alternatives --config java
>> > There are 3 programs which provide 'java'.
>> >   Selection Command
>> > ---
>> >   1  java-latest-openjdk.x86_64
>> > (/usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/bin/java)
>> > * 2  java-1.8.0-openjdk.x86_64
>> > (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/bin/java)
>> > + 3 java-11-openjdk.x86_64
>> > (/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/bin/java)
>> >
>> > Same for `javac`
>>
>> Not needed
>>
>> >
>> > And JAVA_HOME needs to be set to `/usr/lib/jvm/java-1.8.0-openjdk` (or
>> > whatever the path is for JDK 8),
>> > `mvn -v` can be used to check if it points to the right version
>>
>> Thanks, works now.
>>
>> Probably should be documented in the readme until this is resolved.
>>
>> >
>> > On Wed, Sep 16, 2020 at 1:48 PM Nir Soffer  wrote:
>> > >
>> > > On Wed, Sep 16, 2020 at 1:45 PM Benny Zlotnik  
>> > > wrote:
>> > > >
>> > > > api-model can only be built with java 8 currently,
>> > >
>> > > It is possible to install both java 8 and 11 and use 8 for the api model?
>> > >
>> > > >  there is a patch to
>> > > > upgrade to java 11[1], but it's not merged yet
>> > > >
>> > > > [1] https://gerrit.ovirt.org/#/c/06/
>> > > >
>> > > > On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
>> > > > >
>> > > > > I'm trying to build with this change:
>> > > > > https://gerrit.ovirt.org/c/111312/
>> > > > >
>> > > > > And it fails to build. Same error on master
>> > > > > (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
>> > > > >
>> > > > > Anyone has a clue what is the reason for this? any workaround?
>> > > > >
>> > > > > $ mvn clean install
>> > > > > [INFO] Scanning for projects...
>> > > > > [INFO]
>> > > > > [INFO] -< org.ovirt.engine.api:model 
>> > > > > >-
>> > > > > [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
>> > > > > [INFO] [ jar 
>> > > > > ]-
>> > > > > [INFO]
>> > > > > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
>> > > > > [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
>> > > > > [INFO]
>> > > > > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) 
>> > > > > @ model ---
>> > > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> > > > > [INFO] skip non existing resourceDirectory
>> > > > > /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
>> > > > > [INFO]
>> > > > > [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
>> > > > > model ---
>> > > > > [INFO] Changes detected - recompiling the module!
>> > > > > [INFO] Compiling 601 source files to
>> > > > > /home/nsoffer/src/ovirt-engine-api-model/target/classes
>> > > > > [WARNING] 
>> > > > > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
>> > > > > Some input files use or override a deprecated API.
>> > > > > 

[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Nir Soffer
On Wed, Sep 16, 2020 at 1:54 PM Benny Zlotnik  wrote:
>
> yes, it can be switched with alternatives:
> $ sudo alternatives --config java
> There are 3 programs which provide 'java'.
>   Selection Command
> ---
>   1  java-latest-openjdk.x86_64
> (/usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/bin/java)
> * 2  java-1.8.0-openjdk.x86_64
> (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/bin/java)
> + 3 java-11-openjdk.x86_64
> (/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/bin/java)
>
> Same for `javac`

Not needed

>
> And JAVA_HOME needs to be set to `/usr/lib/jvm/java-1.8.0-openjdk` (or
> whatever the path is for JDK 8),
> `mvn -v` can be used to check if it points to the right version

Thanks, works now.

Probably should be documented in the readme until this is resolved.

>
> On Wed, Sep 16, 2020 at 1:48 PM Nir Soffer  wrote:
> >
> > On Wed, Sep 16, 2020 at 1:45 PM Benny Zlotnik  wrote:
> > >
> > > api-model can only be built with java 8 currently,
> >
> > It is possible to install both java 8 and 11 and use 8 for the api model?
> >
> > >  there is a patch to
> > > upgrade to java 11[1], but it's not merged yet
> > >
> > > [1] https://gerrit.ovirt.org/#/c/06/
> > >
> > > On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
> > > >
> > > > I'm trying to build with this change:
> > > > https://gerrit.ovirt.org/c/111312/
> > > >
> > > > And it fails to build. Same error on master
> > > > (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
> > > >
> > > > Anyone has a clue what is the reason for this? any workaround?
> > > >
> > > > $ mvn clean install
> > > > [INFO] Scanning for projects...
> > > > [INFO]
> > > > [INFO] -< org.ovirt.engine.api:model 
> > > > >-
> > > > [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
> > > > [INFO] [ jar 
> > > > ]-
> > > > [INFO]
> > > > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
> > > > [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
> > > > [INFO]
> > > > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
> > > > model ---
> > > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > > [INFO] skip non existing resourceDirectory
> > > > /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
> > > > [INFO]
> > > > [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model 
> > > > ---
> > > > [INFO] Changes detected - recompiling the module!
> > > > [INFO] Compiling 601 source files to
> > > > /home/nsoffer/src/ovirt-engine-api-model/target/classes
> > > > [WARNING] 
> > > > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > > > Some input files use or override a deprecated API.
> > > > [WARNING] 
> > > > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > > > Recompile with -Xlint:deprecation for details.
> > > > [INFO]
> > > > [INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
> > > > SLF4J: Class path contains multiple SLF4J bindings.
> > > > SLF4J: Found binding in
> > > > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > SLF4J: Found binding in
> > > > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> > > > explanation.
> > > > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> > > > WARNING: An illegal reflective access operation has occurred
> > > > WARNING: Illegal reflective access by
> > > > org.jboss.classfilewriter.ClassFile$1
> > > > (file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
> > > > to method 
> > > > java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> > > > WARNING: Please consider reporting this to the maintainers of
> > > > org.jboss.classfilewriter.ClassFile$1
> > > > WARNING: Use --illegal-access=warn to enable warnings of further
> > > > illegal reflective access operations
> > > > WARNING: All illegal access operations will be denied in a future 
> > > > release
> > > > ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
> > > > "run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
> > > > java.lang.reflect.InvocationTargetException
> > > > at 
> > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > at 
> > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > > > at 
> > > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > > > at 

[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Benny Zlotnik
yes, it can be switched with alternatives:
$ sudo alternatives --config java
There are 3 programs which provide 'java'.
  Selection Command
---
  1  java-latest-openjdk.x86_64
(/usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/bin/java)
* 2  java-1.8.0-openjdk.x86_64
(/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/bin/java)
+ 3 java-11-openjdk.x86_64
(/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/bin/java)

Same for `javac`

And JAVA_HOME needs to be set to `/usr/lib/jvm/java-1.8.0-openjdk` (or
whatever the path is for JDK 8),
`mvn -v` can be used to check if it points to the right version

On Wed, Sep 16, 2020 at 1:48 PM Nir Soffer  wrote:
>
> On Wed, Sep 16, 2020 at 1:45 PM Benny Zlotnik  wrote:
> >
> > api-model can only be built with java 8 currently,
>
> It is possible to install both java 8 and 11 and use 8 for the api model?
>
> >  there is a patch to
> > upgrade to java 11[1], but it's not merged yet
> >
> > [1] https://gerrit.ovirt.org/#/c/06/
> >
> > On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
> > >
> > > I'm trying to build with this change:
> > > https://gerrit.ovirt.org/c/111312/
> > >
> > > And it fails to build. Same error on master
> > > (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
> > >
> > > Anyone has a clue what is the reason for this? any workaround?
> > >
> > > $ mvn clean install
> > > [INFO] Scanning for projects...
> > > [INFO]
> > > [INFO] -< org.ovirt.engine.api:model 
> > > >-
> > > [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
> > > [INFO] [ jar 
> > > ]-
> > > [INFO]
> > > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
> > > [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
> > > [INFO]
> > > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
> > > model ---
> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > > [INFO] skip non existing resourceDirectory
> > > /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
> > > [INFO]
> > > [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model ---
> > > [INFO] Changes detected - recompiling the module!
> > > [INFO] Compiling 601 source files to
> > > /home/nsoffer/src/ovirt-engine-api-model/target/classes
> > > [WARNING] 
> > > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > > Some input files use or override a deprecated API.
> > > [WARNING] 
> > > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > > Recompile with -Xlint:deprecation for details.
> > > [INFO]
> > > [INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
> > > SLF4J: Class path contains multiple SLF4J bindings.
> > > SLF4J: Found binding in
> > > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > SLF4J: Found binding in
> > > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> > > explanation.
> > > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> > > WARNING: An illegal reflective access operation has occurred
> > > WARNING: Illegal reflective access by
> > > org.jboss.classfilewriter.ClassFile$1
> > > (file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
> > > to method 
> > > java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> > > WARNING: Please consider reporting this to the maintainers of
> > > org.jboss.classfilewriter.ClassFile$1
> > > WARNING: Use --illegal-access=warn to enable warnings of further
> > > illegal reflective access operations
> > > WARNING: All illegal access operations will be denied in a future release
> > > ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
> > > "run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
> > > java.lang.reflect.InvocationTargetException
> > > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > at 
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > > at 
> > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > > at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> > > at org.ovirt.api.metamodel.tool.Main.main(Main.java:74)
> > > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > at 
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > > at 
> > > 

[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Nir Soffer
On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
>
> I'm trying to build with this change:
> https://gerrit.ovirt.org/c/111312/
>
> And it fails to build. Same error on master
> (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
>
> Anyone has a clue what is the reason for this? any workaround?

Turns out that jenkins build is also broken now:
https://jenkins.ovirt.org/blue/organizations/jenkins/ovirt-engine-api-model_standard-check-patch/detail/ovirt-engine-api-model_standard-check-patch/25/pipeline

Fails with:

[2020-09-16T10:48:33.938Z] Start: dnf install

[2020-09-16T10:48:46.469Z] ERROR: Command failed:

[2020-09-16T10:48:46.470Z]  # /usr/bin/dnf --installroot
/var/lib/mock/epel-8-x86_64-bbdf1803c4164d8fa7ddb17db65a356b-3530/root/
--releasever 8 --setopt=deltarpm=False --allowerasing
--disableplugin=local --disableplugin=spacewalk --disableplugin=local
--disableplugin=spacewalk install dnf tar gcc-c++ redhat-rpm-config
which xz sed make bzip2 gzip gcc coreutils unzip shadow-utils
diffutils cpio bash gawk rpm-build info patch util-linux findutils
grep python36 git java-1.8.0-openjdk-devel maven publican python3
python3-lxml --setopt=tsflags=nocontexts
...
[2020-09-16T10:48:46.470Z] No match for argument: publican
[2020-09-16T10:48:46.470Z] Error: Unable to find a match: publican

Is this a known issue?

>
> $ mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> [INFO] -< org.ovirt.engine.api:model 
> >-
> [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
> [INFO] [ jar 
> ]-
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
> [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ model 
> ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 601 source files to
> /home/nsoffer/src/ovirt-engine-api-model/target/classes
> [WARNING] 
> /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> Some input files use or override a deprecated API.
> [WARNING] 
> /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> Recompile with -Xlint:deprecation for details.
> [INFO]
> [INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.jboss.classfilewriter.ClassFile$1
> (file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
> to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> WARNING: Please consider reporting this to the maintainers of
> org.jboss.classfilewriter.ClassFile$1
> WARNING: Use --illegal-access=warn to enable warnings of further
> illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
> "run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
> java.lang.reflect.InvocationTargetException
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.ovirt.api.metamodel.tool.Main.main(Main.java:74)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
> at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: org.jboss.weld.exceptions.WeldException: WELD-49:
> Unable to invoke public void
> 

[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Nir Soffer
On Wed, Sep 16, 2020 at 1:45 PM Benny Zlotnik  wrote:
>
> api-model can only be built with java 8 currently,

It is possible to install both java 8 and 11 and use 8 for the api model?

>  there is a patch to
> upgrade to java 11[1], but it's not merged yet
>
> [1] https://gerrit.ovirt.org/#/c/06/
>
> On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
> >
> > I'm trying to build with this change:
> > https://gerrit.ovirt.org/c/111312/
> >
> > And it fails to build. Same error on master
> > (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
> >
> > Anyone has a clue what is the reason for this? any workaround?
> >
> > $ mvn clean install
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO] -< org.ovirt.engine.api:model 
> > >-
> > [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
> > [INFO] [ jar 
> > ]-
> > [INFO]
> > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
> > [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ model 
> > ---
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] skip non existing resourceDirectory
> > /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model ---
> > [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 601 source files to
> > /home/nsoffer/src/ovirt-engine-api-model/target/classes
> > [WARNING] 
> > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > Some input files use or override a deprecated API.
> > [WARNING] 
> > /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> > Recompile with -Xlint:deprecation for details.
> > [INFO]
> > [INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
> > SLF4J: Class path contains multiple SLF4J bindings.
> > SLF4J: Found binding in
> > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: Found binding in
> > [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> > explanation.
> > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> > WARNING: An illegal reflective access operation has occurred
> > WARNING: Illegal reflective access by
> > org.jboss.classfilewriter.ClassFile$1
> > (file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
> > to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> > WARNING: Please consider reporting this to the maintainers of
> > org.jboss.classfilewriter.ClassFile$1
> > WARNING: Use --illegal-access=warn to enable warnings of further
> > illegal reflective access operations
> > WARNING: All illegal access operations will be denied in a future release
> > ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
> > "run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
> > java.lang.reflect.InvocationTargetException
> > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > at 
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at 
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> > at org.ovirt.api.metamodel.tool.Main.main(Main.java:74)
> > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > at 
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at 
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> > at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
> > at java.base/java.lang.Thread.run(Thread.java:834)
> > Caused by: org.jboss.weld.exceptions.WeldException: WELD-49:
> > Unable to invoke public void
> > org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator.init() on
> > org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator@6ef4091
> > at 
> > org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)
> > at 
> > org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)
> > at 
> > org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)
> > at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)
> > at 
> > 

[ovirt-devel] Re: Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Benny Zlotnik
api-model can only be built with java 8 currently, there is a patch to
upgrade to java 11[1], but it's not merged yet

[1] https://gerrit.ovirt.org/#/c/06/

On Wed, Sep 16, 2020 at 1:42 PM Nir Soffer  wrote:
>
> I'm trying to build with this change:
> https://gerrit.ovirt.org/c/111312/
>
> And it fails to build. Same error on master
> (commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).
>
> Anyone has a clue what is the reason for this? any workaround?
>
> $ mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> [INFO] -< org.ovirt.engine.api:model 
> >-
> [INFO] Building oVirt API Model 4.4.18-SNAPSHOT
> [INFO] [ jar 
> ]-
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
> [INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ model 
> ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/nsoffer/src/ovirt-engine-api-model/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 601 source files to
> /home/nsoffer/src/ovirt-engine-api-model/target/classes
> [WARNING] 
> /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> Some input files use or override a deprecated API.
> [WARNING] 
> /home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
> Recompile with -Xlint:deprecation for details.
> [INFO]
> [INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.jboss.classfilewriter.ClassFile$1
> (file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
> to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> WARNING: Please consider reporting this to the maintainers of
> org.jboss.classfilewriter.ClassFile$1
> WARNING: Use --illegal-access=warn to enable warnings of further
> illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
> "run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
> java.lang.reflect.InvocationTargetException
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.ovirt.api.metamodel.tool.Main.main(Main.java:74)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
> at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: org.jboss.weld.exceptions.WeldException: WELD-49:
> Unable to invoke public void
> org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator.init() on
> org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator@6ef4091
> at 
> org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)
> at 
> org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)
> at 
> org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)
> at 
> org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
> at 
> org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)
> at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
> at 
> 

[ovirt-devel] Error building ovirt-engine-api-model on Fedora 32

2020-09-16 Thread Nir Soffer
I'm trying to build with this change:
https://gerrit.ovirt.org/c/111312/

And it fails to build. Same error on master
(commit 2e3c836e4c2fd50258e96bc6966b5d9680b5332e).

Anyone has a clue what is the reason for this? any workaround?

$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] -< org.ovirt.engine.api:model >-
[INFO] Building oVirt API Model 4.4.18-SNAPSHOT
[INFO] [ jar ]-
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ model ---
[INFO] Deleting /home/nsoffer/src/ovirt-engine-api-model/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ model ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/nsoffer/src/ovirt-engine-api-model/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ model ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 601 source files to
/home/nsoffer/src/ovirt-engine-api-model/target/classes
[WARNING] 
/home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
Some input files use or override a deprecated API.
[WARNING] 
/home/nsoffer/src/ovirt-engine-api-model/src/main/java/services/DisksService.java:
Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (generate-doc) @ model ---
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/nsoffer/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.jboss.classfilewriter.ClassFile$1
(file:/home/nsoffer/.m2/repository/org/jboss/weld/se/weld-se/2.3.0.Final/weld-se-2.3.0.Final.jar)
to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of
org.jboss.classfilewriter.ClassFile$1
WARNING: Use --illegal-access=warn to enable warnings of further
illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR org.ovirt.api.metamodel.tool.Main - Error while executing the
"run" method of tool class "org.ovirt.api.metamodel.tool.Tool".
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.ovirt.api.metamodel.tool.Main.main(Main.java:74)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jboss.weld.exceptions.WeldException: WELD-49:
Unable to invoke public void
org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator.init() on
org.ovirt.api.metamodel.tool.AsciiDocHtmlGenerator@6ef4091
at 
org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)
at 
org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)
at 
org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)
at 
org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
at 
org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)
at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:742)
at 
org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:842)
at 
org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:378)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:389)
at 

[ovirt-devel] Removal of deprecated init-scripts (network-scripts)

2020-09-16 Thread Ales Musil
Hello,

network-scripts for host networking were deprecated since oVirt 4.4.
It will be removed completely in the 4.4.3 release. There is no action
required
for setups that did not change the configuration to use network-scripts
backend (net_nmstate_enabled = false).

Users that did disable nmstate should redeploy all affected hosts before
4.4.3.
Also can you please tell us what was the reason to use network-scripts, if
that is the case?

Thank you.
Best regards,
Ales Musil

-- 

Ales Musil

Software Engineer - RHV Network

Red Hat EMEA 

amu...@redhat.comIM: amusil

___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/YGE4MXPFCZ3OTYT6DFZDRKHFC36SS4AY/