cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9637) Template create from snapshot does not populate vm_template_details
Date Tue, 06 Dec 2016 11:11:32 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15725040#comment-15725040
] 

ASF GitHub Bot commented on CLOUDSTACK-9637:
--------------------------------------------

Github user borisstoyanov commented on the issue:

    https://github.com/apache/cloudstack/pull/1805
  
    I've manually verified the bug fix, looks OK
    ```
    (local) SBCM5> list templates name=newTemp templatefilter=all
    {
      "count": 1,
      "template": [
        {
          "account": "admin",
          "created": "2016-12-06T10:23:11+0000",
          "crossZones": false,
          "details": {
            "Message.ReservedCapacityFreed.Flag": "false",
            "cpuOvercommitRatio": "2.0",
            "dataDiskController": "osdefault",
            "keyboard": "us",
            "memoryOvercommitRatio": "1.0",
            "nicAdapter": "E1000",
            "rootDiskController": "scsi"
          },
          "displaytext": "newTemp",
          "domain": "ROOT",
          "domainid": "817d7ade-baf7-11e6-a594-06dc6e01070b",
          "format": "OVA",
          "hypervisor": "VMware",
          "id": "d39e190e-76a0-4bc3-9802-d7257153516e",
          "isdynamicallyscalable": false,
          "isextractable": false,
          "isfeatured": false,
          "ispublic": true,
          "isready": true,
          "name": "newTemp",
          "ostypeid": "819d53f9-baf7-11e6-a594-06dc6e01070b",
          "ostypename": "Other Linux (64-bit)",
          "passwordenabled": false,
          "size": 52428800,
          "sourcetemplateid": "20e9fd78-b256-4bf8-bb78-645b5950843b",
          "sshkeyenabled": false,
          "status": "Download Complete",
          "tags": [],
          "templatetype": "USER",
          "zoneid": "298acd1a-89e0-4a8e-9dc1-0498cd117fbc",
          "zonename": "pr1805-t590-vmware-55u3"
        }
      ]
    }
    ```
    
    Other than the test failures looks OK.


> Template create from snapshot does not populate vm_template_details
> -------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9637
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9637
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.8.0
>         Environment:  VMware ESX , CS 4.8.0
>            Reporter: Sudhansu Sahu
>            Assignee: Sudhansu Sahu
>
> ISSUE
> ============
> Template create from snapshot does not populate vm_template_details
> TROUBLESHOOTING
> ==================
> {noformat}
> mysql> select id,name,uuid,instance_name,vm_template_id from vm_instance where uuid='453313f5-ef97-461a-94f5-0838617fe826'
>     -> ;
> +----+-------+--------------------------------------+---------------+----------------+
> | id | name  | uuid                                 | instance_name | vm_template_id
|
> +----+-------+--------------------------------------+---------------+----------------+
> |  9 | vm001 | 453313f5-ef97-461a-94f5-0838617fe826 | i-2-9-VM      |            202
|
> +----+-------+--------------------------------------+---------------+----------------+
> 1 row in set (0.00 sec)
> mysql> select id,name,source_template_id from vm_template where id=202; 
> +-----+--------+--------------------+
> | id  | name   | source_template_id |
> +-----+--------+--------------------+
> | 202 | Debian |               NULL |
> +-----+--------+--------------------+
> 1 row in set (0.00 sec)
> mysql> select * from vm_template_details where template_id=202; 
> +----+-------------+--------------------+-------+---------+
> | id | template_id | name               | value | display |
> +----+-------------+--------------------+-------+---------+
> |  1 |         202 | keyboard           | us    |       1 |
> |  2 |         202 | nicAdapter         | E1000 |       1 |
> |  3 |         202 | rootDiskController | scsi  |       1 |
> +----+-------------+--------------------+-------+---------+
> 3 rows in set (0.00 sec)
> mysql> select id,name,source_template_id from vm_template where source_template_id=202;
> +-----+----------------+--------------------+
> | id  | name           | source_template_id |
> +-----+----------------+--------------------+
> | 203 | derived-debian |                202 |
> +-----+----------------+--------------------+
> 1 row in set (0.00 sec)
> mysql> select * from vm_template_details where template_id=203;
> Empty set (0.00 sec)
> {noformat}
> REPRO STEPS
> ==================
> 1. Register a template A and specify property:
> Root disk controller: scsi
> NIC adapter type: E1000
> Keyboard type: us
> 2. Create a vm instance from template A
> 3. Take volume snapshot for vm instance
> 4. Delete VM instance
> 5. Switch to "Storage->Snapshots", convert snapshot to a template B
> 6. Observe template B does not inherit property from template A, the table vm_template_details
is empty
> EXPECTED BEHAVIOR
> ==================
> Template should inherit property from source template
>  
> ACTUAL BEHAVIOR
> ==================
> Detail template property lost



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message