def stop_service(service_name):
 os_cmd = ['/usr/bin/openstack-service', 'stop', service_name]
 return (__salt__['cmd.retcode'](os_cmd) == 0)

def stop_service ( service_name ) : os_cmd = [ '/usr/bin/openstack-service' , 'stop' , service_name ] return ( __salt__ [ 'cmd.retcode' ] ( os_cmd ) == 0 )
stop openstack service immediately cli example: .