cancel
Showing results for 
Search instead for 
Did you mean: 
nakon87
Mission Specialist
Mission Specialist
  • 2,631 Views

Templates are not created like guides after project creation (DO180 chapter7.6)

Jump to solution

I executed the following command to create a project.

oc new-project ${RHT_OCP4_DEV_USER}-template

 

The guide says that the following .json will be created, but the file does not exist.

/home/student/DO180/labs/multicontainer-openshift/todo-template.json

 

When I check it in my environment, the following exists.
Why doesn't the file exist?

[student@workstation multicontainer-application]$ls -l
total 8
-rw-rw-r--. 1 student student 300 Aug 16 11:45 db.sql
-rw-rw-r--. 1 student student 1799 Aug 16 11:45 todo-app.yml
natsukikon
Labels (2)
3 Solutions

Accepted Solutions
ricardodacosta
Moderator
Moderator
  • 2,626 Views

Try running

lab multicontainer-openshift finish

then 

lab multucontainer-openshift start

For more clues have a look at what happened in /var/tmp/labs/

 

View solution in original post

jordisola
Flight Engineer
Flight Engineer
  • 2,613 Views

Hi!

The `oc new-project` command does not create any file in your local filesystem, but only a new project in your openshift cluster.

The file you are expecting is to be created by the `lab multicontainer-openshift start` command.

As @ricardodacosta said, try finishing the exercise and start it again. If the files are not present, then something is not working as expected.

Hope that helps.

Jordi

View solution in original post

nakon87
Mission Specialist
Mission Specialist
  • 2,591 Views

Hi,
Thank you for your reply.

I checked / var / tmp / labs / multicontainer-openhift.
Everything was !!!!!!!SUCCESS !!!!!!! and there was no problem.

After checking the video, I was running this command.
The file was created and this issue was resolved.

$ oc process -f todo-templte.json | oc create -f -
pod/mysql created
pod/todoapi created
...

natsukikon

View solution in original post

4 Replies
ricardodacosta
Moderator
Moderator
  • 2,627 Views

Try running

lab multicontainer-openshift finish

then 

lab multucontainer-openshift start

For more clues have a look at what happened in /var/tmp/labs/

 

nakon87
Mission Specialist
Mission Specialist
  • 2,592 Views

Hi,
Thank you for your reply.

I checked / var / tmp / labs / multicontainer-openhift.
Everything was !!!!!!!SUCCESS !!!!!!! and there was no problem.

After checking the video, I was running this command.
The file was created and this issue was resolved.

$ oc process -f todo-templte.json | oc create -f -
pod/mysql created
pod/todoapi created
...

natsukikon
jordisola
Flight Engineer
Flight Engineer
  • 2,614 Views

Hi!

The `oc new-project` command does not create any file in your local filesystem, but only a new project in your openshift cluster.

The file you are expecting is to be created by the `lab multicontainer-openshift start` command.

As @ricardodacosta said, try finishing the exercise and start it again. If the files are not present, then something is not working as expected.

Hope that helps.

Jordi

nakon87
Mission Specialist
Mission Specialist
  • 2,589 Views

Hi!

As you reply to @ricardodacosta ,
I was able to solve it by executing the command that was being executed in the video.

The cause was that I didn't execute the command that originally created the file.

Thank you for contacting us.

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