[Yahoo-eng-team] [Bug 1644708] [NEW] Unrecognized parameters are not blocked in 'fixed_ips' of Port
Public bug reported: No errors are returned even though there are unrecognized parameter in Dict for 'fixed_ips'. Environment --- master Expected behavior - It is hard to notice that the request is wrong. Thus, it should be returned 400 error so that user can understand the request is wrong. How to reproduce - Create/Update port with fixed_ips parameter that is contained unrecognized parameter. "a" is unrecognized parameter in case below. ubuntu@neutron-ml2:/opt/stack/neutron$ curl -i -X PUT -H "X-Auth-Token: $TOKEN" http://172.16.1.29:9696/v2.0/ports/42bff786-a7fd-4631-8416-83052d078389 -d '{"port": {"fixed_ips":[{"a":"a", "ip_address":"192.168.0.15"}]}}' HTTP/1.1 200 OK Content-Type: application/json Content-Length: 906 X-Openstack-Request-Id: req-f6b46c50-6f98-470c-a3ea-17eacf765603 Date: Fri, 25 Nov 2016 05:40:59 GMT {"port": {"allowed_address_pairs": [{"ip_address": "1.1.1.1", "mac_address": "aa:aa:aa:aa:aa:aa"}], "extra_dhcp_opts": [], "updated_at": "2016-11-25T05:40:59Z", "device_owner": "", "revision_number": 9, "binding:profile": {"\u3042": "a"}, "port_security_enabled": true, "fixed_ips": [{"subnet_id": "b89324b7 -4f6c-47b0-a874-601a345a11e2", "ip_address": "192.168.0.15"}], "id": "42bff786-a7fd-4631-8416-83052d078389", "security_groups": ["e2238dd0-01b2-44a2-a9b3-08e8d2163de5"], "binding:vif_details": {}, "binding:vif_type": "unbound", "mac_address": "fa:16:3e:2d:95:8d", "project_id": "d713c7d4c02541d8b239d6d9761768e5", "status": "DOWN", "binding:host_id": "", "description": "", "device_id": "", "name": "", "admin_state_up": true, "network_id": "af5370f1-a37d-4b36-900e- 4aa6aa939fef", "tenant_id": "d713c7d4c02541d8b239d6d9761768e5", "created_at": "2016-11-17T09:06:35Z", "binding:vnic_type": "normal"}} ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: lib ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: lib -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1644708 Title: Unrecognized parameters are not blocked in 'fixed_ips' of Port Status in neutron: New Bug description: No errors are returned even though there are unrecognized parameter in Dict for 'fixed_ips'. Environment --- master Expected behavior - It is hard to notice that the request is wrong. Thus, it should be returned 400 error so that user can understand the request is wrong. How to reproduce - Create/Update port with fixed_ips parameter that is contained unrecognized parameter. "a" is unrecognized parameter in case below. ubuntu@neutron-ml2:/opt/stack/neutron$ curl -i -X PUT -H "X-Auth-Token: $TOKEN" http://172.16.1.29:9696/v2.0/ports/42bff786-a7fd-4631-8416-83052d078389 -d '{"port": {"fixed_ips":[{"a":"a", "ip_address":"192.168.0.15"}]}}' HTTP/1.1 200 OK Content-Type: application/json Content-Length: 906 X-Openstack-Request-Id: req-f6b46c50-6f98-470c-a3ea-17eacf765603 Date: Fri, 25 Nov 2016 05:40:59 GMT {"port": {"allowed_address_pairs": [{"ip_address": "1.1.1.1", "mac_address": "aa:aa:aa:aa:aa:aa"}], "extra_dhcp_opts": [], "updated_at": "2016-11-25T05:40:59Z", "device_owner": "", "revision_number": 9, "binding:profile": {"\u3042": "a"}, "port_security_enabled": true, "fixed_ips": [{"subnet_id": "b89324b7 -4f6c-47b0-a874-601a345a11e2", "ip_address": "192.168.0.15"}], "id": "42bff786-a7fd-4631-8416-83052d078389", "security_groups": ["e2238dd0-01b2-44a2-a9b3-08e8d2163de5"], "binding:vif_details": {}, "binding:vif_type": "unbound", "mac_address": "fa:16:3e:2d:95:8d", "project_id": "d713c7d4c02541d8b239d6d9761768e5", "status": "DOWN", "binding:host_id": "", "description": "", "device_id": "", "name": "", "admin_state_up": true, "network_id": "af5370f1-a37d-4b36-900e- 4aa6aa939fef", "tenant_id": "d713c7d4c02541d8b239d6d9761768e5", "created_at": "2016-11-17T09:06:35Z", "binding:vnic_type": "normal"}} To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1644708/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1641509] [NEW] Creating vpn-service with router which belongs to another tenant causes invalid condition.
RROR neutron.api.v2.resource File "/opt/stack/neutron-vpnaas/neutron_vpnaas/services/vpn/plugin.py", line 78, in create_ipsec_site_connection 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource context, ipsec_site_connection) 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_db.py", line 168, in create_ipsec_site_connection 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource validator.resolve_peer_address(ipsec_sitecon, vpnservice.router) 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_validator.py", line 92, in resolve_peer_address 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource self._validate_peer_address(ip_version, router) 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_validator.py", line 70, in _validate_peer_address 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource for fixed_ip in router.gw_port['fixed_ips']: 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource TypeError: 'NoneType' object has no attribute '__getitem__' 2016-11-14 05:16:26.939 25357 ERROR neutron.api.v2.resource 2016-11-14 05:16:26.945 25357 INFO neutron.wsgi [req-5e2f3bb1-2e6b-495a-a327-47b1595668b5 6759f544889746448631792bb12bd2ea d713c7d4c02541d8b239d6d9761768e5 - - -] 172.16.1.29 - - [14/Nov/2016 05:16:26] "POST /v2.0/vpn/ipsec-site-connections.json HTTP/1.1" 500 368 0.676061 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1641509 Title: Creating vpn-service with router which belongs to another tenant causes invalid condition. Status in neutron: New Bug description: - how to reproduce 1. to 5. and 12. are operated by TenantA 6. to 11. are operated by TenantB(should be context_is_admin.) ===operating by TenantA=== 1.neutron router-create router1 2.neutron net-create network1 3.neutron subnet-create network1 192.168.0.0/24 --name subnet1 4.neutron router-interface-add router1 subnet1 5.neutron router-gateway-set router1 public ===operating by TenantB=== 6.neutron vpn-service-create router1 --name vpnservice1 7.neutron vpn-ikepolicy-create ikepolicy1 8.neutron vpn-ipsecpolicy-create ipsecpolicy1 9.neutron vpn-endpoint-group-create --type subnet --value subnet1 --name endpoint1 10.neutron vpn-endpoint-group-create --type cidr --value 192.168.1.0/24 --name endpoint2 11.neutron ipsec-site-connection-create --vpnservice-id vpnservice1 --ikepolicy-id ikepolicy1 --ipsecpolicy-id ipsecpolicy1 --local-ep-group endpoint1 --peer-id 172.24.4.10 --peer-address 172.24.4.10 --psk test --peer-ep-group endpoint2 ===operating by TenantA=== 12.neutron router-gateway-clear router1 => The operation should be failed because vpn_service assumes gw_port is attached to the router. However, the operation is passed because 'TenantA' cannot find 'vpn_service' which belongs to 'TenantB' with own context. Alternatively, we should block creating vpn_service with router which belongs to another tenant. Following errors are caused by procedure 12. * VPN configuration(enable) is failed. * 500 error returns when creating additional site-connection for the vpn_service. - trace in vpn-agent 2016-11-14 05:15:10.863 27930 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'qrouter-0c80e9f8-e273-4770-8f02-6fc243301ac7', 'ip', 'route', 'get', '172.24.4.10'] execute_rootwrap_daemon /opt/stack/neutron/neutron/agent/linux/utils.py:107 2016-11-14 05:15:10.917 27930 ERROR neutron.agent.linux.utils [-] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: Network is unreachable 2016-11-14 05:15:10.918 27930 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec [-] Failed to enable vpn process on router 0c80e9f8-e273-4770-8f02-6fc243301ac7 2016-11-14 05:15:10.918 27930 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec Traceback (most recent call last): 2016-11-14 05:15:10.918 27930 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec File "/opt/stack/neutron-vpnaas/neutron_vpnaas/services/vpn/device_drivers/ipsec.py", line 306, in enable 2016-11-14 05:15:10.918 27930 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec self.restart() 2016-11-14 05:15:10.918 27930 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec File "/opt/stack/neutron-vpnaas/neutron_vpnaas/services/vpn/device_drivers/ipsec.py
[Yahoo-eng-team] [Bug 1607670] Re: Cannot remove subnet from router even though the router is not used by vpnservice
I think the fix haven't released yet. ** Changed in: neutron Status: Fix Released => In Progress -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1607670 Title: Cannot remove subnet from router even though the router is not used by vpnservice Status in neutron: In Progress Bug description: Cannot remove subnet from router even though the router is not used by vpnservice. When operation for router interface is requested, callback method(vpn_callback) in vpn_db.py is called. Callback tries to find vpnservice with subnet_id. However, it should be located with subnet_id and router_id because router that is not used by vpnservice may be in same subnet. ===Reproduction=== 1.Creating vpnservice specifying router1 and subnet1. neutron router-create router1 neutron net-create network1 neutron subnet-create network1 10.10.10.0/24 --name subnet1 neutron router-interface-add router1 subnet1 neutron router-gateway-set router1 external neutron vpn-service-create router1 subnet1 2.Attach subnet1 to router2(that is not used by vpnservice). neutron router-create router2 neutron port-create network1 --name port1 neutron router-interface-add router2 port=port1 3.Remove subnet1 from router2 (that is not used by vpnservice). vagrant@ubuntu:/opt/stack/neutron-vpnaas$ neutron router-interface-delete b port=dc71de4a-3ee7-407f-9fab-06be99b56bbe Subnet 0a0db447-aa35-44aa-a4d1-c72da22bd9e4 is used by VPNService 73a06d81-85d5-47e8-8f08-e04802b167a6 Neutron server returns request_ids: ['req-e16aae3f-2610-473d-aeee-52587c78df40'] =trace in neutron server== 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Error during notification for neutron_vpnaas.db.vpn.vpn_db.vpn_callback router_interface, before_delete 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager Traceback (most recent call last): 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron/neutron/callbacks/manager.py", line 148, in _notify_loop 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager callback(resource, event, trigger, **kwargs) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_db.py", line 722, in vpn_callback 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager check_func(context, resource_id) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_db.py", line 549, in check_subnet_in_use 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager vpnservice_id=vpnservices['id']) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager SubnetInUseByVPNService: Subnet 0a0db447-aa35-44aa-a4d1-c72da22bd9e4 is used by VPNService 73a06d81-85d5-47e8-8f08-e04802b167a6 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager 2016-07-29 16:46:42.606 27256 DEBUG neutron.callbacks.manager [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Notify callbacks for router_interface, abort_delete _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:140 2016-07-29 16:46:42.610 27256 ERROR root [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Original exception being dropped: ['Traceback (most recent call last):\n', ' File "/opt/stack/neutron/neutron/db/l3_db.py", line 815, in _confirm_router_interface_not_in_use\nevents.BEFORE_DELETE, self, **kwargs)\n', ' File "/opt/stack/neutron/neutron/callbacks/registry.py", line 44, in notify\n_get_callback_manager().notify(resource, event, trigger, **kwargs)\n', ' File "/opt/stack/neutron/neutron/db/api.py", line 70, in wrapped\nraise db_exc.RetryRequest(e)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__\nself.force_reraise()\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise\nsix.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/neutron/neutron/db/api.py", line 65, in wrapped\nretur n f(*args, **kwargs)\n', ' File "/opt/stack/neutron/neutron/callbacks/manager.py", line 127, in notify\n raise exceptions.CallbackFailure(errors=errors)\n', 'CallbackFailure: Callback neutron_vpnaas.db.vpn.vpn_db.vpn_callback failed with "Subnet 0a0db447-aa35-44aa-a4d1-c72da22bd9e4 is used by VPNService 73a06d81-85d5-47e8-8f08-e04802b167a6"\n'] 2016-07-29 16:46:42.611 27256 INFO neutron.api.v2.resource [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278
[Yahoo-eng-team] [Bug 1640034] [NEW] Creating/Updating port returns 500 error when specifying list which includes string that contains "ip_address" or "mac_address" as 'allowed_address_pairs'
e "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/api.py", line 114, in wrapped 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 611, in _update 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource allow_bulk=self._allow_bulk) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 719, in prepare_request_body 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/attributes.py", line 431, in convert_value 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource res = validator(res_dict[attr], attr_vals['validate'][rule]) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/extensions/allowedaddresspairs.py", line 61, in _validate_allowed_address_pairs 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource msg = validators.validate_mac_address(address_pair['mac_address']) 2016-11-08 06:32:18.672 7216 ERROR neutron.api.v2.resource TypeError: string indices must be integers ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1640034 Title: Creating/Updating port returns 500 error when specifying list which includes string that contains "ip_address" or "mac_address" as 'allowed_address_pairs' Status in neutron: New Bug description: The error should be returned with 400 because invalid request format is reason. * How to reproduce -ip_address ubuntu@neutron-ml2:/opt/stack/neutron$ curl -si -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" http://172.16.1.29:9696/v2.0/ports/517eeaa9-238a-4c95-96d3-c6ed6b289ffb -d '{"port":{"allowed_address_pairs":["ip_address"]}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-b68113ea-6323-4087-b789-b9f8a9a7f260 Date: Tue, 08 Nov 2016 06:33:19 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} -mac_address ubuntu@neutron-ml2:/opt/stack/neutron$ curl -si -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" http://172.16.1.29:9696/v2.0/ports/517eeaa9-238a-4c95-96d3-c6ed6b289ffb -d '{"port":{"allowed_address_pairs":["mac_address"]}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-1e62dafa-dc0b-4986-a0cf-7a1ec84c2eee Date: Tue, 08 Nov 2016 06:32:18 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} * trace in neutron-server -ip_address 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource [req-b68113ea-6323-4087-b789-b9f8a9a7f260 6759f544889746448631792bb12bd2ea d713c7d4c02541d8b239d6d9761768e5 - - -] upd ate failed: No details. 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource Traceback (most recent call last): 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource result = method(request=request, **args) 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 604, in update 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource return self._update(request, id, body, **kwargs) 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/api.py", line 83, in wrapped 2016-11-08 06:33:19.441 7216 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2016-11-08 06:33:19.441 7216 ERROR neutro
[Yahoo-eng-team] [Bug 1624170] [NEW] Iteration for metering is stopped because metering-agent tried to operate chain in namespace of deleted router
Public bug reported: Metering-agent cannot recognize namespace for router is deleted. Thus, metering-agent sometimes fails to operate chain for metering with following trace because namespace for router had already deleted, especially when synchronizing information with neutron-server. I assume that we should simply catch the error and continue the iteration. trace in metering-agent.log = 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent [req-4798393c-417b-4af6-bb16-15c7b8cb4b17 - - - - -] Driver neutron.services.meterin g.drivers.iptables.iptables_driver.IptablesMeteringDriver:update_routers runtime error 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent Traceback (most recent call last): 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/services/metering/agents/metering_agent.py", line 166, in _invoke_driver 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent return getattr(self.metering_driver, func_name)(context, meterings) 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py", line 48, in wra pper 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent return method(*args, **kwargs) 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_drive r.py", line 109, in update_routers 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent self._process_disassociate_metering_label(rm.router) 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_drive r.py", line 257, in _process_disassociate_metering_label 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent del rm.metering_labels[label_id] 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_drive r.py", line 58, in __exit__ 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent self.im.apply() 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/agent/linux/iptables_manager.py", line 437, in apply 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent return self._apply() 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/agent/linux/iptables_manager.py", line 445, in _apply 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent first = self._apply_synchronized() 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/agent/linux/iptables_manager.py", line 480, in _apply_synchronized 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent save_output = self.execute(args, run_as_root=True) 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 138, in execute 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent raise RuntimeError(msg) 2016-09-16 00:20:35.118 16578 ERROR neutron.services.metering.agents.metering_agent RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: Cannot open network namespace "qrouter-15e41fb9-44f7-4233-8ff9-12f74f73ade2": No such file or directory == ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Tags added: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1624170 Title: Iteration for metering is stopped because metering-agent tried to operate chain in namespace of deleted router Status in neutron: New Bug description: Metering-agent cannot recognize namespace for router is deleted. Thus, metering-agent sometimes fails to operate chain for metering with following trace because namespace for router had already deleted, especially when synchronizing information with neutron-server. I assume that we should simply catch the error and continue the iteration. trace in metering-agent.log ===
[Yahoo-eng-team] [Bug 1623958] [NEW] Metering-agent fails to restore iptables
6-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent # Generated by iptables_manager 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent *raw 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent :neutron-meter-OUTPUT - [0:0] 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent :neutron-meter-PREROUTING - [0:0] 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent -I OUTPUT 1 -j neutron-meter-OUTPUT 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent -I PREROUTING 1 -j neutron-meter-PREROUTING 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent COMMIT 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent # Completed by iptables_manager 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent ; Stdout: ; Stderr: Bad argument `neutron-meter-l-ba70a353-f3a' 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent Error occurred at line: 14 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent Try `iptables-restore -h' or 'iptables-restore --help' for more information. 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent 2016-09-15 12:50:39.205 22676 ERROR neutron.services.metering.agents.metering_agent = ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: metering -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1623958 Title: Metering-agent fails to restore iptables Status in neutron: New Bug description: iptables-restore fails with 'Bad argument' when we call 'add_rule' with '' as rule, because IptableManager try to add line below which is invalid format. === -I neutron-meter-l-ba70a353-f3a 1 neutron-meter-l-ba70a353-f3a === This behavior is occurred after the modification. https://github.com/openstack/neutron/commit/5b7c71a327d735134fa0eeb4427d0e1bd1f7d1e5 Created blank by rule is stripped during initializing IptablesRule. https://github.com/openstack/neutron/blob/master/neutron/agent/linux/iptables_manager.py#L124 This stripping blank changes result in _generate_chain_diff_iptables_commands as follows. https://github.com/openstack/neutron/blob/master/neutron/agent/linux/iptables_manager.py#L767 before: '' is set in rule variable. after: chain name(e.g.neutron-meter-l-e648a667-c21) is set as rule variable. Additional string is added and invalid format is generated. Thus, iptable-restore fails. trace in metering-agent.log == 2016-09-15 12:50:39.202 22676 ERROR neutron.agent.linux.utils [req-b3191be2-6daf-42bf-bc3a-e792481da48b da7194b4e98b4c8badc5912bbcd7aea4 9384ef06bc9d4af08a384692c92761c e - - -] Exit code: 2; Stdin: # Generated by iptables_manager *filter :neutron-meter-FORWARD - [0:0] :neutron-meter-INPUT - [0:0] :neutron-meter-OUTPUT - [0:0] :neutron-meter-l-ba70a353-f3a - [0:0] :neutron-meter-local - [0:0] :neutron-meter-r-ba70a353-f3a - [0:0] -I FORWARD 2 -j neutron-meter-FORWARD -I INPUT 1 -j neutron-meter-INPUT -I OUTPUT 2 -j neutron-meter-OUTPUT -I neutron-filter-top 1 -j neutron-meter-local -I neutron-meter-FORWARD 1 -j neutron-meter-r-ba70a353-f3a -I neutron-meter-l-ba70a353-f3a 1 neutron-meter-l-ba70a353-f3a COMMIT # Completed by iptables_manager # Generated by iptables_manager *raw :neutron-meter-OUTPUT - [0:0] :neutron-meter-PREROUTING - [0:0] -I OUTPUT 1 -j neutron-meter-OUTPUT -I PREROUTING 1 -j neutron-meter-PREROUTING COMMIT # Completed by iptables_manager ; Stdout: ; Stderr: Bad argument `neutron-meter-l-ba70a353-f3a' Error occurred at line: 14 Try `iptables-restore -h' or 'iptables-restore --help' for more information. 2016-09-15 12:50:39.204 22676 ERROR neutron.agent.linux.iptables_manager [req-b3191be2-6daf-42bf-bc3a-e792481da48b da7194b4e98b4c8badc5912bbcd7aea4 9384ef06bc9d4af08a384692c92761ce - - -] IPTablesManager.apply failed to apply the following set of iptables rules: 1. # Generated by iptables_manager 2. *filter 3. :neutron-meter-FORWARD - [0:0] 4. :neutron-meter-INPUT - [0:0] 5. :neutron-meter-OUTPUT - [0:0] 6. :neutron-meter-l-ba70a353-f3a - [0:0] 7. :neutron-meter-local - [0:0] 8. :neutron-meter-r-ba70a353-f3a - [0:0] 9. -I FORWARD 2 -j neutron-meter-FORWARD 10. -I INPUT 1 -j neutron-meter-INPUT 11. -I OUTPUT 2 -j neutron-meter-OUTPUT 12. -I neutron-filter-top
[Yahoo-eng-team] [Bug 1622574] [NEW] Metering-agent failed with TypeError to add/remove rule on router without gateway
Public bug reported: Assuming that, there are routers that don't have gateway in tenant. When we try to add/remove meter label rule for the tenant, process in metering-agent failed with Type Error. Meter rules among other routers in the tenant won't be updated because of error above. Part of this bug is reported and fixed in following bug report. https://bugs.launchpad.net/neutron/+bug/1527274 How to reproduce = 1.neutron router-create test 2.neutron net-create test 3.neutron subnet-create test 192.168.1.0/24 4.neutron meter-label-create test 5.neutron meter-label-create After procedure 5, following error trace can be outputted. trace in metering-agent === 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server [req-5265cc49-4c97-4996-af45-2cacba64de84 da7194b4e98b4c8badc5912bbcd7aea4 9384ef06bc9d4af08a384692c92761ce - - -] Exception during message handling 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incomin g 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 154, in wrapper 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return f(*args, **kwargs) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/agents/metering_agent.py", line 212, in add_metering_l abel_rule 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server 'add_metering_label_rule') 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return f(*args, **kwargs) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/agents/metering_agent.py", line 166, in _invoke_driver 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return getattr(self.metering_driver, func_name)(context, meterings) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py", line 48, in wrapper 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return method(*args, **kwargs) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 264, in add _metering_label_rule 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server self._add_metering_label_rule(router) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 277, in _ad d_metering_label_rule 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server self._process_metering_rule_action(router, 'create') 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 286, in _process_metering_rule_action 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server ext_dev = self.get_external_device_name(rm.router['gw_port_id']) 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 133, in get_external_device_name 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server return (EXTERNAL_DEV_PREFIX + port_id)[:self.driver.DEV_NAME_LEN] 2016-09-12 11:09:12.629 4205 ERROR oslo_messaging.rpc.server TypeError: cannot concatenate 'str' and 'NoneType' objects ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: metering -- You received this bug notification because you are a member of Yahoo
[Yahoo-eng-team] [Bug 1617268] [NEW] vpn-agent does not initialize FWaaS
Public bug reported: Currently, main class for L3, FWaaS and VPNaaS is following. --- |L3NATAgent| --- | | -- |L3NATAgentWithStateReport| -- | | | | --- - |L3WithFWaaS| |VPNAgent| --- - * When launching l3-agent without FWaaS, L3NATAgentWithStateReport class is initialized. * When launching l3-agent with FWaaS, L3WithFWaaS class is initialized. This is achieved by following commit. https://github.com/openstack/neutron-fwaas/commit/debc3595599ed6cd52caf6e04f083af9c93f6fa4 * When launching vpn-agent with/without FWaaS, VPNAgent class is initialized. In this case, L3WithFWaaS class is not initialized even though FWaaS is enabled. Thus, FWaaS won't be available when using both of FWaaS and VPNaaS. Here is log of vpn-agent that is when the agent receives RPC request about firewall from neutron. === 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server [-] Exception during message handling 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 155, in dispatch 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server raise NoSuchMethod(method) 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server NoSuchMethod: Endpoint does not support RPC method delete_firewall 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server ** Affects: neutron Importance: Undecided Status: New ** Tags: fwaas vpnaas ** Tags added: vpnaas ** Tags added: fwaas -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1617268 Title: vpn-agent does not initialize FWaaS Status in neutron: New Bug description: Currently, main class for L3, FWaaS and VPNaaS is following. --- |L3NATAgent| --- | | -- |L3NATAgentWithStateReport| -- | | | | --- - |L3WithFWaaS| |VPNAgent| --- - * When launching l3-agent without FWaaS, L3NATAgentWithStateReport class is initialized. * When launching l3-agent with FWaaS, L3WithFWaaS class is initialized. This is achieved by following commit. https://github.com/openstack/neutron-fwaas/commit/debc3595599ed6cd52caf6e04f083af9c93f6fa4 * When launching vpn-agent with/without FWaaS, VPNAgent class is initialized. In this case, L3WithFWaaS class is not initialized even though FWaaS is enabled. Thus, FWaaS won't be available when using both of FWaaS and VPNaaS. Here is log of vpn-agent that is when the agent receives RPC request about firewall from neutron. === 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server [-] Exception during message handling 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 155, in dispatch 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server raise NoSuchMethod(method) 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server NoSuchMethod: Endpoint does not support RPC method delete_firewall 2016-08-26 10:42:35.340 16065 ERROR oslo_messaging.rpc.server To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1617268/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help :
[Yahoo-eng-team] [Bug 1617154] [NEW] Failed to launch vpn-agent when running devstack with fwaas and vpnaas
Public bug reported: After finished running devstack completely, vpn-agent does not work. I assume that following commit affects. https://github.com/openstack/neutron-fwaas/commit/ea23bbc3ee4cc90280375153d13f59cb85ffe6f2 neutron-vpnaas repo should catch up with modification in neutron-fwaas. local.conf when I ran devstack enable_plugin neutron-fwaas http://git.openstack.org/openstack/neutron-fwaas enable_service q-fwaas enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas enable_service q-vpnaas disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service q-lbaas enable_service q-metering == log in neutron-vpnaas screen after finished running devstack ubuntu@test:~/openstack/devstack$ /usr/local/bin/neutron-vpn-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --config-file=/etc/neutron/vpn_agent.ini --config-file /etc/neutron/fwaas_driver.ini & echo $! >/opt/stack/status/stack/neutron-vpnaas.pid; fg || echo "neutron-vpnaas failed to start" | tee "/opt/stack/status/stack/neutron-vpnaas.failure" [1] 32430 /usr/local/bin/neutron-vpn-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --config-file=/etc/neutron/vpn_agent.ini --config-file /etc/neutron/fwaas_driver.ini Traceback (most recent call last): File "/usr/local/bin/neutron-vpn-agent", line 10, in sys.exit(main()) File "/opt/stack/neutron-vpnaas/neutron_vpnaas/cmd/eventlet/agent.py", line 17, in main agent.main() File "/opt/stack/neutron-vpnaas/neutron_vpnaas/services/vpn/agent.py", line 74, in main entry.main(manager='neutron_vpnaas.services.vpn.agent.VPNAgent') File "/opt/stack/neutron/neutron/agent/l3_agent.py", line 51, in main common_config.init(sys.argv[1:]) File "/opt/stack/neutron/neutron/common/config.py", line 72, in init **kwargs) File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2256, in __call__ raise ConfigFilesNotFoundError(self._namespace._files_not_found) oslo_config.cfg.ConfigFilesNotFoundError: Failed to find some config files: /etc/neutron/fwaas_driver.ini neutron-vpnaas failed to start === ** Affects: neutron Importance: Undecided Status: New ** Tags: vpnaas -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1617154 Title: Failed to launch vpn-agent when running devstack with fwaas and vpnaas Status in neutron: New Bug description: After finished running devstack completely, vpn-agent does not work. I assume that following commit affects. https://github.com/openstack/neutron-fwaas/commit/ea23bbc3ee4cc90280375153d13f59cb85ffe6f2 neutron-vpnaas repo should catch up with modification in neutron- fwaas. local.conf when I ran devstack enable_plugin neutron-fwaas http://git.openstack.org/openstack/neutron-fwaas enable_service q-fwaas enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas enable_service q-vpnaas disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service q-lbaas enable_service q-metering == log in neutron-vpnaas screen after finished running devstack ubuntu@test:~/openstack/devstack$ /usr/local/bin/neutron-vpn-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --config-file=/etc/neutron/vpn_agent.ini --config-file /etc/neutron/fwaas_driver.ini & echo $! >/opt/stack/status/stack/neutron-vpnaas.pid; fg || echo "neutron-vpnaas failed to start" | tee "/opt/stack/status/stack/neutron-vpnaas.failure" [1] 32430 /usr/local/bin/neutron-vpn-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --config-file=/etc/neutron/vpn_agent.ini --config-file /etc/neutron/fwaas_driver.ini Traceback (most recent call last): File "/usr/local/bin/neutron-vpn-agent", line 10, in sys.exit(main()) File "/opt/stack/neutron-vpnaas/neutron_vpnaas/cmd/eventlet/agent.py", line 17, in main agent.main() File "/opt/stack/neutron-vpnaas/neutron_vpnaas/services/vpn/agent.py", line 74, in main entry.main(manager='neutron_vpnaas.services.vpn.agent.VPNAgent') File "/opt/stack/neutron/neutron/agent/l3_agent.py", line 51, in main common_config.init(sys.argv[1:]) File "/opt/stack/neutron/neutron/common/config.py", line 72, in init **kwargs) File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2256, in __call__ raise ConfigFilesNotFoundError(self._namespace._files_not_found) oslo_config.cfg.ConfigFilesNotFoundError: Failed to find some config files:
[Yahoo-eng-team] [Bug 1477921] Re: Create/Update port responds 500 to the request with invalid "security_groups"
I want to restore this bug report because the bug is still valid. ubuntu@test:/opt/stack/neutron$ curl -si -X PUT -H "Content-type: application/json" http://172.16.1.31:9696/v2.0/ports/3d207469-06a2-488f-9216-b2ec1bcae915 -H "X-AUTH-TOKEN:${TOKEN}" -d '{"port":{"security_groups":true}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-57b78177-1c4f-405a-810d-fab77ca5d102 Date: Mon, 22 Aug 2016 02:41:20 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} ** Changed in: neutron Status: Expired => New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1477921 Title: Create/Update port responds 500 to the request with invalid "security_groups" Status in neutron: New Bug description: When I request "POST /v2.0/ports/" and "PUT /v2.0/ports/{port_id}" with an invalid value(ex.integer) as "security_groups", Neutron Server responds 500(Internal Server Error). It should respond 400 error not 500 error. API Result and Logs are as follows. [API Result] "POST /v2.0/ports/" stack@ubuntu:~$ curl -gi -X POST http://192.168.122.99:9696/v2.0/ports -H "X-Auth-Token:${TOKEN}" -d '{"port":{"security_groups":90,"network_id":"77e2f811-96 a5-48d2-bd85-132e4f44bcb4"}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json; charset=UTF-8 Content-Length: 150 X-Openstack-Request-Id: req-b1e6de3d-8cd0-4015-be65-141126e7c807 Date: Fri, 24 Jul 2015 09:06:07 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} "PUT /v2.0/ports/{port_id}" stack@ubuntu:~$ curl -gi -X PUT http://192.168.122.99:9696/v2.0/ports/f95f74ff-1ede-483b-9386-c51f470500fe -H "X-Auth-Token:${TOKEN}" -d '{"port":{"security_groups":90}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json; charset=UTF-8 Content-Length: 150 X-Openstack-Request-Id: req-4815865b-9631-4812-9424-3b73c997e56f Date: Fri, 24 Jul 2015 08:46:51 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} [Neutron Server Log] 2015-07-24 17:46:41.947 DEBUG neutron.api.v2.base req-4f4adaa0-3952-4a0f-a450-7b3594c5a11e demo 0522fc19a56b4d7ca32a9140d3d36a08 Request body: {u'port': {u'security_groups': 3}}from (pid=24319) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:606 2015-07-24 17:46:41.949 ERROR neutron.api.v2.resource req-4f4adaa0-3952-4a0f-a450-7b3594c5a11e demo 0522fc19a56b4d7ca32a9140d3d36a08 update failed 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource Traceback (most recent call last): 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource result = method(request=request, **args) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource ectxt.value = e.inner_exc 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__ 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource return f(*args, **kwargs) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 525, in update 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource allow_bulk=self._allow_bulk) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 658, in prepare_request_body 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource res_dict[attr] = attr_vals['convert_to'](res_dict[attr]) 2015-07-24 17:46:41.949 TRACE neutron
[Yahoo-eng-team] [Bug 1614022] [NEW] POST/PUT request is returned with 500 error when specifying non dictionary type as value of resource key
resource AttributeError: 'list' object has no attribute 'keys' 2016-08-17 09:29:07.820 5683 ERROR neutron.api.v2.resource 2016-08-17 09:29:07.823 5683 INFO neutron.wsgi [req-352bcaf0-397f-43f5-9c6d-491aec11ac86 47e52753ff204767937cd1406fc15fb4 0059a1acf1b74638a4c17e26de720d3a - - -] 172.16.1.31 - - [17/Aug/2016 09:29:07] "PUT /v2.0/networks/3629e273-6d0a-40b4-bdaf-f5ece0cc4583 HTTP/1.1" 500 344 0.423484 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1614022 Title: POST/PUT request is returned with 500 error when specifying non dictionary type as value of resource key Status in neutron: New Bug description: POST/PUT request is returned with 500 error when specifying non dictionary type as value of resource key. I assume that it should be returned with 400(BadRequest) error. Here are requests and logs of each(POST/PUT) cases. These are failed in different points. POST: 'populate_tenant_id' in neutron/api/v2/attributes.py PUT : 'verify_attributes' in neutron/api/v2/attributes.py Some validation is needed before processing the above methods. 1. POST case request ubuntu@test:/opt/stack/neutron$ curl -g -i -X POST http://172.16.1.31:9696/v2.0/networks -H "X-Auth-Token: $TOKEN" -d '{"network":[]}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-acd88944-e402-4143-ac9d-dcbfbffe0648 Date: Wed, 17 Aug 2016 09:22:05 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} == trace in neutron-server 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource [req-acd88944-e402-4143-ac9d-dcbfbffe0648 47e52753ff204767937cd1406fc15fb4 0059a1acf1b74638a4c17e26de720d3a - - -] create failed: No details. 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource Traceback (most recent call last): 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource result = method(request=request, **args) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 397, in create 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource self.force_reraise() 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/api.py", line 82, in wrapped 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource traceback.format_exc()) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource self.force_reraise() 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/api.py", line 77, in wrapped 2016-08-17 09:22:05.250 5683 ERROR neutron.api.v2.resource return f(*args, **kwargs) 20
[Yahoo-eng-team] [Bug 1612485] [NEW] 500 Error is returned when specifying string that is partial matched to "application/json" as format of HTTP header.
uot;, line 144, in __call__ 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors return resp(environ, start_response) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors resp = self.call_func(req, *args, **self.kwargs) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors return self.func(req, *args, **kwargs) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/opt/stack/neutron/neutron/api/v2/resource.py", line 97, in resource 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors body = serializer.serialize(result) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors AttributeError: 'NoneType' object has no attribute 'serialize' 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors 2016-08-12 03:18:14.262 13757 INFO neutron.wsgi [req-c82ae85b-dbec-49ae-ad1f-d1104c437acd b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da253c90a - - -] 172.16.1.29 - - [12/Aug/2016 03:18:14] "GET /v2.0/networks HTTP/1.1" 500 317 0.680435 === ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1612485 Title: 500 Error is returned when specifying string that is partial matched to "application/json" as format of HTTP header. Status in neutron: New Bug description: Currently, 'get_content_type' method in neutron/wsgi.py checks specified format by 'in' statement. Thus, string that is partial matched to 'application/json' is judged as valid. However, we cannot find valid serializer from the format. request === ubuntu@neutron-ml2:/opt/stack/neutron$ curl -g -i -X GET http://172.16.1.29:9696/v2.0/networks -H "X-Auth-Token: $TOKEN" -H "Content-type: ppli" HTTP/1.1 500 Internal Server Error Content-Length: 114 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-c82ae85b-dbec-49ae-ad1f-d1104c437acd Date: Fri, 12 Aug 2016 03:18:14 GMT 500 Internal Server Error The server has either erred or is incapable of performing the requested operation. = trace in neutron-server = 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors Traceback (most recent call last): 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/oslo_middleware/catch_errors.py", line 38, in __call__ 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors response = req.get_response(self.application) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors application, catch_exc_info=False) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors app_iter = application(self.environ, start_response) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors resp = self.call_func(req, *args, **self.kwargs) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors return self.func(req, *args, **kwargs) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 331, in __call__ 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors response = req.get_response(self._app) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catch_errors application, catch_exc_info=False) 2016-08-12 03:18:14.259 13757 ERROR oslo_middleware.catc
[Yahoo-eng-team] [Bug 1610905] [NEW] Updating agent with non admin context returns 500 error.
reraise() 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 138, in wrapper 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 610, in _update 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource if request.context.tenant_id != orig_obj['tenant_id']: 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource KeyError: 'tenant_id' 2016-08-08 09:11:02.071 22005 ERROR neutron.api.v2.resource 2016-08-08 09:11:02.074 22005 INFO neutron.wsgi [req-673bb3a7-5b39-4be5-8ddd-800df819b58a 2d0eae6bce4146d791c3b30941fdd083 72052756693749a7a77dfa2f1da3a497 - - -] 172.16.1.29 - - [08/Aug/2016 09:11:02] "PUT /v2.0/agents/320ec1fd-fb68-4756-92ce-6f69965430d3 HTTP/1.1" 500 344 1.411364 == ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1610905 Title: Updating agent with non admin context returns 500 error. Status in neutron: New Bug description: When policy does not allow to perform update-agent, neutron try to refer to 'tenant_id' of the agent in order to judge whether 403 or 404 should be returned to client. However, there is no 'tenant_id' attribute in agent. Thus, accessing to 'tenant_id' is failed and unexpected error is returned. It should be returned with 404. request == ubuntu@neutron-ml2:/opt/stack/neutron$ curl -i -X PUT -H "X-Auth-Token: $TOKEN" http://172.16.1.29:9696/v2.0/agents/320ec1fd-fb68-4756-92ce-6f69965430d3 -d '{"agent":{"admin_state_up":"True"}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-673bb3a7-5b39-4be5-8ddd-800df819b58a Date: Mon, 08 Aug 2016 09:11:02 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} == trace in neutron-server == 2016-08-08 09:11:02.070 22005 ERROR root [req-673bb3a7-5b39-4be5-8ddd-800df819b58a 2d0eae6bce4146d791c3b30941fdd083 72052756693749a7a77dfa2f1da3a497 - - -] Original exception be ing dropped: ['Traceback (most recent call last):\n', ' File "/opt/stack/neutron/neutron/api/v2/base.py", line 602, in _update\n pluralized=self._collection)\n', ' File "/o pt/stack/neutron/neutron/policy.py", line 405, in enforce\n LOG.debug("Failed policy check for \'%s\'", action)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils /excutils.py", line 220, in __exit__\nself.force_reraise()\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise\nsix.r eraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/neutron/neutron/policy.py", line 401, in enforce\n do_raise=True)\n', ' File "/usr/local/lib/python2.7/dist-p ackages/oslo_policy/policy.py", line 639, in enforce\nraise PolicyNotAuthorized(rule, target, creds)\n', "PolicyNotAuthorized: rule:update_agent on {'binary': u'neutron-mete ring-agent', 'description': None, 'attributes_to_update': [u'admin_state_up'], 'availability_zone': None, 'heartbeat_timestamp': datetime.datetime(2016, 8, 8, 9, 10, 52), 'admin _state_up': True, 'alive': True, 'id': u'320ec1fd-fb68-4756-92ce-6f69965430d3', 'topic': u'metering_agent', 'host': u'neutron-ml2', 'agent_type': u'Metering agent', 'started_at' : datetime.datetime(2016, 8, 4, 9, 36, 40), 'created_at': datetime.datetime(2016, 8, 4, 9, 36, 40), 'configurations': {u'measure_interval': 30, u'metering_driver': u'neutron.ser vices.metering.drivers.noop.noop_driver.NoopMeteringDriver', u'report_interval': 300}} by {'domain': None, 'project_name': u'demo', 'tenant_name': u'demo', 'project_domain': Non e, 'timestamp': '2016-08-08 09:11:01.507290', 'auth_token': 'f1a803a66fde4da784c2f06b67386c32', 'resource_uuid': None, 'is_admin': False, 'user': u'2d0eae6bce4146d791c3b30941fdd 083', 'tenant': u'72052756693749a7a77dfa2f1da3a497', 'read_only': False
[Yahoo-eng-team] [Bug 1610764] [NEW] Create/Update security-group returns 500 error when boolean is specified as name.
Public bug reported: Currently, only validation for name of security-group is, specified name is "default" or not. Thus, following case will fail with 500 error. 1. name whose type is not String. 2. name whose characters is more than 255. request(case 1.) === ubuntu@neutron-ml2:/opt/stack/neutron$ curl -g -i -X POST http://172.16.1.29:9696/v2.0/security-groups -H "X-Auth-Token: $TOKEN" -d '{"security_group":{"name":true}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-14b8c0ee-8cd9-40a4-b297-a38bc2ce21ba Date: Mon, 08 Aug 2016 01:28:13 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} trace in neutron-server(case 1.) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource [req-14b8c0ee-8cd9-40a4-b297-a38bc2ce21ba b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da253c90a - - -] create failed: No details. 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource Traceback (most recent call last): 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource result = method(request=request, **args) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 397, in create 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 148, in wrapper 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource self.force_reraise() 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 138, in wrapper 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 406, in _create 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource allow_bulk=self._allow_bulk) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 684, in prepare_request_body 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/attributes.py", line 434, in convert_value 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource attr_vals['validate'][rule]) 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/extensions/securitygroup.py", line 210, in _validate_name_not_default 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource if data.lower() == "default": 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource AttributeError: 'bool' object has no attribute 'lower' 2016-08-08 01:28:13.215 10345 ERROR neutron.api.v2.resource === ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1610764 Title: Create/Update security-group returns 500 error when boolean is specified as name. Status in neutron: New Bug description: Currently, only validation for name of security-group is, specified name is "default" or not. Thus, following case will fail with 500 error. 1. name whose type is not String. 2. name whose characters is more than 255. request(case 1.) === ubuntu@neutron-ml2:/opt/stack/neutron$ curl -g -i -X POST http://172.16.1.29:9696/v2.0/security-groups -H "X-Auth
[Yahoo-eng-team] [Bug 1609727] [NEW] Creating meter-label with description that has more than 1024 characters returns 500 error.
aaa aaaaaaaaaaab', 'name': ''}] 2016-08-04 10:21:22.838 21757 ERROR neutron.api.v2.resource 2016-08-04 10:21:22.845 21757 INFO neutron.wsgi [req-ce5e15a2-e28e-4e6f-accf-47a4d2448587 b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da253c90a - - -] 172.16.1.29 - - [04/Aug/2016 10:21:22] "POST /v2.0/metering/metering-labels HTTP/1.1" 500 344 1.395305 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: metering -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1609727 Title: Creating meter-label with description that has more than 1024 characters returns 500 error. Status in neutron: New Bug description: Neutron tries to store description that has more than 1024 characters. Length of description should be validated. Request ubuntu@neutron-ml2:~$ curl -g -i -X POST http://172.16.1.29:9696/v2.0/metering/metering-labels -H "X-Auth-Token: $TOKEN" -d '{"metering_label":{"description":"a aaab"}}' HTTP/1.1 100 Continue HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-ce5e15a2-e28e-4e6f-accf-47a4d2448587 Date: Thu, 04 Aug 2016 10:21:22 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} = trace in neutron-server 2016-08-04 10:21:22.833 21757 ERROR oslo_db.sqlalchemy.exc_filters [req-ce5e15a2-e28e-4e6f-accf-47a4d2448587 b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da2 53c90a - - -] DBAPIError exception wrapped from (pymysql.err.DataError) (1406, u"Data too long for column 'description' at row 1") [SQL: u'INSERT INTO meteringlabels (p roject_id, id, name, description, shared) VALUES (%(project_id)s, %(id)s, %(name)s, %(description)s, %(shared)s)'] [parameters: {'id': 'd56e12b6-d225-4416-aa0e-ae0f6be0 3a2e', 'shared': 0, 'project_id': u'7dbb594bc59546f6b26ad73da253c90a', 'description': u' aa
[Yahoo-eng-team] [Bug 1609725] [NEW] Creating meter-label with name that has more than 255 characters returns 500 error.
kages/pymysql/cursors.py", line 317, in _query 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource conn.query(q) 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 837, in query 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource self._affected_rows = self._read_query_result(unbuffered=unbuffered) 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 1021, in _read_query_result 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource result.read() 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 1304, in read 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource first_packet = self.connection._read_packet() 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 983, in _read_packet 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource packet.check_error() 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/connections.py", line 395, in check_error 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource err.raise_mysql_exception(self._data) 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/err.py", line 120, in raise_mysql_exception 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource _check_mysql_exception(errinfo) 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/pymysql/err.py", line 112, in _check_mysql_exception 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource raise errorclass(errno, errorvalue) 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource DBError: (pymysql.err.DataError) (1406, u"Data too long for column 'name' at row 1") [SQL: u'INSERT INTO meteringlabels (project_id, id, name, description, shared) VALUES (%(project_id)s, %(id)s, %(name)s, %(description)s, %(shared)s)'] [parameters: {'shared': 0, 'description': '', 'project_id': u'7dbb594bc59546f6b26ad73da253c90a', 'id': '07bf0f95-9950-418d-b667-b38084f4bad7', 'name': u'aaaaaaaaaaab'}] 2016-08-04 10:07:18.598 21756 ERROR neutron.api.v2.resource 2016-08-04 10:07:18.609 21756 INFO neutron.wsgi [req-0d73d5b4-fabf-468f-874a-1458e39697a5 b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da253c90a - - -] 172.16.1.29 - - [04/Aug/2016 10:07:18] "POST /v2.0/metering/metering-labels HTTP/1.1" 500 344 1.387971 = ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: metering -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1609725 Title: Creating meter-label with name that has more than 255 characters returns 500 error. Status in neutron: New Bug description: Neutron tries to store name that has more than 255 characters. Length of name should be validated. Request = ubuntu@neutron-ml2:~$ curl -g -i -X POST http://172.16.1.29:9696/v2.0/metering/metering-labels -H "X-Auth-Token: $TOKEN" -d '{"metering_label":{"name":"aaab"}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-0d73d5b4-fabf-468f-874a-1458e39697a5 Date: Thu, 04 Aug 2016 10:07:18 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} trace in neutron-server = 2016-08-04 10:07:18.591 21756 ERROR oslo_db.sqlalchemy.exc_filters [req-0d73d5b4-fabf-468f-874a-1458e39697a5 b3ec23ec52144d7e96696abef028a5b0 7dbb594bc59546f6b26ad73da2 53c90a - - -] DBAPIError exception wrapped fro
[Yahoo-eng-team] [Bug 1609717] [NEW] CLI client tries to find meter-label-rule by using name even though name attribute is not supported in meter-label-rule.
Public bug reported: Behavior of Show/Delete meter-label-rule is odd. Case1. There is more than one meter-label-rule in system. ubuntu@neutron-ml2:~$ neutron meter-label-rule-list +--+--+---+--+ | id | excluded | direction | remote_ip_prefix | +--+--+---+--+ | 4b8cc074-4903-4fb9-bf6c-dbc62ae9f935 | False| ingress | 10.10.10.10/32 | | ba880ef9-6af0-4dbc-be63-b4c9418e6ac8 | False| ingress | 10.10.10.11/32 | +--+--+---+--+ -Request and Response === ubuntu@neutron-ml2:~$ neutron meter-label-rule-delete a Multiple metering_label_rule matches found for name 'a', use an ID to be more specific. Error above is returned even though there is no meter-label-rule with name 'a'. Case2. There is a meter-label-rule in system. ubuntu@neutron-ml2:~$ neutron meter-label-rule-list +--+--+---+--+ | id | excluded | direction | remote_ip_prefix | +--+--+---+--+ | ba880ef9-6af0-4dbc-be63-b4c9418e6ac8 | False| ingress | 10.10.10.11/32 | +--+--+---+--+ -Request and Response ubuntu@neutron-ml2:~$ neutron meter-label-rule-delete a Deleted metering_label_rule: a The resource is deleted even though name of the meter-label-rule is not 'a'. ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: metering ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) ** Tags added: metering -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1609717 Title: CLI client tries to find meter-label-rule by using name even though name attribute is not supported in meter-label-rule. Status in neutron: New Bug description: Behavior of Show/Delete meter-label-rule is odd. Case1. There is more than one meter-label-rule in system. ubuntu@neutron-ml2:~$ neutron meter-label-rule-list +--+--+---+--+ | id | excluded | direction | remote_ip_prefix | +--+--+---+--+ | 4b8cc074-4903-4fb9-bf6c-dbc62ae9f935 | False| ingress | 10.10.10.10/32 | | ba880ef9-6af0-4dbc-be63-b4c9418e6ac8 | False| ingress | 10.10.10.11/32 | +--+--+---+--+ -Request and Response === ubuntu@neutron-ml2:~$ neutron meter-label-rule-delete a Multiple metering_label_rule matches found for name 'a', use an ID to be more specific. Error above is returned even though there is no meter-label-rule with name 'a'. Case2. There is a meter-label-rule in system. ubuntu@neutron-ml2:~$ neutron meter-label-rule-list +--+--+---+--+ | id | excluded | direction | remote_ip_prefix | +--+--+---+--+ | ba880ef9-6af0-4dbc-be63-b4c9418e6ac8 | False| ingress | 10.10.10.11/32 | +--+--+---+--+ -Request and Response ubuntu@neutron-ml2:~$ neutron meter-label-rule-delete a Deleted metering_label_rule: a The resource is deleted even though name of the meter-label-rule is not 'a'. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1609717/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1607670] [NEW] Cannot remove subnet from router even though the router is not used by vpnservice
ot;PUT /v2.0/routers/41888658-74d2-4bba-a44a-f1c6af1eba96/remove_router_interface.json HTTP/1.1" 409 389 0.372817 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Tags: vpnaas ** Tags added: vpnaas ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1607670 Title: Cannot remove subnet from router even though the router is not used by vpnservice Status in neutron: New Bug description: Cannot remove subnet from router even though the router is not used by vpnservice. When operation for router interface is requested, callback method(vpn_callback) in vpn_db.py is called. Callback tries to find vpnservice with subnet_id. However, it should be located with subnet_id and router_id because router that is not used by vpnservice may be in same subnet. ===Reproduction=== 1.Creating vpnservice specifying router1 and subnet1. neutron router-create router1 neutron net-create network1 neutron subnet-create network1 10.10.10.0/24 --name subnet1 neutron router-interface-add router1 subnet1 neutron router-gateway-set router1 external neutron vpn-service-create router1 subnet1 2.Attach subnet1 to router2(that is not used by vpnservice). neutron router-create router2 neutron port-create network1 --name port1 neutron router-interface-add router2 port=port1 3.Remove subnet1 from router2 (that is not used by vpnservice). vagrant@ubuntu:/opt/stack/neutron-vpnaas$ neutron router-interface-delete b port=dc71de4a-3ee7-407f-9fab-06be99b56bbe Subnet 0a0db447-aa35-44aa-a4d1-c72da22bd9e4 is used by VPNService 73a06d81-85d5-47e8-8f08-e04802b167a6 Neutron server returns request_ids: ['req-e16aae3f-2610-473d-aeee-52587c78df40'] =trace in neutron server== 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Error during notification for neutron_vpnaas.db.vpn.vpn_db.vpn_callback router_interface, before_delete 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager Traceback (most recent call last): 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron/neutron/callbacks/manager.py", line 148, in _notify_loop 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager callback(resource, event, trigger, **kwargs) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_db.py", line 722, in vpn_callback 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager check_func(context, resource_id) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager File "/opt/stack/neutron-vpnaas/neutron_vpnaas/db/vpn/vpn_db.py", line 549, in check_subnet_in_use 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager vpnservice_id=vpnservices['id']) 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager SubnetInUseByVPNService: Subnet 0a0db447-aa35-44aa-a4d1-c72da22bd9e4 is used by VPNService 73a06d81-85d5-47e8-8f08-e04802b167a6 2016-07-29 16:46:42.597 27256 ERROR neutron.callbacks.manager 2016-07-29 16:46:42.606 27256 DEBUG neutron.callbacks.manager [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Notify callbacks for router_interface, abort_delete _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:140 2016-07-29 16:46:42.610 27256 ERROR root [req-e16aae3f-2610-473d-aeee-52587c78df40 5cd9727299164d72a308a13b96610278 d12b219751fe4b71be3df49fddbbafaf - - -] Original exception being dropped: ['Traceback (most recent call last):\n', ' File "/opt/stack/neutron/neutron/db/l3_db.py", line 815, in _confirm_router_interface_not_in_use\nevents.BEFORE_DELETE, self, **kwargs)\n', ' File "/opt/stack/neutron/neutron/callbacks/registry.py", line 44, in notify\n_get_callback_manager().notify(resource, event, trigger, **kwargs)\n', ' File "/opt/stack/neutron/neutron/db/api.py", line 70, in wrapped\nraise db_exc.RetryRequest(e)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__\nself.force_reraise()\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise\nsix.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/neutron/neutron/db/api.py", line 65, in wrapped\nretur n f(*args, **kwargs)\n', ' File "/opt/stack/neutron/neutron/callbacks/manager.py", line 127, in notify\n raise exceptions.CallbackFailure(errors=errors)
[Yahoo-eng-team] [Bug 1604662] [NEW] Bulk creation for security group does return 500 error.
Public bug reported: API request vagrant@ubuntu:~$ curl -i -X POST -H "X-Auth-Token: $TOKEN" http://192.168.122.139:9696/v2.0/security-groups -d '{"security_groups":[{"security_group":{"name":"hobo1"}}]}' HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 150 X-Openstack-Request-Id: req-48d5282e-f0b6-48b8-887c-7aa0c953ee88 Date: Wed, 20 Jul 2016 03:54:06 GMT {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}} trace in neutron server === 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource [req-48d5282e-f0b6-48b8-887c-7aa0c953ee88 e01bc3eadeb045edb02fc6b2af4b5d49 867929bfedca4a719e17a7f3293845de - - -] create failed: No details. 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource Traceback (most recent call last): 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource result = method(request=request, **args) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 401, in create 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 148, in wrapper 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource self.force_reraise() 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 138, in wrapper 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 500, in _create 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource objs = do_create(body, bulk=True) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 496, in do_create 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource request.context, reservation.reservation_id) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource self.force_reraise() 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 489, in do_create 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs) 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource TypeError: create_security_group_bulk() got an unexpected keyword argument 'security_groups' 2016-07-20 12:54:06.234 5351 ERROR neutron.api.v2.resource 2016-07-20 12:54:06.241 5351 INFO neutron.wsgi [req-48d5282e-f0b6-48b8-887c-7aa0c953ee88 e01bc3eadeb045edb02fc6b2af4b5d49 867929bfedca4a719e17a7f3293845de - - -] 192.168.122.139 - - [20/Jul/2016 12:54:06] "POST /v2.0/security-groups HTTP/1.1" 500 344 0.203171 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1604662 Title: Bulk creation for security group does return 500 error. Status in neutron: New Bug description: API request vagrant@ubuntu:~$ curl -i -X POST -H "X-Auth-Token: $TOKEN" http://192.168.122.139:9696/v2.0/security-groups -d '{"security_groups":[{"security_grou
[Yahoo-eng-team] [Bug 1593528] [NEW] Many FWaaS tempest jobs fail with AttributeError
Public bug reported: Tempest jobs fail with following error because return value of type is changed to dictionary from object. 2016-06-16 18:01:05.207 | Captured traceback: 2016-06-16 18:01:05.207 | ~~~ 2016-06-16 18:01:05.207 | Traceback (most recent call last): 2016-06-16 18:01:05.207 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 373, in test_firewall_all_disabled_rules 2016-06-16 18:01:05.207 | self._test_firewall_basic(block=self._all_disabled_rules) 2016-06-16 18:01:05.207 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 304, in _test_firewall_basic 2016-06-16 18:01:05.208 | self._create_topology() 2016-06-16 18:01:05.208 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 270, in _create_topology 2016-06-16 18:01:05.208 | floating_ip = server_floating_ip.floating_ip_address 2016-06-16 18:01:05.208 | AttributeError: 'dict' object has no attribute 'floating_ip_address' I assume that following commit in tempest affects. https://github.com/openstack/tempest/commit/777a307b3c9f4284facf081e6b951b5755333adf To know details, please refer top following log. http://logs.openstack.org/13/326413/3/check/gate-tempest-dsvm-networking-midonet-v2/0ab80e7/console.html ** Affects: neutron Importance: Undecided Status: New ** Tags: fwaas ** Tags added: fwaas -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1593528 Title: Many FWaaS tempest jobs fail with AttributeError Status in neutron: New Bug description: Tempest jobs fail with following error because return value of type is changed to dictionary from object. 2016-06-16 18:01:05.207 | Captured traceback: 2016-06-16 18:01:05.207 | ~~~ 2016-06-16 18:01:05.207 | Traceback (most recent call last): 2016-06-16 18:01:05.207 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 373, in test_firewall_all_disabled_rules 2016-06-16 18:01:05.207 | self._test_firewall_basic(block=self._all_disabled_rules) 2016-06-16 18:01:05.207 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 304, in _test_firewall_basic 2016-06-16 18:01:05.208 | self._create_topology() 2016-06-16 18:01:05.208 | File "/opt/stack/new/neutron-fwaas/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py", line 270, in _create_topology 2016-06-16 18:01:05.208 | floating_ip = server_floating_ip.floating_ip_address 2016-06-16 18:01:05.208 | AttributeError: 'dict' object has no attribute 'floating_ip_address' I assume that following commit in tempest affects. https://github.com/openstack/tempest/commit/777a307b3c9f4284facf081e6b951b5755333adf To know details, please refer top following log. http://logs.openstack.org/13/326413/3/check/gate-tempest-dsvm-networking-midonet-v2/0ab80e7/console.html To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1593528/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1587401] [NEW] Helper method to change status of port to abnormal state is needed in ml2.
Public bug reported: Some mechanism drivers cooperate with another backend(SDN controller). In this case, drivers may want to change status of port so that user can recognize process for the port is failed when failure in calling to backend. However, currently there is no helper function in PortContext to change status of port to abnormal status. ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1587401 Title: Helper method to change status of port to abnormal state is needed in ml2. Status in neutron: New Bug description: Some mechanism drivers cooperate with another backend(SDN controller). In this case, drivers may want to change status of port so that user can recognize process for the port is failed when failure in calling to backend. However, currently there is no helper function in PortContext to change status of port to abnormal status. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1587401/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1584645] [NEW] bgp-speaker without associating with router is not supported.
Public bug reported: Currently, MidoNet does not support bgp-speaker without associating with router. To accomplish following purposes, it is necessary for MidoNet to support use case above * Support BGP operation from neutron for MidoNet EdgeRouter. * Unify behaviors in upstream and MidoNet. ** Affects: networking-midonet Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Status: New => Invalid ** Project changed: neutron => networking-midonet ** Changed in: networking-midonet Status: Invalid => New ** Changed in: networking-midonet Assignee: (unassigned) => Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1584645 Title: bgp-speaker without associating with router is not supported. Status in networking-midonet: New Bug description: Currently, MidoNet does not support bgp-speaker without associating with router. To accomplish following purposes, it is necessary for MidoNet to support use case above * Support BGP operation from neutron for MidoNet EdgeRouter. * Unify behaviors in upstream and MidoNet. To manage notifications about this bug go to: https://bugs.launchpad.net/networking-midonet/+bug/1584645/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1535542] [NEW] Resource that does not belong to tenant cannot be created.
Public bug reported: Resource that does not belong to tenant cannot be created. Creating resource that does not belong to tenant, 400 error had occurred. According to code, tenant_id is populated before calling create_XXX methods. Then failing with validation. I assume that it shouldn't be blocked when the resource does not belong to tenant. Example of error as follows. ubuntu@instance15:~$ curl -si -X POST -H "Content-type: application/json" http://172.16.1.16:9696/v2.0/gw/gateway_devices/197d5dae-6e3d-4e0b-b785-56bc2219303f/remote_mac_entries -H "X-AUTH-TOKEN:${TOKEN}" -d '{"remote_mac_entry":{"vtep_address": "2.2.2.2", "mac_address":"aa:aa:aa:aa:aa:aa", "segmentation_id":1000}}' HTTP/1.1 400 Bad Request Content-Length: 110 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-0a578855-187e-4109-b762-39e8b209020e Date: Thu, 07 Jan 2016 02:53:33 GMT {"NeutronError": {"message": "Unrecognized attribute(s) 'tenant_id'", "type": "HTTPBadRequest", "detail": ""}} ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1535542 Title: Resource that does not belong to tenant cannot be created. Status in neutron: New Bug description: Resource that does not belong to tenant cannot be created. Creating resource that does not belong to tenant, 400 error had occurred. According to code, tenant_id is populated before calling create_XXX methods. Then failing with validation. I assume that it shouldn't be blocked when the resource does not belong to tenant. Example of error as follows. ubuntu@instance15:~$ curl -si -X POST -H "Content-type: application/json" http://172.16.1.16:9696/v2.0/gw/gateway_devices/197d5dae-6e3d-4e0b-b785-56bc2219303f/remote_mac_entries -H "X-AUTH-TOKEN:${TOKEN}" -d '{"remote_mac_entry":{"vtep_address": "2.2.2.2", "mac_address":"aa:aa:aa:aa:aa:aa", "segmentation_id":1000}}' HTTP/1.1 400 Bad Request Content-Length: 110 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-0a578855-187e-4109-b762-39e8b209020e Date: Thu, 07 Jan 2016 02:53:33 GMT {"NeutronError": {"message": "Unrecognized attribute(s) 'tenant_id'", "type": "HTTPBadRequest", "detail": ""}} To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1535542/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1532200] [NEW] Gate along resource creation are failing with AttributeError.
Public bug reported: Gate along resource creation are failing with AttributeError.(_get_tenant_id_for_create method). I assume that following commit affects because the method is deleted in this commit. https://github.com/openstack/neutron/commit/3082949cffeefd7ef0dcc3f63f235ce597539ef3 The error detail is following. 2016-01-08 06:35:18.501 | Traceback (most recent call last): 2016-01-08 06:35:18.501 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper 2016-01-08 06:35:18.501 | return f(*args, **kwargs) 2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 516, in create 2016-01-08 06:35:18.501 | obj = do_create(body) 2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 498, in do_create 2016-01-08 06:35:18.502 | request.context, reservation.reservation_id) 2016-01-08 06:35:18.502 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__ 2016-01-08 06:35:18.502 | six.reraise(self.type_, self.value, self.tb) 2016-01-08 06:35:18.502 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 491, in do_create 2016-01-08 06:35:18.502 | return obj_creator(request.context, **kwargs) 2016-01-08 06:35:18.502 | File "midonet/neutron/plugin_v2.py", line 81, in create_network 2016-01-08 06:35:18.502 | tenant_id = self._get_tenant_id_for_create(context, net_data) 2016-01-08 06:35:18.502 | AttributeError: 'MidonetPluginV2' object has no attribute '_get_tenant_id_for_create' 2016-01-08 06:35:18.502 | 2016-01-08 06:33:13,534ERROR [neutron.api.v2.resource] create failed ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1532200 Title: Gate along resource creation are failing with AttributeError. Status in neutron: New Bug description: Gate along resource creation are failing with AttributeError.(_get_tenant_id_for_create method). I assume that following commit affects because the method is deleted in this commit. https://github.com/openstack/neutron/commit/3082949cffeefd7ef0dcc3f63f235ce597539ef3 The error detail is following. 2016-01-08 06:35:18.501 | Traceback (most recent call last): 2016-01-08 06:35:18.501 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper 2016-01-08 06:35:18.501 | return f(*args, **kwargs) 2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 516, in create 2016-01-08 06:35:18.501 | obj = do_create(body) 2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 498, in do_create 2016-01-08 06:35:18.502 | request.context, reservation.reservation_id) 2016-01-08 06:35:18.502 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__ 2016-01-08 06:35:18.502 | six.reraise(self.type_, self.value, self.tb) 2016-01-08 06:35:18.502 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 491, in do_create 2016-01-08 06:35:18.502 | return obj_creator(request.context, **kwargs) 2016-01-08 06:35:18.502 | File "midonet/neutron/plugin_v2.py", line 81, in create_network 2016-01-08 06:35:18.502 | tenant_id = self._get_tenant_id_for_create(context, net_data) 2016-01-08 06:35:18.502 | AttributeError: 'MidonetPluginV2' object has no attribute '_get_tenant_id_for_create' 2016-01-08 06:35:18.502 | 2016-01-08 06:33:13,534ERROR [neutron.api.v2.resource] create failed To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1532200/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1528435] [NEW] The gate test of VPNaaS is failing with AttributeError
Public bug reported: When I run git review command on today(AM 10:00), the gate test of VPNaaS is failing with following error. There are 5 errors and all of errors are AttributeError. I guess that following recent modification affects https://github.com/openstack/neutron/commit/dd5f5716c9a32634caa2a44d362cd77461ba873d *Error details Traceback (most recent call last): File "/home/ubuntu/for_commit/midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper return f(*args, **kwargs) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 414, in create allow_bulk=self._allow_bulk) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 680, in prepare_request_body attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/attributes.py", line 919, in convert_value res = validators[rule](res_dict[attr], attr_vals['validate'][rule]) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron-vpnaas/neutron_vpnaas/extensions/vpnaas.py", line 167, in _validate_subnet_list_or_none attr._validate_subnet_list(data, key_specs) AttributeError: 'module' object has no attribute '_validate_subnet_list' 2015-12-22 02:24:21,828ERROR [neutron.api.v2.resource] create failed Traceback (most recent call last): File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/resource.py", line 83, in resource result = method(request=request, **args) File "/home/ubuntu/for_commit/midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 152, in wrapper ectxt.value = e.inner_exc File "/home/ubuntu/for_commit/midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/home/ubuntu/for_commit/midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper return f(*args, **kwargs) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 414, in create allow_bulk=self._allow_bulk) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 680, in prepare_request_body attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/attributes.py", line 919, in convert_value res = validators[rule](res_dict[attr], attr_vals['validate'][rule]) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron-vpnaas/neutron_vpnaas/extensions/vpnaas.py", line 167, in _validate_subnet_list_or_none attr._validate_subnet_list(data, key_specs) AttributeError: 'module' object has no attribute '_validate_subnet_list' ** Affects: neutron Importance: Undecided Status: Confirmed -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1528435 Title: The gate test of VPNaaS is failing with AttributeError Status in neutron: Confirmed Bug description: When I run git review command on today(AM 10:00), the gate test of VPNaaS is failing with following error. There are 5 errors and all of errors are AttributeError. I guess that following recent modification affects https://github.com/openstack/neutron/commit/dd5f5716c9a32634caa2a44d362cd77461ba873d *Error details Traceback (most recent call last): File "/home/ubuntu/for_commit/midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper return f(*args, **kwargs) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 414, in create allow_bulk=self._allow_bulk) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/base.py", line 680, in prepare_request_body attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/attributes.py", line 919, in convert_value res = validators[rule](res_dict[attr], attr_vals['validate'][rule]) File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron-vpnaas/neutron_vpnaas/extensions/vpnaas.py", line 167, in _validate_subnet_list_or_none attr._validate_subnet_list(data, key_specs) AttributeError: 'module' object has no attribute '_validate_subnet_list' 2015-12-22 02:24:21,828ERROR [neutron.api.v2.resource] create failed Traceback (most recent call last): File "/home/ubuntu/for_commit/midonet/.tox/py27/src/neutron/neutron/api/v2/resource.py", line
[Yahoo-eng-team] [Bug 1477921] [NEW] Create/Update port responds 500 to the request with invalid security_groups
Public bug reported: When I request POST /v2.0/ports/ and PUT /v2.0/ports/{port_id} with an invalid value(ex.integer) as security_groups, Neutron Server responds 500(Internal Server Error). It should respond 400 error not 500 error. API Result and Logs are as follows. [API Result] POST /v2.0/ports/ stack@ubuntu:~$ curl -gi -X POST http://192.168.122.99:9696/v2.0/ports -H X-Auth-Token:${TOKEN} -d '{port:{security_groups:90,network_id:77e2f811-96 a5-48d2-bd85-132e4f44bcb4}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json; charset=UTF-8 Content-Length: 150 X-Openstack-Request-Id: req-b1e6de3d-8cd0-4015-be65-141126e7c807 Date: Fri, 24 Jul 2015 09:06:07 GMT {NeutronError: {message: Request Failed: internal server error while processing your request., type: HTTPInternalServerError, detail: }} PUT /v2.0/ports/{port_id} stack@ubuntu:~$ curl -gi -X PUT http://192.168.122.99:9696/v2.0/ports/f95f74ff-1ede-483b-9386-c51f470500fe -H X-Auth-Token:${TOKEN} -d '{port:{security_groups:90}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json; charset=UTF-8 Content-Length: 150 X-Openstack-Request-Id: req-4815865b-9631-4812-9424-3b73c997e56f Date: Fri, 24 Jul 2015 08:46:51 GMT {NeutronError: {message: Request Failed: internal server error while processing your request., type: HTTPInternalServerError, detail: }} [Neutron Server Log] 2015-07-24 17:46:41.947 DEBUG neutron.api.v2.base req-4f4adaa0-3952-4a0f-a450-7b3594c5a11e demo 0522fc19a56b4d7ca32a9140d3d36a08 Request body: {u'port': {u'security_groups': 3}}from (pid=24319) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:606 2015-07-24 17:46:41.949 ERROR neutron.api.v2.resource req-4f4adaa0-3952-4a0f-a450-7b3594c5a11e demo 0522fc19a56b4d7ca32a9140d3d36a08 update failed 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource Traceback (most recent call last): 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /opt/stack/neutron/neutron/api/v2/resource.py, line 83, in resource 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource result = method(request=request, **args) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /usr/local/lib/python2.7/dist-packages/oslo_db/api.py, line 146, in wrapper 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource ectxt.value = e.inner_exc 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py, line 119, in __exit__ 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /usr/local/lib/python2.7/dist-packages/oslo_db/api.py, line 136, in wrapper 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource return f(*args, **kwargs) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /opt/stack/neutron/neutron/api/v2/base.py, line 525, in update 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource allow_bulk=self._allow_bulk) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /opt/stack/neutron/neutron/api/v2/base.py, line 658, in prepare_request_body 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource res_dict[attr] = attr_vals['convert_to'](res_dict[attr]) 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource File /opt/stack/neutron/neutron/extensions/securitygroup.py, line 177, in convert_to_uuid_list_or_none 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource for sg_id in value_list: 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource TypeError: 'int' object is not iterable 2015-07-24 17:46:41.949 TRACE neutron.api.v2.resource 2015-07-24 17:46:41.955 INFO neutron.wsgi req-4f4adaa0-3952-4a0f-a450-7b3594c5a11e demo 0522fc19a56b4d7ca32a9140d3d36a08192.168.122.99 - - [24/Jul/2015 17:46:41] PUT /v2.0/ports/f95f74ff-1ede-483b-9386-c51f470500fe HTTP/1.1 500 359 0.027116 ** Affects: neutron Importance: Undecided Assignee: Kengo Hobo (hobo-kengo) Status: New ** Changed in: neutron Assignee: (unassigned) = Kengo Hobo (hobo-kengo) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1477921 Title: Create/Update port responds 500 to the request with invalid security_groups Status in neutron: New Bug description: When I request POST /v2.0/ports/ and PUT /v2.0/ports/{port_id} with an invalid value(ex.integer) as security_groups, Neutron Server responds 500(Internal Server Error). It should respond 400 error not 500 error. API Result and Logs are as follows. [API Result] POST /v2.0/ports/ stack@ubuntu:~$ curl -gi -X POST http://192.168.122.99:9696/v2.0/ports -H X-Auth-Token:${TOKEN} -d '{port:{security_groups:90,network_id:77e2f811-96 a5-48d2-bd85-132e4f44bcb4}}' HTTP/1.1 500 Internal Server Error Content-Type: application/json; charset=UTF-8 Content-Length: 150