Comment 1 for bug 1443851

Revision history for this message
Ratnaker (ratnaker-katipally) wrote :

The code

        if self.servicegroup_api.service_is_up(service):
            LOG.error(_LE('Instance compute service state on %s '
                          'expected to be down, but it was up.'), inst_host)
            raise exception.ComputeServiceInUse(host=inst_host)

Can be changed to

        if self.servicegroup_api.service_is_up(service):
            LOG.error(_LE('Instance compute service state on %s '
                          'expected to be down, but it was up.'), inst_host)
            #raise exception.ComputeServiceInUse(host=inst_host)
           if host.state is not 'power_off' or 'crashed' or 'error':
                      raise exception.ComputeServiceInUse(host=inst_host)