Go to file
Parsons, Cliff (cp769u) f3fb2d5680 Add capability to add a test user/grants to test database
This patch will add the capability to add a test user and some
associated grants for the existing test database that gets added
when the database utility pods are started. DBUtils create_user,
query_user, and delete_user functions are provided so that a test
program can perform the needed functions to test backup/restore of
database users and corresponding grant information. Both MariaDB
and PostgreSQL test databases are updated for testing users/grants
in backup/restore.

In addition, capability to cleanup the test database backups is
added to reduce the test artifact footprint left by the utility
framework. The capability to delete a single backup will actually
be an operation that an operator/user can perform using dbutils
as well. This is added for mariadb/postgresql/etcd utility pods.

Change-Id: I683eb41c9a6ce2dc02018938a1d55a30bb87f3b3
2020-10-21 13:41:28 +00:00
2020-09-21 20:05:43 +00:00
2020-08-19 17:45:28 +00:00
2019-08-07 14:41:35 +00:00
2018-09-05 14:42:30 -05:00

Utility Containers

Utility containers give Operations staff an interface to an Airship environment that enables them to perform routine operations and troubleshooting activities. Utility containers support Airship environments without exposing secrets and credentials while at the same time restricting access to the actual containers.

Prerequisites

=======

Deploy OSH-AIO.

Deploy the Openstack-Helm All-in-One environment starting from here up through the section Deploy Compute Kit

The recommended minimum system requirements for a full deployment are:

  • 16 GB RAM
  • 8 Cores
  • 48 GB HDD

=======

  1. To run further commands from the CLI manually, execute the following to set up authentication credentials

     export OS_CLOUD=openstack_helm
    
  2. Clone the Porthole repo to openstack-helm project

     git clone https://opendev.org/airship/porthole.git
    

To deploy utility pods

  1. To Deploy Utility containers, Please run required scripts

     cd porthole
    
  2. Deploy Calico-utility. ./tools/deployment/utilities/005-calicoctl-utility.sh

  3. Deploy Ceph-utility.

     ./tools/deployment/utilities/010-ceph-utility.sh
    
  4. Deploy Compute-utility.

     ./tools/deployment/utilities/020-compute-utility.sh
    
  5. Deploy Etcdctl-utility.

     ./tools/deployment/utilities/030-etcdctl-utility.sh
    
  6. Deploy Mysqlclient-utility.

     ./tools/deployment/utilities/040-Mysqlclient-utility.sh
    
  7. Deploy Openstack-utility.

     ./tools/deployment/utilities/050-openstack-utility.sh
    
  8. Deploy `Postgresql-utility'. ./tools/deployment/utilities/060-postgresql-utility.sh

NOTE

The PostgreSQL utility container needed Postgresql DB Pods for Testing. Please follow below Link. [PostgreSQL README](https://opendev.org/airship/porthole/src/branch/master/images/postgresql-utility/README.md).

Description
Airship utility CLI access
Readme 8.4 MiB
Languages
Smarty 66.4%
Python 21.5%
Shell 9.4%
Makefile 2.7%