← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1398398] Re: Unable to filter agent-ilst by "alive" status

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => kilo-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1398398

Title:
  Unable to filter agent-ilst by "alive" status

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  Trying to filter agent list to display only alive/dead agents returns
  the full list

  [root@RHEL7Server ~(keystone_admin)]# neutron --version
  2.3.9


  [root@RHEL7Server ~(keystone_admin)]# neutron --debug agent-list --alive False
  DEBUG: keystoneclient.session REQ: curl -i -X GET http://10.35.7.201:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  DEBUG: keystoneclient.session RESP: [200] {'date': 'Tue, 02 Dec 2014 13:51:39 GMT', 'content-type': 'application/json', 'content-length': '421', 'vary': 'X-Auth-Token'} 
  RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.35.7.201:5000/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

  DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
  DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
  DEBUG: neutronclient.neutron.v2_0.agent.ListAgent get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
  DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://10.35.7.201:5000/v2.0/tokens
  DEBUG: keystoneclient.session REQ: curl -i -X GET http://10.35.7.201:9696/v2.0/agents.json?alive=False -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
  DEBUG: keystoneclient.session RESP: [200] {'date': 'Tue, 02 Dec 2014 13:51:41 GMT', 'content-length': '10999', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-5766a779-25b0-4639-a0a7-b9ad7902ee57'} 
  RESP BODY: {"agents": [{"binary": "neutron-l3-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "l3_agent", "host": "node_29", "agent_type": "L3 agent", "created_at": "2014-12-02 13:41:56", "started_at": "2014-12-02 13:41:56", "id": "0110d49c-59dd-496c-a2a3-549a2ad4ba4d", "configurations": {"router_id": "", "agent_mode": "legacy", "gateway_external_network_id": "", "handle_internal_only_routers": true, "use_namespaces": true, "routers": 0, "interfaces": 0, "floating_ips": 0, "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver", "external_network_bridge": "", "ex_gw_ports": 0}}, {"binary": "neutron-openvswitch-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "N/A", "host": "node_29", "agent_type": "Open vSwitch agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "2d97bbd1-b937-4b19-8205-4167bbcb659d", "configurations": {"arp_responder_enabled": false, "tunneling_ip": "172.1.0.29", "devices": 0, "l2_population": false, "tunnel_types": ["vxlan"], "enable_distributed_routing": false, "bridge_mappings": {"physnet": "br-ex"}}}, {"binary": "neutron-metadata-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:24", "alive": true, "topic": "N/A", "host": "node_30", "agent_type": "Metadata agent", "created_at": "2014-12-02 13:41:54", "started_at": "2014-12-02 13:41:54", "id": "2eda91e8-bb03-4b5b-b930-145cfcd3ac30", "configurations": {"nova_metadata_port": 8775, "nova_metadata_ip": "10.35.7.201", "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"}}, {"binary": "neutron-l3-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:28", "alive": true, "topic": "l3_agent", "host": "node_113", "agent_type": "L3 agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "34ea8e23-ec23-4164-bd78-6b59187144e1", "configurations": {"router_id": "", "agent_mode": "legacy", "gateway_external_network_id": "", "handle_internal_only_routers": true, "use_namespaces": true, "routers": 0, "interfaces": 0, "floating_ips": 0, "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver", "external_network_bridge": "", "ex_gw_ports": 0}}, {"binary": "neutron-openvswitch-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:22", "alive": true, "topic": "N/A", "host": "node_34", "agent_type": "Open vSwitch agent", "created_at": "2014-12-02 13:41:52", "started_at": "2014-12-02 13:41:52", "id": "4ad1acf0-f774-4cc5-8335-4815b4ab8298", "configurations": {"arp_responder_enabled": false, "tunneling_ip": "172.1.0.34", "devices": 0, "l2_population": false, "tunnel_types": ["vxlan"], "enable_distributed_routing": false, "bridge_mappings": {"physnet": "br-ex"}}}, {"binary": "neutron-lbaas-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:22", "alive": true, "topic": "n-lbaas_agent", "host": "node_29", "agent_type": "Loadbalancer agent", "created_at": "2014-12-02 13:41:52", "started_at": "2014-12-02 13:41:52", "id": "5bbc15be-4d5f-45f7-b70b-2181af58e034", "configurations": {"device_drivers": ["haproxy_ns"], "instances": 0}}, {"binary": "neutron-openvswitch-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:28", "alive": true, "topic": "N/A", "host": "node_113", "agent_type": "Open vSwitch agent", "created_at": "2014-12-02 13:41:58", "started_at": "2014-12-02 13:41:58", "id": "66b054f1-b2b3-4578-aee6-62fac2630589", "configurations": {"arp_responder_enabled": false, "tunneling_ip": "172.1.0.113", "devices": 0, "l2_population": false, "tunnel_types": ["vxlan"], "enable_distributed_routing": false, "bridge_mappings": {"physnet": "br-ex"}}}, {"binary": "neutron-openvswitch-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "N/A", "host": "node_30", "agent_type": "Open vSwitch agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "6f1fe8d6-acd3-474a-9303-1b030515f53e", "configurations": {"arp_responder_enabled": false, "tunneling_ip": "172.1.0.30", "devices": 0, "l2_population": false, "tunnel_types": ["vxlan"], "enable_distributed_routing": false, "bridge_mappings": {"physnet": "br-ex"}}}, {"binary": "neutron-metadata-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:24", "alive": true, "topic": "N/A", "host": "node_113", "agent_type": "Metadata agent", "created_at": "2014-12-02 13:41:54", "started_at": "2014-12-02 13:41:54", "id": "74bbe3a4-b618-4caa-bb85-5ae976df233a", "configurations": {"nova_metadata_port": 8775, "nova_metadata_ip": "10.35.7.201", "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"}}, {"binary": "neutron-dhcp-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:26", "alive": true, "topic": "dhcp_agent", "host": "node_29", "agent_type": "DHCP agent", "created_at": "2014-12-02 13:41:56", "started_at": "2014-12-02 13:41:56", "id": "769e88d4-3f68-4ee4-8950-ac1a36709e57", "configurations": {"subnets": 0, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 0, "ports": 0}}, {"binary": "neutron-dhcp-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "dhcp_agent", "host": "node_113", "agent_type": "DHCP agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "9ad7ef32-c02f-46b1-a80c-62b8843a3574", "configurations": {"subnets": 0, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 0, "ports": 0}}, {"binary": "neutron-dhcp-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "dhcp_agent", "host": "node_30", "agent_type": "DHCP agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "9af84502-e006-4c5a-aefe-2e10dbd8b590", "configurations": {"subnets": 0, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 0, "ports": 0}}, {"binary": "neutron-openvswitch-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:41:54", "alive": false, "topic": "N/A", "host": "RHEL7Server", "agent_type": "Open vSwitch agent", "created_at": "2014-12-02 07:12:39", "started_at": "2014-12-02 10:21:41", "id": "a320162a-d85a-42c1-9660-1208be876e01", "configurations": {"arp_responder_enabled": false, "tunneling_ip": "172.1.0.113", "devices": 0, "l2_population": false, "tunnel_types": ["vxlan"], "enable_distributed_routing": false, "bridge_mappings": {"physnet": "br-ex"}}}, {"binary": "neutron-metadata-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:41:45", "alive": false, "topic": "N/A", "host": "RHEL7Server", "agent_type": "Metadata agent", "created_at": "2014-12-02 07:12:46", "started_at": "2014-12-02 07:12:48", "id": "a486222f-b6bd-46a7-979c-15687a8a06a2", "configurations": {"nova_metadata_port": 8775, "nova_metadata_ip": "10.35.7.201", "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"}}, {"binary": "neutron-lbaas-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:23", "alive": true, "topic": "n-lbaas_agent", "host": "node_30", "agent_type": "Loadbalancer agent", "created_at": "2014-12-02 13:41:53", "started_at": "2014-12-02 13:41:53", "id": "afc794b2-99ac-4c1c-8526-2ac423ad5247", "configurations": {"device_drivers": ["haproxy_ns"], "instances": 0}}, {"binary": "neutron-l3-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:27", "alive": true, "topic": "l3_agent", "host": "node_30", "agent_type": "L3 agent", "created_at": "2014-12-02 13:41:57", "started_at": "2014-12-02 13:41:57", "id": "c02f73bd-b802-459e-9cc0-58ebc3644c0b", "configurations": {"router_id": "", "agent_mode": "legacy", "gateway_external_network_id": "", "handle_internal_only_routers": true, "use_namespaces": true, "routers": 0, "interfaces": 0, "floating_ips": 0, "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver", "external_network_bridge": "", "ex_gw_ports": 0}}, {"binary": "neutron-lbaas-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:23", "alive": true, "topic": "n-lbaas_agent", "host": "node_113", "agent_type": "Loadbalancer agent", "created_at": "2014-12-02 13:41:53", "started_at": "2014-12-02 13:41:53", "id": "c390267f-3938-49a4-a63c-ce96b8a20bba", "configurations": {"device_drivers": ["haproxy_ns"], "instances": 0}}, {"binary": "neutron-lbaas-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:41:35", "alive": false, "topic": "n-lbaas_agent", "host": "RHEL7Server", "agent_type": "Loadbalancer agent", "created_at": "2014-12-02 07:12:41", "started_at": "2014-12-02 07:12:43", "id": "dafdae6c-031a-4520-be53-83ba4eec60d8", "configurations": {"device_drivers": ["haproxy_ns"], "instances": 0}}, {"binary": "neutron-metadata-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:51:23", "alive": true, "topic": "N/A", "host": "node_29", "agent_type": "Metadata agent", "created_at": "2014-12-02 13:41:53", "started_at": "2014-12-02 13:41:53", "id": "dfc6a876-d590-4086-aaab-9eeb798dd70d", "configurations": {"nova_metadata_port": 8775, "nova_metadata_ip": "10.35.7.201", "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"}}, {"binary": "neutron-dhcp-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:41:53", "alive": false, "topic": "dhcp_agent", "host": "RHEL7Server", "agent_type": "DHCP agent", "created_at": "2014-12-02 07:12:41", "started_at": "2014-12-02 10:21:21", "id": "f5af9043-b3dd-4896-80a6-7efcbc4f4921", "configurations": {"subnets": 0, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 0, "ports": 0}}, {"binary": "neutron-l3-agent", "description": null, "admin_state_up": true, "heartbeat_timestamp": "2014-12-02 13:41:50", "alive": false, "topic": "l3_agent", "host": "RHEL7Server", "agent_type": "L3 agent", "created_at": "2014-12-02 07:12:45", "started_at": "2014-12-02 07:12:47", "id": "fb413fbe-f475-446a-ab79-a738f90e15d9", "configurations": {"router_id": "", "agent_mode": "legacy", "gateway_external_network_id": "", "handle_internal_only_routers": true, "use_namespaces": true, "routers": 0, "interfaces": 0, "floating_ips": 0, "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver", "external_network_bridge": "", "ex_gw_ports": 0}}]}

  +--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+
  | id                                   | agent_type         | host        | alive | admin_state_up | binary                    |
  +--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+
  | 0110d49c-59dd-496c-a2a3-549a2ad4ba4d | L3 agent           | node_29     | :-)   | True           | neutron-l3-agent          |
  | 2d97bbd1-b937-4b19-8205-4167bbcb659d | Open vSwitch agent | node_29     | :-)   | True           | neutron-openvswitch-agent |
  | 2eda91e8-bb03-4b5b-b930-145cfcd3ac30 | Metadata agent     | node_30     | :-)   | True           | neutron-metadata-agent    |
  | 34ea8e23-ec23-4164-bd78-6b59187144e1 | L3 agent           | node_113    | :-)   | True           | neutron-l3-agent          |
  | 4ad1acf0-f774-4cc5-8335-4815b4ab8298 | Open vSwitch agent | node_34     | :-)   | True           | neutron-openvswitch-agent |
  | 5bbc15be-4d5f-45f7-b70b-2181af58e034 | Loadbalancer agent | node_29     | :-)   | True           | neutron-lbaas-agent       |
  | 66b054f1-b2b3-4578-aee6-62fac2630589 | Open vSwitch agent | node_113    | :-)   | True           | neutron-openvswitch-agent |
  | 6f1fe8d6-acd3-474a-9303-1b030515f53e | Open vSwitch agent | node_30     | :-)   | True           | neutron-openvswitch-agent |
  | 74bbe3a4-b618-4caa-bb85-5ae976df233a | Metadata agent     | node_113    | :-)   | True           | neutron-metadata-agent    |
  | 769e88d4-3f68-4ee4-8950-ac1a36709e57 | DHCP agent         | node_29     | :-)   | True           | neutron-dhcp-agent        |
  | 9ad7ef32-c02f-46b1-a80c-62b8843a3574 | DHCP agent         | node_113    | :-)   | True           | neutron-dhcp-agent        |
  | 9af84502-e006-4c5a-aefe-2e10dbd8b590 | DHCP agent         | node_30     | :-)   | True           | neutron-dhcp-agent        |
  | a320162a-d85a-42c1-9660-1208be876e01 | Open vSwitch agent | RHEL7Server | xxx   | True           | neutron-openvswitch-agent |
  | a486222f-b6bd-46a7-979c-15687a8a06a2 | Metadata agent     | RHEL7Server | xxx   | True           | neutron-metadata-agent    |
  | afc794b2-99ac-4c1c-8526-2ac423ad5247 | Loadbalancer agent | node_30     | :-)   | True           | neutron-lbaas-agent       |
  | c02f73bd-b802-459e-9cc0-58ebc3644c0b | L3 agent           | node_30     | :-)   | True           | neutron-l3-agent          |
  | c390267f-3938-49a4-a63c-ce96b8a20bba | Loadbalancer agent | node_113    | :-)   | True           | neutron-lbaas-agent       |
  | dafdae6c-031a-4520-be53-83ba4eec60d8 | Loadbalancer agent | RHEL7Server | xxx   | True           | neutron-lbaas-agent       |
  | dfc6a876-d590-4086-aaab-9eeb798dd70d | Metadata agent     | node_29     | :-)   | True           | neutron-metadata-agent    |
  | f5af9043-b3dd-4896-80a6-7efcbc4f4921 | DHCP agent         | RHEL7Server | xxx   | True           | neutron-dhcp-agent        |
  | fb413fbe-f475-446a-ab79-a738f90e15d9 | L3 agent           | RHEL7Server | xxx   | True           | neutron-l3-agent          |
  +--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1398398/+subscriptions


References