Skip to content

Commit

Permalink
Fix cinder for Ubuntu OS
Browse files Browse the repository at this point in the history
  • Loading branch information
kairen committed Apr 18, 2016
1 parent c157236 commit fcedb62
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
29 changes: 20 additions & 9 deletions deployments/ubuntu/cinder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ rabbit_password = RABBIT_PASS
```[keystone_authtoken]```部分加入以下內容:
```sh
[keystone_authtoken]
memcached_servers = 10.0.0.11:11211
auth_uri = http://10.0.0.11:5000
auth_url = http://10.0.0.11:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
memcached_servers = 10.0.0.11:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = CINDER_PASS
Expand All @@ -198,7 +198,18 @@ lock_path = /var/lib/cinder/tmp
$ sudo cinder-manage db sync
```

資料庫建立完成後,就可以重新啟動所有 Cinder 服務:
接著編輯```/etc/nova/nova.conf```設定檔,在```[cinder]```加入以下內容,讓 Nova 使用 Volume:
```
[cinder]
os_region_name = RegionOne
```

重新啟動 Nova API 服務:
```sh
$ sudo service nova-api restart
```

重新啟動所有 Cinder 服務:
```sh
sudo service cinder-scheduler restart
sudo service cinder-api restart
Expand Down Expand Up @@ -295,12 +306,12 @@ rabbit_password = RABBIT_PASS
```[keystone_authtoken]```部分加入以下內容:
```sh
[keystone_authtoken]
memcached_servers = 10.0.0.11:11211
auth_uri = http://10.0.0.11:5000
auth_url = http://10.0.0.11:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
memcached_servers = 10.0.0.11:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = CINDER_PASS
Expand Down
4 changes: 3 additions & 1 deletion deployments/ubuntu/cinder/ceph-cinder.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ keyring = /etc/ceph/client.cinder-backup.keyring
[DEFAULT]
...
# volume_group = cinder-volumes
# enabled_backends = lvm
enabled_backends = rbd

[rbd]
volume_backend_name = rbd-backend
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
Expand Down

0 comments on commit fcedb62

Please sign in to comment.