Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Contrail Feature Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Accessing a Contrail OpenStack Helm Cluster

date_range 16-Oct-23

When the provisioning of Contrail with Helm charts is completed, use this topic to access the OpenStack and Contrail Web UI and prepare the OpenStack client for command-line interface (CLI).

Installing the OpenStack Client

Use this procedure to install the OpenStack CLI tool.

  1. Install the OpenStack client CLI tool on the primary Ubuntu host.

    content_copy zoom_out_map
    apt install python-dev python-pip -y
    pip install --upgrade pip
    pip install python-openstackclient    OR
    apt-get install python-openstackclient
  2. If you have problems installing the python-dev package, add another repository.

    content_copy zoom_out_map
    Add following repo to source "/etc/apt/sources.list"
    deb http://archive.ubuntu.com/ubuntu/ xenial-updates main universe multiverse
    apt-get update
    apt-get install python-dev

Create openstackrc File and Test OpenStack Client

  1. Create an openstackrc file.

    content_copy zoom_out_map
    cat > /root/openstackrc << EOF
    export OS_USERNAME=admin
    export OS_PASSWORD=password
    export OS_TENANT_NAME=admin
    export OS_AUTH_URL=http://keystone-api.openstack:35357/v3
    # The following lines can be omitted
    #export OS_TENANT_ID=tenantIDString
    #export OS_REGION_NAME=regionName
    export OS_IDENTITY_API_VERSION=3
    export OS_USER_DOMAIN_NAME=${OS_USER_DOMAIN_NAME:-"Default"}
    export OS_PROJECT_DOMAIN_NAME=${OS_PROJECT_DOMAIN_NAME:-"Default"}
    EOF
  2. Test the OpenStack client.

    content_copy zoom_out_map
    source openstackrc
    openstack server list
    openstack stack list
    openstack --help

Accessing the Contrail Web UI

  1. Access the Contrail Web UI using port 8143. Use the IP address of the host where the contrail-webui pod is running, with the port 8143.

    content_copy zoom_out_map
    https://<IP address host with contrail-webui>:8143
  2. At the Contrail login screen, enter the default username and password: admin, password.

Accessing OpenStack Horizon

The OpenStack Web UI (GUI) service is exposed by the Kubernetes service, using the IP address of the node port and the default port 31000.

  1. Check the NodePort used for the OpenStack Web UI pod.

    content_copy zoom_out_map
    kubectl get svc -n openstack | grep horizon-int
    horizon-int           NodePort    10.99.150.28     <none>        80:31000/TCP         4d
  2. Access the OpenStack Web UI and log in with the default username and password: admin, password.

    content_copy zoom_out_map
    http://<IP address NodePort>:31000/auth/login/?next=/
    

Accessing the Virtual Machine Console from Horizon

To access the virtual machine (VM) console, add the nova novncproxy fully-qualified domain name (FQDN) in the /etc/hosts file, using the host-ip where the osh-ingress pod is running.

The following example for MAC-OS shows the ingress pod running on the host with IP address 10.13.82.233.

content_copy zoom_out_map
/private/etc/hosts                                                                                                   
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost
10.13.82.233 nova-novncproxy.openstack.svc.cluster.local
Note:

If you don't want to make changes in /etc/hosts, you can replace the nova-novncproxy.openstack.svc.cluster.local portion in the URL with the IP address where the OSH ingress pod is running.

OpenStack References

For more information about accessing and using OpenStack, see the following OpenStack resources:

footer-navigation