Airship utility CLI access
Go to file
Trung Thai 5f3ce78d7f The script creates and sets up of user K8S profile
*  Allow users the ability to connect K8S cluster remotely
  *  Authenthicate to UCP Keystone
  *  Then able remotely execute into containers
  *  Install all required software components

Change-Id: I1062ab14d1c643e1161b6fcfb870eaee55f5e64b
2019-09-26 10:51:29 -04:00
calicoctl-utility Add fixes to user logging in calicoctl utility container logs 2019-08-29 23:37:42 +05:30
ceph-utility Merge "Add fixes to user logging in calicoctl utility container logs" 2019-09-12 14:33:59 +00:00
compute-utility Initial Commit of compute-utility container code 2019-08-20 15:14:54 +00:00
Dockerfiles Add NC Cluster Testing utility chart and Dockerfile 2019-09-13 11:43:45 -05:00
docs [ceph]: Added procedure to stop the osd pod from being scheduled 2019-08-22 14:35:23 -05:00
jmphost The script creates and sets up of user K8S profile 2019-09-26 10:51:29 -04:00
ncct-utility Add NC Cluster Testing utility chart and Dockerfile 2019-09-13 11:43:45 -05:00
openstack-utility Add Tracking User Identity in openstack utility container logs 2019-08-22 06:20:50 +00:00
tools Zuul gates setup for Utility Containers 2019-08-20 14:48:04 +00:00
zuul.d Merge "Initial Commit of compute-utility container code" 2019-08-22 17:29:50 +00:00
.gitignore Chart/Dockerfile for Ceph Utility Container 2019-01-10 10:08:55 -06:00
.gitreview Add .gitreview 2019-08-07 14:41:35 +00:00
.zuul.yaml Add noop-jobs 2019-08-06 18:50:22 +02:00
Compute_Utility_Readme Initial Commit of compute-utility container code 2019-08-20 15:14:54 +00:00
install_ceph_utility.sh Chart/Dockerfile for Ceph Utility Container 2019-01-10 10:08:55 -06:00
install_compute_utility.sh Initial Commit of compute-utility container code 2019-08-20 15:14:54 +00:00
install_openstack_utility.sh Chart/Dockerfile for Openstack Utility Container 2019-08-20 14:56:51 +00:00
LICENSE Initial commit 2018-09-05 14:42:30 -05:00
Makefile Adding the list of missing directories in excludes Makefile 2019-09-05 16:29:18 +00:00
Openstack_Utility_Readme Chart/Dockerfile for Openstack Utility Container 2019-08-20 14:56:51 +00:00
README Edit nccli string to utilscli for Ceph Utility Container 2019-08-08 06:19:58 +00:00

Utility Container
-----------------
1. Ceph utility Container

Installation
------------
1. Add the below to /etc/sudoers

root    ALL=(ALL) NOPASSWD: ALL
ubuntu  ALL=(ALL) NOPASSWD: ALL

2. Install the latest versions of Git, CA Certs & Make if necessary

#!/bin/bash
set -xe

sudo apt-get update
sudo apt-get install --no-install-recommends -y \
        ca-certificates \
        git \
        make \
        jq \
        nmap \
        curl \
        uuid-runtime

3. Proxy Configuration

In order to deploy OpenStack-Helm behind corporate proxy servers, add the following entries to openstack-helm-infra/tools/gate/devel/local-vars.yaml.

proxy:
  http: http://username:password@host:port
  https: https://username:password@host:port
  noproxy: 127.0.0.1,localhost,172.17.0.1,.svc.cluster.local

Add the address of the Kubernetes API, 172.17.0.1, and .svc.cluster.local to your no_proxy and NO_PROXY environment variables.

export no_proxy=${no_proxy},172.17.0.1,.svc.cluster.local
export NO_PROXY=${NO_PROXY},172.17.0.1,.svc.cluster.local

4. Clone the OpenStack-Helm Repos

#!/bin/bash
set -xe

git clone https://git.openstack.org/openstack/openstack-helm-infra.git
git clone https://git.openstack.org/openstack/openstack-helm.git

5. Deploy Kubernetes & Helm

cd openstack-helm
./tools/deployment/developer/common/010-deploy-k8s.sh

6. Install OpenStack-Helm

Setup Clients on the host and assemble the charts
./tools/deployment/developer/common/020-setup-client.sh

Deploy the ingress controller
./tools/deployment/developer/common/030-ingress.sh

7. Deploy Ceph

./tools/deployment/developer/ceph/040-ceph.sh

Activate the OpenStack namespace to be able to use Ceph
./tools/deployment/developer/ceph/045-ceph-ns-activate.sh

8. Deploy Porthole

git clone https://github.com/att-comdev/porthole.git

cd porthole
./install_utility.sh

Usage
-----

Get in to the utility pod using kubectl exec. To perform any operation on the ceph cluster use the below example.

example:
   utilscli ceph osd tree
   utilscli rbd ls
   utilscli rados lspools

TODO
----
1. Customize oslo filters to restrict commands.