[Open Stack] [Compute Node] โ‘จ-โ‘ข Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

2023. 10. 3. 06:00ใ†System ์ž‘์—…์‹ค/Cloud

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] ์ค€๋น„์ค‘

 

 

 

 

๐Ÿš€ Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

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

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

์ด๋ฒˆ์—๋Š” ์ปดํ“จํŠธ ๋…ธ๋“œ์—์„œ ์ž‘์—…์„ ์‹œ์ž‘ํ• ๊ฒŒ์š”. ์ตœ์ดˆ ํŒจํ‚ค์ง€ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ• ๊ฑฐ์—์š”.

apt install -y neutron-common neutron-plugin-ml2 neutron-linuxbridge-agent

 

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

728x90
[DEFAULT]
core_plugin = ml2
service_plugins = router
auth_strategy = keystone
state_path = /var/lib/neutron
allow_overlapping_ips = True
# RabbitMQ connection info
transport_url = rabbit://openstack:password@192.168.20.3

 

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



vim /etc/neutron/neutron.conf [agent]

 

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

 

 

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

 

[keystone_authtoken]
www_authenticate_uri = http://192.168.20.3:5000
auth_url = http://192.168.20.3:5000
memcached_servers = 192.168.20.3:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

 

servicepassword์—๋Š” neutron ๊ณ„์ •์„ ์ƒ์„ฑํ•  ๋•Œ ์ž…๋ ฅํ–ˆ๋˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.


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

[oslo_concurrency]
lock_path = $state_path/lock

 

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

 

chmod 640 /etc/neutron/neutron.conf; chgrp neutron /etc/neutron/neutron.conf


๊ทธ๋Ÿฐ ๋’ค ํ•ด๋‹น ์„ค์ • ํŒŒ์ผ์˜ ์†Œ์œ ๊ถŒ๊ณผ ์†Œ์œ  ๊ทธ๋ฃน์„ ๋ณ€๊ฒฝํ•ด ์ฃผ์—ˆ์–ด์š”.

 

 

vim /etc/neutron/plugins/ml2/ml2_conf.ini [ml2]


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

 

vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini [securitygroup]



vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini 284๋ฒˆ์งธ ์ค„


local_ip์— ์ปดํ“จํŠธ ๋…ธ๋“œ์— IP๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์—ˆ์–ด์š”.

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


vim /etc/nova/nova.conf 100๋ฒˆ์งธ ์ค„

 

vim /etc/nova/nova.conf 106๋ฒˆ์งธ ์ค„

 

 

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


servicepassword ๋ถ€๋ถ„์€ Neutron ๊ณ„์ •์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.

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

 

ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini; systemctl restart nova-compute neutron-linuxbridge-agent; systemctl enable neutron-linuxbridge-agent



๋งˆ์ง€๋ง‰์œผ๋กœ ์œ„์™€ ๊ฐ™์ด ์„œ๋น„์Šค๋ฅผ ๋“ฑ๋กํ•˜๊ณ , ์žฌ๊ธฐ๋™ํ•˜์—ฌ ์ฃผ์—ˆ์–ด์š”.

 

 

 

 

       ๐Ÿ“ฆ ์ž˜ ๊ตฌ์„ฑ ๋˜์—ˆ๋‚˜? ๐Ÿค”

openstack network agent list


์œ„์™€ ๊ฐ™์ด ๋„คํŠธ์›Œํฌ agent ์ƒํƒœ๊ฐ€ ๋ณด์ด๊ณ , State๊ฐ€ UP์ด๋ฉด ์ž˜ ๊ตฌ์„ฑ๋œ ๊ฒƒ์ด์—์š”.

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

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

 

 

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

 

Ubuntu 22.04 LTS : OpenStack Zed : Configure Neutron (Compute Node) : Server World

# add follows to the end: Neutron auth info # the value of [metadata_proxy_shared_secret] is the same with the one in [metadata_agent.ini] [neutron] auth_url = https://dlp.srv.world:5000 auth_type = password project_domain_name = default user_domain_name =

www.server-world.info

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•