Chandan Purushothama created CLOUDSTACK-4123:
------------------------------------------------
Summary: 3.0.6 to ASF 4.2 Upgrade: On Adding VMWare Cluster to the
Setup, "Burbank" System VM Template for VMWare is downloaded instead of 4.2
Key: CLOUDSTACK-4123
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4123
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Upgrade
Affects Versions: 4.2.0
Reporter: Chandan Purushothama
Priority: Critical
Fix For: 4.2.0
================
Steps to Reproduce:
================
1. Setup a 3.0.6 Advanced Zone with XenServers only.
2. Upgrade the Setup to 4.2
3. Add a new VMWare Data Center to the Setup.
4. Add a new VMWare Cluster to the Setup.
5. Add a primary storage to the VMWare Cluster.
6. Observe the System VM Template and the Default Template for VMWare get
downloaded automatically.
===========
Observations:
===========
2013-08-06 15:42:00,482 DEBUG [agent.transport.Request] (Timer-8:null) Seq
5-1395654877: Sending { Cmd , MgmtId: 6914427586246, via: 5, Ver: v1, Flags:
100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"370df6fc-3e1d-4733-929d-42d0ad9245f3","request":"GET_STATUS","hvm":false,"description":"SystemVM
Template
(vSphere)","checksum":"7137e453f950079ea2ba6feaafd939e8","maxDownloadSizeInBytes":53687091200,"id":8,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/8","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/chandan/305PA-195-40/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/burbank/burbank-systemvm-08012012.ova","format":"OVA","accountId":1,"name":"routing-8","secUrl":"nfs://10.223.110.232/export/home/chandan/305PA-195-40/secondary","wait":0}}]
}
2013-08-06 15:42:00,484 DEBUG [agent.transport.Request] (Timer-9:null) Seq
5-1395654878: Sending { Cmd , MgmtId: 6914427586246, via: 5, Ver: v1, Flags:
100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"2849c754-6e03-4cd9-82af-cd1af01775ef","request":"GET_STATUS","hvm":false,"description":"CentOS
5.3(64-bit) no GUI
(vSphere)","checksum":"f6f881b7f2292948d8494db837fe0f47","maxDownloadSizeInBytes":53687091200,"id":7,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/7","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/chandan/305PA-195-40/secondary","_role":"Image"}},"url":"http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova","format":"OVA","accountId":1,"name":"centos53-x64","secUrl":"nfs://10.223.110.232/export/home/chandan/305PA-195-40/secondary","wait":0}}]
}
mysql> select * from vm_template where id=8 \G
*************************** 1. row ***************************
id: 8
unique_name: routing-8
name: SystemVM Template (vSphere)
uuid: 8
public: 0
featured: 0
type: SYSTEM
hvm: 0
bits: 32
url:
http://download.cloud.com/templates/burbank/burbank-systemvm-08012012.ova
format: OVA
created: 2013-08-05 12:38:27
removed: NULL
account_id: 1
checksum: 7137e453f950079ea2ba6feaafd939e8
display_text: SystemVM Template (vSphere)
enable_password: 0
enable_sshkey: 0
guest_os_id: 15
bootable: 1
prepopulate: 0
cross_zones: 1
extractable: 0
hypervisor_type: VMware
source_template_id: NULL
template_tag: NULL
sort_key: 0
size: 0
state: Allocated
update_count: 0
updated: NULL
dynamically_scalable: 1
1 row in set (0.00 sec)
mysql> select * from vm_template where id=7 \G
*************************** 1. row ***************************
id: 7
unique_name: centos53-x64
name: CentOS 5.3(64-bit) no GUI (vSphere)
uuid: 7
public: 1
featured: 1
type: BUILTIN
hvm: 0
bits: 64
url:
http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova
format: OVA
created: 2013-08-05 12:38:27
removed: NULL
account_id: 1
checksum: f6f881b7f2292948d8494db837fe0f47
display_text: CentOS 5.3(64-bit) no GUI (vSphere)
enable_password: 0
enable_sshkey: 0
guest_os_id: 12
bootable: 1
prepopulate: 0
cross_zones: 1
extractable: 1
hypervisor_type: VMware
source_template_id: NULL
template_tag: NULL
sort_key: 0
size: 0
state: Allocated
update_count: 0
updated: NULL
dynamically_scalable: 0
1 row in set (0.00 sec)
mysql> select * from template_store_ref where id in (17,18);
+----+----------+-------------+---------------------+---------------------+--------------------------------------+--------------+------+------------+---------------+----------------------+-----------+----------------------------------------------------------------------------------------------------+-------------------+------+--------------+----------------------+----------+-----------+---------+--------------+---------+---------------------+
| id | store_id | template_id | created | last_updated |
job_id | download_pct | size | store_role |
physical_size | download_state | error_str | local_path
|
install_path | url | download_url | download_url_created | state |
destroyed | is_copy | update_count | ref_cnt | updated |
+----+----------+-------------+---------------------+---------------------+--------------------------------------+--------------+------+------------+---------------+----------------------+-----------+----------------------------------------------------------------------------------------------------+-------------------+------+--------------+----------------------+----------+-----------+---------+--------------+---------+---------------------+
| 17 | 2 | 8 | 2013-08-06 22:36:15 | 2013-08-06 22:51:11 |
370df6fc-3e1d-4733-929d-42d0ad9245f3 | 21 | 0 | Image |
0 | DOWNLOAD_IN_PROGRESS | |
/mnt/SecStorage/de4ca7bb-4046-3067-ac3a-c4ce3b23ece5/template/tmpl/1/8/dnld7075543630547533463tmp_
| template/tmpl/1/8 | NULL | NULL | NULL | Creating |
0 | 0 | 1 | 0 | 2013-08-06 22:36:15 |
| 18 | 2 | 7 | 2013-08-06 22:36:15 | 2013-08-06 22:51:11 |
2849c754-6e03-4cd9-82af-cd1af01775ef | 28 | 0 | Image |
0 | DOWNLOAD_IN_PROGRESS | |
/mnt/SecStorage/de4ca7bb-4046-3067-ac3a-c4ce3b23ece5/template/tmpl/1/7/dnld3580968044004769235tmp_
| template/tmpl/1/7 | NULL | NULL | NULL | Creating |
0 | 0 | 1 | 0 | 2013-08-06 22:36:15 |
+----+----------+-------------+---------------------+---------------------+--------------------------------------+--------------+------+------------+---------------+----------------------+-----------+----------------------------------------------------------------------------------------------------+-------------------+------+--------------+----------------------+----------+-----------+---------+--------------+---------+---------------------+
2 rows in set (0.02 sec)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira