ceph-ansible icon indicating copy to clipboard operation
ceph-ansible copied to clipboard

CEPH quincy installation on Ubuntu 20.04 using ceph-ansible

Open dbenduga opened this issue 2 years ago • 3 comments

Hi,

I am installing quincy ceph on Ubuntu 20.04 using ceph-ansible however it failed at "TASK [ceph-mon : waiting for the monitor(s) to form the quorum...]"

-- Error---
fatal: [ubuntu-mon1]: FAILED! => changed=false
  attempts: 10
  cmd:
  - docker
  - exec
  - ceph-mon-ubuntu-mon1
  - ceph
  - --cluster
  - ubuntu-quincy
  - daemon
  - mon.ubuntu-mon1
  - mon_status
  - --format
  - json
  delta: '0:00:00.214195'
  end: '2022-09-27 12:58:14.550906'
  msg: ''
  rc: 0
  start: '2022-09-27 12:58:14.336711'
  stderr: ''
  stderr_lines: <omitted>
  stdout: '{"name":"ubuntu-mon1","rank":0,"state":"probing","election_epoch":0,"quorum":[],"features":{"required_con":"0","required_mon":[],"quorum_con":"0","quorum_mon":[]},"outside_quorum":["ubuntu-mon1"],"extra_probe_peers":[{"addrvec":[{"type":"v2","addr":"10.182.71.202:3300","nonce":0},{"type":"v1","addr":"10.182.71.202:6789","nonce":0}]},{"addrvec":[{"type":"v2","addr":"10.182.71.203:3300","nonce":0},{"type":"v1","addr":"10.182.71.203:6789","nonce":0}]}],"sync_provider":[],"monmap":{"epoch":0,"fsid":"4414c94a-4369-4528-bbfc-6f9c506f1392","modified":"2022-09-27T12:54:45.806820Z","created":"2022-09-27T12:54:45.806820Z","min_mon_release":0,"min_mon_release_name":"unknown","election_strategy":1,"disallowed_leaders: ":"","stretch_mode":false,"tiebreaker_mon":"","features":{"persistent":[],"optional":[]},"mons":[{"rank":0,"name":"ubuntu-mon1","public_addrs":{"addrvec":[{"type":"v2","addr":"10.182.71.201:3300","nonce":0},{"type":"v1","addr":"10.182.71.201:6789","nonce":0}]},"addr":"10.182.71.201:6789/0","public_addr":"10.182.71.201:6789/0","priority":0,"weight":0,"crush_location":"{}"},{"rank":1,"name":"ubuntu-mon2","public_addrs":{"addrvec":[{"type":"v1","addr":"0.0.0.0:0","nonce":1}]},"addr":"0.0.0.0:0/1","public_addr":"0.0.0.0:0/1","priority":0,"weight":0,"crush_location":"{}"},{"rank":2,"name":"ubuntu-mon3","public_addrs":{"addrvec":[{"type":"v1","addr":"0.0.0.0:0","nonce":2}]},"addr":"0.0.0.0:0/2","public_addr":"0.0.0.0:0/2","priority":0,"weight":0,"crush_location":"{}"}]},"feature_map":{"mon":[{"features":"0x3f01cfbf7ffdffff","release":"luminous","num":1}]},"stretch_mode":false}'
  stdout_lines: <omitted>

dbenduga avatar Sep 27 '22 13:09 dbenduga

Most of the time it's a misconfiguration, a networking issue, or something like that. In any case, this issue is definitely lacking details... Please, as requested when you open an issue, provide all asked details.

guits avatar Sep 28 '22 05:09 guits

I tried to install ceph using only one MON node and it pass quorum stage however it stuck at LVM creation.

Again i tried with two mon nodes and it failed at quorum task..

Have you installed quincy ceph on ubuntu using ceph-ansible.. If yes, could you please provide config files?

please find configuration files.

Configuration File --

all.yml

---
dummy:
cluster: quincy
mon_group_name: mons
osd_group_name: osds
rgw_group_name: rgws
mds_group_name: mdss
nfs_group_name: nfss
mgr_group_name: mgrs
configure_firewall: True
ceph_mon_firewall_zone: public
ceph_mgr_firewall_zone: public
ceph_osd_firewall_zone: public
ceph_mds_firewall_zone: public
ntp_daemon_type: chronyd
ceph_origin: repository
ceph_repository: community
ceph_stable_release: quincy
generate_fsid: true
monitor_interface: ens160
ip_version: ipv4
dashboard_enabled: True
dashboard_protocol: https
dashboard_port: 8443
dashboard_admin_user: admin
dashboard_admin_password: p@ssw0rd

===================== osd.yml

---
dummy:
devices:
  - /dev/sdf
osd_auto_discovery: false
dmcrypt: False

dbenduga avatar Sep 28 '22 17:09 dbenduga

It seems didn't enable the monitoring line in all.yml, maybe this is related as experienced before. monitoring_group_name: monitoring

Then in your inventory file add the host(s).

[monitoring]
ubuntu-mon1

Check for info in the all.yml under #adopt_label_group_names: or you refer this link for additional insights.

mcodenie avatar Sep 30 '22 09:09 mcodenie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 18 '22 20:10 github-actions[bot]

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.

github-actions[bot] avatar Oct 25 '22 20:10 github-actions[bot]