• centos7.5 安装openstack


    系统环境:

    CentOS-7.5

    安装前需要修改 /etc/hosts文件,添加 127.0.0.1 node1 (node1 为当前机器名)
    否则会报如下错误:
    Could not start Service[rabbitmq-server]: Execution of '/sbin/service rabbitmq-server start' returned 1: Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}

     wKiom1lbLKHwAFQbAADBJax0JnA712.png

    安装步骤:

    关闭防火墙
    #systemctl stop firewalld.service
    关闭selinux
    找到/etc/selinux/config 文件把文件中的SELINUX=enforcing   改为SELINUXdisabled 即可
    [root@node1 openstack]# sudo yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
    [root@node1 openstack]# sudo yum install -y openstack-packstack
    [root@node1 openstack]# packstack --allinone
    

     注:此步骤时间较长,需要长时间等待

    Welcome to the Packstack setup utility
    
    The installation log file is available at: /var/tmp/packstack/20210414-104501-V5Uapg/openstack-setup.log
    Packstack changed given value  to required value /root/.ssh/id_rsa.pub
    
    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 ]
    Preparing pre-install entries                        [ DONE ]
    Setting up CACERT                                    [ DONE ]
    Preparing AMQP entries                               [ DONE ]
    Preparing MariaDB entries                            [ DONE ]
    Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
    Preparing Keystone entries                           [ DONE ]
    Preparing Glance entries                             [ DONE ]
    Checking if the Cinder server has a cinder-volumes vg[ DONE ]
    Preparing Cinder entries                             [ DONE ]
    Preparing Nova API entries                           [ DONE ]
    Creating ssh keys for Nova migration                 [ DONE ]
    Gathering ssh host keys for Nova migration           [ DONE ]
    Preparing Nova Compute entries                       [ DONE ]
    Preparing Nova Scheduler entries                     [ DONE ]
    Preparing Nova VNC Proxy entries                     [ DONE ]
    Preparing OpenStack Network-related Nova entries     [ DONE ]
    Preparing Nova Common entries                        [ DONE ]
    Preparing Neutron API entries                        [ DONE ]
    Preparing Neutron L3 entries                         [ DONE ]
    Preparing Neutron L2 Agent entries                   [ DONE ]
    Preparing Neutron DHCP Agent entries                 [ DONE ]
    Preparing Neutron Metering Agent entries             [ DONE ]
    Checking if NetworkManager is enabled and running    [ DONE ]
    Preparing OpenStack Client entries                   [ DONE ]
    Preparing Horizon entries                            [ DONE ]
    Preparing Swift builder entries                      [ DONE ]
    Preparing Swift proxy entries                        [ DONE ]
    Preparing Swift storage entries                      [ DONE ]
    Preparing Gnocchi entries                            [ DONE ]
    Preparing Redis entries                              [ DONE ]
    Preparing Ceilometer entries                         [ DONE ]
    Preparing Aodh entries                               [ DONE ]
    Preparing Puppet manifests                           [ DONE ]
    Copying Puppet modules and manifests                 [ DONE ]
    Applying 192.168.101.116_controller.pp
    192.168.101.116_controller.pp:                        [ DONE ]           
    Applying 192.168.101.116_network.pp
    192.168.101.116_network.pp:                           [ DONE ]        
    Applying 192.168.101.116_compute.pp
    192.168.101.116_compute.pp:                           [ DONE ]        
    Applying Puppet manifests                            [ DONE ]
    Finalizing                                           [ DONE ]
    
     **** Installation completed successfully ******
    
    Additional information:
     * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
     * A new answerfile was created in: /root/packstack-answers-20210414-104502.txt
     * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
     * Warning: NetworkManager is active on 192.168.101.116. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
     * File /root/keystonerc_admin has been created on OpenStack client host 192.168.101.116. To use the command line tools you need to source the file.
     * To access the OpenStack Dashboard browse to http://192.168.101.116/dashboard .
    Please, find your login credentials stored in the keystonerc_admin in your home directory.
     * The installation log file is available at: /var/tmp/packstack/20210414-104501-V5Uapg/openstack-setup.log
     * The generated manifests are available at: /var/tmp/packstack/20210414-104501-V5Uapg/manifests

    看到"Installation completed successfully",则安装成功

    查看登录用户名密码:

    [root@localhost opt]# cat /root/keystonerc_admin
    unset OS_SERVICE_TOKEN
        export OS_USERNAME=admin
        export OS_PASSWORD='982d134fe29b4a47'
        export OS_REGION_NAME=RegionOne
        export OS_AUTH_URL=http://192.168.101.116:5000/v3
        export PS1='[u@h W(keystone_admin)]$ '
        
    export OS_PROJECT_NAME=admin
    export OS_USER_DOMAIN_NAME=Default
    export OS_PROJECT_DOMAIN_NAME=Default
    export OS_IDENTITY_API_VERSION=3

    通过浏览器访问 http://192.168.1.105/dashboard 登录后截图如下:

  • 相关阅读:
    Navigator对象
    Location对象
    History 对象
    计时器用法
    window对象
    某班的成绩出来了,现在老师要把班级的成绩打印出来,和 显示当前时间
    牛客练习赛14A(唯一分解定理)
    贪心法(举例子强行凑规律)
    线性筛(欧拉筛法)
    欧拉函数
  • 原文地址:https://www.cnblogs.com/royfans/p/14657120.html
Copyright © 2020-2023  润新知