zoukankan      html  css  js  c++  java
  • pdb /usr/bin/neutron-server

    
    

    [root@bogon good]# cat /usr/lib/systemd/system/neutron-server.service
    [Unit]
    Description=OpenStack Neutron Server
    After=syslog.target network.target

    
    

    [Service]
    Type=notify
    User=neutron
    ExecStart=/usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log
    PrivateTmp=true
    NotifyAccess=all
    KillMode=process
    Restart=on-failure
    TimeoutStartSec=0




    [root@bogon good]# /usr/bin/python -m pdb /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log > /usr/bin/neutron-server(4)<module>() -> import sys (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:554 Breakpoint 1 at /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:554 (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:75 Breakpoint 2 at /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:75 (Pdb) c /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately. return pkg_resources.EntryPoint.parse("x=" + s).load(False) > /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py(554)GenericSwitchDriver() -> def _get_devices_by_physnet(self, physnet): (Pdb)
    > /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py(554)GenericSwitchDriver()->{'__module__': 'networking_g...c_switch_mech', '__return__': {'__module__': 'networking_g...c_switch_mech', '__return__': {'__module__': 'networking_g...c_switch_mech', '__return__': {'__module__': 'networking_g...c_switch_mech', '__return__': {'__module__': 'networking_g...c_switch_mech', '__return__': {'__module__': 'networking_g...c_switch_mech', '__return__': {...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}, '_get_devices_by_physnet': <functio...aaa8a0c8>, '_is_port_bound': <staticm...aaa9c980>, ...}
    [root@bogon good]# systemctl stop  neutron-server
    [root@bogon good]# netstat -lpn | grep 9696
    [root@bogon good]# netstat -lpn | grep 9696
    [root@bogon good]# /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log
    /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
      return pkg_resources.EntryPoint.parse("x=" + s).load(False)
    > /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py(441)bind_port()
    -> port = context.current
    (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:439
    Breakpoint 1 at /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:439
    (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:554
    *** Blank or comment
    (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:560
    Breakpoint 2 at /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:560
    (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py 441
    *** The specified object '/usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py 441' is not a function
    or was not found along sys.path.
    (Pdb) b /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:441
    Breakpoint 3 at /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py:441
    (Pdb) list
    436             by the QoS service to identify the available QoS rules you
    437             can use with ports.
    438             """
    439 B           LOG.info(" begin bond port")
    440             import pdb; pdb.set_trace()
    441 B->         port = context.current
    442             binding_profile = port['binding:profile']
    443             local_link_information = binding_profile.get('local_link_information')
    444             if self._is_port_supported(port) and local_link_information:
    445                 switch_info = local_link_information[0].get('switch_info')
    446                 switch_id = local_link_information[0].get('switch_id')
    (Pdb) p port
    *** NameError: NameError("name 'port' is not defined",)
    (Pdb) n
    > /usr/lib/python2.7/site-packages/networking_generic_switch/generic_switch_mech.py(442)bind_port()
    -> binding_profile = port['binding:profile']
    (Pdb) pp port
    {'admin_state_up': True,
     'allowed_address_pairs': [],
     'binding:host_id': u'bogon',
     'binding:profile': {},
     'binding:vif_details': {},
     'binding:vif_type': 'unbound',
     'binding:vnic_type': u'normal',
     'created_at': '2020-06-05T07:15:35Z',
     'description': u'',
     'device_id': u'dhcp1e481b85-0038-5c55-8cbf-1393a4953024-d25bad06-1316-4321-837e-9dde06147c05',
     'device_owner': u'network:dhcp',
     'extra_dhcp_opts': [],
     'fixed_ips': [{'ip_address': u'172.16.101.2',
                    'subnet_id': u'479cefc6-9df2-4f0a-ab1d-6c0248816d22'}],
     'id': u'2ec96540-dc38-473d-aa7a-773682475832',
     'mac_address': u'fa:16:3e:6c:ee:a6',
     'name': u'',
     'network_id': u'd25bad06-1316-4321-837e-9dde06147c05',
     'port_security_enabled': False,
     'project_id': u'46cc02c6fab04f7095c4bc687d397610',
     'revision_number': 14,
     'security_groups': [],
     'status': u'DOWN',
     'tags': [],
     'tenant_id': u'46cc02c6fab04f7095c4bc687d397610',
     'updated_at': '2020-06-08T06:30:01Z'}
    (Pdb) n
  • 相关阅读:
    Hz赫兹的定义
    NetCore 迅速接入微信支付+支付宝支付 payLink C# 交差并集
    C# 生产随机数 --几乎可以做到不重复
    Spark MLib完整基础入门教程
    (转)Scrapy 教程
    (转)python自顶向下设计步骤_python实现自顶向下,自底向上
    (转)scrapy架构图与执行流程
    (转)Python:字典(zip, dict)
    (转)APUE第13章 守护进程Deameon
    (转)Python开发指南
  • 原文地址:https://www.cnblogs.com/dream397/p/13065216.html
Copyright © 2011-2022 走看看