ceph / cephmetrics

ceph metric collectors with collectd integration
GNU Lesser General Public License v3.0
65 stars 32 forks source link

The error was: 'collectd_dir' is undefined #255

Closed lphabc closed 3 years ago

lphabc commented 3 years ago

Keeps failing with collectd_dir is undefined but may be somewhere else.

TASK [ceph-collectd : Set PluginDir in collectd.conf] ** task path: /usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml:16 fatal: [mon-1]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [mon-2]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [mon-3]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-1]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-2]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-3]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-4]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-5]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [dash]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" } fatal: [osd-6]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'collectd_dir' is undefined\n\nThe error appears to be in '/usr/share/cephmetrics-ansible/roles/ceph-collectd/tasks/configure_collectd.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set PluginDir in collectd.conf\n ^ here\n" }

lphabc commented 3 years ago

Found it, devel_mode in ./roles/cephmetrics-common/defaults/main.yml was not set to true.

lphabc commented 3 years ago

Resolved