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

Alter quota_tariff to support currency values up to 5 decimal places

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.9.0, 4.9.2.0, 4.9.1.0, 4.9.0.1, 4.9.3.0
    • 4.10.1.0
    • Install and Setup
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Issue: the current quota plugin does not allow configuring currency values with more than two decimal places. For instance, I would like to configure $0.0125 for using 1 CPU of clock rate 100MHz and $0.00599 for the network usage (Bytes Sent).

      Solution: modify column currency_value from table cloud_usage.quota_tariff to support values up to 5 decimal places. Values with more than 5 decimal places will be displayed with scientific notation in the user interface.

      SQL command: "ALTER TABLE cloud_usage.quota_tariff MODIFY currency_value DECIMAL(15,5) not null"

      Attachments

        Activity

          People

            brascher Gabriel Beims Bräscher
            brascher Gabriel Beims Bräscher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: