[Hyper-V] [Open Stack] [Controller Node] โ‘ โ“ช Horizon - Dashboard ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

2023. 9. 10. 00:51ใ†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 ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ฐœ์š”

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

 

        ๐Ÿ“ฆ ์†Œ๊ฐœ

Dashboard(๋Œ€์‹œ๋ณด๋“œ)๋Š” ํด๋ผ์šฐ๋“œ ๊ด€๋ฆฌ์ž์™€ ์‚ฌ์šฉ์ž๋“ค์ด ๋‹ค์–‘ํ•œ ์˜คํ”ˆ์Šคํƒ ์ž์›๊ณผ ์„œ๋น„์Šค๋ฅผ ๊ด€๋ฆฌ ๋ฐ ์ด์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ์›น ์ธํ„ฐํŽ˜์ด์Šค ์„œ๋น„์Šค์—์š”.

์ด๋ฒˆ ๊ธ€์—์„œ๋Š” ์•„ํŒŒ์น˜ ์›น ์„œ๋ฒ„๋ฅผ ์ด์šฉํ•˜์—ฌ ์›น ์„œ๋น„์Šค๋ฅผ ๊ตฌํ˜„ํ•ด ๋ณผ๊ฑฐ์—์š”.

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

์ถ”๊ฐ€์ ์œผ๋กœ ์˜ค๋ธŒ์ ํŠธ ์Šคํ† ๋ฆฌ์ง€์™€ ๊ฐ™์€ stand-alone ์„œ๋น„์Šค ํ™˜๊ฒฝ๋„ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•ด์•ผ ํ•  ๊ฒƒ์ด์—์š”.

 

 

๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ
์ด๋ฒˆ ๊ธ€์—์„œ Install and configure the Identity service ๋ถ€๋ถ„์—์„œ ์–ธ๊ธ‰ ๋˜์—ˆ๋˜ Apache HTTP ์„œ๋ฒ„ ๋ฐ Memcached ์„œ๋น„์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” Identity ์„œ๋น„์Šค์— ๋Œ€ํ•ด ์ ํ•ฉํ•œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ ๋ฐฉ๋ฒ•์„ ์ œ์‹œํ•ฉ๋‹ˆ๋‹ค.

 

 

 

    ๐Ÿ”ฝ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

       ๐Ÿ“ฆ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ
๊ธฐ๋ณธ ๊ตฌ์„ฑ ํŒŒ์ผ์€ ๋ฐฐํฌ ๋ฒ„์ „์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.
๊ธฐ์กด ๋ฉ”๋‰ด์–ผ ๋ฐ ์˜ต์…˜์„ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ ๋ณด๋‹ค ํ•ด๋‹น ๋‚ด์šฉ์— ๋Œ€ํ•œ ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•ด์•ผ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
๋˜ํ•œ, ๊ตฌ์„ฑ ๋‚ด์šฉ ์กฐ๊ฐ ์ค‘ (...) ์ƒ๋žต ๋ถ€๋ถ„์€ ์œ ์ง€๋  ํ•„์š”์„ฑ์ด ์žˆ๋Š” ๊ธฐ๋ณธ ๊ตฌ์„ฑ ์˜ต์…˜์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.

 

์ตœ์ดˆ ํŒจํ‚ค์ง€ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ• ๊ฒŒ์š”.

apt install openstack-dashboard

๋ฐ˜์‘ํ˜•



์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ์•„๋ž˜ ์„ค์ • ํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.


vim /etc/openstack-dashboard/local_settings.py 96 ~ 100๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ์ „

 

vim /etc/openstack-dashboard/local_settings.py 96 ~ 100๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ๋’ค


์œ„์™€ ๊ฐ™์ด 99๋ฒˆ์งธ ์ค„์— Memcache Server ์ ‘์† ์ •๋ณด IP๋ฅผ Controller Node IP๋กœ ๋ณ€๊ฒฝํ•ด ์ฃผ์—ˆ์–ด์š”.


vim /etc/openstack-dashboard/local_settings.py 126 ~ 127๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ์ „



vim /etc/openstack-dashboard/local_settings.py 126 ~ 127๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ๋’ค


