Skip to content

Ensure pools are defined not running as become #169

@keuko

Description

@keuko

When using cephadm.pools role, there is an error because not running as sudo

TASK [stackhpc.cephadm.pools : Ensure Ceph pools are defined] ******************
failed: [ceph0] (item={'name': 'volumes', 'size': 3, 'application': 'rbd', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["cephadm", "--timeout", "60", "shell", "--", "ceph", "osd", "pool", "create", "volumes", "replicated", "replicated_rule", "--expected_num_objects", "0", "--autoscale-mode", "on", "--size", "3"], "delta": "0:00:01.520031", "end": "2025-01-03 14:59:56.978098", "item": {"application": "rbd", "name": "volumes", "size": 3, "state": "present"}, "rc": 1, "start": "2025-01-03 14:59:55.458067", "stderr": "ERROR: cephadm should be run as root", "stderr_lines": ["ERROR: cephadm should be run as root"], "stdout": "", "stdout_lines": []}
failed: [ceph0] (item={'name': 'images', 'size': 3, 'application': 'rbd', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["cephadm", "--timeout", "60", "shell", "--", "ceph", "osd", "pool", "create", "images", "replicated", "replicated_rule", "--expected_num_objects", "0", "--autoscale-mode", "on", "--size", "3"], "delta": "0:00:01.508789", "end": "2025-01-03 14:59:59.384280", "item": {"application": "rbd", "name": "images", "size": 3, "state": "present"}, "rc": 1, "start": "2025-01-03 14:59:57.875491", "stderr": "ERROR: cephadm should be run as root", "stderr_lines": ["ERROR: cephadm should be run as root"], "stdout": "", "stdout_lines": []}
failed: [ceph0] (item={'name': 'backups', 'size': 3, 'application': 'rbd', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["cephadm", "--timeout", "60", "shell", "--", "ceph", "osd", "pool", "create", "backups", "replicated", "replicated_rule", "--expected_num_objects", "0", "--autoscale-mode", "on", "--size", "3"], "delta": "0:00:01.512065", "end": "2025-01-03 15:00:01.819914", "item": {"application": "rbd", "name": "backups", "size": 3, "state": "present"}, "rc": 1, "start": "2025-01-03 15:00:00.307849", "stderr": "ERROR: cephadm should be run as root", "stderr_lines": ["ERROR: cephadm should be run as root"], "stdout": "", "stdout_lines": []}
failed: [ceph0] (item={'name': 'vms', 'size': 3, 'application': 'rbd', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["cephadm", "--timeout", "60", "shell", "--", "ceph", "osd", "pool", "create", "vms", "replicated", "replicated_rule", "--expected_num_objects", "0", "--autoscale-mode", "on", "--size", "3"], "delta": "0:00:01.486251", "end": "2025-01-03 15:00:04.201486", "item": {"application": "rbd", "name": "vms", "size": 3, "state": "present"}, "rc": 1, "start": "2025-01-03 15:00:02.715235", "stderr": "ERROR: cephadm should be run as root", "stderr_lines": ["ERROR: cephadm should be run as root"], "stdout": "", "stdout_lines": []}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions