3.4. 라우팅된 네트워크의 셀 역할 파일 생성
스택마다 다른 네트워크를 사용하는 경우 사용자 지정 셀 역할을 포함하는 각 셀 스택에 대한 셀 역할 파일을 만듭니다.
각 사용자 지정 역할에 대한 플레이버를 생성해야 합니다. 자세한 내용은 셀 역할에 대한 호스트 지정을 참조하십시오.
절차
셀 스택에 필요한 다른 역할과 함께 wallController역할을 포함하는 새 역할 데이터 파일을 생성합니다. 다음 예제에서는 역할 데이터 파일cell1_roles_data.yaml을 생성합니다.이 파일에는 컨트롤 컨트롤러 및계산역할이 포함됩니다.(undercloud)$ openstack overcloud roles generate \ --roles-path /usr/share/openstack-tripleo-heat-templates/roles \ -o cell1/cell1_roles_data.yaml \ Compute:ComputeCell1 \ CellController:CellControllerCell1새 셀 역할 파일의 각 역할 정의에
HostnameFormatDefault를 추가합니다.- name: ComputeCell1 ... HostnameFormatDefault: '%stackname%-compute-cell1-%index%' ServicesDefault: ... networks: ... - name: CellControllerCell1 ... HostnameFormatDefault: '%stackname%-cellcontrol-cell1-%index%' ServicesDefault: ... networks: ...아직 없는 경우 Networking 서비스(neutron) DHCP 및 메타데이터 에이전트를
Compute역할에 추가합니다.Cell1및œControllerCell1- name: ComputeCell1 ... HostnameFormatDefault: '%stackname%-compute-cell1-%index%' ServicesDefault: - OS::TripleO::Services::NeutronDhcpAgent - OS::TripleO::Services::NeutronMetadataAgent ... networks: ... - name: CellControllerCell1 ... HostnameFormatDefault: '%stackname%-cellcontrol-cell1-%index%' ServicesDefault: - OS::TripleO::Services::NeutronDhcpAgent - OS::TripleO::Services::NeutronMetadataAgent ... networks: ...network_data_routed_multi_cell.yaml에서 구성한 서브넷을ComputeCell1 및œControllerCell1역할에 추가합니다.- name: ComputeCell1 ... networks: InternalApi: subnet: internal_api_subnet_cell1 Tenant: subnet: tenant_subnet_cell1 Storage: subnet: storage_subnet_cell1 ... - name: CellControllerCell1 ... networks: External: subnet: external_subnet InternalApi: subnet: internal_api_subnet_cell1 Storage: subnet: storage_subnet_cell1 StorageMgmt: subnet: storage_mgmt_subnet_cell1 Tenant: subnet: tenant_subnet_cell1