首页 > 其他分享 >packestack 部署openstack

packestack 部署openstack

时间:2023-12-01 09:00:41浏览次数:35  
标签:repo file 部署 packstack yum packestack openstack root

一、部署packstack
1.1 简介
对于openstack初学者而言,传统部署openstack流程是在过于繁琐,需要多台虚拟机,packstack完美解决这个问题,可以减少了许多繁琐且容易出错的部署流程,packstack可以选择单节点或双节点部署,本次完美使用单节点部署allinone。

1.2 性能搭配
推荐处理器内核至少3个(i5-8300H四核八线程),尽量按你最大的核心分配,否则正式安装会很慢!!!内存推荐6G(4G应该也没问题)。

 

 

1.3 准备工作
1.关闭防火墙、SElinux、NetManager

2.时间同步

3.更换repo源
关闭防火墙

systemctl disable firewalld &&\
systemctl stop firewalld &&\
systemctl disable NetworkManager &&\
systemctl stop NetworkManager &&\
systemctl enable network &&\
systemctl start network
 关闭SElinux

vi /etc/selinux/config

修改SELINUX=disabled

setenforce 0
同步时间ntpdate

yum install ntpdate -y

ntpdate ntp1.aliyun.com

systemctl enable ntpdate

date
1.4 安装
更换阿里云的repo源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum makecache
安装openstack-queens,本质只是下载了Q版的repo源,在/etc/yum.repos.d/可以查看到repo源。

yum install -y centos-release-openstack-queens

yum update -y


正式安装

yum install -y openstack-packstack
正式部署

本机大概用了45分钟,此命令非常占用cpu,八代i5u,1cpu3内核也要45分钟,建议至少是这个配置,内存6G就行。因为我电脑只有4内核,所以没敢全给,之前2内核也是很久很久甚至没有成功。

packstack --allinone
安装成功,如果没有出现下列成功提示,请往下浏览,看看有没有我踩过的坑。

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

Additional information:
* A new answerfile was created in: /root/packstack-answers-20230510-184017.txt
* 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 172.25.254.229. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://172.25.254.229/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* Because of the kernel update the host 172.25.254.229 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20230510-184016-REJ4An/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20230510-184016-REJ4An/manifests
二、出现的问题
2.1 安装中断临时文件
/root下会生产多个临时安装文件,如果因为某些原因安装中断,可以使用answer继续上次的安装,嫌麻烦也可以不管,实际没有影响。

packtack --answer-file=packstack-answers-20180529-075406.txt
2.2 提示某个安装包出错
提示python2-qpid-proton-0.22.0-1.el7.x86_64安装包出错

172.25.254.229_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 172.25.254.229_controller.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-keystone' returned 1: Error: Package: python2-qpid-proton-0.22.0-1.el7.x86_64 (centos-openstack-queens)
You will find full trace in log /var/tmp/packstack/20230510-173731-PznIbV/manifests/172.25.254.229_controller.pp.log
Please check log file /var/tmp/packstack/20230510-173731-PznIbV/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20230510-173732.txt
* 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 172.25.254.229. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://172.25.254.229/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
尝试手动yum install安装,解决,如果是其它安装包也是同样的方法。

yum install -y python2-qpid-proton-0.22.0-1.el7.x86_64
2.3 leatherman版本太高
提示 facter: error while loading shared libraries: leatherman_curl.so.1.3.0: cannot open shared object file: No such file or directory,leatherman 1.3 版本过高,可以降为1.10 版本。

Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts' details[ ERROR ]

ERROR : Failed to run remote script, stdout:
stderr: Warning: Permanently added '172.25.254.229' (ECDSA) to the list of known hosts.
+ trap t ERR
+ facter -p
facter: error while loading shared libraries: leatherman_curl.so.1.3.0: cannot open shared object file: No such file or directory
++ t
++ exit 127

Please check log file /var/tmp/packstack/20230510-173400-VVUxZW/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20230510-173401.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.

yum downgrade leatherman命令降级,已解决。

[root@openstack yum.repos.d]# yum list | grep leatherman
leatherman.x86_64 1.10.0-1.el7 @epel
leatherman-devel.x86_64 1.10.0-1.el7 epel


[root@openstack yum.repos.d]# yum downgrade leatherman

[root@openstack yum.repos.d]# yum list | grep leatherman
leatherman.x86_64 1.3.0-9.el7 @centos-openstack-queens
leatherman.x86_64 1.10.0-1.el7 epel
leatherman-devel.x86_64 1.10.0-1.el7 epel
 

