kolla-ansible wallaby manila ceph pacific

wodel youchi wodel.youchi at gmail.com
Wed Oct 27 21:54:01 UTC 2021


Hi,

To *Buddhika Godakuru*
I took a look into the manila-share docker deployed on my platforme and it
contains the patch you mentioned in [1].
The Manila code does integrate the ceph test for version.

[1] https://review.opendev.org/c/openstack/manila/+/797955


Regards.

Le mar. 26 oct. 2021 à 09:06, wodel youchi <wodel.youchi at gmail.com> a
écrit :

> Hi,
> My deployment is from source, and I have little experience on how to
> rebuild docker images, I can perhaps pull new images (built recently I
> mean).
> I took a look into docker hub and there are new manila images pushed 2
> days ago.
>
> Regards.
>
> Le lun. 25 oct. 2021 à 19:23, Buddhika Godakuru <bsanjeewa at kln.ac.lk> a
> écrit :
>
>> Is your deployment type is source or binary?
>> If it is binay, I wonder if this patch [1] is built into the repos.
>> If source, could you try rebuilding the manila docker images?
>>
>> [1] https://review.opendev.org/c/openstack/manila/+/797955
>>
>> On Mon, 25 Oct 2021 at 20:21, wodel youchi <wodel.youchi at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I tried with pacific then with octopus, the same problem.
>>> The patch was applied to kolla-ansible.
>>>
>>> Regards.
>>>
>>> Le ven. 22 oct. 2021 00:34, Goutham Pacha Ravi <gouthampravi at gmail.com>
>>> a écrit :
>>>
>>>>
>>>>
>>>> On Thu, Oct 21, 2021 at 1:56 AM wodel youchi <wodel.youchi at 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 at 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 at 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 at 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
>>>>>>> n*itialization*
>>>>>>>
>>>>>>> * of driver CephFSDriver at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at gmail.com> a écrit :
>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Oct 19, 2021 at 2:35 PM wodel youchi <
>>>>>>>> wodel.youchi at 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
>>>>>>>> Proposed fix:
>>>>>>>> https://review.opendev.org/c/openstack/kolla-ansible/+/802743
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>
>>>>>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>>>>>
>>>>>
>>
>> --
>>
>> බුද්ධික සංජීව ගොඩාකුරු
>> 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.
>>
>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20211027/6883057f/attachment-0001.htm>


More information about the openstack-discuss mailing list