首页 > 系统相关 >centos7 Packstack allinone安装openstack

centos7 Packstack allinone安装openstack

时间:2024-03-24 17:24:04浏览次数:30  
标签:Packstack entries 192.168 centos7 DONE Preparing openstack allinone root

centos7 Packstack allinone安装openstack
Packstack是一种用于自动化部署OpenStack环境的工具,它可以快速安装和配置OpenStack的各个组件,同时提供了一些默认设置以方便快速上手。
All-in-One模式是Packstack的一种安装模式,它在一台物理或虚拟机上部署了所有OpenStack的核心组件,包括计算节点、网络节点和存储节点,适用于小规模的测试和开发环境。
1.环境准备
修改主机名
[root@centos7 ~]# hostnamectl set-hostname openstack


[root@openstack ~]# echo "192.168.162.128 openstack" >>/etc/hosts
[root@openstack ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.162.128 openstack

配置固定IP
[root@centos7 ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.162.128
NETMASK=255.255.255.0
GATEWY=192.168.162.2

重启网络服务
[root@centos7 ~]# systemctl restart network


停止关闭防火墙
systemctl stop firewalld && systemctl disable firewalld

关闭selinux
vim /etc/selinux/config
SELINUX=disabled

NetworkManager与OpenStack组件Neutron有冲突,用传统的网络服务network来管理网络。执行命令停用NetworkManager服务。
systemctl stop NetworkManager && systemctl disable NetworkManager
2.安装软件
更新软件
[root@openstack ~]# yum -y update

查看版本
[root@openstack ~]# yum search centos-release-openstack
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
============================================= N/S matched: centos-release-openstack =============================================
centos-release-openstack-queens.noarch : OpenStack from the CentOS Cloud SIG repo configs
centos-release-openstack-rocky.noarch : OpenStack from the CentOS Cloud SIG repo configs
centos-release-openstack-stein.noarch : OpenStack from the CentOS Cloud SIG repo configs
centos-release-openstack-train.noarch : OpenStack from the CentOS Cloud SIG repo configs

  Name and summary matches only, use "search all" for everything.
  
安装
[root@openstack ~]# yum -y install centos-release-openstack-train

3.安装Packstack
更新软件
[root@openstack ~]# yum -y update
安装packstack
[root@openstack ~]# yum -y install openstack-packstack
安装openstack
[root@openstack ~]# packstack --allinone
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20240324-161654-Aj_Jrt/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.162.128_controller.pp
192.168.162.128_controller.pp:                       [ DONE ]
Applying 192.168.162.128_network.pp
192.168.162.128_network.pp:                          [ DONE ]
Applying 192.168.162.128_compute.pp
192.168.162.128_compute.pp:                          [ DONE ]
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

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



报错1:
ERROR:scss.ast:Function not found: function-exists:1")
解决步骤:
https://www.codenong.com/js34fba2365a76/

报错2:
ERROR : Error appeared during Puppet run: 192.168.162.128_controller.pp
Error: Could not unmask neutron-server:
You will find full trace in log /var/tmp/packstack/20240324-150136-xyHCho/manifests/192.168.162.128_controller.pp.log
Please check log file /var/tmp/packstack/20240324-150136-xyHCho/openstack-setup.log for more information
Additional information:
 * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS orFWaaS services. Geneve will be used as the encapsulation method for tenant networks
解决步骤:
https://www.cnblogs.com/jason-huawen/p/17041681.html
4.登录openstack页面
访问页面
http://192.168.162.128/dashboard

账号密码见本地keystonerc_admin文件中;
[root@openstack ~]# cat keystonerc_admin
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin
    export OS_PASSWORD='c8e13b4d128b47f6'
    export OS_REGION_NAME=RegionOne
    export OS_AUTH_URL=http://192.168.162.128: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

执行openstack命令需先加载加载环境变量
[root@openstack ~]# ls
anaconda-ks.cfg  Documents  initial-setup-ks.cfg  keystonerc_demo  packstack-answers-20240324-161655.txt  Public     Videos
Desktop          Downloads  keystonerc_admin      Music            Pictures                               Templates
加载环境变量
[root@openstack ~]# source keystonerc_admin
查看卷
[root@openstack ~(keystone_admin)]# cinder list
+----+--------+------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+----+--------+------+------+-------------+----------+-------------+
+----+--------+------+------+-------------+----------+-------------+
查看计算信息
[root@openstack ~(keystone_admin)]# nova list
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
查看镜像
[root@openstack ~(keystone_admin)]# glance image-list
+--------------------------------------+--------+
| ID                                   | Name   |
+--------------------------------------+--------+
| 456b3be8-a8ad-428a-bf91-bd875504f48c | cirros |
+--------------------------------------+--------+




关注小张的知识杂货铺,让我们一起学习一起进步

标签:Packstack,entries,192.168,centos7,DONE,Preparing,openstack,allinone,root
From: https://www.cnblogs.com/xiaozhang1995/p/18092689

相关文章

  • Centos7 安装MySQL8后 加装 MySQL基准测试套件 (MySQL Benchmark Suite)
    CentOS7中安装MySQL8.3.0没有/usr/share/mysql/sql-bench下的BenchmarkSuite工具1.yum安装epel源yum-yinstallepel-release2.安装perl平台yum-yinstallperl*3.获得/usr/share/mysql/sql-benchwgethttps://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.......
  • Centos7虚拟机中oracle19c数据库安装
    目录[-]  1. Centos7虚拟机中oracle19c数据库安装1.1. 1.先诀条件1.2. 2.oracle19c安装准备(root用户下执行)1.3. 3.CentOS7上安装oracle19c1.先诀条件 本文在安装oracle19c时,各项oracle配置操作都通过图形界面进行。因此CentOS7系统需要安装gn......
  • CentOS7.9 搭建本地Yum源仓库
    一、背景        在公司的生产环境中,服务器一般处于内网,而我们想在这样的服务器上安装软件时会出现无法访问Internet从而导致依赖安装失败的问题,今天我们通过配置离线YUM源仓库来解决类似问题。二、查看系统版本[root@superset~]#cat/etc/redhat-releaseCentOS......
  • Centos7交叉编译QT5.11.1+AArch64架构
    一、准备工作1、更新系统软件,目的是使用新版本的gcc等,还要保证磁盘空间足够1yumupdate2yuminstallgccgcc-c++3yuminstallmesa-libGL-develmesa-libGLU-develfreeglut-devel2、到linaro下载编译链工具安装aarch64(arm64)编译链工具。国产CPU,如飞腾、华为麒麟等......
  • centos7 编译 qemu 8.1.0
    targetx86_64-linux-user的编译参考链接问题解决qemu官方对centos7的编译支持到2021年4月,所以qemu8.1.0的linux-user在centos7上编译不过,官方是不管的。为了编译通过需要自己手动修改qemu的源码,只能修复一些宏参数的缺失,修改的基本思路是:如果在系统中能够找到对应的宏......
  • Linuxcentos7配置网卡的方法(非gui篇)
    网卡配置方法有好几种,本次讲述的是非gui的centos7配置方法 目录 1、普通配置网卡方法: 2、使用命令行工具nmcli(NetworkManager的命令行界面)方法:删除连接:创建新的连接:注意事项:附记:  1、普通配置网卡方法:由于本次操作过程和我之前发布的文章的第一种原理......
  • Centos7部署jeecg-boot项目(完整版)
    一、搭建环境1、安装Mysql8.0  安装前先删除原有Mysql、Mariadb以及相应的文件夹rpm-qa|grep-imysql#查看已安装的Mysqlyumremove-ymysql-*#删除Mysqlfind/-namemysql#查看原有Mysql相关目录rm-rf/*/*/mysql#删除原有Mysql目录 下载rpm安装包wget......
  • ceph:在centos7 上通过 ceph-ansible 安装ceph 14
    安装本质上就是熟悉ceph-ansible工具的各种配置关系:哪些时必须的?默认值来自哪里?各种配置分散在哪些配置文件内?...../site.yml./group_vars/all.yml  ./group_vars/其他各种组件特定的.yml  注意:all.yml里的配置很大部分时依赖于site.yml的配置的。根据需要进行配置。 ......
  • centos7 安装rocketmq
    rocketmq官网地址:https://rocketmq.apache.org/zh/download1、下载wgethttps://dist.apache.org/repos/dist/release/rocketmq/5.2.0/rocketmq-all-5.2.0-bin-release.zip2、解压unziprocketmq-all-5.2.0-bin-release.zip-d/data/3、配置broker,新增brokerIP1和names......
  • centos7安装hive
    三种模式的区别安装模式matedata位置存放位置matestore部署方式内嵌模式本地内嵌数据derby中内嵌本地模式独立数据库中独立启动远程模式独立数据库中独立启动hive依赖hadoop,安装hive之前需要确保hadoop集群正常启动hadoop安装参考:centos7安装hadoop(......