BILLmanager 6

Operating principle of the module. OpenStack (VPS)

Algorithm of opening a service

After ordering and paying for the service, BILLmanager on the OpenStack (VPS) side starts the process of its opening, which proceeds according to the following algorithm:

  1. A user of the billmgr-account-{account_id} type is created, where {account_id} is the BILLmanager client ID;
  2. A project named project-billmgr-account-{account_id} is created, where the client's ordered virtual machines will be located;
  3. A port on the network, which is specified in the processing module, is created. This port will be used when creating an instance (virtual server);
  4. The ordered resources (disk space, RAM, CPU count) are checked:
    • If there is a public flavor (virtual server parameter templates) for this combination of values, it will be used when creating the instance;
    • If there is no such flavor, then a private flavor with the name flavor-billmgr-item-{item_id}-{timestamp} will be created within the user's project, where:
      • {item_id} is the identifier of the virtual server on the BILLmanager side;
      • {timestamp} is the timestamp used to make the name unique.
  5. If an SSH key was specified when ordering, the module will check if there is a key pair with that key. If there is no pair, a key pair of the form `keypair-billmgr-account-{account_id}` will be created, otherwise an existing key pair will be specified when creating the instance.

After opening the service, there is everything you need to create an instance - the module launches its creation and waits for activation.

After activation of the instance, the module sets the administrator password.

Note:
Unlimited quotas will be set for the project if the "Use default quotas" option is not enabled in the processing module.

Managing IP addresses

IP addresses are managed by adding and deleting fixed IP addresses for the port created when ordering the service.

To manage IP addresses, enter Products/Services → Virtual private servers → select a service → IP addresses button.

Editing addons

When the parameters are changed, a public flavor similar in values is searched for, and if there is none, a private flavor will be created. If a private flavor has already been created for the instance, it will be deleted.

After changing the parameters, the instance will restart to install the new template.

The following can be edited for an instance:

  • number of CPUs (ncpu);
  • RAM (mem);
  • Disk space (disc).

When you resize disk space, no action is performed on flavor.

Start and stop

The module allows you to start and stop the instance:

  • when the instance is stopped, it goes to SUSPENDED status;
  • when the instance is started, it goes to ACTIVE status.

Reboot

The module performs a soft reboot using the command:

nova reboot SERVER

Deleting

The module deletes:

  • the instance;
  • the port that was created when ordering the virtual server;
  • the private flavor that was created for this instance.

If the client has no instances left in the project after deleting the server, the user, the project and its key pairs will also be deleted.

Logging

Processing module log file: /usr/local/mgr5/var/pmopenstackvds.log.