CENTOS7.2使用RDO方式安装OpenStack Mitaka笔记

简介:

CENTOS7.2使用RDO方式安装OpenStack Mitaka笔记


1、配置/etc/hosts

192.168.13.108 openstack


2、配置OpenStack Mitaka安装源

[root@openstack ~]# sudo yum install -y centos-release-openstack-mitaka

[root@openstack ~]# yum clean all; yum makecache; yum update


3、安装packstack,开始安装OpenStack

[root@openstack ~]# yum install -y openstack-packstack

[root@openstack ~]# packstack --allinone


第一次报错:

192.168.13.108_cinder.pp:                         [ ERROR ]           

Applying Puppet manifests                         [ ERROR ]


ERROR : Error appeared during Puppet run: 192.168.13.108_cinder.pp

Error: Failed to apply catalog: Found 1 dependency cycle:

You will find full trace in log /var/tmp/packstack/20160920-033611-c2FBxv/manifests/192.168.13.108_cinder.pp.log


[root@openstack ~]# cat /var/tmp/packstack/20160920-033611-c2FBxv/manifests/192.168.13.108_cinder.pp.log

Warning: Scope(Class[Cinder::Backup::Swift]): The OpenStack default value of backup_swift_container differs from the puppet module default of "volumes_backup" and will be changed to the upstream OpenStack default in N-release.

Warning: Scope(Cinder::Type[iscsi]): Parameters $os_password/$os_region_name/$os_tenant_name/$os_username/$os_auth_url are not longer required

Warning: Scope(Cinder::Type[iscsi]): Auth creds will be used from env or /root/openrc file or cinder.conf

Notice: Compiled catalog for openstack.openstacklocal in environment production in 1.19 seconds

Error: Failed to apply catalog: Found 1 dependency cycle:

(Exec[losetup /dev/loop2 /var/lib/cinder/cinder-volumes] => Class[Cinder::Setup_test_volume] => File[/var/lib/cinder] => File[/var/lib/cinder/cinder-volumes] => Exec[losetup /dev/loop2 /var/lib/cinder/cinder-volumes])

Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz


修改answer-file:

[root@openstack ~]# vim packstack-answers-20160920-033612.txt

CONFIG_CINDER_BACKEND=lvm  #默认存储后端使用用块存储,默认为lvm,因为本次实验使用的是已有OpenStack的VM中测试,只一个分区,没有创建cinder-volumes,修改为

CONFIG_CINDER_BACKEND=


使用answer-file继续安装

[root@openstack ~]# packstack --answer-file=packstack-answers-20160920-033612.txt


第二个报错:

192.168.13.108_provision_glance:                  [ ERROR ]               

Applying Puppet manifests                         [ ERROR ]


ERROR : Error appeared during Puppet run: 192.168.13.108_provision_glance

Error: Execution of '/usr/bin/openstack image create --format shell cirros --public --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img' returned 1: 400 Bad Request: The HTTP URL is invalid: HTTPConnectionPool(host='download.cirros-cloud.net', port=80): Max retries exceeded with url: /0.3.4/cirros-0.3.4-x86_64-disk.img (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x529ed10>: Failed to establish a new connection: [Errno -2] Name or service not known',)) (HTTP 400)

网络太慢,下载cirros镜像失败,再试一次就好了。

 

[root@openstack ~]# packstack --answer-file=packstack-answers-20160920-033612.txt

Welcome to the Packstack setup utility


The installation log file is available at: /var/tmp/packstack/20160920-062350-B8XWSm/openstack-setup.log


Installing:

Clean Up                                             [ DONE ]

Discovering ip protocol version                      [ DONE ]

Setting up ssh keys                                  [ DONE ]

Preparing servers                                    [ DONE ]

Pre installing Puppet and discovering hosts' details [ DONE ]

Adding pre install manifest entries                  [ DONE ]

Setting up CACERT                                    [ DONE ]

Adding AMQP manifest entries                         [ DONE ]

Adding MariaDB manifest entries                      [ DONE ]

Adding Apache manifest entries                       [ DONE ]

Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]

Adding Keystone manifest entries                     [ DONE ]

Adding Glance Keystone manifest entries              [ DONE ]

Adding Glance manifest entries                       [ DONE ]

Adding Cinder Keystone manifest entries              [ DONE ]

Adding Cinder manifest entries                       [ DONE ]

Adding Nova API manifest entries                     [ DONE ]

Adding Nova Keystone manifest entries                [ DONE ]

Adding Nova Cert manifest entries                    [ DONE ]

Adding Nova Conductor manifest entries               [ DONE ]

Creating ssh keys for Nova migration                 [ DONE ]

Gathering ssh host keys for Nova migration           [ DONE ]

Adding Nova Compute manifest entries                 [ DONE ]

