yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02723
[Bug 1157695] Re: xenapi: RPM parted dependency
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => havana-1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1157695
Title:
xenapi: RPM parted dependency
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
I built a supplemental pack for XS 6.1:
Given you have ddk.iso in the working directory:
set -eux
# Update system and install dependencies
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get -qy upgrade
sudo apt-get install -qy git rpm
# Packages needed for ddk unpack
sudo apt-get install -qy kpartx qemu-utils
# Create suppack
GITREPO="$1"
git clone "$GITREPO"
cd nova
cd plugins/xenserver/xenapi/contrib/
./build-rpm.sh
# Get hold of ddk
cd
RPMFILE=$(find -name "*.noarch.rpm" -print)
mkdir suppack
DDKMOUNT=$(mktemp -d)
sudo mount -o loop ddk.iso $DDKMOUNT
( for CHUNK in $DDKMOUNT/ddk/xvda/*; do zcat $CHUNK; done; ) | dd of=xvda.vhd
qemu-img convert xvda.vhd -O raw xvda.raw
sudo kpartx -av xvda.raw
DDKROOT=$(mktemp -d)
sudo mount /dev/mapper/loop1p1 $DDKROOT
sudo mkdir $DDKROOT/mnt/host
sudo mount --bind $(pwd) $DDKROOT/mnt/host
sudo chroot $DDKROOT /usr/bin/build-supplemental-pack.sh \
--output=/mnt/host/suppack \
--vendor-code=novaplugin \
--vendor-name=openstack \
--label=novaplugins \
--text="nova plugins" \
--version=0 \
/mnt/host/$RPMFILE
And I tried to install that suppack:
[root@vh0 ~]# xe-install-supplemental-pack novaplugins.iso
Installing 'nova plugins'...
error: Failed dependencies:
parted is needed by openstack-xen-plugins-2012.1-1.noarch
FATAL: packages failed to install
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1157695/+subscriptions