On Thu, Oct 21, 2021 at 1:56 AM wodel youchi <wodel.youchi@gmail.com> wrote:
Hi,

I did that already, I changed the keyring to "ceph auth get-or-create client.manila -o manila.keyring mgr 'allow rw' mon 'allow r'" it didn't work, then I tried with ceph octopus, same error.
I applied the patch, then I recreated the keyring for manila as wallaby documentation, I get the error "Bad target type 'mon-mgr'"

Thanks, the error seems similar to this issue: 
https://tracker.ceph.com/issues/51039

Can you confirm the ceph version installed? On the ceph side, some changes land after GA and get back ported; 




Regards.

Le jeu. 21 oct. 2021 à 05:29, Buddhika Godakuru <bsanjeewa@kln.ac.lk> a écrit :
Dear Wodel,
I think this is because manila has changed the way how to set/create auth ID in Wallaby for native CephFS driver. 
For the patch to work, you should change the command 
ceph auth get-or-create client.manila mon 'allow r' mds 'allow r, allow rw path=/' osd 'allow rw pool=cephfs_data' mgr 'allow rw'
to something like,
ceph auth get-or-create client.manila -o manila.keyring mgr 'allow rw' mon 'allow r'

Please see Manila Wallaby CephFS Driver document [1]

Hope this helps.

Thank you
 [1] https://docs.openstack.org/manila/wallaby/admin/cephfs_driver.html#authorizing-the-driver-to-communicate-with-ceph

On Wed, 20 Oct 2021 at 23:19, wodel youchi <wodel.youchi@gmail.com> wrote:
Hi, and thanks

I tried to apply the patch, but it didn't work, this is the manila-share.log.
By the way, I did change to caps for the manila client to what is said in wallaby documentation, that is :
[client.manila]
       key = keyyyyyyyy.....
       caps mgr = "allow rw"
       caps mon = "allow r"


[root@ControllerA manila]# cat manila-share.log  
2021-10-20 10:03:22.286 7 INFO oslo_service.periodic_task [-] Skipping periodic task update_share_usage_size because it is disabled
2021-10-20 10:03:22.310 7 INFO oslo_service.service [req-5b253656-4fe2-4087-b4ab-9ba2a8a0443f - - - - -] Starting 1 workers
2021-10-20 10:03:22.315 30 INFO manila.service [-] Starting manila-share node (version 12.0.1)
2021-10-20 10:03:22.320 30 INFO manila.share.drivers.cephfs.driver [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] [CEPHFS1] Cep
h client found, connecting...
2021-10-20 10:03:22.368 30 INFO manila.share.drivers.cephfs.driver [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] [CEPHFS1] Cep
h client connection complete.
2021-10-20 10:03:22.372 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:22.372 30 ERROR manila.share.manager Traceback (most recent call last):

