def get_compute_host_data(self):
     try:
         return nova.service_list(self.tab_group.request,
                                  binary='nova-compute')
     except Exception:
         msg = _('Unable to get nova services list.')
         exceptions.handle(self.tab_group.request, msg)
         return []
Exemple #2
0
 def get_compute_host_data(self):
     try:
         services = nova.service_list(self.tab_group.request)
         return [service for service in services
                 if service.binary == 'nova-compute']
     except Exception:
         msg = _('Unable to get nova services list.')
         exceptions.handle(self.tab_group.request, msg)
Exemple #3
0
 def get_nova_services_data(self):
     try:
         services = nova.service_list(self.tab_group.request)
     except Exception:
         msg = _('Unable to get nova services list.')
         exceptions.handle(self.request, msg)
         services = []
     return services
Exemple #4
0
 def get_compute_host_data(self):
     try:
         return nova.service_list(self.tab_group.request,
                                  binary='nova-compute')
     except Exception:
         msg = _('Unable to get nova services list.')
         exceptions.handle(self.tab_group.request, msg)
         return []
Exemple #5
0
    def get_nova_services_data(self):
        try:
            services = nova.service_list(self.tab_group.request)
        except Exception:
            msg = _('Unable to get nova services list.')
            exceptions.check_message(["Connection", "refused"], msg)
            raise

        return services
Exemple #6
0
    def get_nova_services_data(self):
        try:
            services = nova.service_list(self.tab_group.request)
        except Exception:
            msg = _('Unable to get nova services list.')
            exceptions.check_message(["Connection", "refused"], msg)
            raise

        return services
Exemple #7
0
 def get_compute_host_data(self):
     try:
         services = nova.service_list(self.tab_group.request)
         return [
             service for service in services
             if service.binary == 'nova-compute'
         ]
     except Exception:
         msg = _('Unable to get nova services list.')
         exceptions.handle(self.tab_group.request, msg)
Exemple #8
0
def get_compute_service_list(request):
    return nova_api.service_list(request, binary="nova-compute")