126๋ฒˆ์งธ ์ค„์€ ์˜คํ”ˆ์Šคํƒ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ ๋„๋ฉ”์ธ ์ด๋ฆ„์„ ํ˜ธ์ŠคํŠธ๋กœ ์„ค์ •ํ•ด ์ค€ ๋ถ€๋ถ„์ด์—์š”.

๊ทธ๋ฆฌ๊ณ , 127๋ฒˆ์งธ ์ค„์€ ํ‚ค์Šคํ†ค ํ˜ธ์ŠคํŠธ์˜ URL์„ ์ง€์ •ํ•ด ์ค€ ๋ถ€๋ถ„์ด์—์š”.


vim /etc/openstack-dashboard/local_settings.py 130 ~ 133๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ์ „



vim /etc/openstack-dashboard/local_settings.py 130 ~ 133๋ฒˆ์งธ ์ค„ ๋ณ€๊ฒฝ ๋’ค


Time Zone์€ ์„œ๋ฒ„๊ฐ€ ์œ„์น˜ํ•œ ๋‚˜๋ผ์— ๋งž์ถ”๋Š”๊ฒŒ ์ข‹์•„์š”.
์ฃผ๋‹ˆ๋Š” ๋Œ€ํ•œ๋ฏผ๊ตญ์œผ๋กœ ๋งž์ถฐ์ฃผ์—ˆ์–ด์š”.


vim /etc/openstack-dashboard/local_settings.py ๋งจ ๋งˆ์ง€๋ง‰ ์ค„์— ์ถ”๊ฐ€

 

์—ฌ๊ธฐ๊นŒ์ง€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์ €์žฅํ•˜๊ณ , ๋‚˜์˜ต๋‹ˆ๋‹ค.



๋งŒ์•ฝ HTTPS ์„ค์ •์„ ํ•˜๊ณ  ์žˆ๋‹ค๋ฉด ์œ„์— ๋‚ด์šฉ์„ ์ถ”๊ฐ€๋กœ ์ง„ํ–‰ํ•ด ์ฃผ์„ธ์š”.


systemctl  restart apache2 nova-api


์œ„์™€ ๊ฐ™์ด ์•„ํŒŒ์น˜2์™€ nova-api ์„œ๋น„์Šค๋ฅผ ์žฌ๊ธฐ๋™ ํ•ด ์ฃผ์—ˆ์–ด์š”.

728x90




admin ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ ํ•ด๋ณผ๊ฑฐ์—์š”.

๋น„๋ฐ€๋ฒˆํ˜ธ๋Š” ์ด ๊ณณ์—์„œ ๊ตฌ์ถ•ํ•˜์˜€๋˜ Keystone Bootstrap์— ์ž‘์„ฑํ–ˆ๋˜ ํŒจ์Šค์›Œ๋“œ๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ๋ฉด ๋˜์š”.

 

[Hyper-V] [Open Stack] [Controller Node] โ‘ฅ Keystone - Identity ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

OpenStack for Architects - Second Edition Paperback COUPANG www.coupang.com "์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค." ๐Ÿ—‚ ๋ชฉ์ฐจ 1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€? 2

junyharang.tistory.com

 

 




 



์œ„์™€ ๊ฐ™์ด ์›น ์„œ๋น„์Šค์— ์ ‘์†๋˜๋Š” ๊ฑธ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.

๋‹ค์Œ์—๋Š” ์ปดํ“จํŠธ ๋…ธ๋“œ๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด ๋ณด๋„๋ก ํ• ๊ฒŒ์š”.

์ด์ƒ์œผ๋กœ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ ๊ตฌ์„ฑํ•˜๋Š๋ผ ์žฌ๋ฐŒ์—ˆ๋˜ ์ฃผ๋‹ˆ์˜€์Šต๋‹ˆ๋‹ค!

 

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

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

 

 

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

 

Ubuntu 22.04 LTS : OpenStack Zed : Configure Horizon : Server World

root@dlp ~(keystone)# vi /etc/openstack-dashboard/local_settings.py # line 99 : change Memcache server CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.0.0.30:11211', }, } # line 113 : add SESSION_EN

www.server-world.info

 

OpenStack Docs: ๋Œ€์‹œ๋ณด๋“œ

 

docs.openstack.org

 

 

 

728x90
๋ฐ˜์‘ํ˜•