2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:03:22.372 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:03:22.372 30 ERROR manila.share.manager  
2021-10-20 10:03:22.372 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:03:22.372 30 ERROR manila.share.manager  
2021-10-20 10:03:22.372 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:03:22.372 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:03:22.372 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:22.372 30 ERROR manila.share.manager  
2021-10-20 10:03:26.379 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:26.379 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:03:26.379 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:03:26.379 30 ERROR manila.share.manager  
2021-10-20 10:03:26.379 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:03:26.379 30 ERROR manila.share.manager  
2021-10-20 10:03:26.379 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:03:26.379 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:03:26.379 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:26.379 30 ERROR manila.share.manager  
2021-10-20 10:03:34.387 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:34.387 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:03:34.387 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:03:34.387 30 ERROR manila.share.manager  
2021-10-20 10:03:34.387 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:03:34.387 30 ERROR manila.share.manager  
2021-10-20 10:03:34.387 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:03:34.387 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:03:34.387 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:34.387 30 ERROR manila.share.manager  
2021-10-20 10:03:50.404 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:50.404 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:03:50.404 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:03:50.404 30 ERROR manila.share.manager  
2021-10-20 10:03:50.404 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:03:50.404 30 ERROR manila.share.manager  
2021-10-20 10:03:50.404 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:03:50.404 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:03:50.404 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:03:50.404 30 ERROR manila.share.manager  
2021-10-20 10:04:22.436 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:04:22.436 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:04:22.436 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:04:22.436 30 ERROR manila.share.manager  
2021-10-20 10:04:22.436 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:04:22.436 30 ERROR manila.share.manager  
2021-10-20 10:04:22.436 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:04:22.436 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:04:22.436 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:04:22.436 30 ERROR manila.share.manager  
2021-10-20 10:05:26.438 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:05:26.438 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:05:26.438 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:05:26.438 30 ERROR manila.share.manager  
2021-10-20 10:05:26.438 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:05:26.438 30 ERROR manila.share.manager  
2021-10-20 10:05:26.438 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:05:26.438 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:05:26.438 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:05:26.438 30 ERROR manila.share.manager  
2021-10-20 10:07:34.539 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:07:34.539 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:07:34.539 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:07:34.539 30 ERROR manila.share.manager  
2021-10-20 10:07:34.539 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:07:34.539 30 ERROR manila.share.manager  
2021-10-20 10:07:34.539 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:07:34.539 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:07:34.539 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:07:34.539 30 ERROR manila.share.manager  
2021-10-20 10:11:50.596 30 ERROR manila.share.manager [req-9e549670-d131-4572-b57e-761b513abc75 - - - - -] Error encountered during i
nitialization of driver CephFSDriver@ControllerA@cephfsnative1: manila.exception.ShareBackendException: json_command failed - prefix=
fs volume ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:11:50.596 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 191, in rados_command
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     timeout=RADOS_TIMEOUT)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1460, in json_
command
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     inbuf, timeout, verbose)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1330, in send_
command_retry
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     return send_command(*args, **kwargs)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/usr/lib/python3.6/site-packages/ceph_argparse.py", line 1412, in send_
command
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     raise ArgumentValid("Bad target type '{0}'".format(target[0]))
2021-10-20 10:11:50.596 30 ERROR manila.share.manager ceph_argparse.ArgumentValid: Bad target type 'mon-mgr'
2021-10-20 10:11:50.596 30 ERROR manila.share.manager  
2021-10-20 10:11:50.596 30 ERROR manila.share.manager During handling of the above exception, another exception occurred:
2021-10-20 10:11:50.596 30 ERROR manila.share.manager  
2021-10-20 10:11:50.596 30 ERROR manila.share.manager Traceback (most recent call last):
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/manager.py
", line 346, in _driver_setup
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     self.driver.do_setup(ctxt)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 251, in do_setup
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     volname=self.volname)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 401, in volname
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     self.rados_client, "fs volume ls", json_obj=True)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager   File "/var/lib/kolla/venv/lib/python3.6/site-packages/manila/share/drivers/ce
phfs/driver.py", line 205, in rados_command
2021-10-20 10:11:50.596 30 ERROR manila.share.manager     raise exception.ShareBackendException(msg)
2021-10-20 10:11:50.596 30 ERROR manila.share.manager manila.exception.ShareBackendException: json_command failed - prefix=fs volume
ls, argdict={'format': 'json'} - exception message: Bad target type 'mon-mgr'.
2021-10-20 10:11:50.596 30 ERROR manila.share.manager

Regards

Le mer. 20 oct. 2021 à 00:14, Goutham Pacha Ravi <gouthampravi@gmail.com> a écrit :

On Tue, Oct 19, 2021 at 2:35 PM wodel youchi <wodel.youchi@gmail.com> wrote:
Hi,
Has anyone been successful in deploying Manila wallaby using kolla-ansible with ceph pacific as a backend?

I have created the manila client in ceph pacific like this :

ceph auth get-or-create client.manila mon 'allow r' mds 'allow r, allow rw path=/' osd 'allow rw pool=cephfs_data' mgr 'allow rw'

When I deploy, I get this error in manila's log file :

Bad target type 'mon-mgr'

Any ideas?

Could you share the full log from the manila-share service? 
There's an open bug related to manila/cephfs deployment: https://bugs.launchpad.net/kolla-ansible/+bug/1935784 


 

Regards.


--

බුද්ධික සංජීව ගොඩාකුරු 
Buddhika Sanjeewa Godakuru 

Systems Analyst/Programmer 
Deputy Webmaster / University of Kelaniya

Information and Communication Technology Centre (ICTC) 
University of Kelaniya, Sri Lanka, 
Kelaniya, 
Sri Lanka. 

Mobile : (+94) 071 5696981 
Office : (+94) 011 2903420 / 2903424 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
University of Kelaniya Sri Lanka, accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, this email and/or any information it contains should not be copied, disclosed, retained or used by you or any other party and the email and all its contents should be promptly deleted fully from our system and the sender informed.

E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++