Devstack single node Installation on VM

Last three days, I want to install devstack on my virtual machine on Vmware Workstation.The VM‘system is Ubuntu14.04. However,i met too many problem to install it successfully.When i cannot see the hope, i had to borrow a America VM from my classmate.This vm‘s system is also Ubuntu14.04.To my surprise, the same operation steps, this America vm installed successfully.Here is picture which shows eventual installation:

Now,let me show my installation steps(thanks to SongPeng who is one of my emc workmate)

official documentation is here

1.update your system

$sudo apt-get update

2.reboot:make it work

3.install your git

$sudo apt-get install git

4.download devstack source code

$cd /usr/local/

$sudo git clone https://git.openstack.org/openstack-dev/devstack

5.in order to avoid permisstion denied, you can use create-stack-user.sh to create a user named stack and a group also named stack

$sudo /usr/local/devstack/tools/create-stack-user.sh

$sudo chown -R stack:stack /usr/local/devstack/

6.access stack

$sudo su stack

7.under the stack,you create a configuration file named ‘localrc‘,there is the simplest configuration below,the official documentation is here:

[email protected]:/usr/local/devstack$ vim localrc

ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD
#https协议打头是指通过http协议+TLS协议来克隆源码,
#解决碰到fatal: unable to connect to git.openstack.org的问题
GIT_BASE=${GIT_BASE:-https://git.openstack.org}

DEBUG=True
VERBOSE=True
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen

SYSLOG=False
LOG_COLOR=False
LOGDAYS=7

8.start to install(notice that under the stack)

[email protected]:/usr/local/devstack$ ./stack.sh

Till now,above is installation steps.Below are problems which i met and solutions.

grep -ir ‘error\|fail\|usage\|not found‘ /opt/stack/logs/stack.sh.log
grep -ir ‘error\|fail\|usage\|not found‘ /opt/stack/logs/screen/

A useful tip: when you see "error", scroll the log up until you find the root one.

Download dependency failed

Symptom:

1.

2.

Cause:Network is not stable

Solution:manual download relative dependency by yourself and install it

$cd /tmp/
$wget  https://pypi.python.org/packages/source/B/Bable-1.3.tar.gz
#verify md5 consistancy
$md5sum Bable-1.3.tar.gz $sudo pip install --upgrade Bable-1.3.tar.gz

Module version does not exist!

Symptom

:./stack.sh:68+sudo a2enmod version
ERROR: Module version does not exist!

The code location is in lib/apache:68. See the comment

Ensure mod_version enabled for . This is built-in statically on anything recent, but precise (2.2) doesn‘t have it enabled

So, feel free to ignore this error.

openstack role list raises unrecognized arguments: --group(thanks to Accelazh)

Symptom

::./stack.sh:780+openstack role list --group 3c65c1a8d12f40a2a9949d5b2922beae --project 18ab3a46314442b183db43bc13b175b4 --column ID --column Name
usage: openstack role list [-h] [-f {csv,html,json,table,yaml}] [-c COLUMN]
                           [--max-width <integer>]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--project <project>] [--user <user>]
openstack role list: error: unrecognized arguments: --group 3c65c1a8d12f40a2a9949d5b2922beae

Code location at lib/keystone:418, invoked by functions-common:773.

The first reason is that the python-openstackclient version is too old (openstack --version), upgrade it

sudo pip install --upgrade python-openstackclient

You need to add python-openstackclient to LIBS_FROM_GIT in local.conf, to make sure devstack uses the newest version of python-openstackclient. Note that, devstack will use master branch of python-openstackclient instead of stable/kilo.

# Add python-openstackclient to your LIBS_FROM_GIT
LIBS_FROM_GIT=python-openstackclient

The next step, since keystone v2.0 doesn‘t even have the concept "group", you need to force here to use keystone V3 api.

