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 container
Prepare 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 container
Add 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