cancel
Showing results for 
Search instead for 
Did you mean: 
nakon87
Mission Specialist
Mission Specialist
  • 480 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
  • 475 Views

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

Jump to solution

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

Reply
Loading...
jordisola
Flight Engineer
Flight Engineer
  • 462 Views

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

Jump to solution

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

Reply
Loading...
nakon87
Mission Specialist
Mission Specialist
  • 440 Views

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

Jump to solution

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

Reply
Loading...
4 Replies
ricardodacosta
Moderator
Moderator
  • 476 Views

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

Jump to solution

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

Reply
Loading...
nakon87
Mission Specialist
Mission Specialist
  • 441 Views

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

Jump to solution

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

Reply
Loading...
jordisola
Flight Engineer
Flight Engineer
  • 463 Views

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

Jump to solution

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

Reply
Loading...
nakon87
Mission Specialist
Mission Specialist
  • 438 Views

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

Jump to solution

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
Reply
Loading...
Join the discussion
You must log in to join this conversation.