Bug 1866880

Summary: Ironic erroring with "the view function did not return a valid response"
Product: OpenShift Container Platform Reporter: Stephen Benjamin <stbenjam>
Component: Bare Metal Hardware ProvisioningAssignee: Julia Kreger <jkreger>
Bare Metal Hardware Provisioning sub component: ironic QA Contact: Amit Ugol <augol>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: bfournie, rpittau
Version: 4.6   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-11 15:17:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Benjamin 2020-08-06 17:16:50 UTC
On the latest nightly I saw these errors. Unfortunately the ironic logs weren't gathered, but this error message is new to us:

 level=debug msg="The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.'"
level=debug msg="2020/08/06 16:43:47 [ERROR] module.masters: eval: *terraform.EvalApplyPost, err: could not inspect: could not inspect node, node is currently 'inspect failed', last error was 'Failed to inspect hardware. Reason: unable to start inspection: HttpException: 500: Server Error for url: http://172.22.0.2:5050/v1/introspection/ef6258b3-feea-438a-92c8-ccd3d94a5907?manage_boot=False, Internal server error (TypeError): 'dict' object is not callable"
level=debug msg="The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.'"
level=debug msg="2020/08/06 16:43:47 [ERROR] module.masters: eval: *terraform.EvalSequence, err: could not inspect: could not inspect node, node is currently 'inspect failed', last error was 'Failed to inspect hardware. Reason: unable to start inspection: HttpException: 500: Server Error for url: http://172.22.0.2:5050/v1/introspection/ef6258b3-feea-438a-92c8-ccd3d94a5907?manage_boot=False, Internal server error (TypeError): 'dict' object is not callable"
level=debug msg="The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.'"
level=error
level=error msg="Error: could not inspect: could not inspect node, node is currently 'inspect failed', last error was 'Failed to inspect hardware. Reason: unable to start inspection: HttpException: 500: Server Error for url: http://172.22.0.2:5050/v1/introspection/8fd6cdba-aed1-494b-85ca-fd2e44019629?manage_boot=False, Internal server error (TypeError): 'dict' object is not callable"
level=error msg="The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.'"
level=error
level=error msg="  on ../../tmp/openshift-install-455674588/masters/main.tf line 1, in resource \"ironic_node_v1\" \"openshift-master-host\":"
level=error msg="   1: resource \"ironic_node_v1\" \"openshift-master-host\" {"
level=error
level=error
level=error
level=error msg="Error: could not inspect: could not inspect node, node is currently 'inspect failed', last error was 'Failed to inspect hardware. Reason: unable to start inspection: HttpException: 500: Server Error for url: http://172.22.0.2:5050/v1/introspection/c0028cc5-7008-45c5-a0f7-f2c8067b7c38?manage_boot=False, Internal server error (TypeError): 'dict' object is not callable"
level=error msg="The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.'"
level=error
level=error msg="  on ../../tmp/openshift-install-455674588/masters/main.tf line 1, in resource \"ironic_node_v1\" \"openshift-master-host\":"
level=error msg="   1: resource \"ironic_node_v1\" \"openshift-master-host\" {"

Comment 1 Bob Fournier 2020-08-11 15:17:20 UTC
This is the issue with the versions of werkzeug and Flask, tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1867088. 

Closing this as a duplicate.

*** This bug has been marked as a duplicate of bug 1867088 ***