basic_deployment.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:charm-openvswitch-odl 作者: openstack 项目源码 文件源码
def test_services(self):
        """Verify the expected services are running on the corresponding
           service units."""

        commands = {
            self.compute_sentry: ['nova-compute',
                                  'openvswitch-switch'],
            self.gateway_sentry: ['openvswitch-switch',
                                  'neutron-dhcp-agent',
                                  'neutron-l3-agent',
                                  'neutron-metadata-agent',
                                  'neutron-metering-agent',
                                  'neutron-lbaas-agent',
                                  'nova-api-metadata'],
            self.odl_controller_sentry: ['odl-controller'],
        }

        if self._get_openstack_release() >= self.xenial_newton:
            commands[self.gateway_sentry].remove('neutron-lbaas-agent')
            commands[self.gateway_sentry].append('neutron-lbaasv2-agent')

        ret = u.validate_services_by_name(commands)
        if ret:
            amulet.raise_status(amulet.FAIL, msg=ret)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号