Skip to content

Commit

Permalink
added first scenarios files
Browse files Browse the repository at this point in the history
  • Loading branch information
lgchiaretto committed Nov 13, 2024
1 parent d3519bc commit b34960c
Show file tree
Hide file tree
Showing 18 changed files with 143 additions and 149 deletions.
2 changes: 1 addition & 1 deletion content/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nav:

asciidoc:
attributes:
lab_name: "I'm the lab_name var"
lab_name: "OpenShift Virtualization: Troubleshooting common issues"
release-version: master
page-pagination: true
my_var: "foo"
Expand Down
22 changes: 16 additions & 6 deletions content/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
* xref:module-01.adoc[1. RPM Native Container]
** xref:module-01.adoc#repositories[Repositories]
** xref:module-01.adoc#software[Software]
* xref:lab-environment.adoc[Lab Environment]
* xref:module-02.adoc[2. GitHub Sourced Container]
** xref:module-02.adoc#prerequisites[Install Prerequisites]
** xref:module-02.adoc#container[Enable Container]
* xref:exercise1-break.adoc[1. Virtual Machine is not starting]
** xref:exercise1-break.adoc#break[Break the exercise]
** xref:exercise1-check.adoc#check[Check your work]
* xref:exercise2-break.adoc[2. Virtual Machine Pending]
** xref:exercise2-break.adoc#break[Break the exercise]
** xref:exercise2-check.adoc#check[Check your work]
* xref:exercise3-break.adoc[3. Application is not being accessed externally]
** xref:exercise3-break.adoc#break[Break the exercise]
** xref:exercise3-check.adoc#check[Check your work]
* xref:exercise4-break.adoc[4. Virtual Machine with performance degraded]
** xref:exercise4-fix.adoc#break[Break the exercise]
** xref:exercise4-check.adoc#check[Check your work]
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
= Building an Application with rpms
= Check your work

== Downloading the UBI
[#scenario]
== Scenario

The primary goal in this lab is to investigate the cause of the failure and take corrective action to bring `exercise1` virtual machine online again.
Your task is to identify the root cause and resolve the issue.

In this lab, you will be installing software into the container
image running as an interactive application. To do this you will
Expand Down
21 changes: 21 additions & 0 deletions content/modules/ROOT/pages/exercise1-break.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[#scenario]
= Virtual Machine is not starting

== Scenario

The primary goal in this scenario is to investigate the cause of the failure and take corrective action to bring `exercise1` virtual machine `Running` state again.
Your task is to identify the root cause and resolve the issue.

== Executing the lab script

In this exercise setup, you first need to access the bastion trough `bastion_url` to gain entry into the lab environment. From the terminal, access SSH the node `bastion_url` using `userX` (where X is the number of your user)

```
ssh userX@bastion_url
```

Once connected to the bastion host run the command lab to break the lab.

```
lab break exercise1
```
8 changes: 8 additions & 0 deletions content/modules/ROOT/pages/exercise1-check.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[#check]
= Check your work on exercise1

To check you work exercute the `grade` lab.

```
lab grade exercise1
```
21 changes: 21 additions & 0 deletions content/modules/ROOT/pages/exercise1-guided.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[#fix]
= Fix Virtual Machine is not starting

== Scenario

The primary goal in this scenario is to investigate the cause of the failure and take corrective action to bring `exercise1` virtual machine online again.
Your task is to identify the root cause and resolve the issue.

== Executing the lab script

In this exercise setup, you first need to access the bastion trough `bastion_url` to gain entry into the lab environment. From the terminal, access SSH the node `bastion_url` using `userX` (where X is the number of your user)

```
ssh userX@bastion_url
```

Once connected to the bastion host run the command lab to break the lab.

```
lab break exercise1
```
20 changes: 20 additions & 0 deletions content/modules/ROOT/pages/exercise2-break.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[#scenario]
= Virtual Machine is with status Pending

== Scenario

The primary goal in this scenario is to investigate the cause of the failure and take corrective action to bring `exercise2` virtual machine online again.
Your task is to identify the root cause and resolve the issue.

== Executing the lab script

In this exercise setup, you first need to access the bastion trough `bastion_url` to gain entry into the lab environment. From the terminal, access SSH the node `bastion_url` using `userX` (where X is the number of your user)

```
ssh userX@bastion_url
```

Once connected to the bastion host run the command lab to break the lab.

```
lab break exercise2
8 changes: 8 additions & 0 deletions content/modules/ROOT/pages/exercise2-check.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[#check]
= Check your work on exercise2

To check you work exercute the `grade` lab.

```
lab grade exercise2
```
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise2-guided.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[#fix]
= Fix Virtual Machine is not starting

== Scenario
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise3-break.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[#scenario]
= Application is not being accessed externally

== Scenario
8 changes: 8 additions & 0 deletions content/modules/ROOT/pages/exercise3-check.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[#check]
= Check your work on exercise3

To check you work exercute the `grade` lab.

```
lab grade exercise3
```
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise3-guided.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[#fix]
= Fix Application is not being accessed externally

== Scenario
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise4-break.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[#scenario]
= Virtual Machine with performance degraded

== Scenario
8 changes: 8 additions & 0 deletions content/modules/ROOT/pages/exercise4-check.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[#check]
= Check your work on exercise4

To check you work exercute the `grade` lab.

```
lab grade exercise4
```
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise4-guided.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[#fix]
= Virtual Machine with performance degraded

== Scenario
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/lab-environment.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= Lab Environment

[#lab]
== Lab description
138 changes: 0 additions & 138 deletions content/modules/ROOT/pages/module-02.adoc

This file was deleted.

4 changes: 2 additions & 2 deletions default-site.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
site:
title: Showroom Template Demo
url: https://redhat-scholars.github.io/course-template
title: Troubleshooting OpenShift Virtualization Lab
url: https://github.com/opentraining-labs-customizations/rh1-lab17-ocpvirt
start_page: modules::index.adoc

content:
Expand Down

0 comments on commit b34960c

Please sign in to comment.