"you must add a monitoring group and add at least one node" message also if monitoring group is declared

See original GitHub issue

What happened: While installing ceph pacific on CentOS Stream 8 got:

TASK [ceph-validate : fail if monitoring group doesn't exist] ****************************************************************************************************************************************************************************** Monday 09 August 2021 17:03:38 +0200 (0:00:00.258) 0:01:08.263 ********* fatal: [mon1]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node. fatal: [mon2]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node. fatal: [mon3]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node. fatal: [osd1]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node. fatal: [osd2]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node. fatal: [osd3]: FAILED! => changed=false msg: you must add a monitoring group and add at least one node.

However in hosts following has been declared:

`[mons] mon1 mon2 mon3

[mgrs] mon1

[osds] osd1 osd2 osd3

[ceph:children] mons osds mgrs`

What you expected to happen:

Ceph infrastructure installed correctly or more informations to debug like: What is expected to configure and a reference to the documentation.

How to reproduce it (minimal and precise): Contact me for more.

Share your group_vars files, inventory and full ceph-ansibe log - Contact me with precise questions

Environment:

  • CentOS Stream release 8
  • Kernel (e.g. uname -a): Linux ansible 4.18.0-326.el8.x86_64 #1 SMP Wed Jul 28 21:21:05 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Docker version if applicable (e.g. docker version): NA
  • Ansible version (e.g. ansible-playbook --version):

ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = [‘/etc/ansible/library’] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.6.8 (default, Jul 15 2021, 15:17:46) [GCC 8.5.0 20210514 (Red Hat 8.5.0-2)]

  • ceph-ansible version (e.g. git head or tag or stable branch): stable
  • Ceph version (e.g. ceph -v): pacific

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dsavineaucommented, Aug 9, 2021

@dsavineau Another way to rise an error: “Please declare a [monitoring] group in your inventory file or set dashboard_enabled = false; checkout point 3.22 of documentation” 😉

Ah documentation: If it was hard to write it must be hard to understand!

Any PR are welcomed 😉

1reaction
dsavineaucommented, Aug 9, 2021

Ceph infrastructure installed correctly or more informations to debug like: What is expected to configure and a reference to the documentation.

I don’t know what you want more.

The message seems pretty clear. You need to have a monitoring group declared in your ansible inventory due to the dashboard_enabled variable set to true by default.

If you want the Ceph dashboard+monitoring deployed then add something in your ansible inventory like

[monitoring]
mon1

Or just disable the Ceph dashboard+monitoring installation in your group_vars.

dashboard_enabled: false
Read more comments on GitHub >

github_iconTop Results From Across the Web

"you must add a monitoring group and add at least one node ...
The message seems pretty clear. You need to have a monitoring group declared in your ansible inventory due to the dashboard_enabled variable set...
Read more >
ceph-ansible/main.yml at main - GitHub
msg : "you must add a monitoring group and add at least one node." when: groups[monitoring_group_name] is undefined. - name: fail ...
Read more >
[ceph-ansible] : rolling_update falsely failing saying add at ...
Description of problem: rolling_update falsely failed saying "you must add a monitoring group and add at least one node." despite a node present...
Read more >
Configuring monitoring event sources using monitoring ... - IBM
In the Message flow Editor, use the Monitoring tab on the properties of a node to add one or more monitoring events.
Read more >
How to install ceph with ceph-ansible - Marksei
at least 1 manager node: this node is required since “luminous”, you can install it alongside the monitor. a minimum of 3 osd...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found