Пример #1
0
 def callback(pid_file):
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  neutron_lookup_param,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%d' % METADATA_PORT]
     proxy_cmd.extend(config.get_log_args(
         cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' % network.id))
     return proxy_cmd
Пример #2
0
 def callback(pid_file):
     proxy_cmd = [
         "neutron-ns-metadata-proxy",
         "--pid_file=%s" % pid_file,
         neutron_lookup_param,
         "--state_path=%s" % self.conf.state_path,
         "--metadata_port=%d" % METADATA_PORT,
     ]
     proxy_cmd.extend(config.get_log_args(cfg.CONF, "neutron-ns-metadata-proxy-%s.log" % network.id))
     return proxy_cmd
Пример #3
0
 def callback(pid_file):
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--router_id=%s' % router_info.router_id,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%s' % self.conf.metadata_port]
     proxy_cmd.extend(config.get_log_args(
         cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' %
         router_info.router_id))
     return proxy_cmd
Пример #4
0
 def callback(pid_file):
     metadata_proxy_socket = cfg.CONF.metadata_proxy_socket
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--metadata_proxy_socket=%s' % metadata_proxy_socket,
                  neutron_lookup_param,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%d' % dhcp.METADATA_PORT]
     proxy_cmd.extend(config.get_log_args(
         cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' % network.id))
     return proxy_cmd
 def callback(pid_file):
     metadata_proxy_socket = cfg.CONF.metadata_proxy_socket   #cfg.CONF.metadata_proxy_socket=/var/lib/neutron/metadata_proxy
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--metadata_proxy_socket=%s' % metadata_proxy_socket,
                  neutron_lookup_param,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%d' % dhcp.METADATA_PORT]
     proxy_cmd.extend(config.get_log_args(
         cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' % network.id))
     return proxy_cmd
Пример #6
0
 def callback(pid_file):
     metadata_proxy_socket = cfg.CONF.metadata_proxy_socket
     proxy_cmd = [
         "neutron-ns-metadata-proxy",
         "--pid_file=%s" % pid_file,
         "--metadata_proxy_socket=%s" % metadata_proxy_socket,
         "--router_id=%s" % router_id,
         "--state_path=%s" % self.conf.state_path,
         "--metadata_port=%s" % self.conf.metadata_port,
     ]
     proxy_cmd.extend(config.get_log_args(cfg.CONF, "neutron-ns-metadata-proxy-%s.log" % router_id))
     return proxy_cmd
Пример #7
0
 def callback(pid_file):
     metadata_proxy_socket = cfg.CONF.metadata_proxy_socket
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--metadata_proxy_socket=%s' % metadata_proxy_socket,
                  '--router_id=%s' % router_id,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%s' % self.conf.metadata_port]
     proxy_cmd.extend(config.get_log_args(
         cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' %
         router_id))
     return proxy_cmd
Пример #8
0
 def callback(pid_file):
     metadata_proxy_socket = cfg.CONF.metadata_proxy_socket
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--metadata_proxy_socket=%s' % metadata_proxy_socket,
                  neutron_lookup_param,
                  '--state_path=%s' % self.conf.state_path,
                  '--metadata_port=%d' % dhcp.METADATA_PORT]
     #Could not print log for VRM when debug is False
     if cfg.CONF.debug:
         proxy_cmd.extend(config.get_log_args(
             cfg.CONF, 'neutron-ns-metadata-proxy-%s.log' % network.id))
     return proxy_cmd
Пример #9
0
 def callback(pid_file):
     metadata_proxy_socket = conf.metadata_proxy_socket
     user, group = cls._get_metadata_proxy_user_group(conf)
     proxy_cmd = ['neutron-ns-metadata-proxy',
                  '--pid_file=%s' % pid_file,
                  '--metadata_proxy_socket=%s' % metadata_proxy_socket,
                  lookup_param,
                  '--state_path=%s' % conf.state_path,
                  '--metadata_port=%s' % port,
                  '--metadata_proxy_user=%s' % user,
                  '--metadata_proxy_group=%s' % group]
     proxy_cmd.extend(config.get_log_args(
         conf, 'neutron-ns-metadata-proxy-%s.log' % uuid))
     return proxy_cmd