'Test we don\'t update cluster_name on cfg change when upgrading.'

@mock.patch('cinder.service.Service.is_svc_upgrading_to_n', return_value=True)
def test_create_svc_exists_not_upgrade_cluster(self, is_upgrading_mock):

    db_svc = db.service_create(context.get_admin_context(), {'host': self.host, 'binary': self.binary, 'topic': self.topic, 'cluster': None})
    cluster_name = 'cluster'
    app = service.Service.create(host=self.host, binary=self.binary, cluster=cluster_name, topic=self.topic)
    self._check_app(app, cluster_name, cluster_exists=False, is_upgrading=True, svc_id=db_svc.id)
