← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1487324] Re: failed to list qos rule type due to policy check

 

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

** Changed in: neutron
    Milestone: None => liberty-3

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

Title:
  failed to list qos rule type due to policy check

Status in neutron:
  Fix Released

Bug description:
  2015-08-21 13:52:36.212 23375 INFO neutron.wsgi [-] (23375) accepted ('192.168.1.118', 43606)
  2015-08-21 13:52:42.711 ERROR neutron.policy [req-ba182095-d12d-4bde-a47e-88507e4c4898 demo demo] Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy Traceback (most recent call last):
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy   File "/mnt/data3/opt/stack/neutron/neutron/policy.py", line 224, in __call__
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy     parent_res, parent_field = do_split(separator)
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy   File "/mnt/data3/opt/stack/neutron/neutron/policy.py", line 219, in do_split
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy     separator, 1)
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy ValueError: need more than 1 value to unpack
  2015-08-21 13:52:42.711 23375 ERROR neutron.policy
  2015-08-21 13:52:42.714 ERROR neutron.api.v2.resource [req-ba182095-d12d-4bde-a47e-88507e4c4898 demo demo] index failed
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/mnt/data3/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 339, in index
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     return self._items(request, True, parent_id)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 279, in _items
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     pluralized=self._collection)]
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/mnt/data3/opt/stack/neutron/neutron/policy.py", line 354, in check
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     pluralized=pluralized)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 487, in enforce
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     result = rule(target, creds, self)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_policy/_checks.py", line 238, in __call__
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     return enforcer.rules[self.match](target, creds, enforcer)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_policy/_checks.py", line 238, in __call__
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     return enforcer.rules[self.match](target, creds, enforcer)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_policy/_checks.py", line 191, in __call__
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     if rule(target, cred, enforcer):
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource   File "/mnt/data3/opt/stack/neutron/neutron/policy.py", line 246, in __call__
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource     reason=err_reason)
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource PolicyCheckError: Failed to check policy tenant_id:%(tenant_id)s because Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found
  2015-08-21 13:52:42.714 23375 ERROR neutron.api.v2.resource


  $ neutron qos-available-rule-types  -v
  DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://172.17.42.1:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  DEBUG: keystoneclient.session RESP: [200] Content-Length: 337 Vary: X-Auth-Token Connection: keep-alive Date: Fri, 21 Aug 2015 05:52:35 GMT Content-Type: application/json X-Openstack-Request-Id: req-3ff33f59-d69b-412a-8137-0ce5f6deb868 
  RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.17.42.1:5000/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

  DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
  DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
  DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
  DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
  DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
  DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
  DEBUG: neutronclient.neutron.v2_0.qos.rule.ListQoSRuleTypes get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, page_size=None, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
  DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://172.17.42.1:5000/v2.0/tokens
  DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://172.17.42.1:9696/v2.0/qos/rule-types.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}cbf58ad3ce9ff5b3eb3b7e8043ca6699841277b3"
  DEBUG: keystoneclient.session RESP: [500] Date: Fri, 21 Aug 2015 05:52:42 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 211 X-Openstack-Request-Id: req-ba182095-d12d-4bde-a47e-88507e4c4898 
  RESP BODY: {"NeutronError": {"message": "Failed to check policy tenant_id:%(tenant_id)s because Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found", "type": "PolicyCheckError", "detail": ""}}

  DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Failed to check policy tenant_id:%(tenant_id)s because Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found", "type": "PolicyCheckError", "detail": ""}}
  ERROR: neutronclient.shell Failed to check policy tenant_id:%(tenant_id)s because Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found
  Traceback (most recent call last):
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/shell.py", line 817, in run_subcommand
      return run_command(cmd, cmd_parser, sub_argv)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/shell.py", line 111, in run_command
      return cmd.run(known_args)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/common/command.py", line 29, in run
      return super(OpenStackCommand, self).run(parsed_args)
    File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
      column_names, data = self.take_action(parsed_args)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/common/command.py", line 35, in take_action
      return self.get_data(parsed_args)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/neutron/v2_0/__init__.py", line 716, in get_data
      data = self.retrieve_list(parsed_args)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/neutron/v2_0/__init__.py", line 679, in retrieve_list
      data = self.call_server(neutron_client, search_opts, parsed_args)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/neutron/v2_0/__init__.py", line 651, in call_server
      data = obj_lister(**search_opts)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 102, in with_params
      ret = self.function(instance, *args, **kwargs)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1706, in list_qos_rule_types
      retrieve_all, **_params)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 307, in list
      for r in self._pagination(collection, path, **params):
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 320, in _pagination
      res = self.get(path, params=params)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 293, in get
      headers=headers, params=params)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 270, in retry_request
      headers=headers, params=params)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 211, in do_request
      self._handle_fault_response(status_code, replybody)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
      exception_handler_v20(status_code, des_error_body)
    File "/mnt/data3/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 70, in exception_handler_v20
      status_code=status_code)
  InternalServerError: Failed to check policy tenant_id:%(tenant_id)s because Unable to verify match:%(tenant_id)s as the parent resource: tenant was not found

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


References