DevStack安装问题与解决方法

1 ImportError: No module named netaddr

apt-get install python-netaddr




2 + SERVICE_DIR=/opt/stack/status

+ [[ ! -d /opt/stack/status/stack ]]

++ ls'/opt/stack/status/stack/*.failure'

ENTER A PASSWORD TO USE FOR THEDATABASE.

This value will be written to yourlocalrc file so you don't have to enter it

again. Use only alphanumericcharacters.



3 EC2_ACCESS_KEY environment variablemust be set.


source eucarc [username] [tenantname]

euca-describe-instances



4 socket.error: [Errno 111] Connection refused


重新运行./stack.sh


hfl00ibm


################################################################################

ENTER A PASSWORD TO USE FOR RABBIT.

################################################################################

This value will be written to yourlocalrc file so you don't have to enter it

again. Use only alphanumericcharacters.

 



################################################################################

ENTER A SERVICE_TOKEN TO USE FOR THESERVICE ADMIN TOKEN.

################################################################################

This value will be written to yourlocalrc file so you don't have to enter it

again. Use only alphanumericcharacters.


 



################################################################################

ENTER A SERVICE_PASSWORD TO USE FOR THESERVICE AUTHENTICATION.

################################################################################

This value will be written to yourlocalrc file so you don't have to enter it

again. Use only alphanumericcharacters.


 



################################################################################

ENTER A PASSWORD TO USE FOR HORIZON ANDKEYSTONE (20 CHARS OR LESS).

################################################################################

This value will be written to yourlocalrc file so you don't have to enter it

again. Use only alphanumericcharacters.


 


Horizon is now available athttp://192.168.1.102/

Keystone is serving athttp://192.168.1.102:5000/v2.0/

Examples on using novaclient commandline is in exercise.sh

The default users are: admin and demo

The password: hfl00ibm

This is your host ip: 192.168.1.102

stack.sh completed in 5158 seconds.



Keystone is serving athttp://192.168.1.102:5000/v2.0/

This XML file does not appear to haveany style information associated with it. The document tree is shownbelow.



5 ERROR: You must provide a username viaeither --os-username or env[OS_USERNAME]




source openrc [username] [tenantname] source openrc demo demo


可选:sourceeucarc [username] [tenantname] source exerciserc



/etc/profile 设置环境变量,可以对所有用户都生效

source /etc/profile

$. /etc/profile




6 OpenStack服务重启

/etc/init.d/networking restart

service keystone restart
serviceglance-api restart && service glance-registry restart


用于系统服务的重启:

service ntp restart

service mysql restart

service apache2 restart

 

/opt/stack/组件/bin/下面执行各个脚本进行服务重新启动。



同步数据库????为什么要同步?

nova-manage db sync





7 运行用户:

# OpenStack is designed to be run as anon-root user; Horizon will fail to run

# as **root** since Apache will notserve content from **root** user). If

# ``stack.sh`` is run as **root**, itautomatically creates a **stack** user with

# sudo privileges and runs as thatuser.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值