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
Try running
lab multicontainer-openshift finish
then
lab multucontainer-openshift start
For more clues have a look at what happened in /var/tmp/labs/
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
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
...
Try running
lab multicontainer-openshift finish
then
lab multucontainer-openshift start
For more clues have a look at what happened in /var/tmp/labs/
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
...
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
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.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.