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

1、配置/etc/hosts

192.168.13.108 openstack

2、配置OpenStack Mitaka安装源

[[email protected] ~]# sudo yum install -y centos-release-openstack-mitaka

[[email protected] ~]# yum clean all; yum makecache; yum update

3、安装packstack,开始安装OpenStack

[[email protected] ~]# yum install -y openstack-packstack

[[email protected] ~]# 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

[[email protected] ~]# 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:

[[email protected] ~]# vim packstack-answers-20160920-033612.txt

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

CONFIG_CINDER_BACKEND=

使用answer-file继续安装

[[email protected] ~]# 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镜像失败,再试一次就好了。

[[email protected] ~]# 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

[[email protected] ~]#

基本安装完成!

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
时间: 2024-10-11 13:35:21

CENTOS7.2使用RDO方式安装OpenStack Mitaka笔记的相关文章

在CentOS上以RDO方式部署openstack

CentOS7下以RDO方式安装all-in-one的openstack 因为对团队的环境部署和持续集成还不了解,先使用最简单的方式安装个开发环境.过程总结如下. 1.   Openstack部署的方式 通常如果只是搭一套环境自己用的话,使用CentOS的RDO方式搭建all-in-one的openstack开发环境是最快的.(RDO是什么?https://www.rdoproject.org/) 但是如果考虑持续集成.部署和升级的话,肯定需要专门的工具来打包.安装二次开发的代码,通常使用fue

CENTOS7 安装openstack mitaka版本(最新整理完整版附详细截图和操作步骤,添加了cinder和vxlan)

CENTOS7 安装openstack mitaka版本(最新整理完整版附详细截图和操作步骤,添加了cinder和vxlan,附上个节点的配置文件) 实验环境准备: 为了更好的实现分布式mitaka版本的效果.我才有的是VMware的workstations来安装三台虚拟机,分别来模拟openstack的controller节点 compute节点和cinder节点.(我的宿主机配置为 500g 硬盘 16g内存,i5cpu.强烈建议由条件的朋友将内存配置大一点,因为我之前分配的2g太卡.) 注

Centos7手动安装OpenStack Mitaka版本--基本环境安装

Centos7手动安装OpenStack Mitaka版本--第一节:基本环境配置 一台控制节点 controller_ip=10.1.1.160 controller_ip2=192.168.13.147 一台计算节点 compute_ip=10.1.1.162 compute_ip2=192.168.13.144 hosts文件配置 [[email protected] ~]# cat /etc/hosts 127.0.0.1   localhost localhost.localdomai

关于centos7中使用rpm方式安装mysql5.7版本后无法使用root登录的问题

最近在centos7中通过rpm方式安装了最新版本的mysql-server 5.7 (mysql57-community-release-el7-7.noarch.rpm) ,发现安装成功后无法使用root登录.百度google一番无果,最后在官方文档中找到了答案.现记录完整安装及问题解决过程,希望能帮助到其他朋友. OS版本: Linux version 3.10.0-327.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911

CentOS7下通过rpm方式安装MySQL及插入中文问题解决 [原创]

一 CentOS下通过rpm方式安装MySQL CentOS版本:CentOS-7 MySQL版本:MySQL-5.6.22 在网上搜了一下,Linux下安装MYSQL有三种方式: 1) 通过yum命令在线下载安装 2) 下载离线rpm安装包安装 3) 下载源码编译安装 方式1不打算用,因为我们大部分项目服务器是不能直接上Internet的,网上关于在线安装的教程很多,方式3对于只要应用MYSQL的人来说没必要多此一举. 1. 解压下载的zip包,会发现有以下几个rpm包: MySQL-clie

在centos7上安装openstack mitaka版本

前言:openstack真是一个庞然大物,想要吃透还真不容易,所以在对openstack大概有了一个了解的时候,就应该是部署,虽然openstack的安装方式有rdo或者devstack等一键安装工具,但是最好浅尝辄止,有了大概的使用经验之后就应该是从头到尾的安装一遍了,不然对于那些报错,以及故障的解决一定是不够气定神闲的,因此,当你有了openstack的基本认识后,开始安装吧~ 注:openstack的官方文档写得真的是,好的不要不要的,但是看英文总是感觉有点不溜,因此在官方文档的基础上写得

openstack用rdo方式安装时遇到的问题

NO.1 在执行 packstack --allinone --provision-demo=n遇到 error: RPM file seems to be installed, but appropriate repo file is probably missin 尝试着用网上说的配置虚拟机主机的方式,但是没解决,然后老老实实地去安装了epel源后解决 rpm -ivh http://archives.fedoraproject.org/pub/epel/6/i386/epel-releas

openstack 之fuel 9 安装 Openstack Mitaka 版本

2015年上半年曾经在原单位安装过openstack juno版本,使用的是Mirantis公司的fuel自动化部署工具,很好用.已经很久没有关注openstack了,版本到现在为止已经到了Newton了,上一个版本是Mitaka,今天我要做的实验就是使用fuel 9 安装Mitaka版本. 我的笔记本的配置是intel i5,4核,8G,win10 64位家庭版. 首先到Mirantis官网下载fuel的安装镜像ISO: https://www.mirantis.com/software/mi

centos7上以RPM方式安装MySQL5.6

1. 下载MySQL http://ftp.ntu.edu.tw/MySQL/Downloads/MySQL-5.6/ MySQL-5.6.36-1.el7.src.rpm MySQL-5.6.36-1.el7.x86_64.rpm-bundle.tar MySQL-5.6.36-1.el7.x86_64.rpm-bundle.tar.asc MySQL-5.6.36-1.el7.x86_64.rpm-bundle.tar.md5 注意: el6标识centos 6,el7标识centos 7