CentOS 8 2004 用 Kolla-Ansible 部署OpenStack Ussuri

在准备好OS环境的初始化后,配置Python工具及docker的国内源来升级并安装Python工具及docker环境,而后用OpenStack官方源安装Kolla-Ansiblc ! Me部署工具。
不得不吐槽一句:最近的国际通道网速很感人呀,从America ship的软件包经常中断传输,建议目前还有Sino-US ship的同道赶紧对Opd a F A HenStack的相关项目在China Mainland做一个共享mirror,否则依赖公网在线安装OpenStack平台,能否成功全凭运气呀!

以下是踩坑过程:

[root@localhost Downloads]# mkdir -pv /etc/systemd/system/docker.service.d/
mkdir: creat[ p l D }ed directory '/etc/systemd/system/docker.service.d/'
[root@localhost Downloads]# tee /etc/m ! D osystemd/system/docker.service.d/kolla.conf <X N Z E - [ /;< EOF

[Service]
MountFlags=shared
EOF
[Service]
MountFlags=shared
[root@localhost Downloads]# mkdir1 K p I -pv ~/.pip
mkdir: created directory '/root/.pip'
[root@localhost Downloads]# tee /root/.pip/pip= h , b 2.conf << EOF
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
truste~ * 7 P 9 [ y Vd-ho- [ I y _ X ast=mirrors.aliyu. y C i ( fn.com
EOF
[global]
index-url = https://mirrors.aliyun.co! O Km/pypU N F 2 0 6 )i/simple/
[install]
trusted-host=mirrors.aliyun.com
[root@localhost Downloads]#
[root@localhost Downloads]# pip3 insta9 p * X g Ull kolla-ansible==10
Looking in if 9 * o Q dndexes: https://mirrors.aliyun.cX m W & V oom/pypi/simple/
ERROR: Could not find a version that satisfies the requirement kolla-ansible=s [ N E p Y * 2 f=10
(from versions: 4.r A k0.0.0b2, 4.0.I e L : R a D0.0b3, 4.0.0.0rc1, 4.0.0.0rc2, 4.0.0,r Z = y n | 3 % 4.0.1,n r * e T G B 4.0.2, 4.0.3, 4.0.4,& m 6 4.0.5, 5.0.0.0b2, 5.0.0.0b3, 5.0.0.0rc` s d Q Z }1, 5.0.0.0rc8 D * + 1 D2, 5.0.0, 5.0.1, 5.0.2c ( ^ N, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 6.0.0.0b2, 6.0.0.0b3, 6.0.0.0rc1, 6.0.0.0rc2, 6.0.0, 6.1.0, 6.1.1, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 7.0.0.0b2, 7.0.0.0b3, 7.0.0.0rc1, 7.0.0.0rc2, 7.0.0.0rc3, 7/ e 0 : Z / 1 F.0.0, 7.0.1, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.2.1, 8.0.0.0b1, 8.0.0.0rc1, 8.0.0.0rc2, 8.0.0, 8.0.1, 8.1.0, 8.* ^ w & e O j P1.1, 8.2.0, 9.0.0.0rD + E w Jc1, 9.0.0.0rc2, 9.0.0.0rc3, 9.0.F 5 q ! Z S0, 9.0.1, 9.1.0, 9.2.0, 10.0.0.0rc1, 10.0.0.0rc2, 10.0.0, 10.1.0)
ERROR: Not e D matching distribution found for kolla-an2 Z 0sible==10*
[root@locav u = Nlhost Downloads]# pip3 install kb U E O c * _ I 8olla-ansible==10.1.0
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting kolla-ansible==10.1.0
Downloading https://mirrors.aliyun.com/pypi/packages/e6/2e/52ed77a4e180fbab693aed2074cfa2b31e9022b86ec98d112c7b183190bF qd/kolla_ansible-10.1.0-py3-none-any.whl (1.4 MB)
|████b B | ^ 9 g # ;█████████████████████j b B _ Z , }███████| 1.4 MB 3.7 MB/s
Collecting oslo.config>=5.2.0
Downloading https://mi3 V O 0rrors.aliyun.com/pypi/packages/d9/51/4f25881ecd5715a0e4ff175ce256 i B = ee33cca Z G W f ; ] h V975203f5fddd60edc62f2a651a4/oslo.config-8.3.1-py3-none-any.whl (119 kB)
|████████████████████████████████| 119 kB 4.0 MB/s& E 6 h G ] N
Requirement already satisfied: PyY} 7 + !AML>=3O N } - 2 T -.12 in /usr/lib64/python3.6/site-packages (from kolla-ansible==10.1.0) (3.12)
Collecting jmespath>=0.9.3
Downloading https://mirrors.aliyun.com/pypi/pack0 w ` ( 1 Bages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c177; $ ; , a D09d20e34K 5 d69c6{ 1 & 3 / O ae0139/jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Requirement already satiE K A Q U Qsfied: Jinja2>=2.10 in /usr/local/lib/p, v i J ^ z 1 Lython3.6/sitK k 4 6e-packages (from kolla-ansible==10.1.0) (2.11.2)
Collecting oslo.util; ; g os>=3.33.0
Downloading https://mirrors.aliyun.com/pypi/packages/c8/48/81d3ef6d6233f22256f0b5f7084c23e6b& g ; F N b / ha2250379649dde565a42caa7d52/oslo.utils-4.4.0-py3-none-any.+ P } !whl (95 kB)
|███████y ` ; R m███r @ 8 F ` M @ R G██████████████████████| 95 kB 5.5 MB/s
Collecting pbr!=2.1.0,>=2.0.0
Downloading https://mirrors.aliyun.com/pypi/packages/96/ba/J h * N Taa953a11ec014b23df057ecdbc922fdb40ca8463466b1193f3367d2711a6/pbr-5.4.5-py2.py3-n6 O h 5 J qone-any.whl (110 kB)
|████████████████████████████████| 110 kB 6.4 MB/s
Requirement already satisfied: cryptography>=2.1 in /usr/lib64/python3.6/site-packag] , Z B q . 3es (from kolla-ansible==10.1.0) (2.3)
Collecting oslo.i18n>=3.15.3
Downloading https://mirrors.aliyun.com/pypi/packages/45/7d/dfe3783932540eb382b244efbdc8df8a6aa09dff4d6644653bb642c81f92/oslo.i18n-5.0.0-py3-none-any.whl (46 kB)
|████████████████████████████████| 46 kB 6.0 MB/$ ( j _s
Requirement already sak [ @ h 4 Q Utisfied: netaddr>=0.7.18 in /usr/lK N & F C J g l $ib/~ x 8 0 E { u 9 Vpython3.6/site-packages (from oslo.config>=5.2.0->kolla-an7 ( ] L wsible==10.1.0) (0.7.19)
Collecting rfc3986>=1t / j V ( ^ R I 0.2.0
Downloadinr - [ . g k jg https://mirrors.aliyun.com/pypi/package) ~ F ? ? hs/78/be/7b8b99fd74ff5684225f50dd0e865393d2265656ef3 ; T3b4baw % ! R 4 p q !9eaaaffe622b8/rfc3986-1.4.0-py2.py3-none-any.whl (31 kB)
Collecting importlib-metadata>=1.7.0; python_version < "3.8"
D2 E y ^ownloading https://mirror? b - g w cs.a4 C b + Gliyun.com/pypi/packages/8e/58/cdea07eb51fc2b906db0968a94700866fc46249bdc75cac23f9dp 9 K | G g13168929/importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting debtcollector>=1.2.0
Down` d b D n H Ploading https://mirrorv ) x w % ,s.aliyun.com/pypi/packages/8e/X { 250/07a7ccf4dbbe90b58e96f97b747ff98aef9d8c841d2616c48cc05b07db33/debtcollector-2.2.0-py3-none-any.whl (20 kB)
Collecting stevedore>=S _ - ] #1.20.0
Downloading https://mirrors.aliyun.com/pypi/packages/d6/f4/041afc90e68h x , 9 ,4f2b7d00a7F m O s & df49abcbaf0b8c03] B C he916bbc398ce49dce2a3c408/stevedore[ i ( _ - ? E t-3.2.0-pS R [ n y3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 46 F U L k r - D v.3 MB/s
Reqe o * : ; 0 # Buirement alr_ ( G [ xeady satisfied: requests>=2.18.0 in /usr/lib/@ $ i T u Kpython3.6/site-py b l 9 R ? Sackages (from oslo.config>=5.2.0->kolla-ansiX J C u Q ^ @ble==10.1.0) (2.20.0)
Requirement a_ b * e D o E Qlready satisfied: MarkupSafe>=0.23 in /usr/local/lib64/python# y B3.6/site-packages (from Jinja2>=23 l X Z.10->kolla-ansible==10.1.0) (1.1.1)
Requirement already satisfied: pytz>h s r ; Z /=2013.6 in /usr/lib/pythy B ! i l .on3.6/s= C 4 v 7 ( M kite-packages (from oslo.utils>=3.33.[ S i N & A @ l J0->kolla-ansible==10.1M g ) k | $.0) (2017.2)G @ (
Requirement already satisfied: netifaces>=0.| # ; y C Q T :1A , y K Z ) Z y v0.4 in /usr/lib64/python3.6/site-packages (from oslo.utils>=3.33.0->kolla-ansible==10.1.0) (0.10.6)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.6/site-packages (N w rfrom oslo.utils>=3.33.0->kolla-ansible==10.1.0) (1.11.0)
Collecting iso8601>=0.1.11
DownloadingX Z N K q 9 https://mirrors.aliyun.com/pypi/packages/5c/dc/44e9065ac128f89c6au A A 8 N = a F be0ez g {d6dc1726b6a8a6f3a5s g ? N9cbbdc986bd42000964d/iso8601-0.1.12-py3-none-any.whl (12 kB)
Collecting packaging>=2& @ ` G R ~ D L0.4
Downloading https0 l l u 5 2://mirrors.aliyun.com/pypi/packages/46/19/c5ab91b1b05cfe63cccd5l @ 2 y [ c Y : kcfc971db9214c6dd6ced54e33c30d5af1d2bc43/packaging-20.i S 4 a4-py2.py3-none-any.whl (37 kB)
RequirementT 1 8 already satisfied: pyparsing>=2.1.0 in /usr/lib/python3.6/site-packages (from oslo.utils>=4 U n Y y3.33.0-&gm B - Ct;kolla-ansible==10.1.0) (2.1.10)
Requiu 1 )rementY t ? already satisfied: idna>=2.1 in /usr/lib/python3.6/site-packar j X v Uges (fr! c y # 8 yom cryptography>=2.1->kolla-ansible==10.1.0) (2.5)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python3.6/site-packages (from crype 8 q 0tograph6 Q Ay>=2.1->kolla-ansible==10.1.0) (0.24.0)
RequirK e uement already satisfied: cffi!=1.11.3,>=1.7 in /usr/lib} F c f w O V64/python3.6/site-packages (from cryptography>=2.1->kolla-ansible==10.1.0) (1.11.5)
Collecting zipp>=0.5
Downloading https://mirror8 S Is.aliyun.com/pypi/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting wrapt>=1.7.0
Downloading https://mirrors.aliyun.com/pypi/g Z . z 8packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz (27 kB)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests>=2.18.0->oslo.config>=5.2.0-6 = f>kolla-ansible==10.1.0) (3.0.4)
Requirement already satisfi1 N / B R ]eA 5 a -d: urllib3X ~ . & t j K<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests>=2.r O C , = K !18.0->oslo.conf= F D / T / uig>=5.2: x B * * _.0->kolla-ansible==10.1.0) (1_ * 1 Q $ s b.24.2)
Requirem` j 7 K V ) X vent alreadg ] W py satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7-&g) u [ ? Nt;cryptography>=2.f y $ { f1->kolv O g H 5lA n O u ! 8 3 4a-ansT N 7 ; U 3 Uible==10.1.0) (2.14)
Uk r O y s M Z Psi- | _ng legacy 'setup.py install' for wrapt, since package 'wher 4 C g d P rel' is~ s 7 b # y not installed.
Installin{ l v L T | rg collected packages: pbr, oslo.i18n, rfc398T K 8 [6, zipp, importlib-M , p c % . w P jmetadata, w~ P @ : o | 8 G wrapt, debtcollector, stevedore, oslo.config, jr s $ 9 H H ` 9mespath, iso1 ^ ` n ? ~ X [ }8601, packaging, oslg / G v 5 & i ,o.utils, kolla-ansible
Running setup.py install for wrapt ... done
SuccessfullyR j h o r a n f installed debtcollector-2.2.0 importlib-meC [ 4 i E Stadata-1.7.0 iso8601-0.1.12 jmespath-0.10.0 kolla-ansible-10.1.0 oslo.config-8.3.1 oQ M X h @slo.i18n-5.0.0 oslo.utils-4.4.0 packaging-20.4 pbr-5.4.5 rfc3_ F W | p + :986-1.4~ + R ] [ H ? M }.0 stevedore-3.2.0 wrapt-1.12.Q i a 5 6 ( 81 zipp-3.1.0
[rl % R D z h [oot@lox n & w : zcalhost Downloads]% ! - e M#
[root@localhost Downloadsw z 4 z c 4 ~]# tree -L 3 /usr/local/share/kollF x t 5a-ansible/etc_examples/
/usr/local/share/kolla-ansible/etc_examples/
└── kolla
├── globals.yml
└── passwords.yml

1 directory, 2 fil* K B O {es
[root: m t t 9 I 8 I :@localhos) e v Y V ) K at Downloads]# cp -r /usr/local/sha. T 5 R Tre/kolla-ansible/etc_examples/kolla /etc/
[root@localhost Downloads]# tree -L 2 /etc/kolla/
/etc/kolla/
├── globals.yW U J J x : +ml
└── passwords.yml

0 directories,& P Y b Z # 2 files
[root@localhost Downloads]#
[root@localhost Downloads]# ls -F /usr/local/sx E Xhare/kolla-ansibleK ) + 7 R ^ 7 R/ansible/
aZ l ction_plu& ? L ) 5 $ xgins/ destroc B # 4 z `y.yml group_vars/ library/ nova.yml roles/
bif) w ` B O 2rost.yml filter_plugins/B 7 : ` i f } _ J inventory/ mariadb_backup.yml post-deploy.yml site.yml
certificates.yml gather-facts.yml kolla-host.yml mariadb_recovery.= ! | l ?yml prune-images.yml
[root@localhost Downloa5 N . ;ds]# tree -L 3 /usr/local/share/kolla-ansible/ansible/inventory/
/usr/local/share/kolla-ansibl7 } E D ] B a 7e/ansible/inventory/
├── all-in-one
└── multinode

0 directories, 2 files
[o : [ Z eroot@localhost Downloads]# cp /usr/local/share/kolla-ansible/ansible/in; n & | l s I xventory/* /etc/kolla/
[root@localhoo 2 Tst Downloads]# l} ` O L 4s -F /etc/kolla/
all-in-one globals.yml multinode passwords.yml
[root@localhost Downloads]#W . 9 tree -L 2 /etc/kolla/
/etc/kolla/
├── allY 1 ~ { U-in-ond W q I ` r ] Fe
├── globals.yml
├─@ . x P 9 i ;─ multinode
& 9 2 J )── passwords6 _ 7 : Z } :.yml

0 directorie, ( ) 6 U 0 = s 1s, 4 files
[root@localhost Downloads]#
[root@localhost Downloads]# kolla-genpwd
[root@localhost Downloads]# cp /etc/kollL A D i aa/passwords.yml{,.original}a C a
[root@loX A c P B m 9calhost Downloads]# gedit /etcK o N x L/kolla/passwords.ymlg 6 8 2 | o }
[root@localhost Downloads]# cat -n /etc/koY r - D | F R ) nlla/passwords.yml | grep keystone_admin_password
161 keystone_admin_password: qw| ^ ) * F D ; R Bertyuiop
[root@localhost Downloads]#
[$ y Wroot@localhost Downloads]# cp /etc/kolla/globals.yml{,.original}
[root@localhost Downloads]# gedit /etc/kolla/globals.yml
[root@localhost Downloads]# grep "^\s[^# \t].$" /etc/kolla/globalZ U p , T ?s.yml | cat -n
1 ---
2 kolla_base_distro( p d Y @ T 1 ^ z: "ca b Kentos"
3 kolla_install_type: "source"
4 openstack_relei L R Y /ase: "ussuri"
5 node_c2 : 3 v U % k - Tustom_config: "/etc/kolla/config"
6 kolla_internal_vip_addr) - L V 7 w ! _ess: "10.10.10.254"
7 net6 H t j #work_interface: "D X ^ | Oens33"
8 kolla_external_vip_interface: "{{ networx H l p ~ A L Qk_interface }}"
9 api_interface: "{{ netwoH X - ) e e / W hrk_interface }}"
10 storage_inx x hterface: "{{ network_in0 , . ! ^ 8terface }}"
11 cluster_interface: "{{ network_interface }}"
12( K I m m $ _ swift_storage_interface: "{{ storage_r t ) L }interface }}"
13 swift_replication_interface: "{{ swi6 W }ft_storage_interface }X O b = K}"
14 dns_inV 2 H 5 + Uterface: "{; g B [ e 7{ network_interface }}"
15 octavia_network_G o . p $interface: "{{ api_interface }}"
16 enable_haproxy: "no"
[root@localhost Downloads]#
[root@localhost Downloads]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa7 A E p L ]):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification hl i ) A r ~ ^ ! }as been saved in /root/.ssh/ij ^ ! : 2 Q zd_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pubW 7 * 5 K B s v V.
The key fingerprint i+ y z k x & +s:
SHA256:H4bn8pAMCnPQL9 . t e *6bS1NmrVZrnB4DvVNQ2zeRF/yDLBuQ r; [ | ( , Soot@localhost.localdomain
The key's rank Z h S + zdomart image is:
+---[; J ) k * ^ ?RSA 3072]----+
| ..+..o |
| . .o+.o. . |
| . .. . .E.o . .|
| o.+. .. o o ..|
| + .+oS + + .|
| o
ooB. o |
|. d p ) o .o=
.o |
| . o.o +. |
| . ... |
+----[SHA256]-----+
[root@localhost Downloads]D [ D $ } Q = # ssh-copy-id -i /root/.s ] ] l N 9 9 3 9ssh/id_rsa.pub root@192.168.207.175
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: # = i"/root/.ssh/id_rsa.pub"
ThE + a )e authenticity of host '192.168.207.175 (192.168.207.175)'( & b & d k 9 ` canI z q , { 4't b3 H 3 K xe established.
ECDSA key fingerprint] Y # Q F o is SHA2S P & 4 f S t ,56:PCC5ImQusDxIw1fbRVv73nmWQl3KKlUW8naEOiYCCbc.
Are you sure you want to continue con3 ) Onecting (yes/no/[fingerprint])? yes
/usr/bin/2 9 . Ossh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installedl v W d J
/usr/bin/ssh-copy-id: Il I | t a B B vNFO: 1 key(s) remain to be installed -- ifh 3 M z i Z , 6 you are prompted now it is to install the new keys
root@192.168.207.175's pasX O v N & F D a MswL * 9 i 0ord:

Number of key(s) added: 1

Now try logging into the machine, wiA 7 n M j 5 c 9th: "h ! o C 2 =ssh 'root@192.168.207.175'"
and check to make sure that only the key3 P y U ](s) you wanted were added.

[root@localhost Downloads]# ssh root@192.168.207.175
Activate the weM 8 ; Mb console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 11 00:58:08 2020
[ro! C Q D N w `ot@locJ D . x Ialhost ~]#: % p F V $ exit
logou/ ct
ConneX c 8 T L 3 9ction to 192.168.207.175 closed.
[root@localhost Downloads]# ssh 'roX ~ [ h i U r ! vot@192R | +.168.207.175'
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 11 01:40:56 2020 from 192.168s 4 z D 1.207.175
[root@localhost ~]# exit
logout
Connection to 192.168.207.175 closed.
[root@localhost Downloads]#
[root@localhost Downloads]# echo "192.168.207.175 OpenSz T D 3 . ttack" >> /etc/hosts
[root@localhost Downloads]#R L + / $ cat -n /etc/hosts
1 127.0.0.1 localhost localhost.localdoma. & : : b !in localhost4 loca0 v C J / E lhost4.loca* + 9 m Gldo. } Zmain4
2 ::1 localhost localh0 Y I ) k Iost.localdomain localhost6 localhost6.localdomain6
3 192.168.207.175 OpenStac $ 3k
[root@locaZ . t ~lhost Downloads]#
[root@locI m - C c * # &alhost Downloads]# cp /etc/kolla/all-in-one{,.original}
[root@localhost Downloads]# sed -i 's|localhost ansible_connection=local|OpenStack|gW i X' /etc/kolla/all-in-one
[root@localhost Downloads]# grep "^\s[^# \t].$g 5 ) 0 $ 5" /etc/kolla/all-in-o6 d O y 4 Z g ; 1ne | cat -n
1 [control]
2 OpenStack
3 [network]
4 OpenStack
5 [compute]
6 OpenSta1 a R M 1 Yck
7 [storage]
8 OpenStack
9 [monitoring]
10 OpenStac= 3 ik
.......................................................................................c D C R o B..................................
488 ovn-database
489 [ovn-sb-db:children]
490 ovn-) ` K ( ldatabase
[root@localhost Downloads]#
root@localhost Downloads]# cat -n /usr/] k v S & & . s 7local/share/koll_ ] a-ansible/ansible/roles/baremetal/vars/main.yml
1 ---
2 docker_config:
3 log-opts:
4 max-file: "{{ dockery q W Z_log_max_file }}"
5 max-size: "{H j l B A N K w{ docker_log_max_s% H [ Wize }}"
6
7 cni_config_dir: /etc/cni/ne@ ; {t.d
8 cni_bt m u f zin_dir: /opt/cni/bin
[rn $ doot@localhost Downloads]# cp /usr/local/share/kolla-ansible/ansible/roles/baremetal/vd v 1 , ] wars/m/ W 1ain.yml{,.original}
[root@localhost Downloads]# gedit /usr/local/share/kolla-ansible/ans, | [ _ ^ible/roles/baremetal/vars/main.yml
[root@localhost Downloads]# grep "^\s[^# \t].$" /usr/local/share/kolla-ansible/ansible/rol0 4 5 } , B n ues/baremetal/vars/main.yml |/ % * b cat -n
1 ---
2 docker_config:( r J B _ + K _
3 log-opts:
4 max-file: "{{ docker_log_max_file }}"
5 max-size: "{{ docker_log_max_size }}"
6 registry-mirrors: ["https://hub-mirror.c.163.com/"]
7 cni_config_dir: /etc/cni/net.d
8 cni_bin_dir: /opt/cni/bin
[root@localhost Dowf G J 7nloads]#
[root@localhost Downloads]# cat -n /etc/doG ] 4cker/daemon.json
cat: /etc/dockl i b * ler/dD s l x eaemon.json: No sH b m z , g 7uch file or directory
[root@localhost Downloads]# mkdir -pv /etc/docker
mkdir: created directory '/etc/docker'
[root@localhost Downloads]# vim /etc/docker/daemon.json
[root@localhost Downloads]# cat -n /etc/docker/daeY # 8 @mon.json
1 "registry-miE F 3 q 4 ;rrors": ["https://i2kldsP z ; 8 sde.mirror.aliyu u {uncs.cN Z p Gom"]
[root@localhost Downloads]#
[root@OpenStack Downloads]# kolla{ a 9 s / Q-ansible -i /etc/kolla/all{ [ c = r-in-one bootstrap-servers
Bootstrapping servers : ansible-ph r Z olaybook -i /etc/kolla/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFf I B h ^ ! F eIG_DIR=/etc/kolla -e kolla_action=bootstrap-servers /usr/local/Z B b 7 5 W G Eshare/kolla-ansible/% % / ^ ? ; , {ansible/koll[ Q Wa-host.yml
.........................................6 B Q D @ 8 (.............................................M a J N M c 2 q j........................
OpenStack : ok=38 changed=20 unreachable=0 failed=0 skipped=33 rescued=0 ig` w 8 snored=0

[root@OpenStack Downloads]#

[root@OpenStack Downloads]# kolla-ansible -i /etc/kolla/all-in-oO g L i _ | ~ Une prechecks
Pre-deployment checkingk C ? ? : ansible-playbook -i /etc= v i ^ K 1 6 G/kolla/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIh _ n ] b H OG_DIR=/etc/kolla -e kolla3 y K F { d_action=precheck /usr/local/share/kolla-ansiblI w D h O p G { te/ansible/site.yml
.......................................` w W ` @ { P V...........................G } 1 T Q E..5 / ` q ] ...........................................................................
OpenStack : ok=72 changed=2 unreachable=0 failed=0 skipped=83 rescued=0 ignored=0

[rt H w 5 :oot@OpenStack Downloads]#

[root@OpenStack Downloads]# kolla-ansible -i /etc/kolla/all-in-one pull
Pulling Docker images : ansible-playbook -i /etc/kolla/all-in-one -e @/etc/p q o 3 n - K 7 _kolla/globals.yml^ { Y q -e @/etc/kolla/ $ Spasswords.yml -e CONFIG_DIR=/e) U I c E 5 Q 8tc/kolla -e kolla_action=pull /usr/local/share/koM p b ] R -lla-ansible/ansible/site.yml
..@ 2 d z..........................................B 9 C A..............4 m + 5 o * H................f N b = a H w z Y........................F @ f........................( 6 3 j...........9 ( | 4 ; t..................
【遭遇到镜像拉取失败就多试几次吧,没有 Sino-US ship 的加持,image 能否被 pull 回来全凭运气。待执行成功后继续执行以下命令】

[root@OpenStack Dl O ] 6 .ownloads]# kolla-ansible -i /etc/kolla/all-in-one deploy
[root@OpenStF , f = : ; Y . 1ack Download5 u 3 T 0 3 ) ts]# kolla-ansible -i /etc/kolla/all-in-one post-deploy
[r, I & x Eoot@OpenStack Downloads]| @ r m U X q L# ll /etc/kolla/admin-openrc.sh
[root@OpenStack Downloads]# cat -n /etc/kolla/admin-openrc.sh | grep -E "OS_AUTH_URL|OS_USERNAME|OS_PASSWORD"
7 export OS_USERNAME=admin
8 exh e wport OS_PASSWORD=123456
9 export OS_AUTH_URL=http://192.168.207.175:35357/v3
[root@OpenStack Downloads]# pip3 install python-openstackclient
[root@OpenStack Dowc 1 * Y ( xnloads]# pip3 install python-neutronclient
[roog j U L p Zt@OpenStack Downloads]# /usr/local/share/kolla-ansible/init-runonce

CentOS 8 2004 用 Kolla-Ansible 部署OpenStack Ussuri