Skip to content

Commit 32dc524

Browse files
committed
CLOUDSTACK-7873 Fixed the user vm details length issue for higher key lengths
1 parent c916f30 commit 32dc524

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

engine/schema/src/com/cloud/vm/UserVmDetailVO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class UserVmDetailVO implements ResourceDetail {
3939
@Column(name = "name")
4040
private String name;
4141

42-
@Column(name = "value", length = 1024)
42+
@Column(name = "value", length = 5120)
4343
private String value;
4444

4545
@Column(name = "display")

setup/db/create-schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ CREATE TABLE `cloud`.`user_vm_details` (
11401140
`id` bigint unsigned NOT NULL auto_increment,
11411141
`vm_id` bigint unsigned NOT NULL COMMENT 'vm id',
11421142
`name` varchar(255) NOT NULL,
1143-
`value` varchar(1024) NOT NULL,
1143+
`value` varchar(5120) NOT NULL,
11441144
PRIMARY KEY (`id`),
11451145
CONSTRAINT `fk_user_vm_details__vm_id` FOREIGN KEY `fk_user_vm_details__vm_id`(`vm_id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE
11461146
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

setup/db/db/schema-441to450.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,3 +756,7 @@ DELETE t1 FROM guest_os_hypervisor t1, guest_os_hypervisor t2 WHERE (t1.hypervis
756756
UPDATE `cloud`.`vm_template` SET removed=NOW() WHERE unique_name="centos53-x86_64" AND hypervisor_type="XenServer";
757757

758758
ALTER TABLE `cloud_usage`.`usage_vpn_user` CHANGE `user_name` `user_name` VARCHAR(255);
759+
760+
--Increase key value size generated from RSA-8192 to be stored.
761+
ALTER TABLE `cloud`.`user_vm_details` MODIFY `value` VARCHAR(5120);
762+

0 commit comments

Comments
 (0)