Add a dedicated network space binding for tenant access

Change-Id: Id64135605ef152518f6b6eaa947ab2727961ada6
This commit is contained in:
Chris MacNaughton 2019-11-22 17:41:18 +01:00
parent f5b7f41f8d
commit e7095de807
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import json
import charms_openstack.charm
import charms_openstack.adapters
import charms_openstack.plugins
from charms_openstack.ip import resolve_address
import charmhelpers.contrib.network.ip as ch_net_ip
from charmhelpers.core.hookenv import log
from charmhelpers.contrib.storage.linux.ceph import (
CephBrokerRq,
@ -177,7 +177,7 @@ class ManilaGaneshaCharm(charms_openstack.charm.HAOpenStackCharm,
@property
def access_ip(self):
return resolve_address()
return ch_net_ip.get_relation_ip('tenant-storage')
def enable_memcache(self, *args, **kwargs):
return False

View File

@ -14,6 +14,8 @@ series:
- disco
- eoan
subordinate: false
extra-bindings:
tenant-storage:
provides:
manila-plugin:
interface: manila-plugin