cancel
Showing results for 
Search instead for 
Did you mean: 
MuhammadSuleman
Mission Specialist
Mission Specialist
  • 5,284 Views

EX180 OC login issue

Dear Community

 

i tried EX180 exam and experience an unseen error on very simply step which was to login oc cluster ; i used the commands " oc login -u username -p password Master_api" provided in the instruction sheet however it keeps on giving error .

 

error: Missing or incomplete configuration info.  Please point to an existing, complete config file:


  1. Via the command-line flag --kubeconfig
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

i tried to log in using the credentials provided in test test instruction first page  , i tried to ping the examiner he said all is fine , follow exam ,..i tried multiple times. i tried to look for /.kube/config in user home directory it was not there with "ls -al" command , so any idea , any one experience same issue how he fixed? or is there any other username password provided part of task? , pls urgent reply since i have to try again and it is my biggest fear now that same will occur.

Labels (2)
0 Kudos
9 Replies
  • 5,208 Views

I face the similar issue in the exam what i did is login to Web console with provided credentials and copy the login command from there to CLI then it works for me
0 Kudos
MuhammadSuleman
Mission Specialist
Mission Specialist
  • 5,203 Views

Hi vijay, thanks for replying can you share the steps how to copy the login command from web console to CLI? This will be great since i am not getting how to copy from web console
  • 5,199 Views

Once you login successfully to openshift web on extreme right corner click on username and in drop down you will see the option copy login command click on that and relogin to cluster then click on display token Copy the login command and run on cli you will be able to perform the task now.
MuhammadSuleman
Mission Specialist
Mission Specialist
  • 5,092 Views

Thanks a lot Vijay , your solution worked and i Passed the exam with 254.
0 Kudos
sanjeev2
Cadet
Cadet
  • 4,362 Views

thanks worked for me as well.

0 Kudos
KayvonS
Mission Specialist
Mission Specialist
  • 5,119 Views

Hi, All login information that you need is provided on the 'lab' tab, once you create the environment, is it not?

0 Kudos
MuhammadSuleman
Mission Specialist
Mission Specialist
  • 5,091 Views

No exam envirnoment is little different ,
0 Kudos
  • 4,793 Views

In my Todays exam  i got same issues. 

0 Kudos
flozano
Moderator
Moderator
  • 4,349 Views

While using the "copy login command" feature of the web console may be required for OpenShift clusters that require SSO or multi-factor authentication, it should not be required in the classroom and exam setups. The error in the beggining if this thread suggests that the Linux user cannot create a ~/.kube/config file, or that the file is corrupted.

Are you using an unprivileged Linux user that as access to its $HOME folder? Does that user has access to an existing  ~/.kube folder?

 

If you do, oc login would crate the file (and the ~/.kube folder if it does not exist). But it is too easy to make that file or folder inaccessible, for example by doing an oc login using sudo and later without sudo, so you create the file and folder owned by root and later oc commands, without sudo, have no access fo the folder.

0 Kudos
Join the discussion
You must log in to join this conversation.