Linux:red-hat-enterprise-linux-7.1.shared
RDO:RHEL7OSP-6.0-2015-02-23.2-x86_64.iso
使用非注册redhat(版本:7.1)yum命令时被提示:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
使用redhat版本的yum源是需要收费的。
选择使用Centos的yum源。
1、卸载原redhat 自带yum
2、寻找centos相关yum软件包进行rpm 安装,安装时要解决依赖问题,比较麻烦
3、修改repo文件,将地址指向国内镜像服务器
https://blog.csdn.net/ztx114/article/details/85149629 非常详细
在问题1解决的基础上,使用yum update命令出错,系统提示:
错误:unbound-libs conflicts with redhat-release-server-7.1-1.el7.x86_64
错误:initscripts conflicts with redhat-release-server-7.1-1.el7.x86_64answer
且在使用packstack 脚本安装方式时,到达Installing Dependencies 这一步骤时也出现报错:
Error: initscripts conflicts with redhat-release-server-7.1-1.el7.x86_64
系统提示非常明显,软件包有冲突
卸载冲突软件包
rpm -e redhat-release-server-7.1-1.el7.x86_64 --nodeps
yum update
https://segmentfault.com/a/1190000016397359?utm_source=tag-newest
在yum update之后,系统提示yum命令无法使用。
One of the configured repositories failed (CentOS-7 - Contrib - mirrors.aliyun.com), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail.
网上看了一些解决方案,如增加DNS配置、将repo文件中的mirrorlist改为baseurl,不适用。
在/etc/yum.repos.d/文件夹中,新增了很多repo文件,怀疑可能是因为repo文件中的地址重复导致。
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo local.repo
CentOS-Debuginfo.repo CentOS-Sources.repo redhat.repo
将/etc/yum.repos.d/文件夹中,新增了很多repo文件移动到bak文件夹中。
mkdir ./bak
mv CentOS* ./bak
yum clean all
yum makecache
ERROR : Error appeared during Puppet run: 10.211.55.15_mariadb.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install mariadb-galera-server' returned 1: Transaction check error:
You will find full trace in log /var/tmp/packstack/20190401-184613-rls7El/manifests/10.211.55.15_mariadb.pp.log
打开log日志:
Error Summary
-------------
Error: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install mariadb-galera-server' returned 1: Transaction check error:
file /usr/lib64/mysql/plugin/dialog.so from install of mariadb-galera-server-1:5.5.40-6.el7ost.x86_64 conflicts with file from package mariadb-libs-1:5.5.60-1.el7_5.x86_64
file /usr/lib64/mysql/plugin/mysql_clear_password.so from install of mariadb-galera-server-1:5.5.40-6.el7ost.x86_64 conflicts with file from package mariadb-libs-1:5.5.60-1.el7_5.x86_64
mariadb-galera-server 在osp源中为1:5.5.40,与base源中的1:5.5.60发生版本冲突。
将yum源中的mariadb相关软件包重新安装,降版本处理。
登陆mariadb官网后发现,repo文件能提供的版本为5.5.63,高于需求版本,因此在阿里云镜像站中寻找相关版本,通过RPM安装方式手动安装。
主要安装包有以下(怕有前后依赖所以都rpm执行操作了一遍):
1 mariadb-libs-5.5.40-1.el7_0.x86_64.rpm
2 mariadb-5.5.40-1.el7_0.x86_64.rpm
3 mariadb-bench-5.5.40-1.el7_0.x86_64.rpm
4 mariadb-5.5.40-1.el7_0.src.rpm
5 mariadb-devel-5.5.40-1.el7_0.x86_64.rpm
6 mariadb-embedded-5.5.40-1.el7_0.x86_64.rpm
7 mariadb-embedded-devel-5.5.40-1.el7_0.x86_64.rpm
注意:如果有安装到mariadb-server-5.5.40-1.el7_0.x86_64这个包,要卸载掉。
yum remove mariadb*
rpm -qa | grep mariadb
#确认没有mariadb的包
yum install perl-DBI.x86_64 perl-DBD-MySQL.x86_64 perl-GD.x86_64 perl-Env.noarch perl-Test-Simple openssl-devel
#在安装相关软件包时需要注意依赖关系,如:perl-DBI.x86_64、perl-DBD-MySQL.x86_64 、perl-GD.x86_64、perl-Env.noarch、perl-Test-Simple、openssl-devel等。
rpm -ivh mariadb*
rpm -e mariadb-server-5.5.40-1.el7_0.x86_64
ERROR : Error appeared during Puppet run: 10.211.55.15_cinder.pp
Error: cinder type-create iscsi returned 1 instead of one of [0]
打开log日志
Error: cinder type-create iscsi returned 1 instead of one of [0]
Error: /Stage[main]/Main/Cinder::Type[iscsi]/Exec[cinder type-create iscsi]/returns: change from notrun to 0 failed: cinder type-create iscsi returned 1 instead of one of [0]
从报错信息来看是在执行cinder type-create iscsi命令时出错,通过搜索,觉得是由于脚本执行过多次,可能存在多余的cinder type,因此尝试删除。
首先由于脚本未执行完成,无法获得/home目录下的keystonerc_admin文件,因此需要自建。
进入openstack执行环境后,发现cinder命令无法使用,出现报错:
ERROR: Unable to establish connection to http://controller:35357/
排查端口,发现端口都是listen状态,systemctl status openstack-cinder-api.service ,发现状态是failed,重启。
最终结论:非存在多余的cinder
重启openstack-cinder-api服务。
网上其他参考文章的建议:如vgremove cindervolumes,cinder-type delete ID 不适用。
vim keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=[根据answer file 来]
export OS_AUTH_URL=http://$IP:5000/v2.0/
export OS_REGION_NAME=RegionOne
export PS1='[\u@\h \W(keystone_admin)]\$ '
systemctl status openstack-cinder-api.service
systemctl restart openstack-cinder-api.service
source keystoneerc_admin
cinder -type list
https://www.itread01.com/content/1542102790.html
https://blog.csdn.net/u013562625/article/details/73008029?utm_source=blogxgwz8 (不靠谱)
https://ask.openstack.org/en/question/62219/error-cinder-type-create-iscsi-returned-1-instead-of-one-of-0/
Installing:
Clean Up [ DONE ]
Setting up ssh keys [ DONE ]
Discovering hosts' details [ DONE ]
Adding pre install manifest entries [ DONE ]
Preparing servers [ DONE ]
Adding AMQP manifest entries [ DONE ]
Adding MariaDB manifest entries [ DONE ]
Adding Keystone manifest entries [ DONE ]
Adding Glance Keystone manifest entries [ DONE ]
Adding Glance manifest entries [ DONE ]
Adding Cinder Keystone manifest entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ 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 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 LBaaS Agent manifest entries [ DONE ]
Adding Neutron Metering Agent manifest entries [ DONE ]
Adding Neutron Metadata 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 MongoDB manifest entries [ DONE ]
Adding Redis manifest entries [ DONE ]
Adding Ceilometer manifest entries [ DONE ]
Adding Ceilometer Keystone manifest entries [ DONE ]
Adding Nagios server manifest entries [ DONE ]
Adding Nagios host manifest entries [ DONE ]
Adding post install manifest entries [ DONE ]
Installing Dependencies [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.211.55.15_prescript.pp
10.211.55.15_prescript.pp: [ DONE ]
Applying 10.211.55.15_amqp.pp
Applying 10.211.55.15_mariadb.pp
10.211.55.15_amqp.pp: [ DONE ]
10.211.55.15_mariadb.pp: [ DONE ]
Applying 10.211.55.15_keystone.pp
Applying 10.211.55.15_glance.pp
Applying 10.211.55.15_cinder.pp
10.211.55.15_keystone.pp: [ DONE ]
10.211.55.15_glance.pp: [ DONE ]
10.211.55.15_cinder.pp: [ DONE ]
Applying 10.211.55.15_api_nova.pp
10.211.55.15_api_nova.pp: [ DONE ]
Applying 10.211.55.15_nova.pp
10.211.55.15_nova.pp: [ DONE ]
Applying 10.211.55.15_neutron.pp
10.211.55.15_neutron.pp: [ DONE ]
Applying 10.211.55.15_osclient.pp
Applying 10.211.55.15_horizon.pp
10.211.55.15_osclient.pp: [ DONE ]
10.211.55.15_horizon.pp: [ DONE ]
Applying 10.211.55.15_ring_swift.pp
10.211.55.15_ring_swift.pp: [ DONE ]
Applying 10.211.55.15_swift.pp
10.211.55.15_swift.pp: [ DONE ]
Applying 10.211.55.15_mongodb.pp
Applying 10.211.55.15_redis.pp
10.211.55.15_mongodb.pp: [ DONE ]
10.211.55.15_redis.pp: [ DONE ]
Applying 10.211.55.15_ceilometer.pp
10.211.55.15_ceilometer.pp: [ DONE ]
Applying 10.211.55.15_nagios.pp
Applying 10.211.55.15_nagios_nrpe.pp
10.211.55.15_nagios.pp: [ DONE ]
10.211.55.15_nagios_nrpe.pp: [ DONE ]
Applying 10.211.55.15_postscript.pp
10.211.55.15_postscript.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******