[Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜

2023. 9. 9. 16:50ใ†System ์ž‘์—…์‹ค/Server ๊ด€๋ จ

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

 

 

 

 

 

OpenStack for Architects - Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 




๐Ÿ—‚ ๋ชฉ์ฐจ

1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€?
2. [Hyper-V] [Open Stack] [Controller Node] Hyper-V ๊ตฌ์„ฑ ๋ฐ Ubuntu 22.04.3 LTS Server ์„ค์น˜
3. [Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜
4. [Hyper-V] [Open Stack] [Controller Node] โ‘ก NTP Server ๊ตฌ์„ฑ
5. [Hyper-V] [Open Stack] [Controller Node] โ‘ข RabbitMQ - Message Queue ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
6. [Hyper-V] [Open Stack] [Controller Node] โ‘ฃ Memcached ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
7. [Hyper-V] [Open Stack] [Controller Node] โ‘ค Etcd ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
8. [Hyper-V] [Open Stack] [Controller Node] โ‘ฅ Keystone - Identity ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
9. [Hyper-V] [Open Stack] [Controller Node] โ‘ฆ Image Service - Glance ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ  
10. [Hyper-V] [Open Stack] [Controller Node] โ‘ง Compute Service - Nova ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
11. [Hyper-V] [Open Stack] [Contoller Node] โ‘จ Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
12. [Hyper-V] [Open Stack] [Controller Node] โ‘ โ“ช Horizon - Dashboard ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

11. [Hyper-V] [Open Stack] [Compute Node] ์ค€๋น„์ค‘

 

 

 

 

๐Ÿš€ Controller Node ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ฐœ์š”

์ฃผ๋‹ˆ์˜ ์˜คํ”ˆ์Šคํƒ ๊ตฌ์„ฑ๋„

 



    ๐Ÿ”ฝ Open Stack Controller ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
        ๐Ÿ“ฆ Open Stack Package ์„ค์น˜

์ฃผ๋‹ˆ๋Š” 2022.10์›” ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „ Zed๋ฅผ ์„ค์น˜ํ•ด ๋ณด๋„๋ก ํ• ๊ฒŒ์š”.

์ฐธ๊ณ ๋กœ ์ด Package๋Š” ๋ชจ๋“  ์˜คํ”ˆ์Šคํƒ ๋…ธ๋“œ์— ์„ค์น˜ํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.

apt install -y software-properties-common

728x90

์œ„ ๋ช…๋ น์–ด๋Š” ๋‹ค์–‘ํ•œ ์†Œํ”„ํŠธ์›จ์–ด ๊ด€๋ฆฌ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š”๋ฐ ๋„์›€์„ ์ฃผ๋Š” Utility(์œ ํ‹ธ๋ฆฌํ‹ฐ) ๋ฐ Library(๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ)๋ฅผ ํฌํ•จํ•œ Package๋ฅผ ์„ค์น˜ํ•ด์ฃผ๋Š” ๋ถ€๋ถ„์ด์—์š”.

โˆ™ PPA(๊ฐœ์ธ ์ €์žฅ์†Œ) ์ถ”๊ฐ€ ๋ฐ ๊ด€๋ฆฌ: ์šฐ๋ถ„ํˆฌ ์‹œ์Šคํ…œ์—์„œ ์™ธ๋ถ€ ๊ฐœ๋ฐœ์ž๋‚˜ Software(์†Œํ”„ํŠธ์›จ์–ด) ๊ฐœ๋ฐœ์ž๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์ถ”๊ฐ€ ์†Œํ”„ํŠธ์›จ์–ด ์ €์žฅ์†Œ(PPA)๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ๊ด€๋ฆฌํ•˜๋Š”๋ฐ ์‚ฌ์šฉ.

โˆ™ ์†Œํ”„ํŠธ์›จ์–ด ์†Œ์Šค ์ถ”๊ฐ€: ์‹œ์Šคํ…œ์— ์ƒˆ๋กœ์šด ์†Œํ”„ํŠธ์›จ์–ด ์†Œ์Šค ์ถ”๊ฐ€ / ๊ด€๋ฆฌ

โˆ™ ์†Œํ”„ํŠธ์›จ์–ด ์†Œ์Šค ๋ฐ ํŒจํ‚ค์ง€ ์—…๋ฐ์ดํŠธ: ํŒจํ‚ค์ง€ ๋ชฉ๋ก ์—…๋ฐ์ดํŠธ ๋ฐ ์‹œ์Šคํ…œ์— ์„ค์น˜๋œ ์†Œํ”„ํŠธ์›จ์–ด ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๋ฐ์ดํŠธ

โˆ™ Third Party(์„œ๋“œํŒŒํ‹ฐ) ์†Œํ”„ํŠธ์›จ์–ด ์„ค์น˜: ๋‹ค์–‘ํ•œ ์†Œํ”„ํŠธ์›จ์–ด ์„ค์น˜๋ฅผ ์œ„ํ•œ ์ถ”๊ฐ€ ๋„๊ตฌ ์ œ๊ณต.

์œ„ ํŒจํ‚ค์ง€๋Š” ์†Œํ”„ํŠธ์›จ์–ด ๊ด€๋ฆฌ ๋ฐ ์‹œ์Šคํ…œ ์„ค์ • ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ๋•Œ, ์œ ์šฉํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ณ , ํŠนํžˆ ์™ธ๋ถ€ ์†Œํ”„ํŠธ์›จ์–ด ์ €์žฅ์†Œ๋ฅผ ํ™œ์šฉํ•˜๊ฑฐ๋‚˜, ์†Œํ”„ํŠธ์›จ์–ด ์—…๋ฐ์ดํŠธ ๋ฐ ๊ด€๋ฆฌ๋ฅผ ํ•ด์•ผ ํ•  ๋•Œ, ํ•„์š”ํ•  ์ˆ˜ ์žˆ์–ด์š”.

์ฃผ๋‹ˆ๋Š” ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ๋„ค์š”.

 

add-apt-repository cloud-archive:zed

 

apt update && apt upgrade -y

๋ฐ˜์‘ํ˜•

์œ„ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์˜คํ”ˆ์Šคํƒ Zed ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์„ค์ •ํ•ด ์ฃผ์—ˆ์–ด์š”.



apt install -y rabbitmq-server memcached python3-pymysql nginx libnginx-mod-stream


ํ•„์š” ํŒจํ‚ค์ง€์ธ RabbitMQ, Memched, Nginx์™€ ํ•จ๊ป˜ python3-pymysql์„ ์„ค์น˜ํ•˜๋Š”๋ฐ, ์œ„ ํŒจํ‚ค์ง€๋Š” Python์„ ์ด์šฉํ•˜์—ฌ MySQL DBMS์™€ ์ƒํ˜ธ ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ PyMySQL ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ ๋ช…๋ น์–ด์—์š”.
PyMySQL์€ Python์—์„œ MySQL DB์— ์—ฐ๊ฒฐํ•˜๊ณ , ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ Python ํ”„๋กœ๊ทธ๋žจ์—์„œ MySQL DB๋ฅผ ์‰ฝ๊ฒŒ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์—์š”.

์ด๋ฒˆ์—” DBMS๋ฅผ ์„ค์น˜ํ•ด ์ค„๊ฑด๋ฐ, ์ฃผ๋‹ˆ๋Š” ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ ์•ˆ์— DBMS๋ฅผ ์„ค์น˜ํ•œ๊ฒŒ ์•„๋‹ˆ๊ณ , ๋”ฐ๋กœ VM์„ ๊ตฌ์ถ•ํ•˜๊ณ , Docker(๋„์ปค)๋ฅผ ์ด์šฉํ•˜์—ฌ Maria DB๋ฅผ ์„ค์น˜ํ•ด ์ฃผ์—ˆ์–ด์š”. ์„ค์น˜ ๋ฐฉ๋ฒ•์€ ์ด ๊ณณ์— ์ค€๋น„ํ•ด ๋‘์—ˆ๊ณ , ๋‚ด๋ถ€ ํ•„์š” ์„ค์ •์€ ์ด ๊ณณ์„ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.

 

[๊ฐ€์ƒํ™” - Container] Docker Container๋ฅผ ์ด์šฉํ•œ MariaDB ์„ค์น˜ํ•˜๊ธฐ

๐Ÿš€ Docker Container๋ฅผ ์ด์šฉํ•œ MariaDB ์„ค์น˜ํ•˜๊ธฐ ๐Ÿ”ฝ Maria DB ๐Ÿ“ฆ Docker Container - ์„ค์น˜ํ•˜๊ธฐ ์ฃผ๋‹ˆ๋Š” Docker Container ์ค‘ Maria DB Docker Container๋ฅผ ๋ฐ›๊ณ  ๊ตฌ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์„ ํƒํ•˜์˜€์–ด์š”. ์ด Image๋ฅผ ์ด์šฉํ•˜์—ฌ Data Base๋ฅผ

junyharang.tistory.com

 

 

OpenStack Docs: SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค

SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋Œ€๋ถ€๋ถ„์˜ OpenStack ์„œ๋น„์Šค๋“ค์„ SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ •๋ณด๋ฅผ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. ํ•ด๋‹น ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋Š” ๋ณดํ†ต ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๋ณธ ๊ฐ€์ด๋“œ ๋‚ด ์ ˆ์ฐจ์—์„œ๋Š” ๋ฐฐํฌํŒ์—

docs.openstack.org

 

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

 

๐Ÿง ์ฐธ๊ณ  ์ž๋ฃŒ

 

OpenStack Docs: ํ™˜๊ฒฝ

ํ™˜๊ฒฝ ์ด ์„น์…˜์—์„œ๋Š” ์˜ˆ์ œ ์•„ํ‚คํ…์ฒ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์™€ ํ•˜๋‚˜์˜ Compute ๋…ธ๋“œ๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ๋น„๋ก ๋Œ€๋ถ€๋ถ„์˜ ํ™˜๊ฒฝ์—๋Š” Identity, ์ด๋ฏธ์ง€ ์„œ๋น„์Šค, Compute, ์ ์–ด๋„ ํ•˜๋‚˜ ์ด์ƒ์˜

docs.openstack.org

 

Ubuntu 22.04 LTS : OpenStack Zed : Pre-Requirements : Server World

# line 35 : change to the IP address memcached listens # * if listen all, specify [0.0.0.0] -l 10.0.0.30

www.server-world.info

 

 

 

728x90
๋ฐ˜์‘ํ˜•