三、安装成功
浏览器 http://192.168.136.56/dashboard/auth/login/ 登录页面,IP根据主机IP更改。

 

cat /root/keystonerc_admin 查看admin用户密码

cat /root/keystonerc_demo 查看demo用户密码

标签:repo,file,部署,packstack,yum,packestack,openstack,root
From: https://www.cnblogs.com/xiexun/p/17868850.html

相关文章

  • 首次部署Linux系统的经历
    我是一名电子信息工程专业的学生,有次在图书馆上自习的时候无意间看到其他同学的电脑屏幕,黑色的屏幕上显示着一行一行的代码,勾起了我无限的好奇,经过询问得知他是用的Linux操作系统,是和Windows完全不同的系统,看着手敲的shell命令唤起一个又一个功能,我也决定要学习下Linux系统。 ......
  • 手动部署 chemex
    手动部署先决条件git:用于管理版本,部署和升级必要工具。PHP:仅支持PHP8.1。composer:PHP的包管理工具,用于安装必要的依赖包。MySQL5.7:数据库引擎,理论上MariaDB10.2+兼容支持。ext-zip:扩展。ext-json:扩展。ext-fileinfo:扩展。ext-ldap:扩展。ext-bcmath:扩展。ext-mysqli:扩展。ext......
  • vue3,Nginx部署情况
    一.Vue3项目情况说明router文件夹下的index.jsimport{createRouter,createWebHashHistory}from"vue-router"constroutes=[{path:'/saoma',name:'Saoma',//redirect:'/saoma',component:()......
  • 阿里云ubuntu 部署mosquitto服务器
    阿里云ubuntu部署mosquitto服务器安装mosquittosudoaptinstallmosquitto添加用户名密码touch/etc/mosquitto/pwdfilesudochmod0700/etc/mosquitto/pwdfilesudochownmosquitto/etc/mosquitto/pwdfilemosquitto_passwd-b/etc/mosquitto/pwdfileusernamepass......
  • Kubernetes 部署 NFS server
    环境要求kubernetes:1.21+部署NFSserver下载nfsserver部署清单#wgethttps://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/nfs-provisioner/nfs-server.yaml添加nsnfsapiVersion:v1kind:Namespacemetadata:name:nfs---......
  • Docker-Compose部署Gitlab以及Gitlab配置SMTP邮件服务
    使用Docker-Compose部署Gitlab拉取镜像地址:https://hub.docker.com/r/gitlab/gitlab-ce/tags拉取到镜像后,使用dockertag修改镜像,dockerpush推送到自己的镜像仓库(内网部署)编写docker-compose文件##创建容器挂载出来的文件夹mkdir/gitlab&&cd/gitlabmkdir-pdata/{l......
  • Qt应用开发--国产工业开发板全志T113-i的部署教程
    Qt在工业上的使用场景包括工业自动化、嵌入式系统、汽车行业、航空航天、医疗设备、制造业和物联网应用。Qt被用来开发工业设备的用户界面、控制系统、嵌入式应用和其他工业应用,因其跨平台性和丰富的功能而备受青睐。Qt能够为工业领域带来什么好处:-Qt提供了强大的图形引擎,使开发......
  • 从物理机到K8S:应用系统部署方式的演进及其影响
    公众号「架构成长指南」,专注于生产实践、云原生、分布式系统、大数据技术分享。概述随着科技的进步,软件系统的部署架构也在不断演进,从以前传统的物理机到虚拟机、Docker和Kubernetes,我们经历了一系列变化。这些技术的引入给我们带来了更高的资源利用率、更快的部署速度和更......
  • 12.kafka单集群安装部署
    一.安装jdk,kafka需要至少jdk8+1.安装jdkyuminstalljava-11-openjdk.x86_64-y 2.查看安装是否正常[root@localhostbin]#java--versionopenjdk11.0.212023-10-17LTSOpenJDKRuntimeEnvironment(Red_Hat-11.0.21.0.9-1.el7_9)(build11.0.21+9-LTS)OpenJDK......
  • Linux部署WebDAV
    1.下载在下面网址下载对应版本的WebDAV服务端https://github.com/hacdias/webdav/releases/tag/v4.2.02.运行与配置将解压后的WebDAV复制到/usr/bin路径下在适当的位置编写配置文件webdav.yaml注意需要使用单引号将用户名、密码和路径括住。#Serverrelatedsettingsadd......