(Click to open topic with navigation)
This topic contains instructions on how to install Moab Viewpoint (Viewpoint).
In this topic:
Viewpoint requires a connection to Moab Server and MWS installed on the shared host. Viewpoint may also be installed on that shared host or on a different host. For documentation clarity, the instructions refer to the shared Moab Server and MWS Server host as the Moab Server Host and the host on which you install Viewpoint Server as the Viewpoint Server Host.
In this section:
If your site is running firewall software on its hosts, you will need to configure the firewall to allow connections to the necessary ports.
Location | Ports | Functions | When Needed |
---|---|---|---|
Viewpoint Server Host | 8081 | Viewpoint Web Server Port | Always |
Moab Server Host | 8443 | Viewpoint File Manager Port | Always |
Viewpoint Database Host | 5432 | Viewpoint PostgreSQL Database Port | If you will be installing the Viewpoint Database on a different host from the Viewpoint Server |
See 2.11 Opening Ports in a Firewall for general instructions and an example of how to open ports in the firewall.
3.12.1.B Install and Initialize PostgreSQL Server
The Viewpoint PostgreSQL database may be installed on the Viewpoint Server Host or on different host. If you will install on a different host, and your configuration uses firewalls, open the necessary port. See 3.12.1.A Open Necessary Ports for more information.
On the host you have chosen to install the Viewpoint PostgreSQL database, do the following:
[root]# zypper install postgresql-server [root]# service postgresql start
Edit or add a "host" line in the pg_hba.conf file for the interface from which the Viewpoint Server will be connecting to the database and ensure that it specifies a secure password-based authentication method (for example, md5).
[root]# vi /var/lib/pgsql/data/pg_hba.conf # Replace 127.0.0.1 with the IP address of the Viewpoint Server Host if the # Viewpoint PostgreSQL server is on a separate host from the Viewpoint server. host all all 127.0.0.1/32 md5 host all all ::1/128 md5
[root]# vi /var/lib/pgsql/data/postgresql.conf # Replace <viewpoint-database-host> with the IP address on which the database server is to listen for connections # from the Viewpoint server. This will normally be the hostname or IP address of the Viewpoint Database Host. listen_addresses = '<viewpoint-database-host>'
[root]# systemctl enable postgresql.service [root]# systemctl restart postgresql.service
3.12.1.C Configure the ViewpointQueryHelper Plugin
You will need to configure the MWS ViewpointQueryHelper plugin to allow Viewpoint to query the Insight MongoDB (MongoDB host, database, port, and user information).
Do the following:
Click to enlarge |
Key | Value Description |
---|---|
host | Name or IP address of the host on which Insight MongoDB resides. |
database | Name of the MongoDB database to which Insight writes. |
port | Port number for Insight MongoDB (typically 27017). |
user | User name with which MWS connects to Insight MongoDB. |
password | Password used by the user listed in the value for the "user" key. |
This is the user name and password you specified when installing the Insight MongoDB. See 3.11.2.B Install and Configure MongoDB for the user and password information.
See also About Moab Web Services Plugins in the Moab Web Services Reference Guide for more information.
3.12.2 Install Viewpoint Server
You must complete the prerequisite tasks earlier in this topic before installing the Viewpoint Server. See 3.12.1 Prerequisites.
Do the following:
These instructions assume you will install the Viewpoint PostgreSQL database on a host which already has a PostgreSQL database installed (e.g. your Moab Server host). Depending on your system confirmation, this may be on the Moab Database Host or on some other PostgreSQL Database Host.
If you choose to install the Viewpoint PostgreSQL database on a host that does not already have a PostgreSQL database, you will need to install the Viewpoint PostgreSQL database. See 3.12.1.B Install and Initialize PostgreSQL Server for more information.
On the host containing the Viewpoint PostgreSQL, do the following:
[root]# su - postgres [postgres]$ psql CREATE USER moab_viewpoint WITH PASSWORD 'changeme!'; CREATE DATABASE moab_viewpoint WITH OWNER=moab_viewpoint; \q [postgres]$ exit
[root]# zypper update zypper
[root]# zypper install moab-viewpoint-filemanager
Step 1. Create CA (Certificate Authority).
Step 2. Create server (WebDav server) certificate and key.
Step 3. Create client certificate and key.
Step 4. Configure WebDav server.
For example:
[root]# cd /opt/acfileman/utils/certs-handling [root]# ./ac-cert-tool.sh create-ca [root]# ./ac-cert-tool.sh create-server-cert --altnames 127.0.0.1,localhost <moab_host> [root]# ./ac-cert-tool.sh create-client-cert [root]# bash certs/servers/<moab_host>/install-server-certs.sh -u root:root -p 600 /opt/acfileman/etc/ [root]# vi /opt/acfileman/etc/uwsgi.ini
Provided you followed the above steps, your key files will have been installed in /opt/acfileman/etc/server-cert.pem and /opt/acfileman/etc/server-key.pem. To change the location where your certificates are stored, edit the /opt/acfileman/etc/uwsgi.ini file accordingly.
[root]# systemctl enable acfileman.service [root]# systemctl restart acfileman.service
[root]# vi /opt/moab/etc/moab.cfg
ENABLENEGJOBPRIORITY TRUE
You must set this Moab parameter to support Viewpoint features that enable users to specify user priorities for their jobs. See Advanced Settings in the Viewpoint Reference Guide for more information on enabling user priorities for jobs.
[root]# vi /opt/moab/etc/moab.cfg USEMOABJOBID TRUE
[root]# systemctl restart moab.service
On the Moab Server Host, register Viewpoint as a client in MWS.
The following is a suggested script for generating the client secret:
dd if=/dev/urandom count=24 bs=1 2>/dev/null | base64
[root]# vi /opt/mws/etc/mws-config.groovy grails.plugin.springsecurity.oauthProvider.clients = [ [ clientId: "viewpoint", clientSecret: "<ENTER-CLIENTSECRET-HERE>", authorizedGrantTypes: ["password"] ] ]
[root]# systemctl restart tomcat.service
[root]# zypper install moab-viewpoint
/etc/apache2/conf.d/viewpoint.conf
Virtual host configurations should be made within this file. See http://httpd.apache.org/docs/2.2/vhosts/ for more information.
[admin] username = viewpoint-admin password = pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w= [environment] VIEWPOINT_DATABASE_NAME = moab_viewpoint VIEWPOINT_DATABASE_USER = moab_viewpoint VIEWPOINT_DATABASE_PASSWORD = changeme! VIEWPOINT_DATABASE_HOST = localhost VIEWPOINT_DATABASE_PORT = 5432 [settings] past_hours = 24 future_hours = 4
Be aware of the following:
To encrypt the password, do the following (substituting "changeme!" with your password):
[root]# echo -n 'changeme!' | /opt/viewpoint/bin/viewpoint makehash Using default hasher pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w=
The default hashing algorithm is pbkdf2_sha256. To show the other available algorithms, run /opt/viewpoint/bin/viewpoint makehash --help
bcrypt_sha256 and bcrypt are not supported on Red Hat 7-based systems.
[environment]: "changeme!", although unencrypted, is the default for the Viewpoint database password. If you do not change this password, your Viewpoint database will not be secure. For tips on choosing a good password, see https://www.us-cert.gov/ncas/tips/ST04-002.
Viewpoint has a number of environment variables used to configure a Viewpoint installation and troubleshoot operating issues. See 5.4.1 General configuration issues for more information about Viewpoint environment variables.
[root]# /opt/viewpoint/bin/viewpoint migrate
[root]# systemctl enable apache2.service [root]# systemctl restart apache2.service
3.12.3 Enable Access to the Viewpoint File Manager
This section finishes the SSL authentication steps you began when you installed moab-viewpoint-filemanager -- that is, Step 5 of /opt/acfileman/utils/certs-handling/Readme.txt that you skipped earlier.
Do the following:
[root]# cd /opt/acfileman/utils/certs-handling/certs
[root]# scp ca/ca-cert.pem client/client-cert.pem client/client-key.pem root@<viewpoint_host>:/opt/viewpoint/lib/viewpoint/webdav_client
[root]# cd /opt/viewpoint/lib/viewpoint/webdav_client [root]# chmod 600 ca-cert.pem client-key.pem client-cert.pem [root]# chown wwwrun:www ca-cert.pem client-key.pem client-cert.pem [root]# systemctl restart apache2.service
Viewpoint uses an RLM server to validate licensed features. See 1.3 RLM Licensing Model for more information about RLM licensing.
Do the following:
The Viewpoint administrative user has very limited rights.
The Licensed Features page displays with the Viewpoint License information. For example:
Click to enlarge |
Click to enlarge |
Do the following:
Click to enlarge |
If your configuration uses a secure connection between Viewpoint and MWS, the URL must contain "https" and the secure port.
In the Node Names to Ignore field, enter the nodes that you want Viewpoint to ignore. Separate node names with a comma (,).
Choose whether you wish to use Google Analytics to help improve this product.
Do the following:
Click to enlarge |
Field | Description |
---|---|
Server URL | The name of the Moab Server host on which you installed the File Manager Service and the port number for the File Manager Service (for example, "https://<host name>:8443"). |
Server Verify SSL | When enabled:
|
SSL Certificate File | The location of the SSL certificate file on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/client-cert.pem. |
SSL Certificate Key | The location of the SSL certificate key on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/client-key.pem. |
CA Bundle File | The location of the CA bundle file on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/ca-cert.pem. |
Server Root Path | The root URL path where File Manager Service publishes its API (usually it is simply "/"). |
Accessible Roots | The root folders that users can access from the File Manager page. This can be used to limit users' access to certain directories, without giving them access to the "/" folder on the remote file system (RFS). Separate root folders with a colon (for example, /home:/usr/share/groups).
For example, if you define /home and /usr/share/groups as accessible roots, although users will be able to see a tree similar to the following, the users will not be able to see (access) anything inside /usr other than "share" and anything inside "share" other than "groups". | - /home/ | - user1/ - user2/ - youruser/ - /usr/ | - share/ | - groups/ |
Maximum Upload Size (bytes) | Total amount of data that can be uploaded in a single file. A value of '-1' means unlimited. |
3.12.7 Verify Base Roles are Present
Viewpoint comes configured with several default (base) roles. See Differences in version 9.1 of the Moab HPC Suite Release Notes for more information.
As part of the Viewpoint installation, you will need to verify that the base roles are present.
Do the following:
Click to enlarge |
Click to enlarge |
However, if one of the base roles is not present, you will need to recreate (restore) the base roles.
Click to enlarge |
You can also modify the default roles and create new roles as needed. See About Roles in the Moab ViewpointReference Guide for more information.
3.12.8 Grant Users Access to Viewpoint
For a user to be able to access Viewpoint, he or she must be a member of a principal.
Do the following:
Click to enlarge |
Click to enlarge |
Click to enlarge |
Related Topics