cancel
Showing results for 
Search instead for 
Did you mean: 
Mark05
Mission Specialist
Mission Specialist
  • 1,544 Views

Cannot to the OpenShift API during training excercise DO378

Jump to solution

Hi,

I'm following the "Red Hat Cloud-Native Microservices Development with Quarkus (DO378)" Course

and when running the "lab deploy-microserviceapp start" command to prepare for the excercise this error is displayed:

Checking prerequisites for Describing a MicroService Application
Verifying the Openshift Cluster is running:
. Log in to OpenShift as developer.........FAIL

Cannot connect to the OpenShift API. Please check your network connectivity.

 Since this is running inside VMs, I have no idea where to look.

I am able to open the OpenShift Admin Webconsole, so OpenShift is running.

Any ideas?

Thank you

Mark

Labels (1)
0 Kudos
2 Solutions

Accepted Solutions
Mark05
Mission Specialist
Mission Specialist
  • 1,527 Views

To answer my question:

edit the /usr/local/etc/ocp4.config

add the info from the Lab Environment to these vars

RHT_OCP4_DEV_USER

RHT_OCP4_DEV_PASSWORD

RHT_OCP4_MASTER_API

and save.

run the lab script again

 

Enjoy

View solution in original post

0 Kudos
shajain
Cadet
Cadet
  • 1,521 Views

Hi Mark,

I tried to reproduce the issue you mentioned and here are the findings:

1) I first directly ran the command "lab deploy-microservicesapp start" and the result is it was failing for me.
2) I followed a different approach.

   2.1) I completed the "lab-configure" guided exercise. 

   2.2) Run the "lab deploy-microservicesapp start" command again and this time it was successful for me.

One more thing which I noticed is that Mark you are missing an alphabet 's' in the command and trying to run "lab deploy-microserviceapp start" instead of "lab deploy-microservicesapp start".

Can you follow the above steps and reply about the same?

View solution in original post

0 Kudos
3 Replies
Mark05
Mission Specialist
Mission Specialist
  • 1,528 Views

To answer my question:

edit the /usr/local/etc/ocp4.config

add the info from the Lab Environment to these vars

RHT_OCP4_DEV_USER

RHT_OCP4_DEV_PASSWORD

RHT_OCP4_MASTER_API

and save.

run the lab script again

 

Enjoy

0 Kudos
shajain
Cadet
Cadet
  • 1,522 Views

Hi Mark,

I tried to reproduce the issue you mentioned and here are the findings:

1) I first directly ran the command "lab deploy-microservicesapp start" and the result is it was failing for me.
2) I followed a different approach.

   2.1) I completed the "lab-configure" guided exercise. 

   2.2) Run the "lab deploy-microservicesapp start" command again and this time it was successful for me.

One more thing which I noticed is that Mark you are missing an alphabet 's' in the command and trying to run "lab deploy-microserviceapp start" instead of "lab deploy-microservicesapp start".

Can you follow the above steps and reply about the same?

0 Kudos
Mark05
Mission Specialist
Mission Specialist
  • 1,512 Views

Hi Shajain,

Thank you for your solution as it looks more appropiate than mine.

It also updates the /usr/local/etc/ocp4.config file.

So yes that works good, thank you.

the missing s is just a typo, did not copy and paste the command.

Thank you

Mark

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