Adding Nova Scheduler manifest entries               [ DONE ]

Adding Nova VNC Proxy manifest entries               [ DONE ]

Adding OpenStack Network-related Nova manifest entries[ DONE ]

Adding Nova Common manifest entries                  [ DONE ]

Adding Neutron VPNaaS Agent manifest entries         [ DONE ]

Adding Neutron FWaaS Agent manifest entries          [ DONE ]

Adding Neutron LBaaS Agent manifest entries          [ DONE ]

Adding Neutron API manifest entries                  [ DONE ]

Adding Neutron Keystone manifest entries             [ DONE ]

Adding Neutron L3 manifest entries                   [ DONE ]

Adding Neutron L2 Agent manifest entries             [ DONE ]

Adding Neutron DHCP Agent manifest entries           [ DONE ]

Adding Neutron Metering Agent manifest entries       [ DONE ]

Adding Neutron Metadata Agent manifest entries       [ DONE ]

Adding Neutron SR-IOV Switch Agent manifest entries  [ DONE ]

Checking if NetworkManager is enabled and running    [ DONE ]

Adding OpenStack Client manifest entries             [ DONE ]

Adding Horizon manifest entries                      [ DONE ]

Adding Swift Keystone manifest entries               [ DONE ]

Adding Swift builder manifest entries                [ DONE ]

Adding Swift proxy manifest entries                  [ DONE ]

Adding Swift storage manifest entries                [ DONE ]

Adding Swift common manifest entries                 [ DONE ]

Adding Provisioning manifest entries                 [ DONE ]

Adding Provisioning Glance manifest entries          [ DONE ]

Adding Provisioning Demo bridge manifest entries     [ DONE ]

Adding Gnocchi manifest entries                      [ DONE ]

Adding Gnocchi Keystone manifest entries             [ DONE ]

Adding MongoDB manifest entries                      [ DONE ]

Adding Redis manifest entries                        [ DONE ]

Adding Ceilometer manifest entries                   [ DONE ]

Adding Ceilometer Keystone manifest entries          [ DONE ]

Adding Aodh manifest entries                         [ DONE ]

Adding Aodh Keystone manifest entries                [ DONE ]

Adding Nagios server manifest entries                [ DONE ]

Adding Nagios host manifest entries                  [ DONE ]

Copying Puppet modules and manifests                 [ DONE ]

Applying 192.168.13.108_prescript.pp

192.168.13.108_prescript.pp:                         [ DONE ]         

Applying 192.168.13.108_amqp.pp

Applying 192.168.13.108_mariadb.pp

192.168.13.108_amqp.pp:                              [ DONE ]       

192.168.13.108_mariadb.pp:                           [ DONE ]       

Applying 192.168.13.108_apache.pp

192.168.13.108_apache.pp:                            [ DONE ]       

Applying 192.168.13.108_keystone.pp

Applying 192.168.13.108_glance.pp

Applying 192.168.13.108_cinder.pp

192.168.13.108_keystone.pp:                          [ DONE ]         

192.168.13.108_glance.pp:                            [ DONE ]         

192.168.13.108_cinder.pp:                            [ DONE ]         

Applying 192.168.13.108_api_nova.pp

192.168.13.108_api_nova.pp:                          [ DONE ]         

Applying 192.168.13.108_nova.pp

192.168.13.108_nova.pp:                              [ DONE ]     

Applying 192.168.13.108_neutron.pp

192.168.13.108_neutron.pp:                           [ DONE ]       

Applying 192.168.13.108_osclient.pp

Applying 192.168.13.108_horizon.pp

192.168.13.108_osclient.pp:                          [ DONE ]         

192.168.13.108_horizon.pp:                           [ DONE ]         

Applying 192.168.13.108_ring_swift.pp

192.168.13.108_ring_swift.pp:                        [ DONE ]           

Applying 192.168.13.108_swift.pp

192.168.13.108_swift.pp:                             [ DONE ]     

Applying 192.168.13.108_provision.pp

Applying 192.168.13.108_provision_glance

192.168.13.108_provision.pp:                         [ DONE ]             

192.168.13.108_provision_glance:                     [ DONE ]             

Applying 192.168.13.108_provision_bridge.pp

192.168.13.108_provision_bridge.pp:                  [ DONE ]                 

Applying 192.168.13.108_gnocchi.pp

192.168.13.108_gnocchi.pp:                           [ DONE ]       

Applying 192.168.13.108_mongodb.pp

Applying 192.168.13.108_redis.pp

192.168.13.108_mongodb.pp:                           [ DONE ]       

192.168.13.108_redis.pp:                             [ DONE ]       

Applying 192.168.13.108_ceilometer.pp

192.168.13.108_ceilometer.pp:                        [ DONE ]           

