http://man.linuxde.net/download/CentOS_7_3 #CentOS_7_3下载
https://docs.openstack.org/queens/
wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/Centos-7.repo
[root@localhost yum.repos.d]# more Centos-openstack.repo
[centos-openstack-newton]
name=CentOS-$releasever-openstack-newton
enabled=0
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/cloud/$basearch/openstack-newton
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[centos-openstack-ocata]
name=CentOS-$releasever-openstack-ocata
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/cloud/$basearch/openstack-ocata
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[centos-openstack-pike]
name=CentOS-$releasever-openstack-pike
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/cloud/$basearch/openstack-pike
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[centos-openstack-queens]
name=CentOS-$releasever-openstack-queens
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/cloud/$basearch/openstack-queens
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[kvm]
name=kvm
enabled=1
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/7/virt/x86_64/kvm-common/
gpgcheck=0
#gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
#################################################
#reposync -r centos-openstack-ocata -p /yumopenstack/
#reposync -r centos-openstack-pike -p /yumopenstack/
reposync -r centos-openstack-queens -p /yumopenstack/
reposync -r kvm -p /yumopenstack/
#################################################
yum install
python-openstackclient openstack-selinux python-openstackclient python2-PyMySQL
openstack-utils
mariadb mariadb-server mariadb-galera-server python2-PyMySQL
erlang socat rabbitmq-server
openstack-keystone httpd mod_wsgi memcached python-memcached
apr apr-util
openstack-glance python-glance
openstack-nova-api openstack-nova-conductor
openstack-nova-console openstack-nova-novncproxy
openstack-nova-scheduler openstack-nova-placement-api
openstack-nova-compute python-openstackclient openstack-selinux
openstack-neutron openstack-neutron-ml2
openstack-neutron-linuxbridge python-neutronclient ebtables ipset
openstack-neutron-linuxbridge ebtables ipset
openstack-dashboard
openstack-cinder targetcli python-keystone lvm2
corosync pacemaker pcs fence-agents resource-agents
openstack-neutron-linuxbridge
安装openstack最后到dashboard的时候报错:[Errno 256] No more mirrors to try.
很简单:
1.yum clean metadata
2.yum clean all
搞定!
至此,openstack也差不多一个个组件都正常了。接下来准备跑个vyos(电脑是真的有点hold不住)。
后面写个质量高一点的文章“How vRouter live in a cloud?”