zoukankan      html  css  js  c++  java
  • openstack ocata版(脚本)计算节点安装

    一、初始化环境:

    1、安装软件包:

    yum -y install centos-release-openstack-ocata
    yum -y upgrade
    yum -y install python-openstackclient
    yum -y install chrony
    yum -y install openstack-nova-compute
    yum -y install openstack-neutron-linuxbridge ebtables ipset

    2、关闭防火墙

    systemctl stop firewalld
    systemctl disable firewalld

    3、关闭selinux

    4、配置地址

    ip addr add dev eth0 10.0.0.21/24
    echo 'ip addr add dev eth0 10.0.0.21/24' >> /etc/rc.local 
    chmod +x /etc/rc.d/rc.local 

    5、配置hosts

    1、vi /etc/hosts
    # controller
    10.0.0.11 controller
    # compute1
    10.0.0.21 compute1
    # compute2
    10.0.0.22 compute2
    # compute3
    10.0.0.23 compute3
    # compute4
    10.0.0.24 compute4
    # block1
    10.0.0.51 block1
    # object1
    10.0.0.52 object1
    # object2
    10.0.0.53 object2
    2、重启机器
    reboot

    二、执行脚本:

    1、配置时间同步:

    1、修改/etc/chrony.conf
    server controller iburst  #只留这一行
    systemctl start chronyd
    systemctl enable chronyd
    2、验证:
    chronyc sources

    2、执行脚本:

    1、控制节点执行:
    export OS_USERNAME=admin
    export OS_PASSWORD=keystone
    export OS_PROJECT_NAME=admin
    export OS_USER_DOMAIN_NAME=Default
    export OS_PROJECT_DOMAIN_NAME=Default
    export OS_AUTH_URL=http://controller:35357/v3
    export OS_IDENTITY_API_VERSION=3
    2、在控制节点上运行脚本:
    python3 compute-install.py 
    注:1.compute-install.py里computer_ip_port为地址:桥接的端口
       2.compute-install.py里host_password为地址:root密码
    3、最后在计算节点上执行:
    systemctl enable libvirtd.service openstack-nova-compute.service
    systemctl enable neutron-linuxbridge-agent.service
     
  • 相关阅读:
    SAP 会计科目
    固定资产采购
    MIRO 注意点
    移动类型与会计科目的字段选择
    特征、分类的命名规则
    采购进项税、 含税价转不含税价
    换手率
    内盘、外盘
    SAP 文本增强
    Intellj IDEA 问题集锦
  • 原文地址:https://www.cnblogs.com/chimeiwangliang/p/7861183.html
Copyright © 2011-2022 走看看