[Open Stack] [Compute Node] โ‘ง-โ‘ก Compute Service - Nova ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

2023. 10. 1. 06:00ใ†์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ

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 ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ฐœ์š”

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

 

 

 

 

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

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

์ด๋ฒˆ์—๋Š” ์ปดํ“จํŠธ ๋…ธ๋“œ๋ฅผ ๊ตฌ์„ฑํ•ด ๋ณด๋„๋ก ํ• ๊ฒŒ์š”.
์ตœ์ดˆ ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€๋ฅผ ์„ค์ •ํ•˜๊ณ , ์„ค์น˜ํ•ด ๋ณผ๊ฒŒ์š”.

์•„๋ž˜ ๋‚ด์šฉ์€ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์™€ ๋™์ผํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ด ๊ณณ์„ ์ฐธ๊ณ ํ•ด ์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”.

 

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

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

junyharang.tistory.com

 

 

apt install software-properties-common

 

add-apt-repository cloud-archive:zed



apt-get update && apt-get upgrade -y

 

 

 

 

์ด๋ฒˆ์—๋Š” ์ปดํ“จํŠธ ๋…ธ๋“œ์— Hypervisor๋ฅผ ์„ค์น˜ํ•ด ๋ณด๋„๋ก ํ• ๊ฒŒ์š”.

apt install -y qemu-kvm libvirt-daemon-system libvirt-daemon virtinst bridge-utils libosinfo-bin

728x90

 

๊ทธ๋Ÿฐ ๋’ค Nova ๊ด€๋ จ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด ์ค„๊ฒŒ์š”.

apt -y install nova-compute nova-compute-kvm

 

vim /etc/nova/nova.conf [DEFAULT]

password์—๋Š” RabbitMQ ๊ตฌ์„ฑ ์‹œ ์‚ฌ์šฉํ–ˆ๋˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์„ธ์š”.

 

vim /etc/nova/nova.conf [api]

 

 

vim /etc/nova/nova.conf [vpn]

๋ฐ˜์‘ํ˜•


server_listen๊ณผ server_proxyclient_address๋Š” ์ปดํ“จํŠธ ๋…ธ๋“œ์˜ IP๋ฅผ ๋„ฃ์–ด์ฃผ์–ด์•ผ ํ•ด์š”.

 

vim /etc/nova/nova.conf [glance]




vim /etc/nova/nova.conf [oslo_concurrency]




vim /etc/nova/nova.conf [keystone_authtoken]

 

vim /etc/nova/nova.conf [placement]


[keystone_authtoken]์™€ [placement]์˜ password์—๋Š” ์ด ์ „์— ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ
Nova ๊ตฌ์„ฑ ์‹œ ์ž…๋ ฅํ–ˆ๋˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.

 

vim /etc/nova/nova.conf [wsgi]

 

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

 

 

chmod 640 /etc/nova/nova.conf; chgrp nova /etc/nova/nova.conf; systemctl restart nova-compute; systemctl enable nova-compute


๊ทธ๋Ÿฐ ๋’ค ์œ„์™€ ๊ฐ™์ด Nova ์„ค์ • ํŒŒ์ผ์— ๋Œ€ํ•ด ๊ถŒํ•œ๊ณผ ์†Œ์œ  ๊ทธ๋ฃน์„ ๋ณ€๊ฒฝํ•ด ์ฃผ๊ณ , ์„œ๋น„์Šค๋ฅผ ๋“ฑ๋กํ•˜๊ณ , ์žฌ ๊ธฐ๋™ ํ•ด ์ฃผ์—ˆ์–ด์š”.


 

 

 

       ๐Ÿ“ฆ ๊ตฌ์„ฑ ๋“ฑ๋ก - Controller Node

์ด์ œ ๊ตฌ์„ฑ๋œ ์ปดํ“จํŠธ ๋…ธ๋“œ๋ฅผ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์— ๋“ฑ๋ก ์‹œ์ผœ ์ฃผ๋„๋ก ํ• ๊ฑฐ์—์š”.

su -s /bin/bash nova -c "nova-manage cell_v2 discover_hosts"



openstack compute service list


์œ„์™€ ๊ฐ™์ด ์ปดํ“จํŠธ ๋…ธ๋“œ๊ฐ€ ๋“ฑ๋ก๋œ ๊ฑธ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

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

 

 

 

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

 

Ubuntu 22.04 LTS : OpenStack Zed : Add Compute Nodes : Server World

root@node01:~# mv /etc/nova/nova.conf /etc/nova/nova.conf.org root@node01:~# # create new [DEFAULT] state_path = /var/lib/nova enabled_apis = osapi_compute,metadata log_dir = /var/log/nova # RabbitMQ connection info transport_url = rabbit://openstack:passw

www.server-world.info

 

[OpenStack] Nova state down ์œผ๋กœ ์ธํ•œ password ์‚ญ์ œ ๋ฐ cell ์žฌ๋“ฑ๋ก

2022.06.06 - [IT/๊ทธ ์™ธ IT] - [OpenStack] 6. Neutron ๊ตฌ์„ฑ(1) [OpenStack] 6. Neutron ๊ตฌ์„ฑ(1) Network Service ์ธ Neutron ์„ค์ • 1. keystone ์— Neutron user ๋ฐ service ์ถ”๊ฐ€ root@nw1 ~(keystone)# openstack user create --domain default --project servi

greensul.tistory.com

 

Ubuntu 22.04 LTS : KVM : Install : Server World

root@dlp:~# vi /etc/netplan/01-netcfg.yaml network: ethernets: enp1s0: dhcp4: false # disable existing configuration for ethernet #addresses: [10.0.0.30/24] #routes: # - to: default # via: 10.0.0.1 # metric: 100 #nameservers: # addresses: [10.0.0.10] # sea

www.server-world.info

 

 

 

 
728x90
๋ฐ˜์‘ํ˜•