Showing posts with label Neutron. Show all posts
Showing posts with label Neutron. Show all posts
Saturday, August 23, 2014
OpenStack : Neutron : Neutron problem and solution
Problem :
in /var/log/neutron/openvswitch-agent.log
2014-08-23 14:46:58.105 4456 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "security_group_rules_for_devices" info: "<unknown>"
[openstack@novo ~(keystone_admin)]$ neutron port-list
Connection to neutron failed: Maximum attempts reached
Solution :
[root@novo sbin]# service neutron-server restart
Stopping neutron: [FAILED]
Starting neutron: [ OK ]
After that :
in /var/log/neutron/openvswitch-agent.log
2014-08-23 14:47:00.384 4456 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-45eca3db-5fa3-45da-b439-526819e7a010 None] Configuration for device 24110dfe-84f9-4dca-beb0-e17cf50b291f completed.
[openstack@novo ~(keystone_admin)]$ neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 24110dfe-84f9-4dca-beb0-e17cf50b291f | | fa:16:3e:b4:df:f0 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.2"} |
| 36b6c681-4032-495e-a799-ab05a4d35249 | | fa:16:3e:29:ed:8c | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.3"} |
| 426f579f-5506-4229-99ff-6840e4b38dea | | fa:16:3e:a4:b2:07 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.8"} |
| 5e313f5f-0603-41d2-b652-ff1f1c84dece | | fa:16:3e:85:28:cd | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.235"} |
| b972f13b-5f89-4e93-a46a-b797aca9646e | | fa:16:3e:b0:e4:eb | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.236"} |
| c322386e-cea0-46a4-a520-8c3123f9ea2f | | fa:16:3e:01:ff:59 | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.231"} |
| cad3ee33-844e-4a1a-be7c-95751eb71600 | | fa:16:3e:56:9f:44 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.1"} |
| d7b68106-4785-419e-89c8-c553ddfc92f3 | | fa:16:3e:03:3f:5c | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.9"} |
| f7ae4cd8-393d-47e1-a875-20b30adb2f4f | | fa:16:3e:48:d9:c0 | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.232"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
Thursday, July 17, 2014
OpenStack : Neutron : Neutron restart
Encountered the following problem :
$ neutron agent-list
Connection to neutron failed: Maximum attempts reached
$ neutron agent-list
Connection to neutron failed: Maximum attempts reached
Solution :
# service neutron-server restart
$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
Monday, July 7, 2014
OpenStack : Neutron : Agent information lookup
To list agents
[openstack@novo ~(keystone_admin)]$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-show 3b256809-483d-4c0c-b6ad-b4a05bafa72d
+---------------------+----------------------------------------------------------+
| Field | Value |
+---------------------+----------------------------------------------------------+
| admin_state_up | True |
| agent_type | DHCP agent |
| alive | True |
| binary | neutron-dhcp-agent |
| configurations | { |
| | "subnets": 1, |
| | "use_namespaces": true, |
| | "dhcp_lease_duration": 86400, |
| | "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", |
| | "networks": 1, |
| | "ports": 5 |
| | } |
| created_at | 2014-05-20 23:16:52 |
| description | |
| heartbeat_timestamp | 2014-07-08 02:22:51 |
| host | novo |
| id | 3b256809-483d-4c0c-b6ad-b4a05bafa72d |
| started_at | 2014-07-08 01:03:19 |
| topic | dhcp_agent |
+---------------------+----------------------------------------------------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-show 3c73594b-b16c-41ba-bd43-7ce67dc69a82
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| agent_type | Open vSwitch agent |
| alive | True |
| binary | neutron-openvswitch-agent |
| configurations | { |
| | "tunnel_types": [], |
| | "tunneling_ip": "", |
| | "bridge_mappings": {}, |
| | "l2_population": false, |
| | "devices": 5 |
| | } |
| created_at | 2014-05-20 23:16:22 |
| description | |
| heartbeat_timestamp | 2014-07-08 02:24:19 |
| host | novo |
| id | 3c73594b-b16c-41ba-bd43-7ce67dc69a82 |
| started_at | 2014-07-06 01:41:07 |
| topic | N/A |
+---------------------+--------------------------------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-show 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b
+---------------------+-------------------------------------------------------------------------------+
| Field | Value |
+---------------------+-------------------------------------------------------------------------------+
| admin_state_up | True |
| agent_type | L3 agent |
| alive | True |
| binary | neutron-l3-agent |
| configurations | { |
| | "router_id": "", |
| | "gateway_external_network_id": "", |
| | "handle_internal_only_routers": true, |
| | "use_namespaces": true, |
| | "routers": 1, |
| | "interfaces": 1, |
| | "floating_ips": 3, |
| | "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver", |
| | "ex_gw_ports": 1 |
| | } |
| created_at | 2014-05-20 23:16:53 |
| description | |
| heartbeat_timestamp | 2014-07-08 02:25:49 |
| host | novo |
| id | 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b |
| started_at | 2014-07-08 01:03:19 |
| topic | l3_agent |
+---------------------+-------------------------------------------------------------------------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
[openstack@novo ~(keystone_admin)]$ neutron agent-show ba532785-66f2-467c-acd9-40e9e806e8f8
+---------------------+-----------------------------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------------------------+
| admin_state_up | True |
| agent_type | Metadata agent |
| alive | True |
| binary | neutron-metadata-agent |
| configurations | { |
| | "nova_metadata_ip": "192.168.1.188", |
| | "nova_metadata_port": 8775, |
| | "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy" |
| | } |
| created_at | 2014-05-20 23:16:53 |
| description | |
| heartbeat_timestamp | 2014-07-08 02:27:22 |
| host | novo |
| id | ba532785-66f2-467c-acd9-40e9e806e8f8 |
| started_at | 2014-07-08 01:03:19 |
| topic | N/A |
+---------------------+-----------------------------------------------------------------+
To find out network of the current tenant
[openstack@novo ~(keystone_admin)]$ neutron net-list
+--------------------------------------+---------+------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+---------+------------------------------------------------------+
| b66854a0-0bc0-4415-a8f3-7d70e2a40dba | private | 4de1afb9-ed1f-4c32-9bbb-20eec6073963 10.0.0.0/24 |
| e505e7e3-b2db-48f3-9967-9c3aa2b01e07 | public | 96a64200-a1fb-40e8-b888-c16bbe70609a 172.24.4.224/28 |
+--------------------------------------+---------+------------------------------------------------------+
To check the DHCP agent of both networks
[openstack@novo ~(keystone_admin)]$ neutron dhcp-agent-list-hosting-net e505e7e3-b2db-48f3-9967-9c3aa2b01e07
+--------------------------------------+------+----------------+-------+
| id | host | admin_state_up | alive |
+--------------------------------------+------+----------------+-------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | novo | True | :-) |
+--------------------------------------+------+----------------+-------+
[openstack@novo ~(keystone_admin)]$ neutron dhcp-agent-list-hosting-net b66854a0-0bc0-4415-a8f3-7d70e2a40dba
+--------------------------------------+------+----------------+-------+
| id | host | admin_state_up | alive |
+--------------------------------------+------+----------------+-------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | novo | True | :-) |
+--------------------------------------+------+----------------+-------+
Both above output shows the same ID of DHCP agent
[openstack@novo ~(keystone_admin)]$ neutron agent-list
+--------------------------------------+--------------------+------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------+-------+----------------+
| 3b256809-483d-4c0c-b6ad-b4a05bafa72d | DHCP agent | novo | :-) | True |
| 3c73594b-b16c-41ba-bd43-7ce67dc69a82 | Open vSwitch agent | novo | :-) | True |
| 57f0ccf6-d7cd-4428-bbd7-7fb41176fd4b | L3 agent | novo | :-) | True |
| ba532785-66f2-467c-acd9-40e9e806e8f8 | Metadata agent | novo | :-) | True |
+--------------------------------------+--------------------+------+-------+----------------+
Subscribe to:
Posts (Atom)