IPmanager 6 is an address space management plugin used in DCImanager 6 and VMmanager platforms. Using the "Integration with IPmanager 6" module, you can combine address spaces from multiple instances of platforms.
Work logic
When integrating multiple platforms, one of them is the master. No settings are required on the master, while on other platforms you need to install the integration module and specify the master’s data in its settings.
The database of the master receives information about all networks, pools and blocks of IP addresses created in the other platforms. Platforms that have integration configured use the master’s database for address space operations.
No information is transmitted during integration about the following:
- allocation of IP addresses to dedicated servers and virtual machines (VMs). IP addresses allocated to servers or VMs will be displayed in the platforms with the "Allocated" status without specifying the name of the server or VM;
- DNSBL lists.
To avoid conflicts when merging address spaces, we recommend that you configure integration with the master only for "clean" platforms — without created VMs or added servers.
Features of DCImanager 6 integration
After configuring the integration, the platform interfaces display information about the networks and pools available in all locations. Information about networks and pools available only in certain locations will be written to the database of the master, but will not be displayed in the interface.
Preparing for integration
Creating a user for integration
To configure the integration, the data of the first user with the "Administrator" role on the master will be required. If this data is not available, prepare the user for integration:
- Create an account on the master with the "Administrator" role.
- Connect to the server with the master via SSH.
-
Open the database console:
-
if the master is VMmanager:
docker exec -it mysql bash -c "mysql isp -p\$MYSQL_ROOT_PASSWORD"
-
if the master is DCImanager 6:
docker exec -it mysql bash -c "mysql auth -p\$MYSQL_ROOT_PASSWORD"
-
-
Change the user role:
update auth_user set roles='["@admin"]' where email='admin@example.com';
Comments to the command
Deleting using address space
Integration means that platforms with empty address space must connect to the master. If the same networks are created in the master and the platform to be connected, a conflict of address spaces may occur after integration. To avoid conflicts, remove the information about address space elements from the connecting platforms:
- Create a backup of the connecting platform.
- Connect to the server with the platform via SSH.
-
Open the database console:
-
if the connecting platform is VMmanager:
MySQLdocker exec -it mysql bash -c "mysql isp -p\$MYSQL_ROOT_PASSWORD"
-
if the connecting platform is DCImanager 6:
docker exec -it mysql bash -c "mysql auth -p\$MYSQL_ROOT_PASSWORD"
-
-
Perform the queries:
Deleting IP addressesDELETE FROM ip ;
Deleting IP address blocksDELETE FROM ippool_range ;
Deleting poolsDELETE FROM ippool ;
Deleting networksDELETE FROM ipnet ;
Configuring the integration
- On platforms connected to the master:
-
Install the “Integration with IPmanager 6” module: → Modules → Integration with IPmanager 6 → Install.
If the plugin is installed and not configured, address space management in the platform will not be possible. -
Press Configure and specify the settings for connecting to the master:
- Platform URL. If you specified a domain name for the server, make sure that this name corresponds to the IP address of the server with the master. The module will not be able to configure a connection if any redirects are applied to the domain name. For example, via DNS CNAME records.
- E-mail of the first user with the "Administrator" role.
- User Password.
- Platform URL. If you specified a domain name for the server, make sure that this name corresponds to the IP address of the server with the master. The module will not be able to configure a connection if any redirects are applied to the domain name. For example, via DNS CNAME records.
- Press Apply.
-
- If one of the platforms being integrated uses the "Integration with DNSmanager 6" module, install the module with the same settings on all other platforms.
Updating the module
Updates for the module are not installed automatically. To update the module, click the icon in the right menu → Modules → Integration with IPmanager 6 → Update button.
Diagnostics
Information about the operation of the module is saved in the docker container logs:
- dci_impgr_1 — on the server with DCImanager 6;
- ipmgr — on the server with VMmanager.
To view the logs:
- Connect to the server with the platform via SSH.
-
Run the commands:
docker logs <container>
docker exec -it <container> less -R /var/log/ipmgr_proxy_service.log
Comments to the commands