Skip to content

Error in ceph-osds role: The task includes an option with an undefined variable #2872

@dgoebel97

Description

@dgoebel97

When following the guide to add an OSD in ceph, I stumble across the following error during the execution of step 4: osism apply ceph-osds -l testbed-node-3 -e ceph_handler_osds_restart=false.

TASK [ceph-facts : Set_fact monitor_name ansible_facts['hostname']]

The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'hostname'. 'dict object' has no attribute 'hostname'

The error appears to be in '/ansible/roles/ceph-facts/tasks/facts.yml': line 41, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Set_fact monitor_name ansible_facts['hostname']
  ^ here

Another minor problem is that the guide uses testbed-node-0 even though the OSDs are on the nodes testbed-node-[3-5].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions