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

Commit

Permalink
Merge "Configure Ceph clients via tripleo-ceph-client (not ceph-ansib…
Browse files Browse the repository at this point in the history
…le)"
  • Loading branch information
Zuul authored and openstack-gerrit committed Jan 7, 2021
2 parents 2bbaa8d + 7968666 commit 9fd7090
Show file tree
Hide file tree
Showing 25 changed files with 34 additions and 17 deletions.
2 changes: 2 additions & 0 deletions ci/environments/scenario001-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ parameter_defaults:
foo: bar
NfsUrl: 127.0.0.1
CephMsgrSecureMode: true
CephAnsibleSkipClient: false
CephConfigPath: "/etc/ceph"
LVMFilterEnabled: true
LVMFilterAllowlist:
- /dev/loop2
Expand Down
12 changes: 10 additions & 2 deletions deployment/ceph-ansible/ceph-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ parameters:
default: false
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
CephAnsibleSkipClient:
description: |
This boolean (when true) prevents the ceph-ansible client role execution
by adding the ceph-ansible tag 'ceph_client' to the --skip-tags list.
type: boolean
default: false
default: true

parameter_groups:
- label: deprecated
Expand Down Expand Up @@ -714,6 +714,14 @@ outputs:
vars:
tripleo_ceph_client_config_home: {get_param: CephConfigPath}
when: {get_param: CephAnsibleSkipClient}
- include_role:
name: tripleo_ceph_client
name: tripleo client role
vars:
tripleo_ceph_client_config_home: {get_param: CephConfigPath}
dcn: "{{ item }}"
loop: "{{ ceph_external_multi_config }}"
when: {get_param: CephAnsibleSkipClient}
- name: ensure ceph health is OK before proceeding
import_role:
role: ceph
Expand Down
2 changes: 1 addition & 1 deletion deployment/cinder/cinder-backup-pacemaker-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ parameters:
file: /var/log/containers/cinder/cinder-backup.log
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/cinder/cinder-common-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ parameters:
default: false
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/cinder/cinder-volume-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ parameters:
default: false
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/cinder/cinder-volume-pacemaker-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ parameters:
file: /var/log/containers/cinder/cinder-volume.log
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/glance/glance-api-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ parameters:
letters and numbers.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
MultipathdEnable:
Expand Down
2 changes: 1 addition & 1 deletion deployment/gnocchi/gnocchi-api-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ parameters:
"origin" header.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/gnocchi/gnocchi-metricd-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ parameters:
type: number
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/gnocchi/gnocchi-statsd-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ parameters:
type: string
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/manila/manila-backend-cephfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parameters:
letters and numbers.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
# CephFS backend params:
Expand Down
2 changes: 1 addition & 1 deletion deployment/manila/manila-share-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ parameters:
- allowed_values: ['CEPHFS', 'NFS']
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/manila/manila-share-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ parameters:
letters and numbers.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
MonitoringSubscriptionManilaShare:
Expand Down
2 changes: 1 addition & 1 deletion deployment/manila/manila-share-pacemaker-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ parameters:
perform configuration on a Heat stack-update.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
2 changes: 1 addition & 1 deletion deployment/nova/nova-compute-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ parameters:
letters and numbers.
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
NovaComputeOptVolumes:
Expand Down
2 changes: 1 addition & 1 deletion deployment/nova/nova-libvirt-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ parameters:
- role_specific
CephConfigPath:
type: string
default: "/etc/ceph"
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
Expand Down
1 change: 1 addition & 0 deletions roles/Controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerAllNovaStandalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerNovaStandalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephMds
- OS::TripleO::Services::CephMgr
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerOpenstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerSriov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerStorageDashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 1 addition & 0 deletions roles/ControllerStorageNfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 1 addition & 0 deletions roles_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CeilometerAgentCentral
- OS::TripleO::Services::CeilometerAgentNotification
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::CephGrafana
- OS::TripleO::Services::CephMds
Expand Down
1 change: 0 additions & 1 deletion tools/yaml-validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ def validate_controller_no_ceph_role(filename, tpl):
for role in tpl:
if role['name'] == 'ControllerNoCeph':
services = role['ServicesDefault']
services.remove('OS::TripleO::Services::CephClient')
services.append('OS::TripleO::Services::CephMds')
services.append('OS::TripleO::Services::CephMgr')
services.append('OS::TripleO::Services::CephGrafana')
Expand Down

0 comments on commit 9fd7090

Please sign in to comment.