Change in ovirt-engine[master]: packaging: Build and run with Fedora 17 jboss-as

oschreib at redhat.com oschreib at redhat.com
Thu May 31 11:15:15 UTC 2012


Ofer Schreiber has submitted this change and it was merged.

Change subject: packaging: Build and run with Fedora 17 jboss-as
......................................................................


packaging: Build and run with Fedora 17 jboss-as

This patch includes changes to build and run the engine with the
jboss-as package included in Fedora 17.

A private instance of jboss-as is created so that there is no
interference with other applications running on top of the
application server. This private instance will be executed by the
user and group "ovirt" and uses the following files and
directories:

/usr/share/ovirt-engine

  A new "modules" subdirectory has been added that holds the JBoss
  modules that are missing in the current jboss-as package in
  Fedora 17. Also some modules that require fixes.

  The application server will be started using a module path that
  contains first this "modules" directory and then the "modules"
  directory of JBoss itself.

  All the content here should be owned by root to prevent writes
  by the engine.

/etc/ovirt-engine

  This directory stores most of the configuration files. In the
  future it should store *all* the configurationfiles.

  It is owned by the ovirt user becase the application server
  will store here backup copies of the main configuration file.

/etc/ovirt-engine/engine-service.xml

  This is the main configuration file of the application server,
  copied from standalone-web.xml and modified to fit the needs of
  the engine.

  My expectation is that maintaining this configuration file will
  be easier than maintaing the parts of the engine-setup script
  that modify the configuration. However, at the moment both
  things are needed.

  It is owned by the ovirt user because the application server
  reads and then writes it during each run.

/etc/ovirt-engine/engine-service-logging.properties

  This contains the log4j configuration used by the application
  server using during boot, mostly copied from "logging.properties".

/etc/ovirt-engine/engine-service-users.properties

  This file should contain the user names and passwords of the
  application server management users. It is empty at the moment.

/var/log/ovirt-engine

  This directory holds the log files of the engine: boot.log for
  the boot messages, server.log for the application server messages,
  engine.log for the engine messages and console.log for the
  standard output and errors of the java virtual machine.

  The directory is owned by the ovirt user so that the application
  server can create/rotate log files.

/var/lib/ovirt-engine

  This is the directory where the application server will store
  variable data.

  The "deployments" subdirectory is created during installation
  and it will contain a symlink to the "engine.ear" directory and
  the "engine.ear.dodeploy" marker file.

  The "content", "timer-service-data" and "tx-object-store"
  subdirectories are created by the application server as needed and
  should't be removed.

  This directory is owned by the "ovirt" user, as the application
  server needs to create subdirectories.

/var/cache/ovirt-engine

  This is where the application server stores temporary content
  like "auth", "vfs" and "work". It is safe to remove this when
  the application server is stopped.

  This directory is also owned by the "ovirt" user.

The private instance of the application server works as a systemd
service started and stopped with the "engine-service.py" script.
This script gets some configuration variables (heap space, debug
flags, directory names, etc) from the "engine-service" sysconfig
file.

The makefile, spec and engine-setup script have been adjusted to
build and install with the private instance of jboss-as.

Change-Id: I5cda15e5219d1b6c8e8306fc7b4f196e6afc66b1
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M Makefile
M backend/manager/conf/ca/encryptpasswd.sh
M backend/manager/conf/ca/generate-ssh-keys
M backend/manager/conf/ca/store-utils.sh
M backend/manager/conf/kerberos/engine-manage-domains
M backend/manager/modules/root/src/main/webapp/WEB-INF/web.xml
D backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/CXFContextInterceptor.java
M backend/manager/modules/utils/src/main/resources/engine-manage-domains.conf
M backend/manager/tools/engine-config/src/main/resources/engine-config
M backend/manager/tools/engine-config/src/main/resources/engine-config.conf
M backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/notifier.conf
A deployment/modules/com/sun/xml/bind/main/module.xml
A deployment/modules/javax/ws/rs/api/main/module.xml
A deployment/modules/org/apache/commons/codec/main/module.xml
A deployment/modules/org/apache/httpcomponents/main/module.xml
A deployment/modules/org/codehaus/jackson/jackson-core-asl/main/module.xml
A deployment/modules/org/codehaus/jackson/jackson-jaxrs/main/module.xml
A deployment/modules/org/codehaus/jackson/jackson-mapper-asl/main/module.xml
A deployment/modules/org/codehaus/jackson/jackson-xc/main/module.xml
A deployment/modules/org/hibernate/validator/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-atom-provider/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-cdi/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-jackson-provider/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-jaxb-provider/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-jaxrs/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-jettison-provider/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-jsapi/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-multipart-provider/main/module.xml
A deployment/modules/org/jboss/resteasy/resteasy-yaml-provider/main/module.xml
A deployment/modules/org/scannotation/scannotation/main/module.xml
D deployment/modules/sun/jdk/main/module.xml
M ear/pom.xml
A ear/src/main/resources/META-INF/MANIFEST.MF
M frontend/api/genericapi/src/main/java/org/ovirt/engine/ui/genericapi/GenericApiService.java
A packaging/fedora/engine-service-logging.properties
A packaging/fedora/engine-service-users.properties
A packaging/fedora/engine-service.py
A packaging/fedora/engine-service.sysconfig
A packaging/fedora/engine-service.systemd
A packaging/fedora/engine-service.systemv
A packaging/fedora/engine-service.xml
M packaging/fedora/setup/basedefs.py
M packaging/fedora/setup/engine-setup.py
M packaging/fedora/setup/engine-upgrade.py
M packaging/fedora/setup/output_messages.py
M packaging/fedora/spec/ovirt-engine.spec.in
M pom.xml
47 files changed, 2,320 insertions(+), 501 deletions(-)

Approvals:
  Juan Hernandez: Verified
  Ofer Schreiber: Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/4416
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5cda15e5219d1b6c8e8306fc7b4f196e6afc66b1
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib at redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list