Can't install DevStack on top of XCP 1.6 (cant' get stage.tgz from ansolabs)

Asked by Ivan

Hello.

I'm trying to install OpenStack on pre-installed XCP 1.6. So I'm following the instructions posted here http://wiki.openstack.org/NovaXCP.
But it is impossible to run step 14 (i.e build domU image file) because build_xva.sh script tries to download stage.tgz from images.ansolabs.com whereas there is no such file.

Output of build_xva.sh:
+ STAGING_DIR=/root/devstack/tools/xen/stage
+ CLEAN=0
+ '[' 0 = 1 ']'
+ BASE_IMAGE_URL=http://images.ansolabs.com/xen/stage.tgz
+ '[' '!' -e /root/devstack/tools/xen/stage ']'
+ '[' '!' -e /tmp/stage.tgz ']'
+ wget http://images.ansolabs.com/xen/stage.tgz -O /tmp/stage.tgz
--2012-12-25 15:30:29-- http://images.ansolabs.com/xen/stage.tgz
Resolving images.ansolabs.com... failed: Name or service not known.
wget: unable to resolve host address `images.ansolabs.com'
+ tar xfz /tmp/stage.tgz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
+ cd /root/devstack/tools/xen
+ rm -f /tmp/stage.tgz
+ '[' '!' -d /root/devstack/tools/xen/stage/etc ']'
+ echo 'Stage is not properly set up!'
Stage is not properly set up!
+ exit 1

As I understand logic of this script was changed recently and stage.tgz was removed from ansolabs.com.
So what am I supposed to do in this situation if I want to install stable OpenStack build on pre-installed XCP (that is on CentOS)? Is there any way to workaround the issue? Or do I need to file a bug on documentation?

Thanks,
Ivan.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Armando Migliaccio
Solved:
Last query:
Last reply:
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) said :
#1

This bug (1078618) has already been fixed

Revision history for this message
Ivan (imoiseev4list) said :
#2

Hi, Davanum.
I'm sorry, but I don't understand how this bug is related to my question because it introduced changes in another scripts and it didn't concern stage.tgz file. The only thing I understood from this bug is that files stored on ansolabs were removed from it. But this remove (fix of the bug) in case of stage.tgz introduced my problem.
So, the question is the same. Where to get correct installation instructions for installing OpenStack on pre-installed XCP (CentOS)? Or how to workaround the problem? Actually, I would prefer to use sources stable released build instead of taking current source from the git.

Revision history for this message
Best Armando Migliaccio (armando-migliaccio) said :
#3

What stable version are you trying to install? As far as I remember both Essex and Folsom should work fine. Please try to re-clone your devstack repo and switch to either one of the stable branches.

The most accurate instructions to install DevStack on XCP/XenServer can be found directly in the code:

https://github.com/openstack-dev/devstack/tree/stable/{YOUR-CHOSEN-BRANCH}/tools/xen

Revision history for this message
Ivan (imoiseev4list) said :
#4

Hi, Armando.
I was following instructions from http://wiki.openstack.org/NovaXCP. It proposes to download sources from https://github.com/cloudbuilders/devstack/tarball/milestone-proposed. Actually, I'm not sure which branch this tarball corresponds to, looks like it is master branch.
Anyway, method offered by you seems to solve the problem. At least I'm at stage of installing domU with Nova. So I think I can close the answer. Although, it is a pity that detailed instruction on wiki is incorrect.
Thank you for the help!

Revision history for this message
Ivan (imoiseev4list) said :
#5

Thanks Armando Migliaccio, that solved my question.

Revision history for this message
Mukesh Patel (mukesh-6) said :
#6

Hi guys

I'm having same problem, it seems that Ivan resolve the issue. I'm new to this can someone give me more information please?

Thanks
Mukesh

Revision history for this message
John Garbutt (johngarbutt) said :
#7

To get started try here:
https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md

If you hit problems, feel free to open a new question.

Revision history for this message
Mukesh Patel (mukesh-6) said :
#8

Hi John,

I followed the instructions as per the article, I'm half way through step 4 I run install_os_domU.sh that created a VM called DevStackOSDomU. I logged in VM using root credentials but I'm unable to find the "run.sh.log" file in the VM. In /opt/stack there are two files prepare_guest.sh and prepare_guest.log. I ran prepare_guest.log and it seems it runs some commands and wait for VM to shutdown. The last line of log file is "shutdown -h now". For some reason VM never goes down. I ran preapre_guest.sh and it only created

Revision history for this message
Mukesh Patel (mukesh-6) said :
#9

Hi John,
Sorry try again!!

I followed the instructions as per the article, I'm half way through step 4 I run install_os_domU.sh that created a VM called DevStackOSDomU. I logged in VM using root credentials but I'm unable to find the "run.sh.log" file in the VM.
In /opt/stack there are two files prepare_guest.sh and prepare_guest.log. I ran prepare_guest.log and it seems it runs some commands and wait for VM to shutdown. The last line of log file is "shutdown -h now". For some reason VM never goes down. I ran preapre_guest.sh and it dowload stage.tgz and uncompress it.

As said I'm running with very limited knowledge in this area

Thanks
Mukesh