def restart_service(self): log.info('Start to restart openstack service for nova/neutron/cinder.') cps_service = CPSServiceBusiness() for proxy in self.proxy_match_region.keys(): cps_service.stop_all(proxy) cps_service.start_all(proxy) log.info('Finish to restart openstack service for nova/neutron/cinder.')
def restart_service(self): log.info('Start to restart openstack service for nova/neutron/cinder.') cps_service = CPSServiceBusiness() for proxy in self.proxy_match_region.keys(): cps_service.stop_all(proxy) cps_service.start_all(proxy) log.info( 'Finish to restart openstack service for nova/neutron/cinder.')
def restart_services(self): print('****Start to restart services...') cps_service = CPSServiceBusiness() for proxy in self.proxies: cps_service.stop_all(proxy) for proxy in self.proxies: cps_service.start_all(proxy) print('****Finish to restart services.')