Installing on Ansible Openstack Train
Installing Trilio Datamover-API container
The installation of the Datamover-API, short dmapi, requires to create a new container, in which all necessary packages and the Trilio dmapi code are loaded.
Create the dmapi container on Controller nodes
Create lxc container for hosting dmapi service on controller nodes with below commands.
## On Ubuntu
lxc-create -t ubuntu -n controller_dmapi #Create the controller_dmapi container
## On CentOS
lxc-create -t centos -n controller_dmapi #Create the controller_dmapi container
lxc-start -n controller_dmapi #Start the controller_dmapi containerPrepare the dmapi container for installation
Add nova user and required directory on container controller_dmapi.
lxc-attach -n controller_dmapi # Login to container
mkdir /etc/nova # create require /etc/nova directory
useradd nova # create nova user
id nova # check user added on container and aslo confirm the group nova added on containerAdd required packages on container controller_dmapi.
Copy nova.conf file from nova-api container to /etc/nova directory in dmapi container. Run the below command on controller nodes:
Create a new interface with specific ip for dmapi container.
Edit /var/lib/lxc/controller_dmapi/config and add below section as per network bridge available on the controller node.
Restart the container with the below commands.
Install the dmapi service
Download and run the tvault-installation script inside the container.
The script to be executed inside dmapi container, after the following changes have been done: Comment the 2 lines below and add a line below NOVA_VERSION = 20, as nova-manage doesn't work in Ansible Openstack.
Run the script
Verify the installation and set necessary configuration
Verify in dmapi.conf domain name for the nova service user under keystone section.
Check field values for project_domain_nameand user_domain_name and update those if not in keystone section
If SSL is enabled then add the following section in dmapi.conf:
Verify below entries are there in keystone policy.json file
Once verified above checks, start the dmapi service.
Install Trilio Datamover on Compute nodes
Prepare the installation
Activate the virtual environment on the compute node.
After activating the virtual environment, find out the location of compute.filters file.
Download the installation script.
Modify install script to use the same location for creating trilio filters.
Also comment the 2 lines below and add a line below NOVA_VERSION = 20, as nova-manage doesn't work in Ansible Openstack.
Install the Trilio datamover service
Run install script and if you get prompt while installing, choose the default selection.
Make sure ExecStart value look like below in /etc/systemd/system/tvault-contego.service file.
Use below commands to restart and verify the service.
Use below command and check if nfs/s3 storage is mounted or not.
Install Horizon Plugin into Horizon service
List running containers on controller nodes and login to horizon container using the below command.
Install curl package on the Horizon container if not present.
Activate virtual environment on horizon container
Download script to install horizon plugin on horizon container and run install script
Install script will ask for the dashboard folder, provide below path
Verify installation using below commands
Haproxy configuration on controller nodes
Refer to the keystone haproxy settings for dmapi haproxy.
A sample configuration is shown below.
Check the syntax of the file and restart the service.
Last updated
Was this helpful?
