Hi,

I am still trying to build a crowbar iso.  Somehow i haven't got success by
following the documentation:
https://github.com/crowbar/barclamp-crowbar/blob/release/hydrogen/master/doc/devguide/devtool-build.md

Below is what i get each time i run the sledgehammer script.


2014-01-24 18:29:45 +0200: Checking for Sledgehammer.
2014-01-24 18:29:45 +0200: Slegehammer TFTP image missing from
/home/oguz/.crowbar-build-cache/tftpboot !
2014-01-24 18:29:45 +0200: Attempting to build Sledgehammer:
mkdir: cannot create directory
`/home/oguz/.crowbar-build-cache/centos-6.2/sledgehammer-chroot':
Permission denied
2014-01-24 18:29:45 +0200: Picked admin.smoke.test
2014-01-24 18:29:50 +0200: Fetching files needed for chroot
2014-01-24 18:30:10 +0200: Not all files needed for CentOS chroot
downloaded.
2014-01-24 18:30:10 +0200: Unable to build Sledgehammer. Cannot build
Crowbar.

When i check build_lib.sh, at line 1334

 if [[ -d $CROWBAR_DIR/barclamps/provisioner/sledgehammer-common ]];

it never find this directory. So it is going to the elif part

elif ! [[ -f $SLEDGEHAMMER_PXE_DIR/initrd0.img ]]; then
        debug "Slegehammer TFTP image missing from ${SLEDGEHAMMER_PXE_DIR}
!"
        debug "Attempting to build Sledgehammer:"
        sudo "$CROWBAR_DIR/build_sledgehammer.sh" || \
            die "Unable to build Sledgehammer. Cannot build Crowbar."
    fi

I know there exists a initrd0.img but it seems it is created at the wrong
path.

Also trying to run build_sledgehammer.sh without sudo, which is causing the
error.


I tried adding sudo and retrying installation which ended with error also:

mount: /mnt/sledgehammer.iso is write-protected, mounting read-only
Your pxeboot image is complete.

Copy tftpboot/ subdirectory to /tftpboot or a subdirectory of /tftpboot.
Set up your DHCP, TFTP and PXE server to serve /tftpboot/.../pxeboot.0

Note: The initrd image contains the whole CD ISO and is consequently
very large.  You will notice when pxebooting that initrd can take a
long time to download.  This is normal behaviour.
2014-01-24 20:28:53 +0200: Copying over Sledgehammer bits from
/home/oguz/.crowbar-build-cache/tftpboot
2014-01-24 20:29:06 +0200: Creating new ISO
rsync: link_stat
"/home/oguz/.crowbar-build-cache/ubuntu-12.04/image/isolinux" failed: No
such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors)
(code 23) at main.c(1070) [sender=3.0.9]
mount: mount point
/home/oguz/.crowbar-build-cache/ubuntu-12.04/image/isolinux does not exist
genisoimage: Uh oh, I cant find the boot image 'isolinux/isolinux.bin' !
2014-01-24 20:32:15 +0200: There was a problem building our ISO.


It seems i am doing something wrong or missing some part.

Below is the steps i followed at my ubuntu vm.

sed -ie "s/%sudo\tALL=(ALL:ALL) ALL/%sudo ALL=(ALL) NOPASSWD: ALL/g"
/etc/sudoers
apt-get update
apt-get install git rpm ruby rubygems1.8 curl build-essential debootstrap \
mkisofs binutils markdown erlang debhelper python-pip \
build-essential libopenssl-ruby1.8 libssl-dev zlib1g-dev cabextract
libxml-ruby

gem install json net-http-digest_auth kwalify bundler rake rcov rspec
--no-ri --no-rdoc


mkdir -p ~/.crowbar-build-cache/iso
cd ~/.crowbar-build-cache/iso

cd ~

if  [ -f ubuntu-12.04.3-server-amd64.iso ]
then
mv ubuntu-12.04.3-server-amd64.iso ~/.crowbar-build-cache/iso
mkdir -p ~/.crowbar-build-cache/barclamps/dell_raid/files/dell_raid/tools/
cd ~/.crowbar-build-cache/barclamps/dell_raid/files/dell_raid/tools/
wget
http://www.lsi.com/downloads/Public/Host%20Bus%20Adapters/Host%20Bus%20Adapters%20Common%20Files/SAS_SATA_6G_P16/SAS2IRCU_P16.zip
wget
http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.07.07_MegaCLI.zip
fi

cd ~
git clone https://github.com/crowbar/crowbar.git
cd ~/crowbar

./dev setup --no-github
git config --global user.name "oguzy"
git config --global user.email "[email protected]"

./dev fetch --no-github

cd barclamps
for bc in *; do (cd "$bc"; git checkout master; git reset HEAD
README.empty-branch); done
cd ..
find ./ -name README.empty-branch -delete

./dev sync --no-github

cd ~/crowbar
sudo ./build_sledgehammer.sh


cd ~
sudo chown -R oguz:oguz ~/.crowbar-build-cache/barclamps

# clean up any .empty-branch files first
cd ~/crowbar/barclamps
for bc in *; do (cd "$bc"; git clean -f -x -d 1>/dev/null 2>&1; git reset
--hard 1>/dev/null 2>&1); done

cd  ~/crowbar/
./dev switch hydrogen/openstack-os-build
./dev build --os ubuntu-12.04 --update-cache


Will be happy if someone say me what is missing?

-- 
Oğuz Yarımtepe
http://about.me/oguzy
_______________________________________________
Crowbar mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: http://crowbar.github.com/

Reply via email to