Skip to content

Commit

Permalink
Pushing 4 scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Super User committed Jan 28, 2025
1 parent 985d72a commit cc2abe2
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 16 deletions.
25 changes: 9 additions & 16 deletions SCENARIO_LEAPP/breakfix0/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
breakfix1
breakfix0/SCENARIO_LEAPP
=========

This role targets to break a satellite and capsule server in a way that, neither hosts will be able to download patches from them nor any repos can be successully resynced on the satellite.

Example Error:

Status code: 500 when trying to install\update packages on the RHEL systems connected with the satellite server through a capsule server.

~~~
[MIRROR] katello-host-tools-4.2.3-5.el8sat.noarch.rpm: Status code: 500 for https://capsule.example.com/pulp/content/RedHat/Library/content/dist/layered/rhel8/x86_64/sat-client/6/os/Packages/k/katello-host-tools-4.2.3-5.el8sat.noarch.rpm (IP: XX.XX.XXX.XXX)
~~~
This role registers a RHEL8 client to satellite and simulates few problems while performing the LEAPP upgrade to RHEL9.

What we essentially do by this ansible role is:

* Confirm that the satellite is running
* Create an activation key
* Generate a registration command [ via Global registration method ] to register a host through the external capsule server
* Create and publish content view without the RHEL9 minor repos
* Generate a registration command [ via Global registration method ] to register the client to satellite
* Execute the command on the client and register it
* Update database records of satellite and capsule to break them.
* Configure EPEL on client and install openssl rpms from it.


Requirements
Expand All @@ -41,12 +34,12 @@ Example Playbook
This ansible role can be executed after creating a playbook in the following way.

~~~
# cat breakfix1.yaml
# cat breakfix0.yaml
---
- name: Deploy ansible role breakfix1 on target systems
- name: Deploy ansible role breakfix0 on target systems
hosts: satellite
roles:
- role: breakfix1
- role: breakfix0
tags: break
~~~

Expand All @@ -58,4 +51,4 @@ It is free software licensed under the terms of the GNU General Public License G
Author Information
------------------

This role is developed by Sayan Das <saydas@redhat.com>, <connectwithsayan03@gmail.com>.
This role is developed by Soham Majumdar <smajumda@redhat.com>, <csedeepm@gmail.com>.
50 changes: 50 additions & 0 deletions SCENARIO_PERFORMANCE/breakfix2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
breakfix2/SCENARIO_PERFORMANCE
=========

This role breaks the satellite by setting some large values to few of the satellite params.

What we essentially do by this ansible role is:

* Confirm that the satellite is running
* Set large values to puma max min threads, puma workers, foreman db pool, pulpcore workers


Requirements
------------

This ansible role requires the [foreman ansible modules](https://github.com/theforeman/foreman-ansible-modules/). Please install them before executing the role.

Role Variables
--------------

The `vars/main.yml` file contains the required variables for the ansible role. Adjust the values according to your environment.

Dependencies
------------

NA

Example Playbook
----------------

This ansible role can be executed after creating a playbook in the following way.

~~~
# cat breakfix2.yaml
---
- name: Deploy ansible role breakfix2 on target systems
hosts: satellite
roles:
- role: breakfix2
tags: break
~~~

License
-------

It is free software licensed under the terms of the GNU General Public License GPL v3 or later. A copy of the license can be obtained here: http://www.gnu.org/licenses/gpl-3.0.html

Author Information
------------------

This role is developed by Soham Majumdar <[email protected]>, <[email protected]>.
52 changes: 52 additions & 0 deletions SCENARIO_TFTP_ANSWERSFILE/breakfix3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
breakfix3/SCENARIO_TFTP
=========

This role breaks the satellite by adding incorrect param for tftp_dirs in satellite answers file.

What we essentially do by this ansible role is:

* Confirm that the satellite is running
* Enable tftp on satellite
* Add an incorrect param for tftp_dirs.
* Run satellite-installer


Requirements
------------

This ansible role requires the [foreman ansible modules](https://github.com/theforeman/foreman-ansible-modules/). Please install them before executing the role.

Role Variables
--------------

The `vars/main.yml` file contains the required variables for the ansible role. Adjust the values according to your environment.

Dependencies
------------

NA

Example Playbook
----------------

This ansible role can be executed after creating a playbook in the following way.

~~~
# cat breakfix3.yaml
---
- name: Deploy ansible role breakfix3 on target systems
hosts: satellite
roles:
- role: breakfix3
tags: break
~~~

License
-------

It is free software licensed under the terms of the GNU General Public License GPL v3 or later. A copy of the license can be obtained here: http://www.gnu.org/licenses/gpl-3.0.html

Author Information
------------------

This role is developed by Soham Majumdar <[email protected]>, <[email protected]>.
53 changes: 53 additions & 0 deletions SCENARIO_UPGRADE_INSTALLER/breakfix1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
breakfix1/SCENARIO_UPGRADE
=========

This role simulates some problems while doing a satellite upgrade.

What we essentially do by this ansible role is:

* Confirm that the satellite is running
* Change the IP in /etc/hosts
* Replace hostname -f with shortname
* Set incorrect tuning param in /etc/foreman-installer/scenarios.d/satellite.yaml
* Create a repo file in /etc/yum.repos.d/ as the rh-cloud.repo.


Requirements
------------

This ansible role requires the [foreman ansible modules](https://github.com/theforeman/foreman-ansible-modules/). Please install them before executing the role.

Role Variables
--------------

The `vars/main.yml` file contains the required variables for the ansible role. Adjust the values according to your environment.

Dependencies
------------

NA

Example Playbook
----------------

This ansible role can be executed after creating a playbook in the following way.

~~~
# cat breakfix1.yaml
---
- name: Deploy ansible role breakfix1 on target systems
hosts: satellite
roles:
- role: breakfix1
tags: break
~~~

License
-------

It is free software licensed under the terms of the GNU General Public License GPL v3 or later. A copy of the license can be obtained here: http://www.gnu.org/licenses/gpl-3.0.html

Author Information
------------------

This role is developed by Soham Majumdar <[email protected]>, <[email protected]>.

0 comments on commit cc2abe2

Please sign in to comment.