(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:
3.12.1.A Adjust Security Enhanced Linux
For Red Hat-based systems where Security Enhanced Linux (SELinux) is enforced, you need to adjust SELinux to allow the web server to make network connections and create and write to the log file.
On the Viewpoint Server Host, do the following:
[root]# getenforce
SELinux can vary by version and architecture and that these instructions may not work in all possible environments.
[root]# yum install policycoreutils-python [root]# semanage permissive -a httpd_t
[root]# vi /etc/sysconfig/selinux SELINUX=disabled [root]# setenforce 0
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.C 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.B Open Necessary Ports for more information.
On the host you have chosen to install the Viewpoint PostgreSQL database, do the following:
[root]# yum install postgresql-server [root]# service postgresql initdb
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-server-host> with the interface name from which the Viewpoint server # will be connecting to the database. listen_addresses = '<viewpoint-server-host>'
[root]# chkconfig postgresql on [root]# service postgresql restart
3.12.1.D 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 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.C 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]# yum install moab-viewpoint-filemanager [root]# yum install python-setuptools
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]# chkconfig acfileman on [root]# service acfileman restart
[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]# service moab restart
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]# service tomcat restart
[root]# yum install moab-viewpoint
/etc/httpd/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.
[root]# /opt/viewpoint/bin/viewpoint migrate
[root]# chkconfig httpd on [root]# service httpd restart
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 apache:apache ca-cert.pem client-key.pem client-cert.pem [root]# service httpd restart
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://server: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 six default (bases) 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 all six base roles are present.
Do the following:
Click to enlarge |
Click to enlarge |
However, if the NitroAdmin, NitroUser, RemoteVizAdmin, and/or RemoteVizUser role 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 Viewpoint Reference 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