[
https://issues.apache.org/jira/browse/CLOUDSTACK-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892139#comment-15892139
]
ASF GitHub Bot commented on CLOUDSTACK-9807:
--------------------------------------------
GitHub user kishankavala opened a pull request:
https://github.com/apache/cloudstack/pull/1982
CLOUDSTACK-9807/CLOUDSTACK-9808 - Added upgrade changes for 4.10 system vm
template
Removed systemvm template upgrade code in 4.6 upgrade. Added 4.10 system vm
template upgrade changes with new urls and md5sum
Manual testing results:
Updated min req version:
mysql> select name, value from configuration where name =
'minreq.sysvmtemplate.version';
+------------------------------+----------+
| name | value |
+------------------------------+----------+
| minreq.sysvmtemplate.version | 4.10.0.0 |
+------------------------------+----------+
1 row in set (0.00 sec)
Update template for KVM:
mysql> select * from vm_template where name = 'systemvm-kvm-4.10'\G
*************************** 1. row ***************************
id: 201
unique_name: 201-2-badc363a-507d-3802-942f-205d35c3b575
name: systemvm-kvm-4.10
uuid: 3526258d-d9a4-4c3d-8f15-3137eb5d7ab8
public: 0
featured: 0
type: SYSTEM
hvm: 1
bits: 64
url:
http://packages.shapeblue.com/systemvmtemplate/4.10/systemvm64template-4.10-kvm.qcow2.bz2
format: QCOW2
created: 2017-03-02 11:35:06
removed: NULL
account_id: 2
checksum: NULL
display_text: systemvm-kvm-4.10
enable_password: 0
enable_sshkey: 0
guest_os_id: 184
bootable: 1
prepopulate: 0
cross_zones: 1
extractable: 0
hypervisor_type: KVM
source_template_id: NULL
template_tag: NULL
sort_key: 0
size: 5242880
state: Active
update_count: 0
updated: NULL
dynamically_scalable: 0
1 row in set (0.00 sec)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Accelerite/cloudstack CLOUDSTACK-9807
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1982.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1982
----
commit d772d93cd354c69e1dbd31d5a79523bf2369463a
Author: Kishan Kavala <[email protected]>
Date: 2017-03-02T10:27:11Z
systemvm template update
commit 3867599006b468dbf5b8153399544fcc74ff92f2
Author: Kishan Kavala <[email protected]>
Date: 2017-03-02T10:50:28Z
Bug-ID: CLOUDSTACK-9807: Removed systemvm template upgrade code in 4.6
upgrade. Added 4.10 system vm template upgrade changes with new urls and md5sum
----
> 4.5->4.10 upgrade fails. db upgrade script looking for ssvm template-4.6 when
> having 4.10 already installed.
> ------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9807
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9807
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Upgrade
> Affects Versions: 4.10.0.0
> Reporter: Boris Stoyanov
> Assignee: Kishan Kavala
> Priority: Blocker
>
> Following the upgrade instructions from this page:
> http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.10/upgrade/upgrade-4.5.html
> I’ve registered the template with the right naming: "systemvm-kvm-4.10”,
> waited until it was in Ready status.
> Then following the upgrade procedure, upgraded the management and the
> cs-agent.
> Upon starting the management the db.upgrade kicked in, but it failed with the
> following error:
> com.cloud.utils.exception.CloudRuntimeException: 4.6.0KVM SystemVm template
> not found. Cannot upgrade system Vms
> It appears that the upgrade script is still looking for 4.6 ssvm template
> while a newer version is installed.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)