IBM Support

ICP upgrade 3.1.2 to 3.2.0 failed with Unexpected response code 401 from request Error

Troubleshooting


Problem

This technote describes an issue with the ICP upgrade 3.1.2 to 3.2.0. The upgrade appears to complete however, it also appears to skip a number of steps. At the end of the upgrade when you try to log in with the default admin credentials results in an error. 
After rollback of ​k8s You may attempt to execute the upgrade-prepare before re-attempting the k8s-upgrade action.  You will be blocked for that execution since the k8s rollback does not remove images from the registry so it considered that you have insufficient space in registry. 
You have then to enter the inception pod and overwrite the registry size variable from a calculated value to a fixed value that is small enough to pass the check rule then re-execute the upgrade-prepare from inside the modified container.
After supplying valid credentials the follow response was received:

Symptom

Unexpected response code 401 from request: GET https://icp-management-ingress:8443/idmgmt/identity/api/v1/users/admin/getTeamResources?resourceType=namespace HTTP/1.1 Accept: application/json user-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 Authorization: bearer *** HTTP/1.1 401 Server: openresty/1.13.6.2 Date: Tue, 01 Oct 2019 22:01:15 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: close Vary: Origin, Accept-Encoding Access-Control-Allow-Credentials: true X-Xss-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Strict-Transport-Security: max-age=15552000; includeSubDomains X-Download-Options: noopen X-Content-Type-Options: nosniff X-Dns-Prefetch-Control: off {"error":{"statusCode":401,"name":"Error","message":"An error occurred while accessing the kube services rest api"}}

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSBS6K","label":"IBM Cloud Private"},"Component":"Upgrade","Platform":[{"code":"PF016","label":"Linux"}],"Version":"3.1.2 to 3.2.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
04 October 2019

UID

ibm11078317