部署O版的openstack其他功能暂时正常,就是逻辑卷挂不上去。后端使用的是lvm+nfs。创建逻辑卷和虚机正常。创建虚机不能带逻辑卷。否则也会报错。
controller控制节点中:/var/log/cinder/scheduler.log暂时没有日志
cinder存储节点报错权限不够(下面是日志):但是根据排查,权限都是cinder:cinder,不知道怎么解决,求大神帮助
2024-01-02 19:57:16.524 1621 INFO os_brick.remotefs.remotefs [req-6475b4de-62de-488c-be7f-781fca45c66b - - - - -] Already mounted: /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager [req-c2f0e6dc-f39f-4b9a-a0ec-f122a5dffbd6 5c8b08ba693d45ed9262910c4460da41 f3ee270ca75149108d84ef2924b64d79 - default default] Driver initialize connection failed (error: Unexpected error while running command.
Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e
Exit code: 1
Stdout: u''
Stderr: u"qemu-img: Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Permission denied\n").: ProcessExecutionError: Unexpected error while running command.
Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e
Exit code: 1
Stdout: u''
Stderr: u"qemu-img: Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Permission denied\n"
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager Traceback (most recent call last):
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1680, in initialize_connection
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager conn_info = self.driver.initialize_connection(volume, connector)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/nfs.py", line 130, in initialize_connection
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager info = self._qemu_img_info(path_to_vol, volume['name'])
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/nfs.py", line 537, in _qemu_img_info
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager run_as_root=True)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 767, in _qemu_img_info_base
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager run_as_root=run_as_root)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 90, in qemu_img_info
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager prlimit=QEMU_IMG_LIMITS)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 123, in execute
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager return processutils.execute(*cmd, **kwargs)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 419, in execute
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager cmd=sanitized_cmd)
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager Exit code: 1
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager Stdout: u''
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager Stderr: u"qemu-img: Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Permission denied\n"
2024-01-02 19:57:38.633 1621 ERROR cinder.volume.manager
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server [req-c2f0e6dc-f39f-4b9a-a0ec-f122a5dffbd6 5c8b08ba693d45ed9262910c4460da41 f3ee270ca75149108d84ef2924b64d79 - default default] Exception during message handling: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Driver initialize connection failed (error: Unexpected error while running command.
Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e
Exit code: 1
Stdout: u''
Stderr: u"qemu-img: Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Permission denied\n").
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1688, in initialize_connection
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server raise exception.VolumeBackendAPIException(data=err_msg)
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Driver initialize connection failed (error: Unexpected error while running command.
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server Exit code: 1
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server Stdout: u''
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server Stderr: u"qemu-img: Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Could not open '/var/lib/cinder/mnt/62ad70852aaab0962824cbf8d3f66ea9/volume-2f7e0f16-21f0-4a45-a708-8bc5e705676e': Permission denied\n").
2024-01-02 19:57:38.644 1621 ERROR oslo_messaging.rpc.server
2024-01-02 19:57:38.804 1621 INFO cinder.volume.manager [req-cedcfcf8-2f96-423d-9b7b-7c02b4be9549 5c8b08ba693d45ed9262910c4460da41 f3ee270ca75149108d84ef2924b64d79 - default default] Terminate volume connection completed successfully.
[root@cinder1 cinder]# ll /var/lib/ |grep cinder
drwxr-xr-x 6 cinder cinder 4096 Jan 2 16:17 cinder
[root@cinder1 cinder]# ll /var/lib/cinder/ |grep mnt
drwxrwxrwx 3 cinder cinder 46 Mar 17 2022 mnt
[root@cinder1 cinder]# ll /var/lib/cinder/mnt/
total 4
drwxrwxrwx 2 cinder cinder 4096 Jan 2 16:54 62ad70852aaab0962824cbf8d3f66ea9
[root@cinder1 cinder]#