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.