openstack stein manila 서비스 cephfs error fix

| 2019년 11월 7일 | 0 Comments

openstack stein 버전에서 manila 서비스에 cephfs back end로 구성시 설치 메뉴얼대로 설치하면 에러가 발생합니다.

문제 원인은 stein 버전 부터 기존 python 2.7 이 아닌 python 3을 사용하는 걸로 보이나 openstack document 에는 해당 부분에 대한 manila 설치문서가 업데이트 되지 않았나 추측 됩니다.

문제 해결 방법은 cephfs 관련 python3 패키지 설치후 정상 확인 됩니다.


 

  • 문제 발생시 에러 로그(manila-share.log)
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager Traceback (most recent call last):
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager File “/usr/lib/python3/dist-packages/manila/share/manager.py”, line 310, in _driver_setup
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager self.driver.do_setup(ctxt)
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager File “/usr/lib/python3/dist-packages/manila/share/drivers/cephfs/driver.py”, line 144, in do_setup
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager ceph_vol_client=self.volume_client)
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager File “/usr/lib/python3/dist-packages/manila/share/drivers/cephfs/driver.py”, line 196, in volume_client
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager _(“Ceph client libraries not found.”)
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager manila.exception.ManilaException: Ceph client libraries not found.
    2019-11-06 15:32:59.006 7869 ERROR manila.share.manager
    2019-11-06 15:33:03.009 7869 ERROR manila.share.manager [req-737283d7-285e-4a12-9dad-17f1fe1bd537 – – – – -] Error encountered during initialization of driver CephFSDriver@nfs1@nfs1: manila.exception.ManilaException: Ceph client libraries not found.
  • 문제 발생시 서비스 상태
    # manila service-list
    +—-+——————+———–+——+———+——-+—————————-+
    | Id | Binary | Host | Zone | Status | State | Updated_at |
    +—-+——————+———–+——+———+——-+—————————-+
    | 1 | manila-scheduler | nfs1 | nova | enabled | up | 2019-11-06T06:38:49.000000 |
    | 2 | manila-share | nfs1@nfs1 | nova | enabled | down | None |
    +—-+——————+———–+——+———+——-+—————————-+
  • 패키지 확인
    # apt-cache search cephfs |grep python3
    python3-cephfs – Python 3 libraries for the Ceph libcephfs library
    python3-cephfs-dbg – Python 3 libraries for the Ceph libcephfs library
  • 패키지 설치
    # apt install python3-cephfs-dbg
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following additional packages will be installed:
    gdb gdbserver libc6-dbg libcc1-0 libpython3-dbg libpython3.6-dbg python3-ceph-argparse python3-cephfs python3-dbg python3-rados python3.6-dbg
    Suggested packages:
    gdb-doc python3-gdbm-dbg python3-tk-dbg
    The following NEW packages will be installed:
    gdb gdbserver libc6-dbg libcc1-0 libpython3-dbg libpython3.6-dbg python3-ceph-argparse python3-cephfs python3-cephfs-dbg python3-dbg python3-rados python3.6-dbg
    0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
    Need to get 35.0 MB of archives.
    After this operation, 140 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
  • 정상 로그 확인(manila-share.log)
    2019-11-06 15:39:08.955 10667 INFO manila.share.drivers.cephfs.driver [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] [CEPHNFS] Ceph client connection complete.
    2019-11-06 15:39:09.150 10667 INFO manila.share.drivers.ganesha [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] Loading Ganesha config from /etc/manila/ganesha-export-templ.d.
    2019-11-06 15:39:09.152 10667 INFO manila.share.drivers.ganesha [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] Loading Ganesha config from /usr/lib/python3/dist-packages/manila/share/drivers/ganesha/conf.
    2019-11-06 15:39:09.154 10667 INFO manila.share.drivers.ganesha [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] Loading Ganesha config from /usr/lib/python3/dist-packages/manila/share/drivers/cephfs/conf.
    2019-11-06 15:39:09.169 10667 INFO manila.share.manager [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] Updating share status
    2019-11-06 15:39:09.179 10667 INFO manila.share.manager [req-5fd291cb-3d19-4a14-a551-5f17e47e9bf3 – – – – -] Finished initialization of driver: ‘CephFSDriver@nfs1@nfs1’
    2019-11-06 15:39:10.351 10667 INFO manila.share.manager [req-7e5b7f49-619d-40df-b724-65c236bee8c9 – – – – -] Updating share status
  • 서비스 확인
    # manila service-list
    +—-+——————+———–+——+———+——-+—————————-+
    | Id | Binary | Host | Zone | Status | State | Updated_at |
    +—-+——————+———–+——+———+——-+—————————-+
    | 1 | manila-scheduler | nfs1 | nova | enabled | up | 2019-11-07T00:07:24.000000 |
    | 2 | manila-share | nfs1@nfs1 | nova | enabled | up | 2019-11-07T00:07:19.000000 |
    +—-+——————+———–+——+———+——-+—————————-+

Category: 가상화/클라우드

장영호

About the Author ()