Pivotal Knowledge Base

Follow

"icm_client list" fails with "An unexpected error"

Environment

  • PHD 1.x
  • PHD 2.x

Symptom

Before starting PHD upgrade from 1.1.1 to 2.0.1, run "icm_lcient list" on Pivotal Command Center (PCC) server as gpadmin user to check the existing cluster. But the command fails with following error.

[gpadmin@sjc1dspibd06 ~]$ icm_client list
Fetching installed clusters
An unexpected error has occured. Please fix the error and try again. [ERROR]

However the command could complete without error with superuser root.

[root@sjc1dspibd06 log]# icm_client list
Fetching installed clusters
Installed Clusters:
Cluster ID: 1 Cluster Name: Predix_DF_PHD_Lab_CLuster PHD Version: 2.0 Status: started

Cause

Some network proxy related environment variables are set in .bash_profile of gpadmin user, which cause icm_client to fail access PCC web services.

[gpadmin@sjc1dspibd06 ~]$ cat .bash_profile
# .bash_profile
......
export http_proxy=http://proxy-src.research.ge.com:8080
export HTTPS_PROXY=http://proxy-src.research.ge.com:8080
export https_proxy=http://proxy-src.research.ge.com:8080
export HTTP_PROXY=http://proxy-src.research.ge.com:8080
export rsync_proxy=proxy-src.research.ge.com:8080 #MacPorts
export RSYNC_proxy=proxy-src.research.ge.com:8080
export no_proxy="devcloud.sw.ge.com, openge.ge.com, yum.crd.ge.com" #Atlassian Stash and OpenGE
export ALL_PROXY=$http_proxy

Fix

Remove the proxy environment variable settings from .bash_profile or unset them in command line before run icm_client.

gpadmin@sjc1dspibd06 ~]$ unset http_proxy rsync_proxy https_proxy HTTPS_PROXY HTTP_PROXY RSYNC_proxy
[gpadmin@sjc1dspibd06 ~]$ env|grep proxy
[gpadmin@sjc1dspibd06 ~]$ icm_client list
Fetching installed clusters
Installed Clusters:
Cluster ID: 1 Cluster Name: Predix_DF_PHD_Lab_CLuster PHD Version: 2.0 Status: started

Comments

Powered by Zendesk