ceph / ceph-ansible

Ansible playbooks to deploy Ceph, the distributed filesystem.
Apache License 2.0
1.68k stars 1.01k forks source link

disable SSL for dashboard #4529

Closed Snegohod closed 5 years ago

Snegohod commented 5 years ago

Bug Report

What happened: When change default cluster name cannot deploy Dashboard

What you expected to happen: Deploy dashboard with non default Ceph cluster name

How to reproduce it (minimal and precise):

Change default cluster in group_vars/all.yml

Share your group_vars files, inventory

group_vars/all.yml


dummy: cluster: ceph-ovirt mon_group_name: mons osd_group_name: osds client_group_name: clients iscsi_gw_group_name: iscsigws mgr_group_name: mgrs configure_firewall: False ntp_service_enabled: false cephx: true monitor_interface: eno1 ip_version: ipv4 journal_size: 10240 # OSD journal size in MB public_network: 192.168.0.0/24 cluster_network: 10.0.0.0/24 osd_objectstore: bluestore os_tuning_params:

  • { name: fs.file-max, value: 26234859 }
  • { name: vm.zone_reclaim_mode, value: 0 }
  • { name: vm.swappiness, value: 10 }
  • { name: vm.min_free_kbytes, value: "{{ vm_min_free_kbytes }}" } containerized_deployment: True docker_pull_retry: 5 docker_pull_timeout: "3600s"

group_vars/osds.yml


dummy: devices:

  • /dev/sda
  • /dev/sdb
  • /dev/sdc
  • /dev/sdd
  • /dev/sdf
  • /dev/sdg
  • /dev/sdh

/etc/ansible/hosts

[mons] node[1:3].internet.nio2 [osds] node[1:3].internet.nio2 [mgrs] node[1:3].internet.nio2 [iscsigws] node1.internet.nio2 node3.internet.nio2 [grafana-server] nodeadmin.internet.nio2

Environment:

CentOS Linux release 7.6.1810 (Core)

Linux nodeadmin.internet.nio2 5.1.5-1.el7.elrepo.x86_64 #1 SMP Sat May 25 16:10:51 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64 Go version: go1.10.3 Git commit: 7f2769b/1.13.1 Built: Sun Sep 15 14:06:47 2019 OS/Arch: linux/amd64

Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64 Go version: go1.10.3 Git commit: 7f2769b/1.13.1 Built: Sun Sep 15 14:06:47 2019 OS/Arch: linux/amd64 Experimental: false

Workaround: Add --cluster {{ cluster }} to ceph command in roles/ceph-dashboard/tasks/configure_dashboard.yml

Snegohod commented 4 years ago

Not working

TASK [ceph-dashboard : disable SSL for dashboard] **** Monday 07 October 2019 10:33:57 +0300 (0:00:00.190) 0:14:49.831 **** fatal: [node1.internet.nio2 -> node1.internet.nio2]: FAILED! => changed=true cmd:

  • docker
  • exec
  • ceph-mon-node1
  • ceph
  • --cluster
  • ceph
  • config
  • set
  • mgr
  • mgr/dashboard/ssl
  • 'false' delta: '0:00:00.380883' end: '2019-10-07 10:37:43.949208' msg: non-zero return code rc: 13 start: '2019-10-07 10:37:43.568325' stderr: '[errno 13] error connecting to the cluster' stderr_lines: stdout: '' stdout_lines:

Argument --cluster {{ cluster }} is added to command but it value is ceph not ceph-ovirt like in group_vars/all.yml file.

Command docker exec ceph-mon-node1 ceph --cluster ceph-ovirt config set mgr mgr/dashboard/ssl 'false' works on host node1.internet.nio2

dsavineau commented 4 years ago

Could you share the full ansible log ?

Snegohod commented 4 years ago

Could you share the full ansible log ?

I'm sorry. Dashboard install works correctly. This is my mistake. There was an incorrectly configured soft link to /etc/ansible/group_vars