Description of problem: ----------------------- Command to filter resources fails: heat --debug resource-list -f status=IN_PROGRESS -n5 overcloud DEBUG (session) REQ: curl -g -i -X GET https://192.168.24.2:13000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool) Starting new HTTPS connection (1): 192.168.24.2 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:303: SubjectAltNameWarning: Certificate for 192.168.24.2 has no `subjectAltName`, falling back to check for a `commonName` for now. This f eature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.) SubjectAltNameWarning DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 231 DEBUG (session) RESP: [200] Date: Wed, 21 Mar 2018 10:31:05 GMT Server: Apache/2.4.6 (Red Hat Enterprise Linux) Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-68c78d4a-63a3-4fa4-8f25-fc06d87cb253 Content-Encoding: gzip Content-Length: 231 Content-Type: application/json 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": [{"hre f": "https://192.168.24.2:13000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}} DEBUG (v2) Making authentication request to https://192.168.24.2:13000/v2.0/tokens DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 1002 WARNING (shell) "heat resource-list" is deprecated, please use "openstack stack resource list" instead DEBUG (session) REQ: curl -g -i -X GET https://192.168.24.2:13004/v1/fcd5373f725548b6ac51ad9fc822c7ab/stacks/overcloud/resources?status=IN_PROGRESS&nested_depth=5 -H "User-Agent: python-heatclient" -H "Accept: a pplication/json" -H "X-Auth-Token: {SHA1}61589c092867341e76f6d9809564f524d94ff2f9" INFO (connectionpool) Starting new HTTPS connection (1): 192.168.24.2 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:303: SubjectAltNameWarning: Certificate for 192.168.24.2 has no `subjectAltName`, falling back to check for a `commonName` for now. This f eature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.) SubjectAltNameWarning DEBUG (connectionpool) "GET /v1/fcd5373f725548b6ac51ad9fc822c7ab/stacks/overcloud/resources?status=IN_PROGRESS&nested_depth=5 HTTP/1.1" 302 240 DEBUG (session) RESP: [302] Location: https://192.168.24.2:13004/v1/fcd5373f725548b6ac51ad9fc822c7ab/stacks/overcloud/ccb80b86-918f-4e01-b89a-788cb47acb5f/resources?status=IN_PROGRESS&nested_depth=5 Content-Leng th: 240 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-18d5b539-8ffa-4a86-9d5a-6b9936e5f7ce Date: Wed, 21 Mar 2018 10:31:05 GMT RESP BODY: 302 Found The resource was found at https://192.168.24.2:13004/v1/fcd5373f725548b6ac51ad9fc822c7ab/stacks/overcloud/ccb80b86-918f-4e01-b89a-788cb47acb5f/resources?status=IN_PROGRESS&nested_depth=5; you should be redirecte d automatically. DEBUG (connectionpool) "GET /v1/fcd5373f725548b6ac51ad9fc822c7ab/stacks/overcloud/ccb80b86-918f-4e01-b89a-788cb47acb5f/resources?status=IN_PROGRESS&nested_depth=5 HTTP/1.1" 400 1748 DEBUG (session) RESP: [400] Content-Type: application/json; charset=UTF-8 Content-Length: 1748 X-Openstack-Request-Id: req-ca4f0927-41df-4175-8d7c-a32f8e5c5d2f Date: Wed, 21 Mar 2018 10:31:05 GMT RESP BODY: {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "The specified reference \"Networks\" (in Compute ) is incorrect.", "traceback": "Traceback (most recent call last):\n\n File \"/usr/lib/python2.7/site-packages/heat/common/context.py\", line 329, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n Fi le \"/usr/lib/python2.7/site-packages/heat/engine/service.py\", line 1771, in list_stack_resources\n for resource in rsrcs]\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/api.py\", line 315, in form at_stack_resource\n rpc_api.RES_REQUIRED_BY: resource.required_by(),\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/resource.py\", line 622, in required_by\n return [r.name for r in self.stack.de pendencies.required_by(self)]\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/stack.py\", line 348, in dependencies\n ignore_errors=self.id is not None)\n\n File \"/usr/lib/python2.7/site-packages/h eat/engine/stack.py\", line 424, in _get_dependencies\n res.add_explicit_dependencies(deps)\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/resource.py\", line 597, in add_explicit_dependencies\n for dep in self.t.dependencies(self.stack):\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/rsrc_defn.py\", line 171, in <genexpr>\n return itertools.chain((get_resource(dep) for dep in explicit_depe nds),\n\n File \"/usr/lib/python2.7/site-packages/heat/engine/rsrc_defn.py\", line 162, in get_resource\n key=self.name)\n\nInvalidTemplateReference: The specified reference \"Networks\" (in Compute) is inco rrect.\n", "type": "InvalidTemplateReference"}, "title": "Bad Request"} Traceback (most recent call last): File "/usr/bin/heat", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 704, in main HeatShell().main(args) File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 654, in main args.func(client, args) File "/usr/lib/python2.7/site-packages/heatclient/v1/shell.py", line 955, in do_resource_list resources = hc.resources.list(**fields) File "/usr/lib/python2.7/site-packages/heatclient/v1/resources.py", line 71, in list return self._list(url, "resources") File "/usr/lib/python2.7/site-packages/heatclient/openstack/common/apiclient/base.py", line 135, in _list body = self.client.get(url).json() File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 324, in request raise exc.from_response(resp) heatclient.exc.HTTPBadRequest: ERROR: The specified reference "Networks" (in Compute) is incorrect. When removed '-f status=IN_PROGRESS' it works Version-Release number of selected component (if applicable): ------------------------------------------------------------- python-heat-tests-6.1.0-3.el7ost.noarch openstack-heat-api-cfn-6.1.0-3.el7ost.noarch heat-cfntools-1.3.0-2.el7ost.noarch openstack-heat-templates-0-0.3.96a0b0bgit.el7ost.noarch openstack-heat-common-6.1.0-3.el7ost.noarch python-heatclient-1.2.0-2.el7ost.noarch openstack-heat-api-6.1.0-3.el7ost.noarch openstack-tripleo-heat-templates-2.0.0-62.el7ost.noarch openstack-tripleo-heat-templates-liberty-2.0.0-62.el7ost.noarch openstack-heat-engine-6.1.0-3.el7ost.noarch Steps to Reproduce: ------------------- 1. Install RHOS-9 2. Update to uc 2018-03-01.3 3. Prepare oc for update 4. Start minor update 5. Try to list resources in overcloud stack with status IN_PROGRESS Additional info: ---------------- Virtual setup: 3controllers + 2comptues + 3ceph
Found the fix in OSP10, will need a backport.
Integration tests automation passed http://staging-jenkins2-qe-playground.usersys.redhat.com/view/DFG/view/cloud_apps/view/heat/job/DFG-cloud_apps-heat-13_director-rhel-virthost-3cont_1comp_3ceph-ipv4-vxlan-poc/8/testReport/heat_tempest_plugin.tests.functional.test_resources_list/
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2137