[Users] Getting the following error when creating rpm on CentOS
by qyddbear
------=_Part_150586_1608314981.1364538573516
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
Hi,
I am trying to create a rpm using ovirt-engine-3.1.0-3.26.3.el6.centos.alt.src.rpm on CentOS 6.3. After ran rpmbuild -ba ovirt-engine.spec, I got error message like this:
*** Deploying service
# Install the files:
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service.xml.in /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service-logging.properties /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 755 packaging/fedora/engine-service.py /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service.sysconfig /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/sysconfig/ovirt-engine
install -m 644 packaging/fedora/engine-service.limits /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/security/limits.d/10-ovirt-engine.conf
install -m 755 packaging/fedora/engine-service.systemv /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/rc.d/init.d/ovirt-engine
# Install the links:
ln -s /usr/share/ovirt-engine/service/engine-service.py /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/bin/engine-service
+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments
+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content
+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/notifier /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/engine-manage-domains
+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier
+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine
+ for war in restapi userportal webadmin
+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/restapi.war/WEB-INF/web.xml
+ for war in restapi userportal webadmin
+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/userportal.war/WEB-INF/web.xml
+ for war in restapi userportal webadmin
+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/webadmin.war/WEB-INF/web.xml
+ for pom in '/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom'
++ dirname /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
+ pomdir=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms
++ basename /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
+ pom=ovirt-engine-backend.pom
+ jpppom=JPP.ovirt-engine-backend.pom
+ mv /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/JPP.ovirt-engine-backend.pom
++ sed -e 's/^ovirt-engine-//' -e 's/\.pom//'
++ echo ovirt-engine-backend.pom
+ artifact_id=backend
+ '[' -f /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/backend.jar ']'
+ %add_maven_depmap JPP.ovirt-engine-backend.pom
/var/tmp/rpm-tmp.hR92jC: line 86: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)
And here is rpm-tmp.hR92jC:
#!/bin/sh
RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"
RPM_BUILD_DIR="/root/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="ovirt-engine"
RPM_PACKAGE_VERSION="3.1.0"
RPM_PACKAGE_RELEASE="3.26.3.el6"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/root/rpmbuild/BUILD"
cd 'ovirt-engine-3.1.0'
rm -fr "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"
# Use the makefile to do the normal installation, after that we
# will need to replace jar files with links to their actual
# locations:
make \
-j1 \
PACKAGE_NAME=ovirt-engine \
ENGINE_NAME=ovirt-engine \
LOCALSTATE_DIR=/var \
ENGINE_STATE=/var/lib/ovirt-engine \
PREFIX=/usr \
SYSCONF_DIR=/etc \
BIN_DIR=/usr/bin \
DATAROOT_DIR=/usr/share \
MAN_DIR=/usr/share/man \
PYTHON=/usr/bin/python \
PYTHON_DIR=/usr/lib/python2.6/site-packages \
JAVA_DIR=/usr/share/java \
MAVENPOM_DIR=/usr/share/maven2/poms \
PKG_JAVA_DIR=/usr/share/java/ovirt-engine \
PKG_SYSCONF_DIR=/etc/ovirt-engine \
PKG_EAR_DIR=/usr/share/ovirt-engine/engine.ear \
PKG_PKI_DIR=/etc/pki/ovirt-engine \
PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules \
\
install DESTDIR=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/{notifier,engine-manage-domains}
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine
# Needed for compatibility if package is different than the directory structure
#
# Force TLS/SSL for selected applications.
#
for war in restapi userportal webadmin; do
sed -i \
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' \
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/${war}.war/WEB-INF/web.xml"
done
# Register poms
for pom in /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom
do
pomdir=`dirname "${pom}"`
pom=`basename "${pom}"`
jpppom="JPP.${pom}"
mv "${pomdir}/${pom}" "${pomdir}/${jpppom}"
artifact_id=`echo "${pom}" | sed -e 's/^ovirt-engine-//' -e 's/\.pom//'`
if [ -f "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/${artifact_id}.jar" ]
then
%add_maven_depmap "${jpppom}" "ovirt-engine/${artifact_id}.jar"
else
%add_maven_depmap "${jpppom}"
fi
done
# Copy the module definitions:
install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
cp -r deployment/modules/* /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
find /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules -type d -exec chmod 755 {} \;
find /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules -type f -exec chmod 644 {} \;
/usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-strip
/usr/lib/rpm/brp-strip-static-archive
/usr/lib/rpm/brp-strip-comment-note
I installed jpackage-utils. From a former mai http://lists.ovirt.org/pipermail/users/2012-July/002794.html , it seems that something wrong with %add_maven_depmap macro and POM file. But I didn't find the attached patch which was supplied by Robert Middleswarth. Can anyone teach me how to fix it? Thanks!
------=_Part_150586_1608314981.1364538573516
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi, <div>I am trying to create a rpm using ovirt-engine-3.1.0-3.26.3.el6.centos.alt.src.rpm on CentOS 6.3. After ran rpmbuild -ba ovirt-engine.spec, I got error message like this:</div><div><br></div><div><div>*** Deploying service</div><div># Install the files:</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install -m 644 packaging/fedora/engine-service.xml.in /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install -m 644 packaging/fedora/engine-service-logging.properties /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install -m 755 packaging/fedora/engine-service.py /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install -m 644 packaging/fedora/engine-service.sysconfig /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/sysconfig/ovirt-engine</div><div>install -m 644 packaging/fedora/engine-service.limits /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/security/limits.d/10-ovirt-engine.conf</div><div>install -m 755 packaging/fedora/engine-service.systemv /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/rc.d/init.d/ovirt-engine</div><div># Install the links:</div><div>ln -s /usr/share/ovirt-engine/service/engine-service.py /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/bin/engine-service</div><div>+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments</div><div>+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content</div><div>+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/notifier /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/engine-manage-domains</div><div>+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier</div><div>+ install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine</div><div>+ for war in restapi userportal webadmin</div><div>+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/restapi.war/WEB-INF/web.xml</div><div>+ for war in restapi userportal webadmin</div><div>+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/userportal.war/WEB-INF/web.xml</div><div>+ for war in restapi userportal webadmin</div><div>+ sed -i 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/webadmin.war/WEB-INF/web.xml</div><div>+ for pom in '/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom'</div><div>++ dirname /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom</div><div>+ pomdir=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms</div><div>++ basename /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom</div><div>+ pom=ovirt-engine-backend.pom</div><div>+ jpppom=JPP.ovirt-engine-backend.pom</div><div>+ mv /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/JPP.ovirt-engine-backend.pom</div><div>++ sed -e 's/^ovirt-engine-//' -e 's/\.pom//'</div><div>++ echo ovirt-engine-backend.pom</div><div>+ artifact_id=backend</div><div>+ '[' -f /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/backend.jar ']'</div><div>+ %add_maven_depmap JPP.ovirt-engine-backend.pom</div><div>/var/tmp/rpm-tmp.hR92jC: line 86: fg: no job control</div><div>error: Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)</div><div><br></div><div><br></div><div>RPM build errors:</div><div> Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)</div></div><div><br></div><div><br></div><div>And here is rpm-tmp.hR92jC:</div><div><br></div><div><br></div><div><div>#!/bin/sh</div><div><br></div><div> RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"</div><div> RPM_BUILD_DIR="/root/rpmbuild/BUILD"</div><div> RPM_OPT_FLAGS="-O2 -g"</div><div> RPM_ARCH="x86_64"</div><div> RPM_OS="linux"</div><div> export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS</div><div> RPM_DOC_DIR="/usr/share/doc"</div><div> export RPM_DOC_DIR</div><div> RPM_PACKAGE_NAME="ovirt-engine"</div><div> RPM_PACKAGE_VERSION="3.1.0"</div><div> RPM_PACKAGE_RELEASE="3.26.3.el6"</div><div> export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE</div><div> LANG=C</div><div> export LANG</div><div> unset CDPATH DISPLAY ||:</div><div> RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"</div><div> export RPM_BUILD_ROOT</div><div> </div><div> PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"</div><div> export PKG_CONFIG_PATH</div><div> </div><div> set -x</div><div> umask 022</div><div> cd "/root/rpmbuild/BUILD"</div><div>cd 'ovirt-engine-3.1.0'</div><div><br></div><div>rm -fr "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"</div><div><br></div><div># Use the makefile to do the normal installation, after that we</div><div># will need to replace jar files with links to their actual</div><div># locations:</div><div>make \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>-j1 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PACKAGE_NAME=ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>ENGINE_NAME=ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>LOCALSTATE_DIR=/var \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>ENGINE_STATE=/var/lib/ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PREFIX=/usr \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SYSCONF_DIR=/etc \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>BIN_DIR=/usr/bin \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>DATAROOT_DIR=/usr/share \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>MAN_DIR=/usr/share/man \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PYTHON=/usr/bin/python \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PYTHON_DIR=/usr/lib/python2.6/site-packages \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>JAVA_DIR=/usr/share/java \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>MAVENPOM_DIR=/usr/share/maven2/poms \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PKG_JAVA_DIR=/usr/share/java/ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PKG_SYSCONF_DIR=/etc/ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PKG_EAR_DIR=/usr/share/ovirt-engine/engine.ear \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PKG_PKI_DIR=/etc/pki/ovirt-engine \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> install DESTDIR=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64</div><div><br></div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/{notifier,engine-manage-domains}</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine</div><div><br></div><div># Needed for compatibility if package is different than the directory structure</div><div><br></div><div>#</div><div># Force TLS/SSL for selected applications.</div><div>#</div><div>for war in restapi userportal webadmin; do</div><div> sed -i \</div><div> 's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' \</div><div> "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/${war}.war/WEB-INF/web.xml"</div><div>done</div><div><br></div><div># Register poms</div><div>for pom in /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom</div><div>do</div><div> pomdir=`dirname "${pom}"`</div><div> pom=`basename "${pom}"`</div><div> jpppom="JPP.${pom}"</div><div> mv "${pomdir}/${pom}" "${pomdir}/${jpppom}"</div><div> artifact_id=`echo "${pom}" | sed -e 's/^ovirt-engine-//' -e 's/\.pom//'`</div><div> if [ -f "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/${artifact_id}.jar" ]</div><div> then</div><div> %add_maven_depmap "${jpppom}" "ovirt-engine/${artifact_id}.jar"</div><div> else</div><div> %add_maven_depmap "${jpppom}"</div><div> fi</div><div>done</div><div><br></div><div><br></div><div># Copy the module definitions:</div><div>install -dm 755 /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules</div><div>cp -r deployment/modules/* /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules</div><div>find /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules -type d -exec chmod 755 {} \;</div><div>find /root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules -type f -exec chmod 644 {} \;</div><div><br></div><div><br></div><div> /usr/lib/rpm/brp-compress </div><div> /usr/lib/rpm/brp-strip </div><div> /usr/lib/rpm/brp-strip-static-archive </div><div> /usr/lib/rpm/brp-strip-comment-note </div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>I installed jpackage-utils. From a former mai <a href="http://lists.ovirt.org/pipermail/users/2012-July/002794.html" target="_blank">http://lists.ovirt.org/pipermail/users/2012-July/002794.html</a> , it seems that something wrong with <span style="line-height: normal; ">%add_maven_depmap macro and POM file. But I didn't find the attached patch which was supplied by </span><span style="line-height: normal; ">Robert Middleswarth. Can anyone teach me how to fix it? Thanks!</span></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>
------=_Part_150586_1608314981.1364538573516--
11 years, 7 months
[Users] VM crashes
by Jonathan Horne
--_000_9BE6F493F83A594DA60C45E6A09DC5AC2B6DB929AUSP01DAG0201_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
2 VMs crashed over the weekend, and I am trying to do some detective work o=
n what happened. Unfortunately, they were both on the same node (that node=
dumped a core file, which I have another thread open about and hopefully I=
can open it and see what happened there too).
Is there a log file on the node that I might get some information as to wha=
t happened?
Thanks for any tips,
jonathan
________________________________
This is a PRIVATE message. If you are not the intended recipient, please de=
lete without copying and kindly advise us by e-mail of the mistake in deliv=
ery. NOTE: Regardless of content, this e-mail shall not operate to bind SKO=
POS to any order or other contract unless pursuant to explicit written agre=
ement or government initiative expressly permitting the use of e-mail for s=
uch purpose.
--_000_9BE6F493F83A594DA60C45E6A09DC5AC2B6DB929AUSP01DAG0201_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style>
<!--
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif"}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.BalloonTextChar
{font-family:"Tahoma","sans-serif"}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">2 VMs crashed over the weekend, and I am trying to d=
o some detective work on what happened. Unfortunately, they were both=
on the same node (that node dumped a core file, which I have another threa=
d open about and hopefully I can open it
and see what happened there too).</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Is there a log file on the node that I might get som=
e information as to what happened?</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Thanks for any tips,</p>
<p class=3D"MsoNormal">jonathan</p>
</div>
<br>
<hr>
<font color=3D"Gray" face=3D"Arial" size=3D"1">This is a PRIVATE message. I=
f you are not the intended recipient, please delete without copying and kin=
dly advise us by e-mail of the mistake in delivery. NOTE: Regardless of con=
tent, this e-mail shall not operate to
bind SKOPOS to any order or other contract unless pursuant to explicit wri=
tten agreement or government initiative expressly permitting the use of e-m=
ail for such purpose.</font>
</body>
</html>
--_000_9BE6F493F83A594DA60C45E6A09DC5AC2B6DB929AUSP01DAG0201_--
11 years, 7 months
[Users] host non responsive in a 1 host DC with 1 vm
by Neil
Hi guys,
I've got a test oVirt setup with only 1 host and 1 test VM but I had a
power failure and the host is now non responsive, despite being able
to log into it via SSH. Manually fencing results in a.... "Manual
fence did not revoke the selected SPM (ovirthosttest) since the master
storage domain was not active or could not use another host for the
fence operation." When I try put the host into maintenance I get
..."Manual fence did not revoke the selected SPM (ovirthosttest) since
the master storage domain was not active or could not use another host
for the fence operation." When I try and activate the data domain I
get... "Failed to activate Storage Domain MAIN (Data Center Default)
by admin@internal". My VM was in an unknown state, but considering
I'd already had a power failure, I logged into my oVirt engine
postgres command line and ran "update vm_dynamic set status = 0 where
vm_guid = (select vm_guid from vm_static where vm_name = 'zimbra');"
to try and force my VM into a down state, but that hasn't helped
either. I'd imagine that if I had another host to add to the cluster
SPM would hopefully move to the new host and the problem would
disappear, but I don't have one unfortunately.
Any suggestions?
Centos 6.4
vdsm-python-4.10.3-0.31.20.el6.x86_64
vdsm-4.10.3-0.31.20.el6.x86_64
vdsm-cli-4.10.3-0.31.20.el6.noarch
vdsm-xmlrpc-4.10.3-0.31.20.el6.noarch
libvirt-lock-sanlock-0.10.2-18.el6.x86_64
libvirt-client-0.10.2-18.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libvirt-python-0.10.2-18.el6.x86_64
libvirt-0.10.2-18.el6.x86_64
On my engine it's Centos 6.4 with ovirt-engine-3.2.0-1.39.el6.noarch
My engine has an NFS shared RAID array which the hosts the entire data
domain.
I could can the entire install and start again, but I'd prefer to
avoid doing that if possible as I'm still in the process of migrating
email to my zimbra VM.
Any help is appreciated greatly.
Thanks.
Regards.
Neil Wilson.
11 years, 7 months
[Users] Issues using local storage for gluster shared volume
by Tony Feldmann
I have been trying for a month or so to get a 2 node cluster up and
running. I have engine installed on the first node, then add each each
system as a host to a posix dc. Both boxes have 4 data disks. After
adding the hosts I create a distributed replicate volume using 3 disk from
each host with ext4 filesystems. I click the 'optimize for virt' option on
the volume. There is a message in events that says that it can't set a
volume option, then it sets 2 volume options. Checking the options tab I
see that it added the gid/uid options. I was unable to find in the logs
what option was not set, I just see a message about usage for volume set
<volname> <option>. The volume starts fine and I am able to create a data
domain on the volume. Once the domain is created I try to create a vm and
it fails creating the disk. Error messages are along the lines of task
file exists and can't remove task files. There are directories under tasks
and when trying to manually remove them I get the "directory not empty"
error. Can someone please shed some light on what I am doing wrong to get
this 2 node cluster with local disk as shared storage up and running?
Thanks,
Tony
11 years, 7 months
[Users] Does anyone run the engine on a VM in the cluster itself?
by Ernest Beinrohr
This is a multi-part message in MIME format.
--------------000103050605020908050809
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
I have to maintan a separate VM environment just for the engine.
If it were running on one of the hypervisors, how can I start it if
the engine itself is off?
thanks.
--
Ernest Beinrohr, AXON PRO
Ing <http://www.beinrohr.sk/ing.php>, RHCE
<http://www.beinrohr.sk/rhce.php>, RHCVA
<http://www.beinrohr.sk/rhce.php>, LPIC
<http://www.beinrohr.sk/lpic.php>, +421-2--6241-0360
<callto://+421-2--6241-0360>, +421-903--482-603 <callto://+421-903--482-603>
icq:28153343, skype:oernii-work <callto://oernii-work>,
jabber:oernii@jabber.org
------------------------------------------------------------------------
“The bureaucracy is expanding to meet the needs of the expanding
bureaucracy.” ― Oscar Wilde
--------------000103050605020908050809
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have to maintan a separate VM environment just for the engine. <br>
If it were running on one of the hypervisors, how can I start it if<br>
the engine itself is off?<br>
<br>
thanks.<br>
<div class="moz-signature">-- <br>
<div id="oernii_footer" style="color: gray;">
<span style="font-family: Lucida Console, Luxi Mono, Courier,
monospace; font-size: 90%;">
Ernest Beinrohr, AXON PRO<br>
<a style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/ing.php">Ing</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a
style="text-decoration: none; color: gray;"
href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a
style="text-decoration: none; color: gray;"
href="callto://+421-2--6241-0360">+421-2--6241-0360</a>, <a
style="text-decoration: none; color: gray;"
href="callto://+421-903--482-603">+421-903--482-603</a><br>
icq:28153343, <a style="text-decoration: none; color: gray;"
href="callto://oernii-work">skype:oernii-work</a>,
<a class="moz-txt-link-abbreviated" href="mailto:jabber:oernii@jabber.org">jabber:oernii@jabber.org</a>
<br>
</span>
<hr style="height: 1px; width: 95%">
“The bureaucracy is expanding to meet the needs of the expanding
bureaucracy.”
― Oscar Wilde </div>
</div>
</body>
</html>
--------------000103050605020908050809--
11 years, 7 months
[Users] Correct order to bring the rhevm and rhevh down and then up
by Harjit Sachar
i have 2 physical machines
physical machine 1 ( base os + (storage server vm) + (rhevm+dns) + windows
2008 AD server )
physical machine 2 (rhevh)
kindly update what is the correct order to bring the machines down and then
up, because whenever i bring the machines up the master domain(iscsi) is
not found
my current order is ,
1) place storage domain in maintenance
2) place rhevh in maintainence
3) power off the storage vm
4) power off rhevh
11 years, 8 months
[Users] scsi disks inside VMs?
by Paul Jansen
---847950152-1577495757-1364439137=:4063
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello.=0AI'm wondering if it is possible to create VMs with ovirt that have=
scsi disks?=0AI've just installed ovirt 3.2.1 on Fedora 18 and attached an=
ovirt node (the current fedora 18 based version).=0A=0AWhen adding disks t=
o a VM I can chose from the 'IDE' or 'VirtIO' interfaces.=A0 I'd like a scs=
i option also.=0AMainly because when migrating from vsphere VMs this makes =
things simpler.=0AAlso, my current kickstart installer for various OSes doe=
s not yet handle 'vd' disks.=0ATo add to things I need to install a custom =
filesystem on the vms that wants a scsi disk.=A0 It does a scsi inquiry ear=
ly on in the install phase and will not work in 'vd' disks. ie: 'sg_inq /de=
v/vda' does not work.=0A=0AI also know that the libata driver in recent lin=
ux distributions exposes IDE drives as scsi and allows a scsi enquiry to su=
cceed.=A0 Unfortunately the use case I have required Enterprise Linux 5 and=
in this release IDE disks report as 'hd', whereas scsi disks report as 'sd=
'.=A0 So, I can just use an IDE disk to get around this problem.=0A=0A=0AI =
understand that virt-manager will allow attaching scsi disks to KVM based v=
irtual machines, and that this is made possible by recent changes in libvir=
t.=0A=0AI think we should be encouraging people to use the virtio disks whe=
re possible, but in cases where this is not straightforward ovirt - and RHE=
V - are missing a trick as far as allowing people that have existing vspher=
e setups to fairly easily move to ovirt.=0A=0AIs a 'scsi' interface' option=
for adding virtual disks for VMs on the roadmap?=A0 If not, could it be co=
nsidered?=0A=0AThanks.=0A
---847950152-1577495757-1364439137=:4063
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:lu=
cida console, sans-serif;font-size:12pt"><div>Hello.</div><div><span>I'm wo=
ndering if it is possible to create VMs with ovirt that have scsi disks?</s=
pan></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: =
lucida console,sans-serif; background-color: transparent; font-style: norma=
l;"><span>I've just installed ovirt 3.2.1 on Fedora 18 and attached an ovir=
t node (the current fedora 18 based version).</span></div><div style=3D"col=
or: rgb(0, 0, 0); font-size: 16px; font-family: lucida console,sans-serif; =
background-color: transparent; font-style: normal;"><br><span></span></div>=
<div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: lucida con=
sole,sans-serif; background-color: transparent; font-style: normal;"><span>=
When adding disks to a VM I can chose from the 'IDE' or 'VirtIO' interfaces=
. I'd like a scsi option also.</span></div><div style=3D"color: rgb(0=
,
0, 0); font-size: 16px; font-family: lucida console,sans-serif; background=
-color: transparent; font-style: normal;"><span>Mainly because when migrati=
ng from vsphere VMs this makes things simpler.</span></div><div style=3D"co=
lor: rgb(0, 0, 0); font-size: 16px; font-family: lucida console,sans-serif;=
background-color: transparent; font-style: normal;"><span>Also, my current=
kickstart installer for various OSes does not yet handle 'vd' disks.</span=
></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: luc=
ida console,sans-serif; background-color: transparent; font-style: normal;"=
><span>To add to things I need to install a custom filesystem on the vms th=
at wants a scsi disk. It does a scsi inquiry early on in the install =
phase and will not work in 'vd' disks. ie: '</span><span>sg_inq /dev/vda' d=
oes not work.</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 16p=
x; font-family: lucida console,sans-serif; background-color: transparent;
font-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-siz=
e: 16px; font-family: lucida console,sans-serif; background-color: transpar=
ent; font-style: normal;">I also know that the libata driver in recent linu=
x distributions exposes IDE drives as scsi and allows a scsi enquiry to suc=
ceed. Unfortunately the use case I have required Enterprise Linux 5 a=
nd in this release IDE disks report as 'hd', whereas scsi disks report as '=
sd'. So, I can just use an IDE disk to get around this problem.<br></=
div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: lucida=
console,sans-serif; background-color: transparent; font-style: normal;"><b=
r></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: lu=
cida console,sans-serif; background-color: transparent; font-style: normal;=
">I understand that virt-manager will allow attaching scsi disks to KVM bas=
ed virtual machines, and that this is made possible by recent changes in
libvirt.</div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-fam=
ily: lucida console,sans-serif; background-color: transparent; font-style: =
normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font=
-family: lucida console,sans-serif; background-color: transparent; font-sty=
le: normal;">I think we should be encouraging people to use the virtio disk=
s where possible, but in cases where this is not straightforward ovirt - an=
d RHEV - are missing a trick as far as allowing people that have existing v=
sphere setups to fairly easily move to ovirt.</div><div style=3D"color: rgb=
(0, 0, 0); font-size: 16px; font-family: lucida console,sans-serif; backgro=
und-color: transparent; font-style: normal;"><br></div><div style=3D"color:=
rgb(0, 0, 0); font-size: 16px; font-family: lucida console,sans-serif; bac=
kground-color: transparent; font-style: normal;">Is a 'scsi' interface' opt=
ion for adding virtual disks for VMs on the roadmap? If not, could it
be considered?</div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; fo=
nt-family: lucida console,sans-serif; background-color: transparent; font-s=
tyle: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px=
; font-family: lucida console,sans-serif; background-color: transparent; fo=
nt-style: normal;">Thanks.</div><div style=3D"color: rgb(0, 0, 0); font-siz=
e: 16px; font-family: lucida console,sans-serif; background-color: transpar=
ent; font-style: normal;"><br><span></span></div></div></body></html>
---847950152-1577495757-1364439137=:4063--
11 years, 8 months
[Users] ldap
by Ryan Wilkinson
I'm able to set up Active Directory authentication if my ovirt engine is
set to use dns that is hosted on the same system as Active Directory.
However, if I use static host entries in my engine "hosts" file instead of
using dns I'm getting the error "ldap server for domain not found" when I
issue the command: "engine-manage-domains -action=add -domain=’ovirt.local'
-user='admin' -provider=ActiveDirectory -interactive" from the engine. I've
googled to death how to configure static entries on my engine system for
the ldap server and it seems that I need to configure my nsswitch and
ldap.conf files but still no luck... Any ideas??
11 years, 8 months