openstack安装记录
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
tar zxf openstack-ubuntu-14-04.tar.gz
cd openstack-ubuntu-14-04
./init.sh
./create_link.sh
cd tools
./create_http_repo.sh
ls /var/www/html/pip/routes/(查看信息)
cd chap03/
cd mysql
nano localrc
修改IP地址
./mysql.sh
nano /etc/mysql/my.cfg(修改mysql连接慢的问题)skip-name-resolve(添加)
service mysql restart
连接验证mysql
mysql -uroot -pmysqlpassword
mysql -uroot -pmysqlpassword -h192.168.80.128
cd ..
cd rabbitmq
./rabbitmq.sh
cd keystone/
nano localrc
修改其中IP地址
cd ~
source keyrc (先运行这个)
keystone user-list
keystone endpoint-list
keystone tenant-list
source keyrc
ps aux | grep keystone
cd /var/log/nova/
nano keystone.log
cd opt/openstack-ubuntu-14-04/chap04
nano localrc
sed -i "s, 192.168.56.101,192.168.56.180,g" localrc
swift
ls /var/log/swift
source swiftrc
root@ubuntu:~# swift stat
Account: AUTH_cb8002aea9034839bdea51e32f92e4c0 Containers: 0
Objects: 0
Bytes: 0
Accept-Ranges: bytes
X-Timestamp: 1434269544.24287
X-Trans-Id: txb1ba99e4eba04a718bd7a72883359057 Content-Type: text/plain; charset=utf-8
swift --help (swift帮助)
glance
cd ~
source glancerc
glance index
ifconfig eth3 down
ifconfig eth3 up
ifconfig eth3 0.0.0.0 up
nano /etc/sysctl.conf
root@ubuntu:/etc/network# sysctl -p
net.ipv4.ip_forward = 1
echo 1 > /proc/sys/net/ipv4/ip_forward
root@ubuntu:/etc/network# cat /proc/sys/net/ipv4/ip_forward 1
source quantumrc
root@ubuntu:~# quantum net-list
root@ubuntu:~# la /var/log/quantum/
quantum-openvswitch-agent.log
root@ubuntu:~# ps aux | grep quantum
%s,192.168.56.101,192.168.56.180,g
ls /var/log/cinder
cd ~
root@ubuntu:~# source cinderrc
root@ubuntu:~# cinder list
ps aux | grep nova
ls /var/log/nova
cd ~
source novarc
root@ubuntu:~# nova list
| ID | Name | Status | Networks |
+----+------+--------+----------+
+----+------+--------+----------+
root@ubuntu:~# virsh list --all
Id Name State
--------------------------------------------------
openstack重启需要做的动作如下
service mysql start
service rabbitmq-server start
service keystone start
source keyrc
keystone user-list
./swift-proxy.sh
./swift-storage.sh
source swiftrc
swift stat
./glance.sh
source glancerc
glance index
./quantum.sh
./quantum-agent.sh
source quantumrc
quantum net-list
./cinder-api.sh
./cinder-volume.sh
root@ubuntu:~# ps aux | grep cinder
root 4456 1.8 1.3 132960 40352 pts/0 S 07:36 0:00 python /opt/stack/cinder/bin/cinder-api --config-file /etc/cinder/cinder.conf
root 4457 2.1 1.3 211312 40552 pts/0 S 07:36 0:00 python /opt/stack/cinder/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf
root 4493 3.5 0.7 94324 22728 pts/0 S 07:36 0:01 python /opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf
root 4500 1.1 1.2 210904 38960 pts/0 S 07:36 0:00 python /opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf
root 4628 0.0 0.0 11740 940 pts/0 S+ 07:37 0:00 grep --color=auto cinder
./nova-api.sh
./nova-compute.sh
source novarc(nova里面虚拟机)
root@ubuntu:~# nova list
+----+------+--------+----------+
| ID | Name | Status | Networks |