2016-01-20 20:37:52 |
Jaime Guzman |
description |
I installed Ubuntu OpenStack with Autopilot and I integrated a HP SAN with the lefhand driver. For that, I defined the parameters in config-flags (string) at juju cinder config charm, that place the settings at the default section o cinder.conf. It connects with the san fine, but when I try to attach a volume it fails.
I edited /var/lib/juju/agents/unit-cinder-2/charm/templates/cinder.conf and add to final of the file in each of the 3 cinder units:
[lvm]
hplefthand_api_url=https://172.16.4.200:8081/lhos
hplefthand_username=admin
hplefthand_password=admin
hplefthand_clustername=CLUSTER1ROMA
volume_driver=cinder.volume.drivers.san.hp.hp_lefthand_iscsi.HPLeftHandISCSIDriver
hplefthand_iscsi_chap_enabled=false
hplefthand_debug=false
and service cinder-scheduler restart;service cinder-api restart;service cinder-volume restart;service tgt restart
It works fine. ¿How can this config could be persistents using juju?
Regards |
I installed Ubuntu OpenStack with Autopilot and I integrated a HP SAN with the lefhand driver. For that, I defined the parameters in config-flags (string) at juju cinder config charm, that place the settings at the default section o cinder.conf. It connects with the san fine, but when I try to attach a volume it fails. The log:
The operation failed: The server 'blade09' cannot be created because Initiator Node Name 'iqn.1993-08.org.debian:01:1353a18b1e7' is already in server 'blade05'.)
I edited /var/lib/juju/agents/unit-cinder-2/charm/templates/cinder.conf and add to final of the file in each of the 3 cinder units:
[lvm]
hplefthand_api_url=https://172.16.4.200:8081/lhos
hplefthand_username=admin
hplefthand_password=admin
hplefthand_clustername=CLUSTER1ROMA
volume_driver=cinder.volume.drivers.san.hp.hp_lefthand_iscsi.HPLeftHandISCSIDriver
hplefthand_iscsi_chap_enabled=false
hplefthand_debug=false
and service cinder-scheduler restart;service cinder-api restart;service cinder-volume restart;service tgt restart
It works fine. ¿How can this config could be persistents using juju?
Regards |
|