Bug 2277924

Summary: Take snapshot is having permission issue error:
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Krishna Ramaswamy <kramaswa>
Component: vSphere pluginAssignee: Ernesto Puerta <epuertat>
Status: CLOSED DUPLICATE QA Contact: Krishna Ramaswamy <kramaswa>
Severity: urgent Docs Contact: Krishna Ramaswamy <kramaswa>
Priority: unspecified    
Version: 7.1CC: ceph-eng-bugs
Target Milestone: ---   
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-30 09:04:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Krishna Ramaswamy 2024-04-30 04:57:42 UTC
2024-04-30 04:03:35,485 - ceph_exception_manager.py[line:57] - vsphere-plugin.ceph_exception_manager - ERROR : Status code: 400, detail: {"detail": "[errno 1] RBD permission error (error creating snapshot b'ganga-snap2' from b'ganga-ds')", "code": "1", "component": "rbd", "status": 400, "task": {"name": "rbd/snap/create", "metadata": {"image_spec": "rbd/ganga-ds", "snapshot_name": "ganga-snap2", "mirrorImageSnapshot": ""}}}
Traceback (most recent call last):
  File "/app/ceph_manager.py", line 488, in _make_request
    response.raise_for_status()
  File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 758, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://dhcp47-89.lab.eng.blr.redhat.com:8443/api/block/image/rbd%2Fganga-ds/snap'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/app/ceph_exception_manager.py", line 53, in wrapper
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/volume_group_endpoints.py", line 34, in make_basic_request
    return await fs.make_basic_request(command)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ceph_manager.py", line 272, in make_basic_request
    response = await self._make_request(request, headers=headers,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ceph_manager.py", line 502, in _make_request
    raise ceph_exception.ConnectionErrorException(status_code, detail) from err
ceph_exception_manager.ConnectionErrorException: (400, '{"detail": "[errno 1] RBD permission error (error creating snapshot b\'ganga-snap2\' from b\'ganga-ds\')", "code": "1", "component": "rbd", "status": 400, "task": {"name": "rbd/snap/create", "metadata": {"image_spec": "rbd/ganga-ds", "snapshot_name": "ganga-snap2", "mirrorImageSnapshot": ""}}}')

Comment 1 Ernesto Puerta 2024-04-30 09:04:34 UTC

*** This bug has been marked as a duplicate of bug 2277830 ***