On 04/29/2016 04:46 PM, Fabrice Bacchella wrote:
I'm trying to communicate with ovirt-engine using jmx.
I read
https://www.ovirt.org/develop/developer-guide/engine/jmx-support/
In the line
ENGINE_JMX_INTERFACE=public
what is public ? Is that the string 'public', if I set that, ovirt-engine
don't listen any more on port 8706. If i set it to the public IP of the server or to
the interface name it fails with :
It is the name of the network interface, as defined in the application
server configuration file
/usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in:
<interfaces>
<interface name="loopback">
<inet-address value="127.0.0.1"/>
</interface>
<interface name="public">
<any-address/>
</interface>
</interfaces>
So, it is the string "public", which means "any-address". The meaning
of
"any-address" depends on what IP version is used by default by the Java
Virtual Machine, and in 3.6 the default is IPv6. Unless you want to
change that file you will need to specify one of the IPv6 addresses of
your machine, for example the loopback address:
$ $JBOSS_HOME/jboss-cli.sh --controller=[::1]:8706 --connect
--user=admin@internal
You can also set ENGINE_JMX_INTERFACE=loopback, and then you should be
able to use the IPv4 loopback address:
$ $JBOSS_HOME/jboss-cli.sh --controller=127.0.0.1:8706 --connect
--user=admin@internal
16:40:46,622 ERROR [org.jboss.as.server] JBAS015956: Caught exception
during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException:
JBAS014676: Failed to parse configuration
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112)
[wildfly-controller-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:331)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:259)
[wildfly-controller-8.2.1.Final.jar:8.2.1.Final]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_101]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[477,70]
Message: JBAS014796: Unknown interface bond0 interface must be declared in element
interfaces
at org.jboss.as.server.parsing.CommonXml.parseSocketBinding(CommonXml.java:691)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at
org.jboss.as.server.parsing.StandaloneXml.parseSocketBindingGroup_1_1(StandaloneXml.java:1093)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at
org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:470)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107)
[wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
[staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
[staxmapper-1.1.0.Final.jar:1.1.0.Final]
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104)
[wildfly-controller-8.2.1.Final.jar:8.2.1.Final]
... 3 more
--
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.