Applying 192.168.13.108_aodh.pp

192.168.13.108_aodh.pp:                              [ DONE ]     

Applying 192.168.13.108_nagios.pp

Applying 192.168.13.108_nagios_nrpe.pp

192.168.13.108_nagios.pp:                            [ DONE ]           

192.168.13.108_nagios_nrpe.pp:                       [ DONE ]           

Applying Puppet manifests                            [ DONE ]

Finalizing                                           [ DONE ]


 **** Installation completed successfully ******


Additional information:

 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.

 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.13.108. To use the command line tools you need to source the file.

 * To access the OpenStack Dashboard browse to http://192.168.13.108/dashboard .

Please, find your login credentials stored in the keystonerc_admin in your home directory.

 * To use Nagios, browse to http://192.168.13.108/nagios username: nagiosadmin, password: ab7b1f659e654acc

 * Because of the kernel update the host 192.168.13.108 requires reboot.

 * The installation log file is available at: /var/tmp/packstack/20160920-062350-B8XWSm/openstack-setup.log

 * The generated manifests are available at: /var/tmp/packstack/20160920-062350-B8XWSm/manifests

[root@openstack ~]#


基本安装完成!

wKioL1fhB0XwuNCfAACttIRdMLI076.png-wh_50


RDO官方安装步骤:

  • On CentOS:

    $ sudo yum install -y centos-release-openstack-mitaka
    $ sudo yum update -y
    $ sudo yum install -y openstack-packstack
    $ packstack --allinone

  • $ sudo systemctl disable firewalld
    $ sudo systemctl stop firewalld
    $ sudo systemctl disable NetworkManager
    $ sudo systemctl stop NetworkManager
    $ sudo systemctl enable network
    $ sudo systemctl start network                                                                                                                                                                                                                           
    本文转自 OpenStack2015 51CTO博客,原文链接:http://blog.51cto.com/andyliu/1854591,如需转载请自行联系原作者

相关实践学习
部署Stable Diffusion玩转AI绘画(GPU云服务器)
本实验通过在ECS上从零开始部署Stable Diffusion来进行AI绘画创作,开启AIGC盲盒。
相关文章
|
27天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
100 64
|
28天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
108 61
|
20天前
|
Linux 网络安全 数据安全/隐私保护
Linux系统之Centos7安装cockpit图形管理界面
【10月更文挑战第12天】Linux系统之Centos7安装cockpit图形管理界面
47 1
Linux系统之Centos7安装cockpit图形管理界面
|
4天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,并与使用 RPM 包安装进行了对比
本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,并与使用 RPM 包安装进行了对比。通过具体案例,读者可以了解如何准备环境、下载源码、编译安装、配置服务及登录 MySQL。编译源码安装虽然复杂,但提供了更高的定制性和灵活性,适用于需要高度定制的场景。
16 3
|
5天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码安装 MySQL 数据库的详细步骤,并与使用 RPM 包安装进行了对比。
本文介绍了在 CentOS 7 中通过编译源码安装 MySQL 数据库的详细步骤,并与使用 RPM 包安装进行了对比。内容涵盖准备工作、下载源码、编译安装、配置服务、登录设置及实践心得,帮助读者根据需求选择最适合的安装方法。
12 2
|
26天前
|
NoSQL 数据可视化 Linux
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
本文介绍了Redis的两个可视化管理工具:付费的Redis Desktop Manager和免费的Another Redis DeskTop Manager,包括它们的下载、安装和使用方法,以及在使用Another Redis DeskTop Manager连接Redis时可能遇到的问题和解决方案。
79 1
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
|
7天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。
本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。同时,文章还对比了编译源码安装与使用 RPM 包安装的优缺点,帮助读者根据需求选择最合适的方法。通过具体案例,展示了编译源码安装的灵活性和定制性。
43 2
|
1月前
|
Linux Docker 容器
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
本篇博客重在讲解Centos安装docker,经博主多次在不同服务器上测试,极其的稳定,尤其是阿里的服务器,一路复制命令畅通无阻。
212 4
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
|
11天前
|
Linux 知识图谱
Centos7安装killall,fuser, killall,pstree和pstree.x11
通过上述步骤,您已在CentOS 7系统中成功部署了killall、fuser、pstree以及pstree.x11,为高效管理系统进程打下了坚实基础。更多关于服务器管理与优化的知识,获取全面技术支持与解决方案。
13 1
|
11天前
|
监控 安全 Linux
CentOS7下安装配置ntp服务的方法教程
通过以上步骤,您不仅能在CentOS 7系统中成功部署NTP服务,还能确保其配置合理、运行稳定,为系统时间的精确性提供保障。欲了解更多高级配置或遇到特定问题,提供了丰富的服务器管理和优化资源,可作为进一步学习和求助的平台。
23 1