Installing Openstack Skyline Console (UI of Openstack Modern Dashboard)

Skyline Console is one part of OpenStack Modern Dashboard, which provides a web based user interface to OpenStack services including Nova, Swift, Keystone, etc.

This blog describes how to install and configure the Skyline Console service. Before you begin, you must have a ready OpenStack environment. At least it includes keystone, glance, nova, neutron and skyline-apiserver service. To install Skyline-APIServer refer to the previous blog

Reference: https://docs.openstack.org/skyline-console/latest/install/index.html

NOTE: This blog is using Ubuntu 20.04 LTS for the Operating System

1. Install system dependencies

$ sudo apt update
$ sudo apt install git python3-pip nginx make ssl-cert
$ sudo apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
  1. install nvm (version control system for Node.js)
$ wget -P /root/ --tries=10 --retry-connrefused --waitretry=60 --no-dns-cache --no-cache  <https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh>
$ bash /root/install.sh
$ . /root/.nvm/nvm.sh

2. install Node.Js

$ nvm install --lts=gallium
$ nvm alias default lts/gallium
$ nvm use default

3. Check version node and npm

$ node -v
v16.*.*
$ npm -v
8.*.*

4. Install Yarn

$ npm install -g yarn

2. Install & Configure Skyline Console Component

This blog will install Skyline console from source code

  1. Git clone the repository from OpenDev (GitHub)
$ cd ${HOME}
$ git clone <https://opendev.org/openstack/skyline-console.git

If the following error occur, run this command: sudo apt install -y ca-certificates

fatal: unable to access ‘<https://opendev.org/openstack/skyline-sonsole.git/’:> server certificate verification failed. CAfile: none CRLfile: none

2. Install Skyline-console

$ cd ${HOME}
$ make package
$ sudo python3 -m pip install --force-reinstall dist/skyline_console-*.whl

3. ensure that skyline folders have been created.

$ sudo mkdir -p /etc/skyline /var/log/skyline

NOTE: Ensure that skyline.yaml file is available on /etc/skyline/ folder

4. Generate nginx configuration file

$ skyline-nginx-generator -o /etc/nginx/nginx.conf
$ sudo sed -i "s/server .* fail_timeout=0;/server 0.0.0.0:28000 fail_timeout=0;/g" /etc/nginx/nginx.conf

Change the upstream skyline value in /etc/nginx/nginx.conf to 0.0.0.0:28000. The Default value is unix:/var/lib/skyline/skyline.sock.

3. Finalize Installation

Start nginx service

$ sudo systemctl start nginx.service
$ sudo systemctl enable nginx.service

Now you can access Openstack Skyline UI at http://<IPADDRESS>:9999/

Leave a Reply

Your email address will not be published. Required fields are marked *