Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-6032

[VmScaleup]service offering id is not getting changed in usage_vm_instance table under usage_type 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.3.0
    • 4.4.0
    • Management Server, Usage
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      steps to reproduce
      ===================
      1-Deploy vm with co "small instance

      {cpu:512,ram=512}

      "
      2-scaleup vm to co "medium instance

      {cpu:1GHz,ram=1024}

      "
      3-check usage_vm_instance table in usage db

      expected
      =========
      for usage_typ 1 and 2 service offerings_id should get update to new SO

      Actual
      =======
      Sservice_offering_id is getting updated for usage_type 2 only

      Detail
      ======
      mysql> select * from usage_vm_instance where vm_instance_id=3 and end_date is NULL;
      --------------------------------------------------------------------------------------------------------------------------------------------------

      usage_type zone_id account_id vm_instance_id vm_name service_offering_id template_id hypervisor_type start_date end_date cpu_speed cpu_cores memory

      --------------------------------------------------------------------------------------------------------------------------------------------------

      1 1 2 3 one 15 7 VMware 2014-01-29 14:45:12 NULL NULL NULL NULL
      2 1 2 3 one 2 7 VMware 2014-01-29 14:46:26 NULL NULL NULL NULL

      --------------------------------------------------------------------------------------------------------------------------------------------------

      Attachments

        Activity

          People

            harikrishna.patnala Harikrishna Patnala
            harikrishna.patnala Harikrishna Patnala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: