[Openstack 17 FFU] ceph-ansible cephadm-adopt failing on TASK [adopt grafana daemon] - FileNotFoundError: [Errno 2] No such file or directory: '//var/lib/grafana'

Solution In Progress - Updated -

Issue

  • This issue is likely specific to Openstack Director managed Ceph for DCN deployments.
  • ceph_adopt error message:
[[0;31m        "TASK [adopt grafana daemon] ****************************************************",^[[0m^M
^[[0;31m        "Monday 13 January 2025  16:51:52 -0500 (0:00:00.295)       0:02:07.848 ******** ",^[[0m^M
^[[0;31m        "fatal: [controller-0]: FAILED! => {\"changed\": true, \"cmd\": [\"cephadm\", \"--image\", \"registry.local/rhceph/rhceph-6-dashboard-rhel9:latest\", \"adopt\", \"--cluster\", \"zone2\", \"--name\", \"grafana.controller-0\", \"--style\", \"legacy\", \"--skip-pull\", \"--skip-firewalld\"], \"delta\": \"0:00:01.648945\", \"end\": \"2025-01-13 16:51:54.108791\", \"rc\": 1, \"start\": \"2025-01-13 16:51:52.459846\", \"stderr\": \"Traceback (most recent call last):\\n  File \\\"/sbin/cephadm\\\", line 9374, in <module>\\n    main()\\n  File \\\"/sbin/cephadm\\\", line 9362, in main\\n    r = ctx.func(ctx)\\n  File \\\"/sbin/cephadm\\\", line 2027, in _default_image\\n    return func(ctx)\\n  File \\\"/sbin/cephadm\\\", line 5990, in command_adopt\\n    command_adopt_grafana(ctx, daemon_id, fsid)\\n  File \\\"/sbin/cephadm\\\", line 6310, in command_adopt_grafana\\n    copy_tree(ctx, [data_src], data_dst, uid=uid, gid=gid)\\n  File \\\"/sbin/cephadm\\\", line 2134, in copy_tree\\n    shutil.copytree(src_dir, dst_dir)  # dirs_exist_ok needs python 3.8\\n  File \\\"/usr/lib64/python3.6/shutil.py\\\", line 315, in copytree\\n    names = os.listdir(src)\\nFileNotFoundError: [Errno 2] No such file or directory: '//var/lib/grafana'\", \"stderr_lines\": [\"Traceback (most recent call last):\", \"  File \\\"/sbin/cephadm\\\", line 9374, in <module>\", \"    main()\", \"  File \\\"/sbin/cephadm\\\", line 9362, in main\", \"    r = ctx.func(ctx)\", \"  File \\\"/sbin/cephadm\\\", line 2027, in _default_image\", \"    return func(ctx)\", \"  File \\\"/sbin/cephadm\\\", line 5990, in command_adopt\", \"    command_adopt_grafana(ctx, daemon_id, fsid)\", \"  File \\\"/sbin/cephadm\\\", line 6310, in command_adopt_grafana\", \"    copy_tree(ctx, [data_src], data_dst, uid=uid, gid=gid)\", \"  File \\\"/sbin/cephadm\\\", line 2134, in copy_tree\", \"    shutil.copytree(src_dir, dst_dir)  # dirs_exist_ok needs python 3.8\", \"  File \\\"/usr/lib64/python3.6/shutil.py\\\", line 315, in copytree\", \"    names = os.listdir(src)\", \"FileNotFoundError: [Errno 2] No such file or directory: '//var/lib/grafana'\"], \"stdout\": \"\", \"stdout_lines\": []}",^[[0m^M

Environment

  • Red Hat OpenStack Platform 16.2 to 17.1 Upgrade
  • Red Hat Ceph Storage 4 to 5 Upgrade

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content