Ceilometer currently supports only libvirt when installed
using devstack. Have extended this support to Vmware Vsphere in this changelist.
Change-Id: I98c64204973bca5e6a7f859a5431adb2b661277f
| ... | ... |
@@ -161,6 +161,13 @@ function configure_ceilometer {
|
| 161 | 161 |
configure_mongodb |
| 162 | 162 |
cleanup_ceilometer |
| 163 | 163 |
fi |
| 164 |
+ |
|
| 165 |
+ if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then |
|
| 166 |
+ iniset $CEILOMETER_CONF DEFAULT hypervisor_inspector vsphere |
|
| 167 |
+ iniset $CEILOMETER_CONF vmware host_ip "$VMWAREAPI_IP" |
|
| 168 |
+ iniset $CEILOMETER_CONF vmware host_username "$VMWAREAPI_USER" |
|
| 169 |
+ iniset $CEILOMETER_CONF vmware host_password "$VMWAREAPI_PASSWORD" |
|
| 170 |
+ fi |
|
| 164 | 171 |
} |
| 165 | 172 |
|
| 166 | 173 |
function configure_mongodb {
|
| ... | ... |
@@ -204,6 +211,9 @@ function start_ceilometer {
|
| 204 | 204 |
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then |
| 205 | 205 |
screen_it ceilometer-acompute "cd ; sg $LIBVIRT_GROUP \"ceilometer-agent-compute --config-file $CEILOMETER_CONF\"" |
| 206 | 206 |
fi |
| 207 |
+ if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then |
|
| 208 |
+ screen_it ceilometer-acompute "cd ; ceilometer-agent-compute --config-file $CEILOMETER_CONF" |
|
| 209 |
+ fi |
|
| 207 | 210 |
screen_it ceilometer-acentral "cd ; ceilometer-agent-central --config-file $CEILOMETER_CONF" |
| 208 | 211 |
screen_it ceilometer-anotification "cd ; ceilometer-agent-notification --config-file $CEILOMETER_CONF" |
| 209 | 212 |
screen_it ceilometer-collector "cd ; ceilometer-collector --config-file $CEILOMETER_CONF" |