본문 바로가기
openstack

openstack computer node 추가

by Knowledge Store In Hyunsoft 2020. 9. 22.

devstack으로 computer node 추가 방법

git clone https://github.com/openstack-dev/devstack.git

 

local.conf 작성

[[local|localrc]]
ADMIN_PASSWORD=root
HOST_IP=192.168.77.102
SERVICE_HOST=192.168.77.101
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292

MULTI_HOST=1

ADMIN_PASSWORD=root
ADMIN_PASSWORD=$ADMIN_PASSWORD
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
# Neutron options
PUBLIC_INTERFACE=eno3
ENABLED_SERVICES=n-cpu,n-novnc,rabbit,q-agt,placement-client
LOGDIR=$DEST/logs
LOGFILE=$LOGDIR/stack.sh.log
LOGDAYS=7

NOVA_VNC_ENABLED=True
NOVVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

 

설치가 안될때 확인 방법

컴퓨터 노드에서 아래 명령어 실행

/usr/local/bin/nova-compute --config-file /etc/nova/nova-cpu.conf

 

nova-cpu.conf 수정

[placement]
auth_strategy = keystone
password = root
username = placement
auth_url = http://192.168.77.101/identity
auth_type = password

 

hypervisor가  잡히지 않을 경우 master - node에서 아래 명령어 수행

/bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

 

728x90

댓글