[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, 8 months
[Users] cannot assign network without IP address
by Vincent Van der Kussen
Hi,
I'm using oVirt 3.1 on CentOS 6.3 and have the following issue
If I add a logical network to the datacenter i cannot assign it to a host
without giving it an IP address.
I just want to use the logical network as a bridge without specifying an IP
address (None option in the network settings).
This is the error message :
Error while executing action Setup Networks: Illegal or Incomplete IP Address
In the log on the engine i see the following error :
VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip
To me this is complete bogus since none of my nics have any ip settings defined.
Only the ovirtmgmt network has this which is copied from the initial network setup
during the ovirt-engine install
I also found this post which discusses the same problem :
http://www.mail-archive.com/users@ovirt.org/msg06261.html
When adding the logical network to the datacenter I can also not unset the
"VM Network" option.
In our RHEV setup we can do this perfectly.
Regards,
Vincent
11 years, 8 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, 8 months
Re: [Users] about python sdk
by Michael Pasternak
On 04/02/2013 11:21 AM, leaboy@126 wrote:
> Hello:
>
> When I use samples-portals to connect to overt-engine, I find only super-user can login,
>
> And other user role can’t. So I don’t know whether overt-sdk doesn’t support other user role ,
>
> or some error in my test Environment.
>
>
>
> When I login http://localhost:8700/api, here is super-user too.
>
please use latest sdk and make sure 'filter' argument in the sdk
constructor is set to 'True' if you wish using non-sdmin api.
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
11 years, 8 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, 8 months
[Users] 2 node cluster with local storage?
by russell muetzelfeldt
Hi All,
Is there any supported way (or advice on the best unsupported way) to provision a 2-node cluster using local storage?
I've deployed RHEV 3.0 against both NFS and FC storage, and would like to bring up a 2 node oVirt 3.2 playground. I don't have access to a real storage server for this setup, but the hypervisor nodes have several spindles of 15K RPM SAS drives each so I'm assuming I can use DRBD and bond some 1GBPS ether links to provide a shared block device with adequate performance.
Ideally I'd like to use the regular CLVM storage pool but on local DRBD instead of FC, but I don't see any way to make oVirt use a volume group that it didn't create itself. Another possibility would be POSIX FS on GFS2 which looks like it should be supported but (afaict) would require doubling up on the cluster management layer.
Is there any way (even if not "production ready") to have a storage pool use a clvm vg that has been created outside of oVirt? Has anyone used the POSIX FS pool type against GFS2? Any other suggestions about how to put this together?
cheers
Russell
11 years, 8 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, 8 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, 8 months