-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall OpenStack on AlmaLinux using PackStack.txt
More file actions
289 lines (192 loc) · 6.83 KB
/
Install OpenStack on AlmaLinux using PackStack.txt
File metadata and controls
289 lines (192 loc) · 6.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
++++++++++++++++++++++++++++++++++++
Install OpenStack on AlmaLinux using Packstack
++++++++++++++++++++++++++++++++++++
#Common Setup
cat /etc/redhat-release
grep -E ' svm | vmx' /proc/cpuinfo
lsmod | grep kvm
lscpu
free -h
lsblk
hostnamectl set-hostname cloud
ip a
yum install nano -y
#Need to Configure Static IP
cp /etc/sysconfig/network-scripts/ifcfg-eno1 /etc/sysconfig/network-scripts/ifcfg-eno1.bak
nano /etc/sysconfig/network-scripts/ifcfg-eno1
HWADRR=00:23:24:8e:e5:8d
NM_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.101.230
PREFIX=24
GATEWAY=192.168.100.1
DNS1=202.74.244.5
DNS2=202.74.240.3
DEVICE=enp0s3
nmcli connection up enp0s3
ip a s enp0s3
systemctl restart NetworkManager
ping google.com
#Edit Hosts file:
echo "192.168.106.120 cloud.paulco.xyz cloud" >> /etc/hosts
#Disable SELinux:
getenforce
#setenforce 0
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
# Disable Firewalld
systemctl disable firewalld
systemctl stop firewalld
# Install network-scripts package
yum install network-scripts -y
# Enable/Start Network Service
systemctl status network
systemctl enable network
systemctl start network
systemctl restart network
# Disable/Stop NetworkManager
systemctl status NetworkManager
systemctl disable NetworkManager
systemctl stop NetworkManager
#systemctl restart NetworkManager
++++++++++++++++++++++++
##If you face Networking error when you stop NetworkManage, Then you need to troubleshooting on network.
##Actually, By default you system access internet or networking using NetworkManager service, But when you stop/disable
NetworkManager service then you need to enable/start network service. Then need setup network ip manually with MAC Address, Device Name, NM_Controled=no, IPADDR, Prefix, Gateway, DNS. Then using ifup [interface name], then restart network service.Then check internet or networking. its may be solved.
++++++++++
##Solve Networking After Disable/Stop NetworkManager
++++++++++
nano /etc/sysconfig/network-scripts/ifcfg-eno1
HWADRR=00:23:24:8e:e5:8d
NM_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.101.230
PREFIX=24
GATEWAY=192.168.100.1
DNS1=202.74.244.5
DNS2=202.74.240.3
DEVICE=enp0s3
ifup enp0s3
#ifdown enp0s3
#systemctl mask NetworkManager.service
#systemctl stop NetworkManager.service
#systemctl disable NetworkManager.service
#systemctl list-unit-files | grep NetworkManager
++++++++++++++++++++++++++++++++++++
yum autoremove epel-release
yum autoremove openstack-packstack
yum clean all
yum repolist
yum update -y && yum upgrade -y
reboot
++++++++++++++++++++++++++++++++++++++++++++++++++
##Download or Configure OpenStack YUM Repository +
++++++++++++++++++++++++++++++++++++++++++++++++++
#yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-yoga/rdo-release-yoga-1.el8.noarch.rpm
#dnf install centos-release-openstack-train -y
#install epel repository
#dnf install epel-release
#Working On AlmaLinux8
dnf install centos-release-openstack-victoria -y
#install openstack-packstack
#dnf install -y openstack-packstack
yum install -y openstack-packstack
yum config-manager --enable powertools
yum repolist
yum update -y
packstack --version
packstack --help
++++++++++++++++ Generate Answers +++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##Pre-Installation with Generate Answers file##
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
packstack --os-neutron-ml2-tenant-network-types=vxlan \
--os-neutron-ovs-bridge-interfaces=br-ex:enp0s3 \
--os-neutron-ml2-mechanism-drivers=openvswitch \
--os-neutron-ml2-type-drivers=vxlan,flat \
--os-neutron-l2-agent=openvswitch \
--keystone-admin-passwd=openstack \
--provision-demo=n \
--os-heat-install=y \
--gen-answer-file /root/answers.txt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##Custom Installation After Generate Answers file##
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
packstack --gen-answer-file /root/answers.txt
#Take Copy the answes file
cp answers.txt copy.answers.txt
++++++++++++++++++++++++++++++++++++++++++++++++
##Important: Edit the file whats we install
++++++++++++++++++++++++++++++++++++++++++++++++
nano answers.txt
>>Change to y/n
CONFIG_NTP_SERVERS=0.asia.pool.ntp.org,1.asia.pool.ntp.org,2.asia.pool.ntp.org,3.asia.pool.ntp.org
CONFIG_CONTROLLER_HOST=192.168.10.10
CONFIG_COMPUTE_HOSTS=192.168.10.10
CONFIG_NETWORK_HOSTS=192.168.10.10
CONFIG_STORAGE_HOST=192.168.10.10
CONFIG_KEYSTONE_ADMIN_PW=openstack
++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++ Networking +++++++++++++++++++
#search and change Bridge
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp0s3
CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
CONFIG_NEUTRON_L2_AGENT=openvswitch
# Disable Nagios
CONFIG_NAGIOS_INSTALL=n
##Disable the demo provisioning
CONFIG_PROVISION_DEMO=n
++++++++++++++++++++++++++++++++++
##Installation OpenStack##
++++++++++++++++++++++++++++++++++
packstack --answer-file #/root/answers.txt | tee Openstack-Installation-log.txt
++++++++++++++++++++++++++++++++++
## View Installation Log ##
# The installation log file is available at:
tail -f /var/tmp/packstack/latest/openstack-setup.log
# The generated manifests are available at:
tail -f /var/tmp/packstack/20230119-111007-GkD8Cn/manifests
++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++
#Install OpenStack WithOut Demo
++++++++++++++++++++++++++++++++++
#packstack --allinone --provision-demo=n
++++++++++++++++++++++++++++++++++
#Install OpenStack With Demo
++++++++++++++++++++++++++++++++++
#packstack --allinone
**** Installation Completed Successfully ******
++++++++++++++++++++++++++++++++++
#After Installation Complete +
++++++++++++++++++++++++++++++++++
#Access OpenStack from CLI / Horizon Dashboard
------------------------------------------------
source ~/keystonerc_admin
openstack service list
#To access Horizon Dashboard use the URL:
#http://ServerIPAddress/dashboard.
http://192.168.106.120/dashboard
#Login Credentials in Here:
cat ~/keystonerc_admin
++++++++++++++++++++++++++++++++
Configuration OpenStack
++++++++++++++++++++++++++++++++
............................
##Now Download Cirros image
............................
wget http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img
..................................
Upload-Create Image on OpenStack
..................................
openstack image create --disk-format qcow2 --container-format bare --public --file cirros-0.5.1-x86_64-disk.img cirros
openstack image list
openstack image delete cirros
++++++++++++++++++++++++++++++++
Remove or Uninstall OpenStack +
++++++++++++++++++++++++++++++++
#If you need to uninstall openstack
-------------------------------------
#yum -y remove openstack-*
++++++++++++++++++++++++++++++++ Finish ++++++++++++++++++++++++++++++++