10. Troubleshooting¶
In this section, you can find solutions to some issues that may appear while working on your CloudBlue Connect vendor portal, etc.
10.1. PowerPanel password issues¶
If an end user loses their PowerPanel password, they must cancel their previous PowerPanel user account subscription and request a new one. The system assigns the same previously used login, and the user can set a new password.
10.2. Subscription issues¶
If you have problems with a subscription on the vendor portal, you can check the corresponding failed request.
10.2.1. To check a failed request¶
10.3. Filesystem size issues in virtual machines¶
You cannot decrease storage space or automatically increase filesystem size after disk expansion via the CloudBlue Connect vendor portal.
When increasing the disk size, the system treats the added disk space as unallocated. You can use standard tools of the guest OS to allocate the added space.
To increase the virtual disk of a virtual machine created based on the template, ensure template images are in the correct partition sequence because guest tools perform resizing only for the last partition.
10.3.1. Offline virtual disk resizing¶
You can resize virtual hard disks of stopped virtual machines with the prl_disk_tool resize --size command. For example:
# prl_disk_tool resize --hdd /vz/vmprivate/d35d28e5-11f7-4b3f-9065-8fef6178bc5b/harddisk.hdd --size 100G
10.3.2. Online virtual disk resizing¶
Warning
Reducing the virtual disk capacity of running virtual machines is prohibited.
To resize virtual hard disks of running virtual machines, use the prlctl set --device-set --size --no-fs-resize command. For example, to resize the hdd0 hard disk of the MyVM virtual machine to 100 gigabytes, execute:
# prlctl set MyVM --device-set hdd0 --size 100G --no-fs-resize
With the --no-fs-resize option specified, the last partition on the hard disk is not resized.
10.4. Logging and debugging¶
To log actions you perform when working with the Virtuozzo Hybrid Server CloudBlue connector, copy the /etc/cloudblue-connector/config-logging.json.example file into /etc/cloudblue-connector/config-logging.json. Additionally, you can review and configure the parameters listed in the file or leave the default values.
# cat /etc/cloudblue-connector/config-logging.json
...
"formatter": "single-line",
"filename": "/var/log/cloudblue-connector/connector_errors.log",
...
You can assign the "DEBUG" value to the "level" parameter:
"level": "DEBUG"
Note that such log files can be large.
A config.json file contains the post_hook_script parameter with a path to a script. Thus, the script includes a path to a log file. You can change the default location of the log file specified in the LOGFILE parameter if needed:
#!/bin/bash
# $1 - subscription_id
# $2 - action ['purchase', 'resume', 'change', 'suspend', 'cancel']
# $3 - action result ['success', 'fail']
LOGFILE="/var/log/cloudblue-connector/post_hook.log"
TIMESTAMP=`date "+%Y-%m-%d %H:%M:%S"`
echo "[${TIMESTAMP}]: $1 $2 $3" >> ${LOGFILE}
exit 0
Below, you can find an example of a post_hook.log file:
# cat /var/log/cloudblue-connector/post_hook.log
AS-1087-8055-8780 purchase fail
AS-5474-7711-9006 purchase success
...
AS-2244-5099-6931 suspend success
AS-5474-7711-9006 resume success
...
AS-2244-5099-6931 cancel success
...
Import-Migration Activities:
AS-4112-7978-6284 purchase success
AS-6847-2186-6994 purchase success
AS-5972-4396-5856 purchase fail
For more information on a config.json file, see Configure a config.json file.
10.4.1. Location of default log files¶
Below, you can find details about the location of default log files for the components, such as Virtuozzo Automator, PowerPanel, Virtuozzo Hybrid Server nodes, and Virtuozzo Hybrid Server CloudBlue connector.
Virtuozzo Hybrid Server CloudBlue connector log files are placed inside the VA MN container:
/var/log/cloudblue-connector/...
Virtuozzo Hybrid Server CloudBlue connector post_hook.log files (optional) are located inside the VA MN container:
/var/log/cloudblue-connector/post_hook.log
You can find Virtuozzo Automator logs inside the VA MN container by running:
ls -la /var/log/
PowerPanel logs are placed inside a dedicated virtual environment:
ls -la /var/log/
To find Virtuozzo Hybrid Server 7 node logs, execute the following for the corresponding node:
ls -la /var/log/