XPUM REST API Setup Guide
Pre-installation Actions
install python3, may need to soft link python if your python package doesn’t auto generate one.
install python3-devel ( Redhat or CentOS only )
install pip3.
Quick Installation
Run enable_restful.sh in the folder /usr/lib/xpum to enable restful feature.
If start xpum_rest.service failed with error “Executable path is not absolute, ignoring: gunicorn” on Centos 7, please refer to the following section “Start Service”.
Step by Step Installation
Python Packages Installation
Install python packages as root for all user. The INSTALLDIR is /usr/lib/xpum on the Linux platform.
umask 022
pip3 install -r INSTALLDIR/rest/requirements.txt
Run Script
Run rest_config.py to setup password for REST API user xpumadmin.
Run keytool.sh to generate self-signed certificate and keys.
Start Service
systemctl start xpum_rest.service
systemctl enable xpum_rest.service
If start xpum_rest.service failed with error “Executable path is not absolute, ignoring: gunicorn” on Centos 7, please provide absolute path for the gunicorn in the file /usr/lib/systemd/system/xpum_rest.service. Then run the following commands.
systemctl daemon-reload
systemctl restart xpum_rest.service
Change rest service binding address & port
change service file xpum_rest.service “–bind” parameters in “ExecStart”
Replace rest service certificate & private key
Replace certificate file cert.pem under INSTALLDIR/rest/conf
Replace private key file key.pem under INSTALLDIR/rest/conf