Re: [Openstack] [DevStack] DevStackInstallation with XEN
Hi, I tell you my experience. In order to deploy a single node installation is enough to set the localrc file as showed here https://wiki.openstack.org/wiki/XenServer/VirtualBox then you have to run only the script ./install_os_domU.sh The video you metioned is not up to date. My suggestion is to install this configuration on a physical machine (not a VM). Moreover, it is better that dom0 is not behind a proxy server. Antonio On 21 March 2013 11:07, HuYanrui h...@arraynetworks.com.cn wrote: ** Gents, Not sure if can get reply here for such installation issues. I want to install DevStack with XenServer (to verify some idea with Openstack on Xen hepervisor) and blocked by some problems. What I refer: https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md https://wiki.openstack.org/wiki/XenServer/DevStack And a video instruction on youtube. My issues are: 1. there is step of build_xva.sh on github. but have on wiki and video. Is this step must? 2. I tried build_xva.sh on a ubuntu machine installed xe and xm, but the script stopped at xe vm-list Is this my configuration issue? seems a low level error. 3. Without build_xva, I direct use install_os_domU, but failed at start the VM. By switch to the ALLINONE vm, it stop at configuration screen. 4. The localrc config file on github is different with the one in video. Which is correct? Or it is environment depended? 5. Is it feasible to use devstack with Suse OpenXen instead of Xenserver? any help document? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] [OpenStack] Keystone did not start - DevStack Installation
Hi all, actually i'm trying to install OpenStack through DevStack script. Unfortunately the installation is not successful because the keystone service doesn't start. This is the log of the script: 2013-02-05 13:19:05 + SCREEN_NAME=stack 2013-02-05 13:19:05 + SCREENRC=/opt/stack/devstack/stack-screenrc 2013-02-05 13:19:05 + [[ ! -e /opt/stack/devstack/stack-screenrc ]] 2013-02-05 13:19:05 + grep key /opt/stack/devstack/stack-screenrc 2013-02-05 13:19:05 ++ echo -ne '\015' 2013-02-05 13:19:05 + NL=$'\r' 2013-02-05 13:19:05 + echo 'screen -t key bash' 2013-02-05 13:19:05 + echo 'stuff cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug ' 2013-02-05 13:19:05 + screen -S stack -X screen -t key 2013-02-05 13:19:05 + sleep 1.5 2013-02-05 13:19:06 + [[ -n '' ]] 2013-02-05 13:19:06 + screen -S stack -p key -X stuff 'cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || touch /opt/stack/status/stack/key.failure ' 2013-02-05 13:19:06 + echo 'Waiting for keystone to start...' 2013-02-05 13:19:06 Waiting for keystone to start... 2013-02-05 13:19:06 + timeout 60 sh -c 'while ! http_proxy= curl -s http://163.162.24.167:5000/v2.0/ /dev/null; do sleep 1; done' ]0;stack@openstack-controller: ~/devstackstack@openstack-controller:~/devstack$ 2013-02-05 13:20:06 + echo 'keystone did not start' 2013-02-05 13:20:06 keystone did not start 2013-02-05 13:20:06 + exit 1 2013-02-05 13:20:06 + clean 2013-02-05 13:20:06 + local r=1 2013-02-05 13:20:06 ++ jobs -p 2013-02-05 13:20:06 + kill 2013-02-05 13:20:06 + exit 1 How this problem can be solved? Antonio ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] Keystone did not start - DevStack Installation
Hi Adam, thanks for your answer. First of all, the full log of my script is here www.forumaltavilla.it/joomla/Documenti/log_devstack.txt It seems that there are some problems in managing user permissions. Even if I included the stack user in /etc/sudoers adding the following line stack ALL=(ALL) NOPASSWD: ALL Moreover, i can't execute the script as root because, by default, it switch to the stack user. however, the output of the command /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug is stack@openstack-controller:~/keystone$ /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug Traceback (most recent call last): File /opt/stack/keystone/bin/keystone-all, line 82, in module config.setup_logging(CONF) File /opt/stack/keystone/keystone/config.py, line 41, in setup_logging logging.config.fileConfig(conf.log_config) File /usr/lib/python2.7/logging/config.py, line 78, in fileConfig handlers = _install_handlers(cp, formatters) File /usr/lib/python2.7/logging/config.py, line 156, in _install_handlers h = klass(*args) File /usr/lib/python2.7/logging/__init__.py, line 897, in __init__ StreamHandler.__init__(self, self._open()) File /usr/lib/python2.7/logging/__init__.py, line 916, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/opt/stack/keystone/keystone.log' while if i launch that command with sudo, it seems that it runs. Thank you, Antonio On 5 February 2013 17:04, Adam Young ayo...@redhat.com wrote: On 02/05/2013 08:00 AM, Antonio Tirri wrote: Hi all, actually i'm trying to install OpenStack through DevStack script. Unfortunately the installation is not successful because the keystone service doesn't start. This is the log of the script: 2013-02-05 13:19:05 + SCREEN_NAME=stack 2013-02-05 13:19:05 + SCREENRC=/opt/stack/devstack/stack-screenrc 2013-02-05 13:19:05 + [[ ! -e /opt/stack/devstack/stack-screenrc ]] 2013-02-05 13:19:05 + grep key /opt/stack/devstack/stack-screenrc 2013-02-05 13:19:05 ++ echo -ne '\015' 2013-02-05 13:19:05 + NL=$'\r' 2013-02-05 13:19:05 + echo 'screen -t key bash' 2013-02-05 13:19:05 + echo 'stuff cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug ' 2013-02-05 13:19:05 + screen -S stack -X screen -t key 2013-02-05 13:19:05 + sleep 1.5 2013-02-05 13:19:06 + [[ -n '' ]] 2013-02-05 13:19:06 + screen -S stack -p key -X stuff 'cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || touch /opt/stack/status/stack/key.failure ' 2013-02-05 13:19:06 + echo 'Waiting for keystone to start...' 2013-02-05 13:19:06 Waiting for keystone to start... 2013-02-05 13:19:06 + timeout 60 sh -c 'while ! http_proxy= curl -s http://163.162.24.167:5000/v2.0/ /dev/null; do sleep 1; done' ]0;stack@openstack-controller: ~/devstack stack@openstack-controller:~/devstack$ 2013-02-05 13:20:06 + echo 'keystone did not start' 2013-02-05 13:20:06 keystone did not start 2013-02-05 13:20:06 + exit 1 2013-02-05 13:20:06 + clean 2013-02-05 13:20:06 + local r=1 2013-02-05 13:20:06 ++ jobs -p 2013-02-05 13:20:06 + kill 2013-02-05 13:20:06 + exit 1 How this problem can be solved? Antonio ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp screen -S stack -p key -X stuff 'cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || touch /opt/stack/status/stack/key.failure Is the command that starts keystone. From the above, it not clear why it is failing. You should be able to run it interactively with: cd /opt/stack/keystone /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug And get more output. If it swallows all the output, look in /etc/keystone/logging.conf to see what it is set at. It might be sending it to a log file, such as /var/log/keystone ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Can OpenStack manage different hypervisors at same time?
Hi, I use DevStack in order to setup a cloud system. I have to build a configuration in which a single OpenStack Controller has to manage different nodes. In particular, a node has to have a KVM hypervisor (with Ubuntu) and anther one has to have a XEN hypervisor (with Cent OS). The configuration I want to set up is showed in the figure below. http://sphotos-c.ak.fbcdn.net/hphotos-ak-snc6/272324_4457710394152_2048118135_o.jpg My question is: is it enough to configure the file nova.conf on each node in the way showed in the figure? Should it work? Thank you Antonio ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] DevStack setup on XenServer
Thank you Bob. I expanded the RAM of my Virtual Machine, but the execution of the script show me this error: ++ dirname /root/devstack/openstack-dev-devstack-f49c410/tools/xen/scripts/install-os-vpx.sh + thisdir=/root/devstack/openstack-dev-devstack-f49c410/tools/xen/scripts + '[' '' ']' + '[' 'Ubuntu 11.10 (64-bit) for DevStack' ']' + echo Ubuntu 11.10 '(64-bit)' for DevStack Ubuntu 11.10 (64-bit) for DevStack ++ xe_min vm-install 'template=Ubuntu 11.10 (64-bit) for DevStack' new-name-label=DevStackOSDomU ++ local cmd=vm-install ++ shift ++ xe vm-install --minimal 'template=Ubuntu 11.10 (64-bit) for DevStack' new-name-label=DevStackOSDomU Error: Failed to find a valid default SR for the Pool. Please provide an sr-name-label or sr-uuid parameter. + vm_uuid= complete log is here www.forumaltavilla.it/joomla/Documenti/installazione2.txt It seems that XenServer isn't able to find the Ubuntu image for the DomU Thanks a lot, Antonio On 29 January 2013 12:26, Bob Ball bob.b...@citrix.com wrote: Hi Antonio, ** ** I’m assuming that there really is enough free memory on the XS host? Could you check with XenCenter or the following command line that XenServer knows there is enough memory? xe host-list params=memory-total,memory-free ** ** It’s possible that this is related to dynamic memory allocation – from the log file the devstack setup used the following: xe vm-memory-limits-set static-min=16MiB static-max=1024MiB dynamic-min=1024MiB dynamic-max=1024MiB uuid=e3975dab-c7a5-7490-02c6-988185a2c6f6 ** ** Try changing the static-min value to 1024 so dynamic memory allocation is ruled out: xe vm-memory-limits-set static-min=1024MiB static-max=1024MiB dynamic-min=1024MiB dynamic-max=1024MiB uuid=e3975dab-c7a5-7490-02c6-988185a2c6f6 ** ** Thanks, ** ** Bob ** ** *From:* openstack-bounces+bob.ball=citrix@lists.launchpad.net [mailto: openstack-bounces+bob.ball=citrix@lists.launchpad.net] *On Behalf Of *Antonio Tirri *Sent:* 28 January 2013 19:15 *To:* openstack@lists.launchpad.net *Subject:* [Openstack] [OpenStack] DevStack setup on XenServer ** ** I have to install a devstack multinode using 3 nodes configured as follows: 1) Controller on Ubuntu 12.04 LTS 2) Node Compute on Ubuntu 12.04 LTS with KVM hypervisor 3) Node Compute on XenServer While in first two points I am successful, the third point show me the following error when i launch the script ./install_os_domU.sh --- + echo -n 'Starting VM... ' Starting VM... + xe vm-start uuid=e3975dab-c7a5-7490-02c6-988185a2c6f6 There are no suitable hosts to start this VM on. The following table provides per-host reasons for why the VM could not be started: xenserver-antonio: Cannot start here [Not enough free memory] --- Full log is at this address: http://www.forumaltavilla.it/joomla/Documenti/installazione.txt How can I solve this problem? Thank you ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] [OpenStack] DevStack setup on XenServer
I have to install a devstack multinode using 3 nodes configured as follows: 1) Controller on Ubuntu 12.04 LTS 2) Node Compute on Ubuntu 12.04 LTS with KVM hypervisor 3) Node Compute on XenServer While in first two points I am successful, the third point show me the following error when i launch the script ./install_os_domU.sh --- + echo -n 'Starting VM... ' Starting VM... + xe vm-start uuid=e3975dab-c7a5-7490-02c6-988185a2c6f6 There are no suitable hosts to start this VM on. The following table provides per-host reasons for why the VM could not be started: xenserver-antonio: Cannot start here [Not enough free memory] --- Full log is at this address: http://www.forumaltavilla.it/joomla/Documenti/installazione.txt How can I solve this problem? Thank you ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp