SlideShare a Scribd company logo
1 of 42
Download to read offline
저자 직강 + 스터디 그룹 - 3주차
Red Hat OpenStack 17
Nalee Jang,
Senior Consultant of Red Hat Korea
1
The Curriculum
Red
Hat
OpenStack
17
저자
직강
+
스터디
그룹
2
언제 커리큘럼 모임유형
1주차 (4월 6일)
오리엔테이션
- 진행방향 소개
- 그룹 만들기
- 세션 : 기본 구성환경 및 네트워크 설계
오프라인 미팅
2주차 (4월 13일) Repo 서버 및 언더클라우드 구성 온라인 미팅
3주차 (4월 20일) 오버클라우드 노드 준비 및 운영체제 설치 온라인 미팅
4주차 (4월 27일) 오버클라우드 배포 및 트러블슈팅 온라인 미팅
5주차 (5월 4일) 기능 테스트 및 스터디 과제 진행 온라인 미팅
6주차 (5월 11일) 그룹별 스터디 과제 진행상황 확인 및 공유 그룹별 미팅
7주차 (5월 18일)
스터디 공유의 시간
- 스터디 개요 소개
- 스터디 그룹별 발표
- 스터디 참여 소감 공유
오프라인 미팅
Session Agenda
3
OpenStack Korea Community
What we’ll
discuss today
▸ 오버클라우드 노드 생성
▸ Vbmc에 오버클라우드 노드 등록
▸ 오버클라우드 이미지 설치
▸ 오버클라우드 네트워크 생성
▸ Director 서버에 오버클라우드 노드 등록
▸ 오버클라우드 노드 운영체제 설치
▸ 다음시간 아젠다 소개
오픈스택 설치 프로세스
4
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
Provisioning NIC (배포용 네트워크)
Director 노드는 이 네트워크를 이용하여 컨트롤러 노드의
OS를 설치하고 오픈스택 서비스를 설치함.
Director (배포노드)
Repo 서버 컨트롤러 노드
192.168.10.0/24
192.168.10.11 192.168.10.12
빈 깡통 노드
오픈스택 설치 프로세스
5
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
Provisioning NIC (배포용 네트워크)
Director 노드는 사전에 정의한 네트워크 Yaml 파일을 이용하여
컨트롤러 노드의 OS를 설치하고 네트워크 구성을 함.
Director (배포노드)
Repo 서버 컨트롤러 노드
192.168.10.0/24
192.168.10.11 192.168.10.12 192.168.10.21
오픈스택 설치 프로세스
6
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
Provisioning NIC (배포용 네트워크)
오버클라우드 노드의 운영체제 설치 및 네트워크 구성이 끝나면
사전에 정의한 YAML 템플릿 파일을 이용하여 오버클라우드 노드에
Repo 서버의 컨테이너 이미지를 이용하여 오픈스택 서비스를
설치함.
Director (배포노드)
Repo 서버 컨트롤러 노드
192.168.10.0/24
192.168.10.11 192.168.10.12 192.168.10.21
오픈스택 설치 프로세스
7
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
컨트롤러 노드 컴퓨트 노드
Provision
Internal API
External
Tenant
Storage
192.168.10.21, 192.168.10.22
192.168.20.21, 192.168.20.22
172.168.16.21, 172.168.16.22
192.168.30.21
192.168.40.21
192.168.10.31
192.168.20.31
192.168.30.31
192.168.40.31
Director 노드는 오버클라우드 노드에
OS를 설치하고 네트워크 구성을 함.
이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
8
Red Hat OpenStack 17 저자 직강 + 스터디그룹
오버클라우드 노드 생성
오버클라우드 노드 생성
9
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
KVM 하이퍼바이저에 오버클라우드용 VM 생성
Host 노드의 CPU 가상화 기능을 사용하기위해
컴퓨트 노드용 VM에는 host-passthrough 설정
오버클라우드 노드 생성
10
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
KVM 하이퍼바이저에 오버클라우드용 VM 생성
No VM Name Description CPU Memory Disk Network
1 repo 리포지토리 서버 2 4 200
Provision
Internal API
External
2 director17 Director 서버 4 8 100
Provision
Internal API
External
3 ctrl01 컨트롤러 4 12 100
Provision
Internal API
External
Tenant
Storage
4 cn01 컴퓨트 1 4 12 100
Provision
Internal API
External
Tenant
Storage
5 cn02 컴퓨트2 4 12 100
Provision
Internal API
External
Tenant
Storage
VirtualBMC에 오버클라우드 노드 등록
11
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
[root@rhel8 ~]# vbmc add ctrl01 --port 6450 --username admin --password P@ssw0rd
[root@rhel8 ~]# vbmc add cn01 --port 6451 --username admin --password P@ssw0rd
[root@rhel8 ~]# vbmc add cn02 --port 6452 --username admin --password P@ssw0rd
[root@rhel8 ~]# vbmc list
+-------------+---------+---------+------+
| Domain name | Status | Address | Port |
+-------------+---------+---------+------+
| cn01 | down | :: | 6451 |
| cn02 | down | :: | 6452 |
| ctrl01 | down | :: | 6450 |
+-------------+---------+---------+------+
[root@rhel8 ~]#
[root@rhel8 ~]# vbmc start ctrl01
[root@rhel8 ~]# vbmc start cn01
[root@rhel8 ~]# vbmc start cn02
[root@rhel8 ~]# vbmc list
+-------------+---------+---------+------+
| Domain name | Status | Address | Port |
+-------------+---------+---------+------+
| cn01 | running | :: | 6451 |
| cn02 | running | :: | 6452 |
| ctrl01 | running | :: | 6450 |
+-------------+---------+---------+------+
[root@rhel8 ~]#
VirtualBMC에 오버클라우드 노드 추가 및 시작 - 호스트 노드에서 실행
VirtualBMC에 오버클라우드 노드 등록
12
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
[root@rhel8 ~]# firewall-cmd --add-port=6450/udp --zone=libvirt --permanent
success
[root@rhel8 ~]# firewall-cmd --add-port=6451/udp --zone=libvirt --permanent
success
[root@rhel8 ~]# firewall-cmd --add-port=6452/udp --zone=libvirt --permanent
success
[root@rhel8 ~]# firewall-cmd --reload
success
[root@rhel8 ~]# firewall-cmd --list-all --zone=libvirt
libvirt (active)
target: ACCEPT
icmp-block-inversion: no
interfaces: virbr0 virbr1
sources:
services: dhcp dhcpv6 dns http ntp ssh tftp
ports: 6450/udp 6451/udp 6452/udp
protocols: icmp ipv6-icmp
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule priority="32767" reject
[root@rhel8 ~]#
Firewall에 추가한 오버클라우드 노드 포트 등록 - 호스트 노드에서 실행
VirtualBMC에 오버클라우드 노드 등록
13
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir ~]$ sudo dnf install ipmitool
(undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6450 -I lanplus -U admin -P redhat power status
Chassis Power is off
(undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6451 -I lanplus -U admin -P redhat power status
Chassis Power is off
(undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6452 -I lanplus -U admin -P redhat power status
Chassis Power is off
(undercloud) [stack@dir ~]$
디렉터 노드에서 VBMC에 등록한 오버클라우드 노드 전원 상태 확인
테스트
14
Red Hat OpenStack 17 저자 직강 + 스터디그룹
오버클라우드 이미지 설치
오픈스택 설치 프로세스
15
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
Provisioning NIC (배포용 네트워크)
Director 노드에서 rpm 파일의 오버클라우드 이미지를 설치함.
Director (배포노드)
Repo 서버 컨트롤러 노드
192.168.10.0/24
192.168.10.11 192.168.10.12
빈 깡통 노드
오픈스택 설치 프로세스
16
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
Provisioning NIC (배포용 네트워크)
Director 노드에서 rpm 파일의 오버클라우드 이미지를 설치함.
Director (배포노드)
Repo 서버 컨트롤러 노드
192.168.10.0/24
192.168.10.11 192.168.10.12
빈 깡통 노드
오버클라우드 이미지 설치
17
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
[stack@dir ~]$ sudo dnf install rhosp-director-images-x86_64 rhosp-director-images-ipa-x86_64
[stack@dir ~]$ cd images
[stack@dir images]$ for i in /usr/share/rhosp-director-images/ironic-python-agent-latest.tar
/usr/share/rhosp-director-images/overcloud-full-latest.tar; do tar -xvf $i; done
[stack@dir images]$ cd
[stack@dir ~]$ source stackrc
(undercloud) [stack@dir ~]$ openstack overcloud image upload --image-path /home/stack/images/
(undercloud) [stack@dir ~]$ ls -l /var/lib/ironic/images/
(undercloud) [stack@dir ~]$ ls -l /var/lib/ironic/httpboot
오버클라우드 이미지 설치
설치한 오버클라우드 이미지 압축 해제
압축해제한 오버클라우드 이미지를 디렉터 노드에 등록
디렉터 노드에 등록한 이미지 확인
18
Red Hat OpenStack 17 저자 직강 + 스터디그룹
오버클라우드 네트워크 생성
오픈스택 설치 프로세스
19
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
컨트롤러 노드 컴퓨트 노드
Provision
Internal API
External
Tenant
Storage
192.168.10.21, 192.168.10.22
192.168.20.21, 192.168.20.22
172.168.16.21, 172.168.16.22
192.168.30.21
192.168.40.21
192.168.10.31
192.168.20.31
192.168.30.31
192.168.40.31
이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
오버클라우드 네트워크 생성
20
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
[root@dir ~]# su - stack
[stack@dir ~]$ mkdir stack-temp
[stack@dir ~]$ mv stack-20230127.tar stack-temp
[stack@dir ~]$ cd stack-temp
[stack@dir stack-temp]$ tar xvf stack-20230127.tar
[stack@dir stack-temp]$ ll
-rw-r--r-- stack/stack 5391 2023-01-27 11:40 check-mycloud.sh
-rw-r--r-- stack/stack 49 2023-01-27 11:32 chk-log.sh
-rw-r--r-- stack/stack 1223 2023-01-20 11:26
containers-prepare-parameter.yaml
-rw-r--r-- stack/stack 980 2023-01-26 12:15 deploy.sh
-rw-r--r-- stack/stack 833 2023-01-20 11:47 nodes.yaml
drwxr-xr-x stack/stack 0 2023-01-26 16:02 templates/
-rw-r--r-- stack/stack 782 2023-01-20 11:29 undercloud.conf
https://naleejang.tistory.com/261
오버클라우드 네트워크 생성
21
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir ~]$ cp stack-temp/templates/network_data.yaml ./templates
(undercloud) [stack@dir ~]$ vi templates/network_data.yaml
#------------------------------------------------------------#
- name: InternalApi
name_lower: internal_api
vip: true
mtu: 1500
subnets:
internal_api_subnet:
ip_subnet: 192.168.20.0/24
allocation_pools:
- start: 192.168.20.10
end: 192.168.20.250
vlan: 20
#------------------------------------------------------------#
(뒷장에 계속)
오버클라우드 네트워크 정의
오버클라우드 네트워크 생성
22
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- name: Storage
name_lower: storage
vip: false
mtu: 1500
subnets:
storage_subnet:
ip_subnet: 192.168.40.0/24
allocation_pools:
- start: 192.168.40.10
end: 192.168.40.250
vlan: 40
#------------------------------------------------------#
오버클라우드 네트워크 정의
- name: External
name_lower: external
vip: true
mtu: 1500
subnets:
external_subnet:
ip_subnet: 172.168.16.0/24
allocation_pools:
- start: 172.168.16.10
end: 172.168.16.250
gateway_ip: 172.168.16.1
vlan: 16
#------------------------------------------------------------
#
- name: Tenant
vip: false # Tenant network does not use VIPs
mtu: 1500
name_lower: tenant
subnets:
tenant_subnet:
ip_subnet: 192.168.30.0/24
allocation_pools:
- start: 192.168.30.10
end: 192.168.30.250
vlan: 30
#------------------------------------------------------------
#
오버클라우드 네트워크 생성
23
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
오버클라우드 네트워크 생성 및 확인
(undercloud) [stack@dir ~]$ openstack overcloud network provision 
--templates /usr/share/openstack-tripleo-heat-templates/ 
--output /home/stack/templates/overcloud-networks-deployed.yaml 
/home/stack/templates/network_data.yaml
(undercloud) [stack@dir ~]$ openstack network list
(undercloud) [stack@dir ~]$ openstack subnet list
(undercloud) [stack@dir ~]$ openstack network show external
(undercloud) [stack@dir ~]$ openstack subnet show external_subnet
오버클라우드 네트워크 생성
24
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
오버클라우드 VIP 생성 및 확인
(undercloud) [stack@dir ~]$ cp stack-temp/templates/vip_data.yaml ./templates
(undercloud) [stack@dir ~]$ cd templates
(undercloud) [stack@dir templates]$ vi vip_data.yaml
- network: external
dns_name: overcloud
ip_address: 172.168.16.22
- network: internal_api
dns_name: overcloud
ip_address: 192.168.20.22
- network: ctlplane
dns_name: overcloud
ip_address: 192.168.10.22
(undercloud) [stack@dir ~]$ openstack overcloud network vip provision 
--templates /usr/share/openstack-tripleo-heat-templates 
--stack overcloud 
--output /home/stack/templates/overcloud-vip-deployed.yaml 
/home/stack/templates/vip_data.yaml
(undercloud) [stack@dir ~]$ openstack port list
25
Red Hat OpenStack 17 저자 직강 + 스터디그룹
오버클라우드 노드 등록
오버클라우드 노드 등록
26
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
[root@rhel8 ~]# virsh list --all
Id Name State
-----------------------------
1 repo running
2 director17 running
- cn01 shut off
- cn02 shut off
- ctrl01 shut off
[root@rhel8 ~]# virsh domiflist ctrl01
Interface Type Source Model MAC
-----------------------------------------------------------------
- network provision virtio 52:54:00:a2:17:e7
- network internalAPI virtio 52:54:00:5e:62:92
- network external virtio 52:54:00:78:11:17
- network tenant virtio 52:54:00:4f:e2:8e
- network storage virtio 52:54:00:71:6b:90
[root@rhel8 ~]# virsh domiflist cn01
Interface Type Source Model MAC
-----------------------------------------------------------------
- network provision virtio 52:54:00:39:cb:fe
- network internalAPI virtio 52:54:00:26:62:f5
- network external virtio 52:54:00:b2:9b:f7
- network tenant virtio 52:54:00:82:fe:2d
- network storage virtio 52:54:00:c5:b7:2d
…
virsh 명령어를 이용해 오버클라우드 노드의
프로비저닝 네트워크의 MAC 주소를
확인함.
오버클라우드 노드 등록
27
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir ~]$ cp stack-temp/templates/nodes.yaml ./templates
(undercloud) [stack@dir ~]$ vi templates/nodes.yaml
nodes:
- name: "controller-0"
ports:
- address: " 52:54:00:a2:17:e7 "
physical_network: ctlplane
pm_type: "ipmi"
pm_user: "admin"
pm_password: "redhat"
pm_addr: "192.168.10.1"
pm_port: "6450"
capabilities: "node:controller-0,boot_option:local"
- name: "compute-0"
ports:
- address: " 52:54:00:39:cb:fe "
physical_network: ctlplane
pm_type: "ipmi"
pm_user: "admin"
pm_password: "redhat"
pm_addr: "192.168.10.1"
pm_port: "6451"
capabilities: "node:compute-0,boot_option:local"
…
- name: "compute-1"
ports:
- address: " 52:54:00:a2:76:11 "
physical_network: ctlplane
pm_type: "ipmi"
pm_user: "admin"
pm_password: "redhat"
pm_addr: "192.168.10.1"
pm_port: "6452"
capabilities: "node:compute-1,boot_option:local"
오버클라우드 노드 등록
28
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
# 오버클라우드 노드 등록 및 확인
(undercloud) [stack@dir ~]$ openstack overcloud node import ~/nodes.yaml
(undercloud) [stack@dir ~]$ openstack baremetal node list
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| 1dfdb1e0-458c-4fb9-b227-53a316795ce8 | controller-0 | None | power off | manageable | False |
| 89f70ed7-7f43-42c8-8d25-2c3c147b26ba | compute-0 | None | power off | manageable | False |
| a3f6e4a7-eaa8-409b-b2b0-523591c41ad4 | compute-1 | None | power off | manageable | False |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
(undercloud) [stack@dir ~]$
# 오버클라우드 노드 인트로스팩션 및 확인
(undercloud) [stack@dir ~]$ openstack overcloud node introspect --all-manageable --provide
(undercloud) [stack@dir ~]$ openstack baremetal node list
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| 1dfdb1e0-458c-4fb9-b227-53a316795ce8 | controller-0 | None | power off | available | False |
| 89f70ed7-7f43-42c8-8d25-2c3c147b26ba | compute-0 | None | power off | available | False |
| a3f6e4a7-eaa8-409b-b2b0-523591c41ad4 | compute-1 | None | power off | available | False |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
(undercloud) [stack@dir ~]$
29
Red Hat OpenStack 17 저자 직강 + 스터디그룹
오버클라우드 노드 운영체제
설치
오픈스택 설치 프로세스
30
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
컨트롤러 노드 컴퓨트 노드
Provision
Internal API
External
Tenant
Storage
192.168.10.21, 192.168.10.22
192.168.20.21, 192.168.20.22
172.168.16.21, 172.168.16.22
192.168.30.21
192.168.40.21
192.168.10.31
192.168.20.31
192.168.30.31
192.168.40.31
이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
오버클라우드 노드 운영체제 설치
31
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir ~]$ cp stack-temp/templates/overcloud-baremetal-deploy.yaml ./templates
(undercloud) [stack@dir ~]$ cd templates
(undercloud) [stack@dir templates]$ vi overcloud-baremetal-deploy.yaml
- name: Controller
count: 1
defaults:
network_config:
template: /home/stack/templates/nic-configs/controller.j2
default_route_network:
- external
instances:
- hostname: ctrl01 # 호스트명
name: controller-0 # 오버클라우드 노드명
networks:
- network: ctlplane
vif: true
fixed_ip: 192.168.10.21
- network: internal_api
subnet: internal_api_subnet
fixed_ip: 192.168.20.21
- network: external
subnet: external_subnet
fixed_ip: 172.168.16.21
- network: tenant
subnet: tenant_subnet
fixed_ip: 192.168.30.21
- network: storage
subnet: storage_subnet
fixed_ip: 192.168.40.21
(뒷장에 계속)
오버클라우드 노드 운영체제 설치
32
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- name: Compute
count: 2
defaults:
network_config:
template: /home/stack/templates/nic-configs/compute.j2
instances:
- hostname: cn01 # 호스트명
name: compute-0 # 오버클라우드 노드명
networks:
- network: ctlplane
vif: true
fixed_ip: 192.168.10.31
- network: internal_api
subnet: internal_api_subnet
fixed_ip: 192.168.20.31
- network: tenant
subnet: tenant_subnet
fixed_ip: 192.168.30.31
- network: storage
subnet: storage_subnet
fixed_ip: 192.168.40.31
- hostname: cn02 # 호스트명
name: compute-1 # 오버클라우드 노드명
networks:
- network: ctlplane
vif: true
fixed_ip: 192.168.10.32
- network: internal_api
subnet: internal_api_subnet
fixed_ip: 192.168.20.32
- network: tenant
subnet: tenant_subnet
fixed_ip: 192.168.30.32
- network: storage
subnet: storage_subnet
fixed_ip: 192.168.40.32
오버클라우드 노드 운영체제 설치
33
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir templates]$ mkdir nic-configs
(undercloud) [stack@dir templates]$ cd nic-configs
(undercloud) [stack@dir nic-configs]$ cp ~/stack-temp/templates/nic-configs/controller.j2 ./
(undercloud) [stack@dir nic-configs]$ vi controller.j2
---
network_config:
- type: interface
name: nic1
mtu: {{ ctlplane_mtu }}
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
routes: {{ ctlplane_host_routes }}
use_dhcp: false
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
#----------------------------------------------------------------#
- type: interface
name: nic2
mtu: {{ internal_api_mtu }}
use_dhcp: false
addresses:
- ip_netmask:
{{ internal_api_ip }}/{{ internal_api_cidr }}
#----------------------------------------------------------------#
오버클라우드 노드 운영체제 설치
34
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- type: ovs_bridge
name: br-ex
members:
- type: interface
name: nic3
mtu: {{ external_mtu }}
use_dhcp: false
addresses:
- ip_netmask:
{{ external_ip }}/{{ external_cidr }}
routes: {{ [external_host_routes, [{'default': True, 'next_hop': external_gateway_ip}]] | flatten | unique }}
#----------------------------------------------------------------#
- type: ovs_bridge
name: br-tenant
members:
- type: interface
name: nic4
mtu: {{ tenant_mtu }}
use_dhcp: false
addresses:
- ip_netmask:
{{ tenant_ip }}/{{ tenant_cidr }}
#----------------------------------------------------------------#
오버클라우드 노드 운영체제 설치
35
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- type: interface
name: nic5
use_dhcp: false
mtu: {{ storage_mtu }}
addresses:
- ip_netmask:
{{ storage_ip }}/{{ storage_cidr }}
#----------------------------------------------------------------#
오버클라우드 노드 운영체제 설치
36
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir templates]$ mkdir nic-configs
(undercloud) [stack@dir templates]$ cd nic-configs
(undercloud) [stack@dir nic-configs]$ cp ~/stack-temp/templates/nic-configs/compute.j2 ./
(undercloud) [stack@dir nic-configs]$ vi compute.j2
---
network_config:
- type: interface
name: nic1
mtu: {{ ctlplane_mtu }}
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
routes: {{ ctlplane_host_routes }}
use_dhcp: false
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
#----------------------------------------------------------------#
- type: interface
name: nic2
mtu: {{ internal_api_mtu }}
use_dhcp: false
addresses:
- ip_netmask:
{{ internal_api_ip }}/{{ internal_api_cidr }}
#----------------------------------------------------------------#
오버클라우드 노드 운영체제 설치
37
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- type: ovs_bridge
name: br-ex
members:
- type: interface
name: nic3
mtu: {{ external_mtu }}
use_dhcp: false
#----------------------------------------------------------------#
- type: ovs_bridge
name: br-tenant
members:
- type: interface
name: nic4
mtu: {{ tenant_mtu }}
use_dhcp: false
addresses:
- ip_netmask:
{{ tenant_ip }}/{{ tenant_cidr }}
#----------------------------------------------------------------#
오버클라우드 노드 운영체제 설치
38
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
- type: interface
name: nic5
use_dhcp: false
mtu: {{ storage_mtu }}
addresses:
- ip_netmask:
{{ storage_ip }}/{{ storage_cidr }}
#----------------------------------------------------------------#
(undercloud) [stack@dir custom-nics]$
오버클라우드 노드 운영체제 설치
39
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
(undercloud) [stack@dir ~]$ time openstack overcloud node provision 
--templates /usr/share/openstack-tripleo-heat-templates/ 
--stack overcloud 
--network-config 
--output /home/stack/templates/overcloud-baremetal-deployed.yaml 
/home/stack/templates/overcloud-baremetal-deploy.yaml
(undercloud) [stack@dir ~]$ openstack baremetal node list
+--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+
| 977feddc-1200-42c8-b7ce-6530c7571417 | controller-0 | 9127e5ff-e3dd-4190-94d1-8687a3822268 | power on | active | False |
| 7f55db01-8faf-4d4a-9886-f02dc75ca4ed | compute-0 | 55c5ae3b-517f-46d3-8893-3f18fff2107d | power on | active | False |
| ced8c0ec-07a2-4476-9bdd-a8c3e8ac4df6 | compute-1 | 86189249-ba95-4b5a-9763-33ba7837697e | power on | active | False |
+--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+
(undercloud) [stack@dir ~]$
(undercloud) [stack@dir ~]$ metalsmith list
+--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+
| UUID | Node Name | Allocation UUID | Hostname | State | IP Addresses |
+--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+
| 977feddc-1200-42c8-b7ce-6530c7571417 | controller-0 | 9127e5ff-e3dd-4190-94d1-8687a3822268 | ctrl01 | ACTIVE | ctlplane=192.168.10.21 |
| 7f55db01-8faf-4d4a-9886-f02dc75ca4ed | compute-0 | 55c5ae3b-517f-46d3-8893-3f18fff2107d | cn01 | ACTIVE | ctlplane=192.168.10.31 |
| ced8c0ec-07a2-4476-9bdd-a8c3e8ac4df6 | compute-1 | 86189249-ba95-4b5a-9763-33ba7837697e | cn02 | ACTIVE | ctlplane=192.168.10.32 |
+--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+
(undercloud) [stack@dir ~]$
40
Red Hat OpenStack 17 저자 직강 + 스터디그룹
다음시간 아젠다 소개
다음시간 온라인 모임 아젠다 소개
41
Red Hat OpenStack 17 저자 직강 + 스터디그룹
OpenStack Korea Community
미리 보고 오면 좋은 것
스터디 그룹 저자 직강 교재 다음시간까지준비할 것들~!!
★ 오버클라우드 노드 프로비전까지 완료하기
★ 교재 81 Page까지 미리 읽어보기
다음 시간에는?
★ 오버클라우드 배포
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHat
42
Red Hat is the world’s leading provider of enterprise
open source software solutions. Award-winning
support, training, and consulting services make
Red Hat a trusted adviser to the Fortune 500.
Thank you

More Related Content

What's hot

[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개OpenStack Korea Community
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutronvivekkonnect
 
OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~Masaya Aoyama
 
Openstack zun,virtual kubelet
Openstack zun,virtual kubeletOpenstack zun,virtual kubelet
Openstack zun,virtual kubeletChanyeol yoon
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27Kentaro Ebisawa
 
OpenStackをさらに”使う”技術 概要と基礎操作
OpenStackをさらに”使う”技術 概要と基礎操作OpenStackをさらに”使う”技術 概要と基礎操作
OpenStackをさらに”使う”技術 概要と基礎操作irix_jp
 
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기Ian Choi
 
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화OpenStack Korea Community
 
오픈스택 커뮤니티 소개 및 기술 동향
오픈스택 커뮤니티 소개 및 기술 동향오픈스택 커뮤니티 소개 및 기술 동향
오픈스택 커뮤니티 소개 및 기술 동향Nalee Jang
 
Ceph アーキテクチャ概説
Ceph アーキテクチャ概説Ceph アーキテクチャ概説
Ceph アーキテクチャ概説Emma Haruka Iwao
 
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1Etsuji Nakai
 
[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여Ji-Woong Choi
 
오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기Jaehwa Park
 
分散ストレージ技術Cephの最新情報
分散ストレージ技術Cephの最新情報分散ストレージ技術Cephの最新情報
分散ストレージ技術Cephの最新情報Emma Haruka Iwao
 
OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!ksk_ha
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観Yamato Tanaka
 
ONIC-Japan-2019-OVN public
ONIC-Japan-2019-OVN publicONIC-Japan-2019-OVN public
ONIC-Japan-2019-OVN publicManabu Ori
 
Introducing github.com/open-cluster-management – How to deliver apps across c...
Introducing github.com/open-cluster-management – How to deliver apps across c...Introducing github.com/open-cluster-management – How to deliver apps across c...
Introducing github.com/open-cluster-management – How to deliver apps across c...Michael Elder
 
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月VirtualTech Japan Inc.
 
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDNOpenStack Korea Community
 

What's hot (20)

[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
 
OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~
 
Openstack zun,virtual kubelet
Openstack zun,virtual kubeletOpenstack zun,virtual kubelet
Openstack zun,virtual kubelet
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27
 
OpenStackをさらに”使う”技術 概要と基礎操作
OpenStackをさらに”使う”技術 概要と基礎操作OpenStackをさらに”使う”技術 概要と基礎操作
OpenStackをさらに”使う”技術 概要と基礎操作
 
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
 
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
 
오픈스택 커뮤니티 소개 및 기술 동향
오픈스택 커뮤니티 소개 및 기술 동향오픈스택 커뮤니티 소개 및 기술 동향
오픈스택 커뮤니티 소개 및 기술 동향
 
Ceph アーキテクチャ概説
Ceph アーキテクチャ概説Ceph アーキテクチャ概説
Ceph アーキテクチャ概説
 
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
 
[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여
 
오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기
 
分散ストレージ技術Cephの最新情報
分散ストレージ技術Cephの最新情報分散ストレージ技術Cephの最新情報
分散ストレージ技術Cephの最新情報
 
OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観
 
ONIC-Japan-2019-OVN public
ONIC-Japan-2019-OVN publicONIC-Japan-2019-OVN public
ONIC-Japan-2019-OVN public
 
Introducing github.com/open-cluster-management – How to deliver apps across c...
Introducing github.com/open-cluster-management – How to deliver apps across c...Introducing github.com/open-cluster-management – How to deliver apps across c...
Introducing github.com/open-cluster-management – How to deliver apps across c...
 
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月
OpenStackをコマンドで攻める! 構築・運用とトラブル解決 - OpenStack最新情報セミナー 2014年6月
 
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
 

Similar to Red Hat OpenStack 17 저자직강+스터디그룹_3주차

[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개
[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개
[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개OpenStack Korea Community
 
OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)Ian Choi
 
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 Docker
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 DockerXECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 Docker
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 DockerXpressEngine
 
[1A6]Docker로 보는 서버 운영의 미래
[1A6]Docker로 보는 서버 운영의 미래[1A6]Docker로 보는 서버 운영의 미래
[1A6]Docker로 보는 서버 운영의 미래NAVER D2
 
20141029 하둡2.5와 hive설치 및 예제
20141029 하둡2.5와 hive설치 및 예제20141029 하둡2.5와 hive설치 및 예제
20141029 하둡2.5와 hive설치 및 예제Tae Young Lee
 
20141229 dklee docker
20141229 dklee docker20141229 dklee docker
20141229 dklee dockerDK Lee
 
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축Ji-Woong Choi
 
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1Ji-Woong Choi
 
Osc4.x installation v1-upload
Osc4.x installation v1-uploadOsc4.x installation v1-upload
Osc4.x installation v1-uploadDong-Hwa jung
 
Solaris 11 network virtualization & Server Virtualization for cloud
Solaris 11 network virtualization & Server Virtualization for cloudSolaris 11 network virtualization & Server Virtualization for cloud
Solaris 11 network virtualization & Server Virtualization for cloudsuk kim
 
Deploying Hyperledger Fabric on Kubernetes.pptx
Deploying Hyperledger Fabric on Kubernetes.pptxDeploying Hyperledger Fabric on Kubernetes.pptx
Deploying Hyperledger Fabric on Kubernetes.pptxwonyong hwang
 
[오픈소스컨설팅]Nginx jboss 연동가이드__v1
[오픈소스컨설팅]Nginx jboss 연동가이드__v1[오픈소스컨설팅]Nginx jboss 연동가이드__v1
[오픈소스컨설팅]Nginx jboss 연동가이드__v1Ji-Woong Choi
 
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solutionOpenStack Korea Community
 
JVM_트러블슈팅.pdf
JVM_트러블슈팅.pdfJVM_트러블슈팅.pdf
JVM_트러블슈팅.pdfkwbak
 
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개OpenStack Korea Community
 
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용NAVER CLOUD PLATFORMㅣ네이버 클라우드 플랫폼
 
[오픈소스컨설팅] ARM & OpenStack Community
[오픈소스컨설팅] ARM & OpenStack Community[오픈소스컨설팅] ARM & OpenStack Community
[오픈소스컨설팅] ARM & OpenStack CommunityOpen Source Consulting
 

Similar to Red Hat OpenStack 17 저자직강+스터디그룹_3주차 (20)

[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개
[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개
[OpenStack Days Korea 2016] Track4 - 오픈스택을 공부합시다 - 커뮤니티 스터디 분과 소개
 
OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)
 
kt-cloud
kt-cloudkt-cloud
kt-cloud
 
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 Docker
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 DockerXECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 Docker
XECon2015 :: [1-5] 김훈민 - 서버 운영자가 꼭 알아야 할 Docker
 
[1A6]Docker로 보는 서버 운영의 미래
[1A6]Docker로 보는 서버 운영의 미래[1A6]Docker로 보는 서버 운영의 미래
[1A6]Docker로 보는 서버 운영의 미래
 
20141029 하둡2.5와 hive설치 및 예제
20141029 하둡2.5와 hive설치 및 예제20141029 하둡2.5와 hive설치 및 예제
20141029 하둡2.5와 hive설치 및 예제
 
20141229 dklee docker
20141229 dklee docker20141229 dklee docker
20141229 dklee docker
 
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
 
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1
[오픈소스컨설팅] Open stack kilo with DVR_CEPH_v1.1
 
Osc4.x installation v1-upload
Osc4.x installation v1-uploadOsc4.x installation v1-upload
Osc4.x installation v1-upload
 
Solaris 11 network virtualization & Server Virtualization for cloud
Solaris 11 network virtualization & Server Virtualization for cloudSolaris 11 network virtualization & Server Virtualization for cloud
Solaris 11 network virtualization & Server Virtualization for cloud
 
Deploying Hyperledger Fabric on Kubernetes.pptx
Deploying Hyperledger Fabric on Kubernetes.pptxDeploying Hyperledger Fabric on Kubernetes.pptx
Deploying Hyperledger Fabric on Kubernetes.pptx
 
Kafka slideshare
Kafka   slideshareKafka   slideshare
Kafka slideshare
 
[오픈소스컨설팅]Nginx jboss 연동가이드__v1
[오픈소스컨설팅]Nginx jboss 연동가이드__v1[오픈소스컨설팅]Nginx jboss 연동가이드__v1
[오픈소스컨설팅]Nginx jboss 연동가이드__v1
 
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution
[OpenStack Days Korea 2016] Innovating OpenStack Network with SDN solution
 
JVM_트러블슈팅.pdf
JVM_트러블슈팅.pdfJVM_트러블슈팅.pdf
JVM_트러블슈팅.pdf
 
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개
[OpenStack Days Korea 2016] Track2 - 아리스타 OpenStack 연동 및 CloudVision 솔루션 소개
 
KAFKA 3.1.0.pdf
KAFKA 3.1.0.pdfKAFKA 3.1.0.pdf
KAFKA 3.1.0.pdf
 
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용
[네이버클라우드플랫폼 온라인 교육 시리즈] 네이버클라우드플랫폼 CLI 소개 및 활용
 
[오픈소스컨설팅] ARM & OpenStack Community
[오픈소스컨설팅] ARM & OpenStack Community[오픈소스컨설팅] ARM & OpenStack Community
[오픈소스컨설팅] ARM & OpenStack Community
 

More from Nalee Jang

셸 스크립트를 이용한 클라우드 시스템 운영
셸 스크립트를 이용한 클라우드 시스템 운영셸 스크립트를 이용한 클라우드 시스템 운영
셸 스크립트를 이용한 클라우드 시스템 운영Nalee Jang
 
[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rateNalee Jang
 
How to operate containerized OpenStack
How to operate containerized OpenStackHow to operate containerized OpenStack
How to operate containerized OpenStackNalee Jang
 
[Red Hat] OpenStack Automation with Ansible
[Red Hat] OpenStack Automation with Ansible[Red Hat] OpenStack Automation with Ansible
[Red Hat] OpenStack Automation with AnsibleNalee Jang
 
Red hat and after 1 year
Red hat and after 1 yearRed hat and after 1 year
Red hat and after 1 yearNalee Jang
 
오픈스택커뮤니티와기술동향
오픈스택커뮤니티와기술동향오픈스택커뮤니티와기술동향
오픈스택커뮤니티와기술동향Nalee Jang
 
Why cloud storage
Why cloud storageWhy cloud storage
Why cloud storageNalee Jang
 
해외 사례로 보는 Billing for OpenStack Solution
해외 사례로 보는 Billing for OpenStack Solution해외 사례로 보는 Billing for OpenStack Solution
해외 사례로 보는 Billing for OpenStack SolutionNalee Jang
 
오픈스택한국커뮤니티 소개
오픈스택한국커뮤니티 소개오픈스택한국커뮤니티 소개
오픈스택한국커뮤니티 소개Nalee Jang
 
OpenStack in Enterprise
OpenStack in EnterpriseOpenStack in Enterprise
OpenStack in EnterpriseNalee Jang
 
User Story :: Cloudike with KT UCloud Biz
User Story :: Cloudike with KT UCloud BizUser Story :: Cloudike with KT UCloud Biz
User Story :: Cloudike with KT UCloud BizNalee Jang
 
OpenSource! OpenStack!
OpenSource! OpenStack!OpenSource! OpenStack!
OpenSource! OpenStack!Nalee Jang
 
오픈스택을다루는기술 집필후기
오픈스택을다루는기술 집필후기오픈스택을다루는기술 집필후기
오픈스택을다루는기술 집필후기Nalee Jang
 
Kcd open stack
Kcd open stackKcd open stack
Kcd open stackNalee Jang
 
Open technet openstack
Open technet openstackOpen technet openstack
Open technet openstackNalee Jang
 
[OpenStack Day in Korea] Introduction to open stack
[OpenStack Day in Korea] Introduction to open stack[OpenStack Day in Korea] Introduction to open stack
[OpenStack Day in Korea] Introduction to open stackNalee Jang
 
오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2Nalee Jang
 
여성개발자로 사는 이야기!!
여성개발자로 사는 이야기!!여성개발자로 사는 이야기!!
여성개발자로 사는 이야기!!Nalee Jang
 
오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기Nalee Jang
 
20121204 open technet_openstack_이틀만하면나처럼할수있다
20121204 open technet_openstack_이틀만하면나처럼할수있다20121204 open technet_openstack_이틀만하면나처럼할수있다
20121204 open technet_openstack_이틀만하면나처럼할수있다Nalee Jang
 

More from Nalee Jang (20)

셸 스크립트를 이용한 클라우드 시스템 운영
셸 스크립트를 이용한 클라우드 시스템 운영셸 스크립트를 이용한 클라우드 시스템 운영
셸 스크립트를 이용한 클라우드 시스템 운영
 
[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate
 
How to operate containerized OpenStack
How to operate containerized OpenStackHow to operate containerized OpenStack
How to operate containerized OpenStack
 
[Red Hat] OpenStack Automation with Ansible
[Red Hat] OpenStack Automation with Ansible[Red Hat] OpenStack Automation with Ansible
[Red Hat] OpenStack Automation with Ansible
 
Red hat and after 1 year
Red hat and after 1 yearRed hat and after 1 year
Red hat and after 1 year
 
오픈스택커뮤니티와기술동향
오픈스택커뮤니티와기술동향오픈스택커뮤니티와기술동향
오픈스택커뮤니티와기술동향
 
Why cloud storage
Why cloud storageWhy cloud storage
Why cloud storage
 
해외 사례로 보는 Billing for OpenStack Solution
해외 사례로 보는 Billing for OpenStack Solution해외 사례로 보는 Billing for OpenStack Solution
해외 사례로 보는 Billing for OpenStack Solution
 
오픈스택한국커뮤니티 소개
오픈스택한국커뮤니티 소개오픈스택한국커뮤니티 소개
오픈스택한국커뮤니티 소개
 
OpenStack in Enterprise
OpenStack in EnterpriseOpenStack in Enterprise
OpenStack in Enterprise
 
User Story :: Cloudike with KT UCloud Biz
User Story :: Cloudike with KT UCloud BizUser Story :: Cloudike with KT UCloud Biz
User Story :: Cloudike with KT UCloud Biz
 
OpenSource! OpenStack!
OpenSource! OpenStack!OpenSource! OpenStack!
OpenSource! OpenStack!
 
오픈스택을다루는기술 집필후기
오픈스택을다루는기술 집필후기오픈스택을다루는기술 집필후기
오픈스택을다루는기술 집필후기
 
Kcd open stack
Kcd open stackKcd open stack
Kcd open stack
 
Open technet openstack
Open technet openstackOpen technet openstack
Open technet openstack
 
[OpenStack Day in Korea] Introduction to open stack
[OpenStack Day in Korea] Introduction to open stack[OpenStack Day in Korea] Introduction to open stack
[OpenStack Day in Korea] Introduction to open stack
 
오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2
 
여성개발자로 사는 이야기!!
여성개발자로 사는 이야기!!여성개발자로 사는 이야기!!
여성개발자로 사는 이야기!!
 
오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기
 
20121204 open technet_openstack_이틀만하면나처럼할수있다
20121204 open technet_openstack_이틀만하면나처럼할수있다20121204 open technet_openstack_이틀만하면나처럼할수있다
20121204 open technet_openstack_이틀만하면나처럼할수있다
 

Red Hat OpenStack 17 저자직강+스터디그룹_3주차

  • 1. 저자 직강 + 스터디 그룹 - 3주차 Red Hat OpenStack 17 Nalee Jang, Senior Consultant of Red Hat Korea 1
  • 2. The Curriculum Red Hat OpenStack 17 저자 직강 + 스터디 그룹 2 언제 커리큘럼 모임유형 1주차 (4월 6일) 오리엔테이션 - 진행방향 소개 - 그룹 만들기 - 세션 : 기본 구성환경 및 네트워크 설계 오프라인 미팅 2주차 (4월 13일) Repo 서버 및 언더클라우드 구성 온라인 미팅 3주차 (4월 20일) 오버클라우드 노드 준비 및 운영체제 설치 온라인 미팅 4주차 (4월 27일) 오버클라우드 배포 및 트러블슈팅 온라인 미팅 5주차 (5월 4일) 기능 테스트 및 스터디 과제 진행 온라인 미팅 6주차 (5월 11일) 그룹별 스터디 과제 진행상황 확인 및 공유 그룹별 미팅 7주차 (5월 18일) 스터디 공유의 시간 - 스터디 개요 소개 - 스터디 그룹별 발표 - 스터디 참여 소감 공유 오프라인 미팅
  • 3. Session Agenda 3 OpenStack Korea Community What we’ll discuss today ▸ 오버클라우드 노드 생성 ▸ Vbmc에 오버클라우드 노드 등록 ▸ 오버클라우드 이미지 설치 ▸ 오버클라우드 네트워크 생성 ▸ Director 서버에 오버클라우드 노드 등록 ▸ 오버클라우드 노드 운영체제 설치 ▸ 다음시간 아젠다 소개
  • 4. 오픈스택 설치 프로세스 4 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community Provisioning NIC (배포용 네트워크) Director 노드는 이 네트워크를 이용하여 컨트롤러 노드의 OS를 설치하고 오픈스택 서비스를 설치함. Director (배포노드) Repo 서버 컨트롤러 노드 192.168.10.0/24 192.168.10.11 192.168.10.12 빈 깡통 노드
  • 5. 오픈스택 설치 프로세스 5 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community Provisioning NIC (배포용 네트워크) Director 노드는 사전에 정의한 네트워크 Yaml 파일을 이용하여 컨트롤러 노드의 OS를 설치하고 네트워크 구성을 함. Director (배포노드) Repo 서버 컨트롤러 노드 192.168.10.0/24 192.168.10.11 192.168.10.12 192.168.10.21
  • 6. 오픈스택 설치 프로세스 6 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community Provisioning NIC (배포용 네트워크) 오버클라우드 노드의 운영체제 설치 및 네트워크 구성이 끝나면 사전에 정의한 YAML 템플릿 파일을 이용하여 오버클라우드 노드에 Repo 서버의 컨테이너 이미지를 이용하여 오픈스택 서비스를 설치함. Director (배포노드) Repo 서버 컨트롤러 노드 192.168.10.0/24 192.168.10.11 192.168.10.12 192.168.10.21
  • 7. 오픈스택 설치 프로세스 7 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 컨트롤러 노드 컴퓨트 노드 Provision Internal API External Tenant Storage 192.168.10.21, 192.168.10.22 192.168.20.21, 192.168.20.22 172.168.16.21, 172.168.16.22 192.168.30.21 192.168.40.21 192.168.10.31 192.168.20.31 192.168.30.31 192.168.40.31 Director 노드는 오버클라우드 노드에 OS를 설치하고 네트워크 구성을 함. 이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
  • 8. 8 Red Hat OpenStack 17 저자 직강 + 스터디그룹 오버클라우드 노드 생성
  • 9. 오버클라우드 노드 생성 9 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community KVM 하이퍼바이저에 오버클라우드용 VM 생성 Host 노드의 CPU 가상화 기능을 사용하기위해 컴퓨트 노드용 VM에는 host-passthrough 설정
  • 10. 오버클라우드 노드 생성 10 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community KVM 하이퍼바이저에 오버클라우드용 VM 생성 No VM Name Description CPU Memory Disk Network 1 repo 리포지토리 서버 2 4 200 Provision Internal API External 2 director17 Director 서버 4 8 100 Provision Internal API External 3 ctrl01 컨트롤러 4 12 100 Provision Internal API External Tenant Storage 4 cn01 컴퓨트 1 4 12 100 Provision Internal API External Tenant Storage 5 cn02 컴퓨트2 4 12 100 Provision Internal API External Tenant Storage
  • 11. VirtualBMC에 오버클라우드 노드 등록 11 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community [root@rhel8 ~]# vbmc add ctrl01 --port 6450 --username admin --password P@ssw0rd [root@rhel8 ~]# vbmc add cn01 --port 6451 --username admin --password P@ssw0rd [root@rhel8 ~]# vbmc add cn02 --port 6452 --username admin --password P@ssw0rd [root@rhel8 ~]# vbmc list +-------------+---------+---------+------+ | Domain name | Status | Address | Port | +-------------+---------+---------+------+ | cn01 | down | :: | 6451 | | cn02 | down | :: | 6452 | | ctrl01 | down | :: | 6450 | +-------------+---------+---------+------+ [root@rhel8 ~]# [root@rhel8 ~]# vbmc start ctrl01 [root@rhel8 ~]# vbmc start cn01 [root@rhel8 ~]# vbmc start cn02 [root@rhel8 ~]# vbmc list +-------------+---------+---------+------+ | Domain name | Status | Address | Port | +-------------+---------+---------+------+ | cn01 | running | :: | 6451 | | cn02 | running | :: | 6452 | | ctrl01 | running | :: | 6450 | +-------------+---------+---------+------+ [root@rhel8 ~]# VirtualBMC에 오버클라우드 노드 추가 및 시작 - 호스트 노드에서 실행
  • 12. VirtualBMC에 오버클라우드 노드 등록 12 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community [root@rhel8 ~]# firewall-cmd --add-port=6450/udp --zone=libvirt --permanent success [root@rhel8 ~]# firewall-cmd --add-port=6451/udp --zone=libvirt --permanent success [root@rhel8 ~]# firewall-cmd --add-port=6452/udp --zone=libvirt --permanent success [root@rhel8 ~]# firewall-cmd --reload success [root@rhel8 ~]# firewall-cmd --list-all --zone=libvirt libvirt (active) target: ACCEPT icmp-block-inversion: no interfaces: virbr0 virbr1 sources: services: dhcp dhcpv6 dns http ntp ssh tftp ports: 6450/udp 6451/udp 6452/udp protocols: icmp ipv6-icmp masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: rule priority="32767" reject [root@rhel8 ~]# Firewall에 추가한 오버클라우드 노드 포트 등록 - 호스트 노드에서 실행
  • 13. VirtualBMC에 오버클라우드 노드 등록 13 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir ~]$ sudo dnf install ipmitool (undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6450 -I lanplus -U admin -P redhat power status Chassis Power is off (undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6451 -I lanplus -U admin -P redhat power status Chassis Power is off (undercloud) [stack@dir ~]$ ipmitool -H 192.168.10.1 -p 6452 -I lanplus -U admin -P redhat power status Chassis Power is off (undercloud) [stack@dir ~]$ 디렉터 노드에서 VBMC에 등록한 오버클라우드 노드 전원 상태 확인 테스트
  • 14. 14 Red Hat OpenStack 17 저자 직강 + 스터디그룹 오버클라우드 이미지 설치
  • 15. 오픈스택 설치 프로세스 15 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community Provisioning NIC (배포용 네트워크) Director 노드에서 rpm 파일의 오버클라우드 이미지를 설치함. Director (배포노드) Repo 서버 컨트롤러 노드 192.168.10.0/24 192.168.10.11 192.168.10.12 빈 깡통 노드
  • 16. 오픈스택 설치 프로세스 16 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community Provisioning NIC (배포용 네트워크) Director 노드에서 rpm 파일의 오버클라우드 이미지를 설치함. Director (배포노드) Repo 서버 컨트롤러 노드 192.168.10.0/24 192.168.10.11 192.168.10.12 빈 깡통 노드
  • 17. 오버클라우드 이미지 설치 17 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community [stack@dir ~]$ sudo dnf install rhosp-director-images-x86_64 rhosp-director-images-ipa-x86_64 [stack@dir ~]$ cd images [stack@dir images]$ for i in /usr/share/rhosp-director-images/ironic-python-agent-latest.tar /usr/share/rhosp-director-images/overcloud-full-latest.tar; do tar -xvf $i; done [stack@dir images]$ cd [stack@dir ~]$ source stackrc (undercloud) [stack@dir ~]$ openstack overcloud image upload --image-path /home/stack/images/ (undercloud) [stack@dir ~]$ ls -l /var/lib/ironic/images/ (undercloud) [stack@dir ~]$ ls -l /var/lib/ironic/httpboot 오버클라우드 이미지 설치 설치한 오버클라우드 이미지 압축 해제 압축해제한 오버클라우드 이미지를 디렉터 노드에 등록 디렉터 노드에 등록한 이미지 확인
  • 18. 18 Red Hat OpenStack 17 저자 직강 + 스터디그룹 오버클라우드 네트워크 생성
  • 19. 오픈스택 설치 프로세스 19 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 컨트롤러 노드 컴퓨트 노드 Provision Internal API External Tenant Storage 192.168.10.21, 192.168.10.22 192.168.20.21, 192.168.20.22 172.168.16.21, 172.168.16.22 192.168.30.21 192.168.40.21 192.168.10.31 192.168.20.31 192.168.30.31 192.168.40.31 이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
  • 20. 오버클라우드 네트워크 생성 20 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community [root@dir ~]# su - stack [stack@dir ~]$ mkdir stack-temp [stack@dir ~]$ mv stack-20230127.tar stack-temp [stack@dir ~]$ cd stack-temp [stack@dir stack-temp]$ tar xvf stack-20230127.tar [stack@dir stack-temp]$ ll -rw-r--r-- stack/stack 5391 2023-01-27 11:40 check-mycloud.sh -rw-r--r-- stack/stack 49 2023-01-27 11:32 chk-log.sh -rw-r--r-- stack/stack 1223 2023-01-20 11:26 containers-prepare-parameter.yaml -rw-r--r-- stack/stack 980 2023-01-26 12:15 deploy.sh -rw-r--r-- stack/stack 833 2023-01-20 11:47 nodes.yaml drwxr-xr-x stack/stack 0 2023-01-26 16:02 templates/ -rw-r--r-- stack/stack 782 2023-01-20 11:29 undercloud.conf https://naleejang.tistory.com/261
  • 21. 오버클라우드 네트워크 생성 21 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir ~]$ cp stack-temp/templates/network_data.yaml ./templates (undercloud) [stack@dir ~]$ vi templates/network_data.yaml #------------------------------------------------------------# - name: InternalApi name_lower: internal_api vip: true mtu: 1500 subnets: internal_api_subnet: ip_subnet: 192.168.20.0/24 allocation_pools: - start: 192.168.20.10 end: 192.168.20.250 vlan: 20 #------------------------------------------------------------# (뒷장에 계속) 오버클라우드 네트워크 정의
  • 22. 오버클라우드 네트워크 생성 22 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - name: Storage name_lower: storage vip: false mtu: 1500 subnets: storage_subnet: ip_subnet: 192.168.40.0/24 allocation_pools: - start: 192.168.40.10 end: 192.168.40.250 vlan: 40 #------------------------------------------------------# 오버클라우드 네트워크 정의 - name: External name_lower: external vip: true mtu: 1500 subnets: external_subnet: ip_subnet: 172.168.16.0/24 allocation_pools: - start: 172.168.16.10 end: 172.168.16.250 gateway_ip: 172.168.16.1 vlan: 16 #------------------------------------------------------------ # - name: Tenant vip: false # Tenant network does not use VIPs mtu: 1500 name_lower: tenant subnets: tenant_subnet: ip_subnet: 192.168.30.0/24 allocation_pools: - start: 192.168.30.10 end: 192.168.30.250 vlan: 30 #------------------------------------------------------------ #
  • 23. 오버클라우드 네트워크 생성 23 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 오버클라우드 네트워크 생성 및 확인 (undercloud) [stack@dir ~]$ openstack overcloud network provision --templates /usr/share/openstack-tripleo-heat-templates/ --output /home/stack/templates/overcloud-networks-deployed.yaml /home/stack/templates/network_data.yaml (undercloud) [stack@dir ~]$ openstack network list (undercloud) [stack@dir ~]$ openstack subnet list (undercloud) [stack@dir ~]$ openstack network show external (undercloud) [stack@dir ~]$ openstack subnet show external_subnet
  • 24. 오버클라우드 네트워크 생성 24 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 오버클라우드 VIP 생성 및 확인 (undercloud) [stack@dir ~]$ cp stack-temp/templates/vip_data.yaml ./templates (undercloud) [stack@dir ~]$ cd templates (undercloud) [stack@dir templates]$ vi vip_data.yaml - network: external dns_name: overcloud ip_address: 172.168.16.22 - network: internal_api dns_name: overcloud ip_address: 192.168.20.22 - network: ctlplane dns_name: overcloud ip_address: 192.168.10.22 (undercloud) [stack@dir ~]$ openstack overcloud network vip provision --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --output /home/stack/templates/overcloud-vip-deployed.yaml /home/stack/templates/vip_data.yaml (undercloud) [stack@dir ~]$ openstack port list
  • 25. 25 Red Hat OpenStack 17 저자 직강 + 스터디그룹 오버클라우드 노드 등록
  • 26. 오버클라우드 노드 등록 26 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community [root@rhel8 ~]# virsh list --all Id Name State ----------------------------- 1 repo running 2 director17 running - cn01 shut off - cn02 shut off - ctrl01 shut off [root@rhel8 ~]# virsh domiflist ctrl01 Interface Type Source Model MAC ----------------------------------------------------------------- - network provision virtio 52:54:00:a2:17:e7 - network internalAPI virtio 52:54:00:5e:62:92 - network external virtio 52:54:00:78:11:17 - network tenant virtio 52:54:00:4f:e2:8e - network storage virtio 52:54:00:71:6b:90 [root@rhel8 ~]# virsh domiflist cn01 Interface Type Source Model MAC ----------------------------------------------------------------- - network provision virtio 52:54:00:39:cb:fe - network internalAPI virtio 52:54:00:26:62:f5 - network external virtio 52:54:00:b2:9b:f7 - network tenant virtio 52:54:00:82:fe:2d - network storage virtio 52:54:00:c5:b7:2d … virsh 명령어를 이용해 오버클라우드 노드의 프로비저닝 네트워크의 MAC 주소를 확인함.
  • 27. 오버클라우드 노드 등록 27 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir ~]$ cp stack-temp/templates/nodes.yaml ./templates (undercloud) [stack@dir ~]$ vi templates/nodes.yaml nodes: - name: "controller-0" ports: - address: " 52:54:00:a2:17:e7 " physical_network: ctlplane pm_type: "ipmi" pm_user: "admin" pm_password: "redhat" pm_addr: "192.168.10.1" pm_port: "6450" capabilities: "node:controller-0,boot_option:local" - name: "compute-0" ports: - address: " 52:54:00:39:cb:fe " physical_network: ctlplane pm_type: "ipmi" pm_user: "admin" pm_password: "redhat" pm_addr: "192.168.10.1" pm_port: "6451" capabilities: "node:compute-0,boot_option:local" … - name: "compute-1" ports: - address: " 52:54:00:a2:76:11 " physical_network: ctlplane pm_type: "ipmi" pm_user: "admin" pm_password: "redhat" pm_addr: "192.168.10.1" pm_port: "6452" capabilities: "node:compute-1,boot_option:local"
  • 28. 오버클라우드 노드 등록 28 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community # 오버클라우드 노드 등록 및 확인 (undercloud) [stack@dir ~]$ openstack overcloud node import ~/nodes.yaml (undercloud) [stack@dir ~]$ openstack baremetal node list +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ | 1dfdb1e0-458c-4fb9-b227-53a316795ce8 | controller-0 | None | power off | manageable | False | | 89f70ed7-7f43-42c8-8d25-2c3c147b26ba | compute-0 | None | power off | manageable | False | | a3f6e4a7-eaa8-409b-b2b0-523591c41ad4 | compute-1 | None | power off | manageable | False | +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ (undercloud) [stack@dir ~]$ # 오버클라우드 노드 인트로스팩션 및 확인 (undercloud) [stack@dir ~]$ openstack overcloud node introspect --all-manageable --provide (undercloud) [stack@dir ~]$ openstack baremetal node list +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ | 1dfdb1e0-458c-4fb9-b227-53a316795ce8 | controller-0 | None | power off | available | False | | 89f70ed7-7f43-42c8-8d25-2c3c147b26ba | compute-0 | None | power off | available | False | | a3f6e4a7-eaa8-409b-b2b0-523591c41ad4 | compute-1 | None | power off | available | False | +--------------------------------------+--------------+---------------+-------------+--------------------+-------------+ (undercloud) [stack@dir ~]$
  • 29. 29 Red Hat OpenStack 17 저자 직강 + 스터디그룹 오버클라우드 노드 운영체제 설치
  • 30. 오픈스택 설치 프로세스 30 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 컨트롤러 노드 컴퓨트 노드 Provision Internal API External Tenant Storage 192.168.10.21, 192.168.10.22 192.168.20.21, 192.168.20.22 172.168.16.21, 172.168.16.22 192.168.30.21 192.168.40.21 192.168.10.31 192.168.20.31 192.168.30.31 192.168.40.31 이런 네트워크 구성정보를 Yaml 파일로 사전에 작성해야 함.
  • 31. 오버클라우드 노드 운영체제 설치 31 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir ~]$ cp stack-temp/templates/overcloud-baremetal-deploy.yaml ./templates (undercloud) [stack@dir ~]$ cd templates (undercloud) [stack@dir templates]$ vi overcloud-baremetal-deploy.yaml - name: Controller count: 1 defaults: network_config: template: /home/stack/templates/nic-configs/controller.j2 default_route_network: - external instances: - hostname: ctrl01 # 호스트명 name: controller-0 # 오버클라우드 노드명 networks: - network: ctlplane vif: true fixed_ip: 192.168.10.21 - network: internal_api subnet: internal_api_subnet fixed_ip: 192.168.20.21 - network: external subnet: external_subnet fixed_ip: 172.168.16.21 - network: tenant subnet: tenant_subnet fixed_ip: 192.168.30.21 - network: storage subnet: storage_subnet fixed_ip: 192.168.40.21 (뒷장에 계속)
  • 32. 오버클라우드 노드 운영체제 설치 32 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - name: Compute count: 2 defaults: network_config: template: /home/stack/templates/nic-configs/compute.j2 instances: - hostname: cn01 # 호스트명 name: compute-0 # 오버클라우드 노드명 networks: - network: ctlplane vif: true fixed_ip: 192.168.10.31 - network: internal_api subnet: internal_api_subnet fixed_ip: 192.168.20.31 - network: tenant subnet: tenant_subnet fixed_ip: 192.168.30.31 - network: storage subnet: storage_subnet fixed_ip: 192.168.40.31 - hostname: cn02 # 호스트명 name: compute-1 # 오버클라우드 노드명 networks: - network: ctlplane vif: true fixed_ip: 192.168.10.32 - network: internal_api subnet: internal_api_subnet fixed_ip: 192.168.20.32 - network: tenant subnet: tenant_subnet fixed_ip: 192.168.30.32 - network: storage subnet: storage_subnet fixed_ip: 192.168.40.32
  • 33. 오버클라우드 노드 운영체제 설치 33 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir templates]$ mkdir nic-configs (undercloud) [stack@dir templates]$ cd nic-configs (undercloud) [stack@dir nic-configs]$ cp ~/stack-temp/templates/nic-configs/controller.j2 ./ (undercloud) [stack@dir nic-configs]$ vi controller.j2 --- network_config: - type: interface name: nic1 mtu: {{ ctlplane_mtu }} dns_servers: {{ ctlplane_dns_nameservers }} domain: {{ dns_search_domains }} routes: {{ ctlplane_host_routes }} use_dhcp: false addresses: - ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }} #----------------------------------------------------------------# - type: interface name: nic2 mtu: {{ internal_api_mtu }} use_dhcp: false addresses: - ip_netmask: {{ internal_api_ip }}/{{ internal_api_cidr }} #----------------------------------------------------------------#
  • 34. 오버클라우드 노드 운영체제 설치 34 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - type: ovs_bridge name: br-ex members: - type: interface name: nic3 mtu: {{ external_mtu }} use_dhcp: false addresses: - ip_netmask: {{ external_ip }}/{{ external_cidr }} routes: {{ [external_host_routes, [{'default': True, 'next_hop': external_gateway_ip}]] | flatten | unique }} #----------------------------------------------------------------# - type: ovs_bridge name: br-tenant members: - type: interface name: nic4 mtu: {{ tenant_mtu }} use_dhcp: false addresses: - ip_netmask: {{ tenant_ip }}/{{ tenant_cidr }} #----------------------------------------------------------------#
  • 35. 오버클라우드 노드 운영체제 설치 35 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - type: interface name: nic5 use_dhcp: false mtu: {{ storage_mtu }} addresses: - ip_netmask: {{ storage_ip }}/{{ storage_cidr }} #----------------------------------------------------------------#
  • 36. 오버클라우드 노드 운영체제 설치 36 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir templates]$ mkdir nic-configs (undercloud) [stack@dir templates]$ cd nic-configs (undercloud) [stack@dir nic-configs]$ cp ~/stack-temp/templates/nic-configs/compute.j2 ./ (undercloud) [stack@dir nic-configs]$ vi compute.j2 --- network_config: - type: interface name: nic1 mtu: {{ ctlplane_mtu }} dns_servers: {{ ctlplane_dns_nameservers }} domain: {{ dns_search_domains }} routes: {{ ctlplane_host_routes }} use_dhcp: false addresses: - ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }} #----------------------------------------------------------------# - type: interface name: nic2 mtu: {{ internal_api_mtu }} use_dhcp: false addresses: - ip_netmask: {{ internal_api_ip }}/{{ internal_api_cidr }} #----------------------------------------------------------------#
  • 37. 오버클라우드 노드 운영체제 설치 37 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - type: ovs_bridge name: br-ex members: - type: interface name: nic3 mtu: {{ external_mtu }} use_dhcp: false #----------------------------------------------------------------# - type: ovs_bridge name: br-tenant members: - type: interface name: nic4 mtu: {{ tenant_mtu }} use_dhcp: false addresses: - ip_netmask: {{ tenant_ip }}/{{ tenant_cidr }} #----------------------------------------------------------------#
  • 38. 오버클라우드 노드 운영체제 설치 38 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community - type: interface name: nic5 use_dhcp: false mtu: {{ storage_mtu }} addresses: - ip_netmask: {{ storage_ip }}/{{ storage_cidr }} #----------------------------------------------------------------# (undercloud) [stack@dir custom-nics]$
  • 39. 오버클라우드 노드 운영체제 설치 39 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community (undercloud) [stack@dir ~]$ time openstack overcloud node provision --templates /usr/share/openstack-tripleo-heat-templates/ --stack overcloud --network-config --output /home/stack/templates/overcloud-baremetal-deployed.yaml /home/stack/templates/overcloud-baremetal-deploy.yaml (undercloud) [stack@dir ~]$ openstack baremetal node list +--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | +--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+ | 977feddc-1200-42c8-b7ce-6530c7571417 | controller-0 | 9127e5ff-e3dd-4190-94d1-8687a3822268 | power on | active | False | | 7f55db01-8faf-4d4a-9886-f02dc75ca4ed | compute-0 | 55c5ae3b-517f-46d3-8893-3f18fff2107d | power on | active | False | | ced8c0ec-07a2-4476-9bdd-a8c3e8ac4df6 | compute-1 | 86189249-ba95-4b5a-9763-33ba7837697e | power on | active | False | +--------------------------------------+--------------+--------------------------------------+-------------+--------------------+-------------+ (undercloud) [stack@dir ~]$ (undercloud) [stack@dir ~]$ metalsmith list +--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+ | UUID | Node Name | Allocation UUID | Hostname | State | IP Addresses | +--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+ | 977feddc-1200-42c8-b7ce-6530c7571417 | controller-0 | 9127e5ff-e3dd-4190-94d1-8687a3822268 | ctrl01 | ACTIVE | ctlplane=192.168.10.21 | | 7f55db01-8faf-4d4a-9886-f02dc75ca4ed | compute-0 | 55c5ae3b-517f-46d3-8893-3f18fff2107d | cn01 | ACTIVE | ctlplane=192.168.10.31 | | ced8c0ec-07a2-4476-9bdd-a8c3e8ac4df6 | compute-1 | 86189249-ba95-4b5a-9763-33ba7837697e | cn02 | ACTIVE | ctlplane=192.168.10.32 | +--------------------------------------+--------------+--------------------------------------+----------+--------+------------------------+ (undercloud) [stack@dir ~]$
  • 40. 40 Red Hat OpenStack 17 저자 직강 + 스터디그룹 다음시간 아젠다 소개
  • 41. 다음시간 온라인 모임 아젠다 소개 41 Red Hat OpenStack 17 저자 직강 + 스터디그룹 OpenStack Korea Community 미리 보고 오면 좋은 것 스터디 그룹 저자 직강 교재 다음시간까지준비할 것들~!! ★ 오버클라우드 노드 프로비전까지 완료하기 ★ 교재 81 Page까지 미리 읽어보기 다음 시간에는? ★ 오버클라우드 배포
  • 42. linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHat 42 Red Hat is the world’s leading provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you