Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device already in use #268

Open
willifehler opened this issue Sep 13, 2024 · 1 comment
Open

Device already in use #268

willifehler opened this issue Sep 13, 2024 · 1 comment

Comments

@willifehler
Copy link

willifehler commented Sep 13, 2024

Hey @lae,

if I restart my Playbook the deployment will fail. Maybe a check would be helpful if there is already an existing OSD?

8961 failed: [...] (item={'device': '/dev/disk/by-id/nvme-MO003200KYDNC_S70NNT0X605953'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["pveceph", "osd", "create", "/dev/disk/by-id/nvme-MO003200KYDNC_S70NNT0X605953"], "delta": "0:00:00.404626", "end": "2024-09-12 07:24:01.340003", "item": {"device": "/dev/disk/by
 8962 -id/nvme-MO003200KYDNC_S70NNT0X605953"}, "msg": "non-zero return code", "rc": 25, "start": "2024-09-12 07:24:00.935377", "stderr": "device '/dev/nvme3n1' is already in use", "stderr_lines": ["device '/dev/nvme3n1' is a

Cheers - Willi

@lae
Copy link
Owner

lae commented Sep 13, 2024

My understanding is that if the role provisioned the OSDs before, then it shouldn't attempt to reprovision them again.

  • your output is truncated
  • post your role variables
  • post the whole task

Maybe a check would be helpful

https://github.com/lae/ansible-role-proxmox/blob/develop/tasks/ceph.yml#L45

The logic for what you think is the solution is there. The context for your issue/symptoms is not.

maintainer side comment:
I think it may be more productive for you to start your own discussion thread for your experience preparing/administering a playbook using this role, and then opening issues with actionable information when relevant.

Please note that I am not the only contributor to this role. Mentioning someone unsolicited on a bug report for a part of the role they didn't implement and isn't super familiar with is...unsettling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants