Warning Please make sure the network configuration is correct!( iaas-install-mysql.sh 脚本)
解读先电2.4版 iaas-install-mysql.sh 脚本
基础服务的操作命令已经编写成shell脚本,通过脚本进行一键安装。如下:
# Controller节点 安装
执行脚本iaas-install-mysql.sh进行安装

报错的原因是:
source /etc/xiandian/openrc.sh,脚本里ping通,
1 #!/bin/bash
2
3 source /etc/xiandian/openrc.sh
4
5 ping $HOST_IP -c 4 >> /dev/null 2>&1
6
7 if [ 0 -ne $? ]; then
8
9 echo -e "\033[31m Warning\nPlease make sure the network configuration is correct!\033[0m"
10
11 exit 1
12
13 fi
解决:
vim /etc/xiandian/openrc.sh ,#此文件是安装过程中的各项参数,根据每项参数上一行的说明及服务器实际情况进行配置。
1 HOST_IP=192.168.220.10
2 HOST_NAME=controller
3 HOST_IP_NODE=192.168.220.11
4 HOST_NAME_NODE=compute
5 RABBIT_USER=openstack
6 RABBIT_PASS=000000
7 DB_PASS=000000
8 DOMAIN_NAME=demo
9 ADMIN_PASS=000000
10 DEMO_PASS=000000
11 KEYSTONE_DBPASS=000000
12 GLANCE_DBPASS=000000
13 GLANCE_PASS=000000
14 NOVA_DBPASS=000000
15 NOVA_PASS=000000
16 NEUTRON_DBPASS=000000
17 NEUTRON_PASS=000000
18 METADATA_SECRET=000000
19 INTERFACE_NAME=ens37
20 CINDER_DBPASS=000000
21 CINDER_PASS=000000
22 TROVE_DBPASS=000000
23 TROVE_PASS=000000
24 BLOCK_DISK=sdb
25 SWIFT_PASS=000000
26 OBJECT_DISK=sdb
27 STORAGE_LOCAL_NET_IP=192.168.220.11
28 HEAT_DBPASS=000000
29 HEAT_PASS=000000
30 CEILOMETER_DBPASS=000000
31 CEILOMETER_PASS=000000
32 AODH_DBPASS=000000
33 AODH_PASS=000000
aas-install-mysql.sh:源码这样的
1 #!/bin/bash
2
3 source /etc/xiandian/openrc.sh
4
5 ping $HOST_IP -c 4 >> /dev/null 2>&1
6
7 if [ 0 -ne $? ]; then
8
9 echo -e "\033[31m Warning\nPlease make sure the network configuration is correct!\033[0m"
10
11 exit 1
12
13 fi
14
15 # check system
16
17 sed -i -e '/server/d' -e "/fudge/d" /etc/ntp.conf
18
19 sed -i -e "1i server 127.127.1.0" -e "2i fudge 127.127.1.0 stratum 10" /etc/ntp.conf
20
21 systemctl restart ntpd
22
23 systemctl enable ntpd
24
25 yum install mariadb mariadb-server python2-PyMySQL expect mongodb-server mongodb rabbitmq-server memcached python-memcached -y
26
27 sed -i "/^symbolic-links/a\default-storage-engine = innodb\ninnodb_file_per_table\ncollation-server = utf8_general_ci\ninit-connect = 'SET NAMES utf8'\ncharacter-set-server = utf8\nmax_connections=10000" /etc/my.cnf
28
29 crudini --set /usr/lib/systemd/system/mariadb.service Service LimitNOFILE 10000
30
31 crudini --set /usr/lib/systemd/system/mariadb.service Service LimitNPROC 10000
32
33 systemctl daemon-reload
34
35 systemctl enable mariadb.service
36
37 systemctl restart mariadb.service
38
39 expect -c "
40
41 spawn /usr/bin/mysql_secure_installation
42
43 expect \"Enter current password for root (enter for none):\"
44
45 send \"\r\"
46
47 expect \"Set root password?\"
48
49 send \"y\r\"
50
51 expect \"New password:\"
52
53 send \"$DB_PASS\r\"
54
55 expect \"Re-enter new password:\"
56
57 send \"$DB_PASS\r\"
58
59 expect \"Remove anonymous users?\"
60
61 send \"y\r\"
62
63 expect \"Disallow root login remotely?\"
64
65 send \"n\r\"
66
67 expect \"Remove test database and access to it?\"
68
69 send \"y\r\"
70
71 expect \"Reload privilege tables now?\"
72
73 send \"y\r\"
74
75 expect eof
76
77 "
78
79 # mongo
80
81 sed -i -e '/bind_ip/d' -e 's/#smallfiles.*/smallfiles=true/g' /etc/mongod.conf
82
83 systemctl enable mongod.service
84
85 systemctl restart mongod.service
86
87 # rabbitmq
88
89 systemctl enable rabbitmq-server.service
90
91 systemctl restart rabbitmq-server.service
92
93 rabbitmqctl add_user $RABBIT_USER $RABBIT_PASS
94
95 rabbitmqctl set_permissions $RABBIT_USER ".*" ".*" ".*"
96
97 # memcache
systemctl enable memcached.service
systemctl restart memcached.service
Warning Please make sure the network configuration is correct!( iaas-install-mysql.sh 脚本)的更多相关文章
- Checking Network Configuration requirements Failed
安装oracle执行检查,出现 Checking Network Configuration requirements ... Check complete. The overall result o ...
- Docker Network Configuration 高级网络配置
Network Configuration TL;DR When Docker starts, it creates a virtual interface named docker0 on the ...
- Ubuntu网络network eth0配置 | ubuntu network configuration
本文首发于个人博客https://kezunlin.me/post/5076bc45/,欢迎阅读! ubuntu network configuration Guide network proxy S ...
- 如何解决ubuntu 12.04重启后出现waiting for network configuration和网络标志消失问题
如何解决ubuntu 12.04重启后出现waiting for network configuration和网络标志消失问题 作为菜鸟的我在学着设置网络后,重启电脑后显示 waiting forne ...
- WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probably means that your libc libraries are not 100 % compatible with this binary MySQL version......
Linux系统安装MySQL,环境参数: 硬件配置:CPU: Xeon(R) CPU E5-2650 v4 @ 2.20GHz 8核内存:16G硬盘:系统盘200GB 数据盘1TB 操作系统CentO ...
- Docker container network configuration
http://xmodulo.com/networking-between-docker-containers.html How to set up networking between Docker ...
- 解决 Ubuntu 开机 Waiting for 60 seconds more for network configuration
sudo vim /etc/network/interfaces, 将该文件的内容修改为如下:(也就是说删掉其他的什么auto eth0.auto wlan0) auto lo iface lo in ...
- 解决ubuntu14.04 启动时卡在 Waiting for network configuration...
两种解决方法: 1.把/etc/network/interfaces中没有用到的配置删除掉 2.把 /etc/init/failsafe.conf 文件中的 sleep 40, sleep 59 注释 ...
- Coder-Strike 2014 - Round 1 B. Network Configuration
题目的意思就是给每台电脑的最大传输速度,可以限制每台电脑的最大速度,然后选择k台电脑,使这k台电脑有相同的速度,且这个速度最大 典型的贪心算法,电脑的速度排个序,选择第k大速度即可 #include ...
随机推荐
- 【Unity Shader学习笔记】Unity基础纹理-单张纹理
1 单张纹理 1.1 纹理 使用纹理映射(Texture Mapping)技术,我们把一张图片逐纹素(Texel)地控制模型的颜色. 美术人员建模时,会在建模软件中利用纹理展开技术把纹理映射坐标(Te ...
- Docker运行资源控制
概述 一个 docker host 上会运行若干容器,每个容器都需要 CPU.内存和 IO 资源.对于 KVM,VMware 等虚拟化技术,用户可以控制分配多少 CPU.内存资源给每个虚拟机.对于 ...
- vue-property-decorator
vue-property-decorator使我们能在vue组件中写TypeScript语法,依赖于vue-class-component 装饰器:@Component.@Prop.@PropSync ...
- ExtJS 布局-Accordion布局(Accordion layout)
更新记录: 2022年6月2日 开始. 2022年6月3日 发布. 1.说明 accordion(手风琴)布局一次仅显示一个子组件,内置支持 折叠 和 展开.当需要堆叠多个子组件,并每次只显示一次时, ...
- SprinigBoot自定义Starter
自定义Starter 是什么 starter可以理解是一组封装好的依赖包,包含需要的组件和组件所需的依赖包,使得使用者不需要再关注组件的依赖问题 所以一个staerter包含 提供一个autoconf ...
- SAP APO-PP / DS
在SAP APO中,使用生产计划/详细计划(Production Planning/Detailed Scheduling)生成满足生产要求的采购建议. 此组件还用于定义资源计划和订单明细. 您还可以 ...
- SAP Smartforms 参数配置
DATA : sf_name TYPE rs38l_fnam. DATA : sf_output_options TYPE ssfcompop. DATA : sf_control_parameter ...
- svn :不能打开文件“/data/svn/repo/format”: 权限不够
解决方法:关闭selinux vi /etc/sysconfig/selinux 将其中的SELINUX=enforcing 改为SELINUX=disabled 即可.
- 求求你们,别再刷 Star 了!这跟“爱国”没关系!
这几年,随着几大互联网公司的强大,纷纷投入云计算产业的建设,开源项目作为维护潜在客户群体(开发者)的重要手段,是各大云计算厂商都在努力做的事. 这几年也诞生了很多真正优秀和看似优秀的开源项目.真正优秀 ...
- 【转载】vscode配置C/C++环境
VScode中配置 C/C++ 环境 Tip:请在电脑端查看 @零流@火星动力猿 2022.4.12 1. 下载编辑器VScode 官网:https://code.visualstudio.com/( ...