Fix: enable GW services once we have config
Closes-Bug: #2045828 Change-Id: Ia473b2793a60172645713b722cbab80dcdbf93b6
This commit is contained in:
parent
ca4e04b49b
commit
657840476b
@ -421,6 +421,11 @@ class CephISCSIGatewayCharmBase(
|
|||||||
self.adapters)
|
self.adapters)
|
||||||
logging.info("Rendering config")
|
logging.info("Rendering config")
|
||||||
_render_configs()
|
_render_configs()
|
||||||
|
# Make sure the gateway services are enabled after rendering the
|
||||||
|
# configurations and starting those. Those are disabled by
|
||||||
|
# default in the package. LP: #2045828
|
||||||
|
for service_name in self.GW_SERVICES:
|
||||||
|
ch_host.service_enable(service_name)
|
||||||
logging.info("Setting started state")
|
logging.info("Setting started state")
|
||||||
self.peers.announce_ready()
|
self.peers.announce_ready()
|
||||||
self._stored.is_started = True
|
self._stored.is_started = True
|
||||||
|
@ -11,3 +11,4 @@ psutil
|
|||||||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
|
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
|
||||||
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
|
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
|
||||||
pyudev # for ceph-* charm unit tests (not mocked?)
|
pyudev # for ceph-* charm unit tests (not mocked?)
|
||||||
|
protobuf<3.21.0 # https://github.com/juju/python-libjuju/issues/914
|
||||||
|
@ -20,8 +20,6 @@ machines:
|
|||||||
'13':
|
'13':
|
||||||
'14':
|
'14':
|
||||||
'15':
|
'15':
|
||||||
'16':
|
|
||||||
'17':
|
|
||||||
applications:
|
applications:
|
||||||
ubuntu:
|
ubuntu:
|
||||||
charm: cs:ubuntu
|
charm: cs:ubuntu
|
||||||
@ -32,14 +30,12 @@ applications:
|
|||||||
- '15'
|
- '15'
|
||||||
ceph-iscsi:
|
ceph-iscsi:
|
||||||
charm: ../../ceph-iscsi.charm
|
charm: ../../ceph-iscsi.charm
|
||||||
num_units: 4
|
num_units: 2
|
||||||
options:
|
options:
|
||||||
gateway-metadata-pool: iscsi-foo-metadata
|
gateway-metadata-pool: iscsi-foo-metadata
|
||||||
to:
|
to:
|
||||||
- '0'
|
- '0'
|
||||||
- '1'
|
- '1'
|
||||||
- '16'
|
|
||||||
- '17'
|
|
||||||
ceph-osd:
|
ceph-osd:
|
||||||
charm: ch:ceph-osd
|
charm: ch:ceph-osd
|
||||||
num_units: 6
|
num_units: 6
|
||||||
|
@ -158,6 +158,9 @@ class TestCephISCSIGatewayCharmBase(CharmTestCase):
|
|||||||
self.test_admin_password = 'rrrrrrrr'
|
self.test_admin_password = 'rrrrrrrr'
|
||||||
self.gwc = MagicMock()
|
self.gwc = MagicMock()
|
||||||
self.gwcli_client.GatewayClient.return_value = self.gwc
|
self.gwcli_client.GatewayClient.return_value = self.gwc
|
||||||
|
patch_srv_enable = patch.object(charm.ch_host, 'service_enable')
|
||||||
|
patch_srv_enable.start()
|
||||||
|
self.addCleanup(patch_srv_enable.stop)
|
||||||
|
|
||||||
# BEGIN: Workaround until network_get is implemented
|
# BEGIN: Workaround until network_get is implemented
|
||||||
class _TestingOPSModelBackend(_TestingModelBackend):
|
class _TestingOPSModelBackend(_TestingModelBackend):
|
||||||
|
Loading…
Reference in New Issue
Block a user