adding few enhancement for LXD to use /dev/sdb devices. 99/29699/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 3 Mar 2017 07:09:06 +0000 (01:09 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Sat, 4 Mar 2017 09:13:13 +0000 (03:13 -0600)
Change-Id: Ib005e41ef52e5d3f32397480c4c13e8996ba2701
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/config_tpl/juju2/bundle_tpl/ceph.yaml
ci/config_tpl/juju2/bundle_tpl/subordinate.yaml

index 2d9ffbe..f3c35d0 100644 (file)
 {% endif %}
 {% endif %}
       options:
+{% if os.lxd %}
+        osd-devices: /srv/ceph-osd
+{% else %}
         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
+{% endif %}
         osd-reformat: 'yes'
 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
         source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
index 2e0f787..c9378d9 100644 (file)
     lxd:
       charm: ./{{ ubuntu.release }}/lxd
       options:
+{% if 'srv' not in opnfv.storage_dict.ceph.disk %}
+        block-devices: {{ opnfv.storage_dict.ceph.disk }}
+        overwrite: true
+        storage-type: zfs
+{% endif %}
 {% endif %}
 {% if opnfv.storage_dict.scaleio is defined %}
     scaleio-openstack: