OpenStack-Cinder 環境安裝

來源:互聯網
上載者:User

標籤:style   http   color   使用   ar   檔案   div   cti   代碼   


如果想運行cinder,需要安裝libvirt以及至少一種hypervisor(一種虛擬化技術,協調軟體對硬體的訪問)。如果僅僅想運行單元測試,則不需要安裝這些。

使用virtualenv管理python的依賴包。

本文的環境是Ubuntu (12.04-64) 。
1、安裝需要的包:sudo apt-get install python-dev libssl-dev python-pip git-core libmysqlclient-dev libpq-dev libffi-dev
2、擷取代碼
git clone https://github.com/openstack/cinder.git cd cinder

3、運行單元測試
./run_tests.sh
單元測試將在 .venv 目錄下運行。
第一次運行需要建立一個虛擬環境,輸入Y即可。
No virtual environment found...create one? (Y/n)
更多細節參考 Unit Tests 章節。

4、也可以手動安裝和使用virtualenv:python tools/install_venv.py
這將會安裝 requirements.txt 檔案中列出的所有包到virtualenv。
順利的話,會得到如下成功安裝資訊:
Cinder development environment setup is complete.
在當前會話中啟用virtualenv:
$ source .venv/bin/activate



原文:http://docs.openstack.org/developer/cinder/devref/development.environment.html並未完全按照原文順序翻譯,僅列出其要點。

OpenStack-Cinder 環境安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.