$ git diff
diff --git a/functions-common b/functions-common
index d3e93ed..bd55d7e 100644
--- a/functions-common
+++ b/functions-common
@@ -773,12 +773,15 @@ function get_or_add_user_project_role {
 # Gets or adds group role to project
 # Usage: get_or_add_group_project_role <role> <group> <project>
 function get_or_add_group_project_role {
+    local os_url="$KEYSTONE_SERVICE_URI_V3"
     # Gets group role id
     local group_role_id=$(openstack role list          --group $2          --project $3          --column "ID"          --column "Name" +        --os-identity-api-version=3 +        --os-url=$os_url          | grep " $1 " | get_field 1)
     if [[ -z "$group_role_id" ]]; then
         # Adds role to group
@@ -786,6 +789,8 @@ function get_or_add_group_project_role {
             $1              --group $2              --project $3 +            --os-identity-api-version=3 +            --os-url=$os_url              | grep " id " | get_field 2)
     fi
     echo $group_role_id

Related devstack bug: #1441010

InsecurePlatformWarning

cause:your Python version is too old

solution:upgrade to a newer Python version.

$sudo pip install --upgrade Python 

The eventual happy Running portal:

username:admin  secret:secrete

时间: 2024-10-17 21:48:44

Devstack single node Installation on VM的相关文章

Hadoop MapReduce Next Generation - Setting up a Single Node Cluster

Hadoop MapReduce Next Generation - Setting up a Single Node Cluster. Purpose This document describes how to set up and configure a single-node Hadoop installation so that you can quickly perform simple operations using Hadoop MapReduce and the Hadoop

Share single RDM between multiple VM&#39;s in ESX

1.Create a VM01 on esx01,Create a VM02 on esx02 2.Create the RDM on your VM01 (using the virtual, not physical)3.Add new disk to VM02 (select existing) and point it at the vmdk that corresponds to the RDM A Raw Disk Mapping (RDM) may be used to prese

Hadoop single Node cluster

目的: 本文描述怎么安装和配置一个单结点的Hadoop,以便搭建能快速简单操作和使用Hadoop的MapReduce和Hadoop的分布式文件系统(HDFS); 先决条件: 支持的平台 GNU/Linux 可用作开发和生产平台. Hadoop 在2000台GNU/Linux 的集群上做过演示. Windows 平台也是支持的, 下面的步骤仅对linux适用. 要在Windows上安装hadoop, 查看 wiki page. 所需软件: 在linux下,所需的软件如下: 必须安装JAVA. 推荐

ceph-deploy admin node Installation

ceph-deploy admin node Installation  准备: 1.系统版本,我的是server版的ubuntu 14.04 [email protected]:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty 2.系统内核 [email protected]:

Problem with WinRM on Exchange 2013 Management Shell and Exchange Toolbox on a new exchange 2013 with CAFE and BE on single server installation

While deploying MS Exchange 2013 I experienced issues with accessing the Exchange Management Shell and Exchange Toolbox. Whenever I tried to open the Exchange Management Shell I kept get the following error: VERBOSE: Connecting to Exchange2013.DOMAIN

Hadoop Single Node Cluster——Hadoop单节点集群的安装

Hadoop Single Node Cluster只以一台机器来建立Hadoop环境,仍然可以使用Hadoop命令,只是无法发挥使用多台机器的威力. 安装JDK 因为Hadoop是以Java开发的,所以必须先安装Java环境.本文是以Ubuntu系统为例 安装前查看java版本 在命令终端输入  java -version 查看 安装成功 返回的是 java 版本,未安装会提示包含在下列软件包中,执行下列命令安装 sudo apt-get update sudo apt-get install

Fedora-23 installation in VM image

Steps to install Fedora-23 in VM image Target:on the VM image, we can make gcc32bit and gcc64bit build. Set up a bridge on host We need set up a bridge on the interface which connect to internet, then attach a tap device(VM) to the bridge, so that VM

node核心模块-vm

vm vm是node的一个核心模块,核心功能官方文档介绍是: The vm module provides APIs for compiling and running code within V8 Virtual Machine contexts. The vm module is not a security mechanism. Do not use it to run untrusted code. The term "sandbox" is used throughout t

Installing Apache Hadoop Single Node

platform: Ubuntu 14.04 LTS hadoop 1.2.1 1. install ssh: $sudo apt-get install openssh-server $sudo apt-get install openssh-client 2. ssh no password access: $ssh wubin (your computer) $ssh-keygen $ssh localhost $cat ~/.ssh/id_rsa.put >> ~/.ssh/autho