Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add CephIngress resource
Browse files Browse the repository at this point in the history
This change adds the CephIngress resource that can be used on top
of CephNfs to deploy the ingress daemon through the orchestrator.

Depends-On: I7e337596b653cf635f07a36606e9f673044402a3
Change-Id: Ibd20627a8b110364e13c2bf26848ba6e3a8e4060
  • Loading branch information
fmount committed Mar 3, 2022
1 parent b5a9627 commit 4dc74ac
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 0 deletions.
72 changes: 72 additions & 0 deletions deployment/cephadm/ceph-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
heat_template_version: wallaby

description: >
Ceph Ingress Daemon service.
parameters:
ServiceData:
default: {}
description: Dictionary packing service data
type: json
ServiceNetMap:
default: {}
description: Mapping of service_name -> network name. Typically set
via parameter_defaults in the resource registry. Use
parameter_merge_strategies to merge it with the defaults.
type: json
RoleName:
default: ''
description: Role name on which the service is applied
type: string
RoleParameters:
default: {}
description: Parameters specific to the role
type: json
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
KeepalivedContainerImage:
description: Keepalived container image
type: string
HaproxyContainerImage:
description: Haproxy container image
type: string

resources:
CephBase:
type: ./ceph-base.yaml
properties:
ServiceData: {get_param: ServiceData}
ServiceNetMap: {get_param: ServiceNetMap}
EndpointMap: {get_param: EndpointMap}
RoleName: {get_param: RoleName}
RoleParameters: {get_param: RoleParameters}

outputs:
role_data:
description: Role data for the Ceph Ingress service.
value:
service_name: ceph_ingress
firewall_rules:
'115 ceph_ingress':
dport:
- '2049'
- '8999'
upgrade_tasks: []
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
- {get_attr: [CephBase, role_data, external_deploy_tasks]}
- - name: ceph_ingress variables
when: step|int == 1
tags:
- ceph
block:
- name: set cephadm ingress vars
set_fact:
cephadm_ingress:
tripleo_cephadm_keepalived_image: {get_param: KeepalivedContainerImage}
tripleo_cephadm_haproxy_image: {get_param: HaproxyContainerImage}
1 change: 1 addition & 0 deletions environments/manila-cephfsganesha-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resource_registry:
# ceph-nfs (ganesha) service is installed and configured by cephadm
# but it's still managed by pacemaker
OS::TripleO::Services::CephNfs: ../deployment/cephadm/ceph-nfs.yaml
OS::TripleO::Services::CephIngress: ../deployment/cephadm/ceph-ingress.yaml


parameter_defaults:
Expand Down
2 changes: 2 additions & 0 deletions overcloud-resource-registry-puppet.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ resource_registry:
OS::TripleO::Services::CephClient: OS::Heat::None
OS::TripleO::Services::CephNfs: OS::Heat::None
OS::TripleO::Services::CephExternal: OS::Heat::None
OS::TripleO::Services::CephIngress: OS::Heat::None
OS::TripleO::Services::CinderApi: deployment/cinder/cinder-api-container-puppet.yaml
OS::TripleO::Services::CinderBackup: OS::Heat::None
OS::TripleO::Services::CinderScheduler: deployment/cinder/cinder-scheduler-container-puppet.yaml
Expand Down Expand Up @@ -408,6 +409,7 @@ parameter_defaults:
CephClusterNetwork: {{ _service_nets.get('storage_mgmt', 'ctlplane') }}
CephDashboardNetwork: {{ _service_nets.get('storage_dashboard', 'ctlplane') }}
CephGrafanaNetwork: {{ _service_nets.get('storage', 'ctlplane') }}
CephIngressNetwork: {{ _service_nets.get('storage', 'ctlplane') }}
CephMonNetwork: {{ _service_nets.get('storage', 'ctlplane') }}
CephRgwNetwork: {{ _service_nets.get('storage', 'ctlplane') }}
PublicNetwork: {{ _service_nets.get('external', 'ctlplane') }}
Expand Down
1 change: 1 addition & 0 deletions roles/CephAll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- OS::TripleO::Services::BootParams
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/Controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerNovaStandalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerOpenstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerStorageDashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerStorageNfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/HciCephAll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles/Standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
1 change: 1 addition & 0 deletions roles_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephIngress
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
- OS::TripleO::Services::CephMon
Expand Down
3 changes: 3 additions & 0 deletions tools/yaml-validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def validate_hci_role(hci_role_filename, hci_role_tpl):
if role['name'] == 'HciCephAll':
hci_role_services = role['ServicesDefault']
hci_role_services.remove('OS::TripleO::Services::CephGrafana')
hci_role_services.remove('OS::TripleO::Services::CephIngress')
hci_role_services.remove('OS::TripleO::Services::CephMds')
hci_role_services.remove('OS::TripleO::Services::CephMgr')
hci_role_services.remove('OS::TripleO::Services::CephMon')
Expand Down Expand Up @@ -417,6 +418,7 @@ def validate_ceph_role(ceph_role_filename, ceph_role_tpl):
if role['name'] == 'CephAll':
ceph_role_services = role['ServicesDefault']
ceph_role_services.remove('OS::TripleO::Services::CephGrafana')
ceph_role_services.remove('OS::TripleO::Services::CephIngress')
ceph_role_services.remove('OS::TripleO::Services::CephMds')
ceph_role_services.remove('OS::TripleO::Services::CephMgr')
ceph_role_services.remove('OS::TripleO::Services::CephMon')
Expand Down Expand Up @@ -450,6 +452,7 @@ def validate_controller_no_ceph_role(filename, tpl):
services.append('OS::TripleO::Services::CephMds')
services.append('OS::TripleO::Services::CephMgr')
services.append('OS::TripleO::Services::CephGrafana')
services.append('OS::TripleO::Services::CephIngress')
services.append('OS::TripleO::Services::CephMon')
services.append('OS::TripleO::Services::CephNfs')
services.append('OS::TripleO::Services::CephRbdMirror')
Expand Down

0 comments on commit 4dc74ac

Please sign in to comment.