server: Increase max length for VMInstanceVO.backupVolumes (#4967)

The default length is 255, which caused a truncation of data if
the JSON object representing the backup volumes is too big.
It caused errors when backups were made on VMs with 3 volumes
or more.

`vm_instance.backup_volumes` has the type TEXT, which has a
maximal length of 65535 characters.

Fixes #4965
This commit is contained in:
Olivier Lemasle 2021-04-30 08:27:56 +02:00 committed by GitHub
parent 92f9c9922c
commit 72f6612971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public class VMInstanceVO implements VirtualMachine, FiniteStateObject<State, Vi
@Column(name = "backup_external_id")
protected String backupExternalId;
@Column(name = "backup_volumes")
@Column(name = "backup_volumes", length = 65535)
protected String backupVolumes;
public VMInstanceVO(long id, long serviceOfferingId, String name, String instanceName, Type type, Long vmTemplateId, HypervisorType hypervisorType, long guestOSId,