티스토리 뷰

OpenStack ICEHouse 버전을 구축 중 Controller Node 에 cinder-api, cinder-scheduler 를 설치하는데 다음과 같은 에러에 부딪혔습니다.





로그를 살펴보니 oslo.messaging 이 Phython.h 파일을 제대로 불러오지 못하여 생긴 오류 였습니다.


File "/usr/bin/cinder-manage", line 62, in <module>
  from oslo import messaging


이를 해결하기 위해 python-dev 를 설치함으로써 에러를 해결해주었습니다.



$ sudo apt-get install python-dev



이 방법으로 문제가 해결되지 않으면 python 라이브러리가 버전이 맞지 않아 제대로 동작하지 않은 경우이므로

olso.messaing 을 업그레이드 해주시면 됩니다.


$ pip install oslo.messaging --upgrade



그리고 cinder services 들을 재시작해주시면 됩니다.



$ service cinder-scheduler restart

$ service cinder-api restart


댓글