CloudStack
  1. CloudStack
  2. CLOUDSTACK-3662

After installation of 4.2 the CloudStack DB is not displaying the correct version and type of the systemvm templates

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: Install and Setup
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      1. Deploy a CS 4.2 Setup with XEN hypervisor.

      2. Login to the secondary storage VM and check their version :

      ========================================================================
      Debian GNU/Linux 7.0 s-1-VM hvc0

      s-1-VM login: root
      Password:
      Last login: Fri Jul 19 12:11:43 UTC 2013 on hvc0
      Linux s-1-VM 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686

      The programs included with the Debian GNU/Linux system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      root@s-1-VM:~# uname -a
      Linux s-1-VM 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686 GNU/Linux
      root@s-1-VM:~#
      Debian GNU/Linux 7.0 s-1-VM hvc0

      =======================================================================

      So here we see that the actual OS type is Debian GNU/Linux 7.0 (32 bit) but there is no entry in DB for this OS type. So the systemvm template is actually displayed in DB as :

      ========================================================================

      mysql> select * from vm_template;
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      id unique_name name uuid public featured type hvm bits url format created removed account_id checksum display_text enable_password enable_sshkey guest_os_id bootable prepopulate cross_zones extractable hypervisor_type source_template_id template_tag sort_key size state update_count updated dynamically_scalable

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      1 routing-1 SystemVM Template (XenServer) 1 0 0 SYSTEM 0 64 http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2 VHD 2013-07-17 18:21:21 NULL 1 f613f38c96bf039f2e5cbf92fa8ad4f8 SystemVM Template (XenServer) 0 0 133 1 0 1 0 XenServer NULL NULL 0 565240320 Allocated 0 NULL 0

      mysql> select * from guest_os;
      ------------------------------------------------------------------------------------------------------

      id category_id name uuid display_name
      133 2 NULL 133 Debian GNU/Linux 6(64-bit)

      ============================================================
      i.e. the systemvm template has guest os type 133, which turns out to be Debian GNU/Linux 6(64-bit) which we see in our UI too.

      ****************************************************************************************************************************************
      Similarly with the VMWARE host that the actual OS type is Debian GNU/Linux 7.0 (32 bit) but it is displayed in the DB as Debian GNU/Linux 5.0 (32-bit)

      and similar case with KVM also.

        Activity

        Abhinav Roy created issue -
        Abhinandan Prateek made changes -
        Field Original Value New Value
        Assignee Abhinandan Prateek [ aprateek ]
        Hide
        Abhinandan Prateek added a comment -

        The systemVM template is of Debian 7 as noted above. most of the current Hypervisors do not support that version, due to this the most unto date supported version of Debian is set as guest type per Hypervisor.

        Show
        Abhinandan Prateek added a comment - The systemVM template is of Debian 7 as noted above. most of the current Hypervisors do not support that version, due to this the most unto date supported version of Debian is set as guest type per Hypervisor.
        Abhinandan Prateek made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Abhinav Roy added a comment -

        Closing the issue after Abhi's comment

        Show
        Abhinav Roy added a comment - Closing the issue after Abhi's comment
        Abhinav Roy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Abhinandan Prateek
            Reporter:
            Abhinav Roy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development