01f0424930
Nova's `os-simple-tenant-usage` has the following statement. ``` Reports usage statistics of compute and storage resources periodically for an individual tenant or all tenants. The usage statistics will include all instances’ CPU, memory and local disk during a specific period. ``` To some people, when reading that, they might get the understanding that the `os-simple-tenant-usage` will report the actual use of resources. Therefore, if a VM is stopped and then started back again, it (the `os-simple-tenant-usage`) would only report the time the VM has been up and running. However, that is not what happens. The `os-simple-tenant-usage` reports the time that a virtual machine (VM) exists in the cloud environment. Therefore, actions such as pause, suspend, and stop do not affect the usage accounting. This might be a problem for people using this API for billing, or for people that use other systems (e.g. CloudKitty) for billing. End-users might try to cross-check the data from the billing from CloudKitty for instance, with the usage report found in Horizon that uses this API, and the numbers will not add up, as people might only consider the time a VM has been up and running to charge users in CloudKitty. An extension was proposed in [1], to allow operators to customize the usage accounting. However, during a meeting with the community [2], the extension was rejected for two reasons: * Nova tries to avoid using config driven APIs. Meaning, APIs that change the response according to server-side configurations; * The community has decided to get rid of usage and billing accounting in Nova. Having said that, we would like to propose a documentation amendment. The idea is to explicitly say for users/operators that the simple usage API only considers the time that the VM existed in the cloud for the accounting, and not the actual time it has been up and running. This will save some misunderstanding and misuse of the API data. References =========== [1] https://review.opendev.org/c/openstack/nova/+/711113 [2] http://eavesdrop.openstack.org/meetings/nova/2020/nova.2020-12-03-16.00.log.txt Closes-Bug: #1907133 Change-Id: Ic55669f5210b57f151f693393f205655765a8dc9 |
||
---|---|---|
.. | ||
conf.py | ||
diagnostics.inc | ||
extensions.inc | ||
flavors.inc | ||
images.inc | ||
index.rst | ||
ips.inc | ||
limits.inc | ||
metadata.inc | ||
os-agents.inc | ||
os-aggregates.inc | ||
os-assisted-volume-snapshots.inc | ||
os-availability-zone.inc | ||
os-baremetal-nodes.inc | ||
os-cells.inc | ||
os-certificates.inc | ||
os-cloudpipe.inc | ||
os-consoles.inc | ||
os-fixed-ips.inc | ||
os-flavor-access.inc | ||
os-flavor-extra-specs.inc | ||
os-floating-ip-dns.inc | ||
os-floating-ip-pools.inc | ||
os-floating-ips-bulk.inc | ||
os-floating-ips.inc | ||
os-fping.inc | ||
os-hosts.inc | ||
os-hypervisors.inc | ||
os-instance-actions.inc | ||
os-instance-usage-audit-log.inc | ||
os-interface.inc | ||
os-keypairs.inc | ||
os-migrations.inc | ||
os-networks.inc | ||
os-quota-class-sets.inc | ||
os-quota-sets.inc | ||
os-security-group-default-rules.inc | ||
os-security-group-rules.inc | ||
os-security-groups.inc | ||
os-server-external-events.inc | ||
os-server-groups.inc | ||
os-server-password.inc | ||
os-server-tags.inc | ||
os-services.inc | ||
os-simple-tenant-usage.inc | ||
os-tenant-network.inc | ||
os-virtual-interfaces.inc | ||
os-volume-attachments.inc | ||
os-volumes.inc | ||
parameters.yaml | ||
request-ids.inc | ||
server-migrations.inc | ||
server-security-groups.inc | ||
server-topology.inc | ||
servers-action-console-output.inc | ||
servers-action-crash-dump.inc | ||
servers-action-deferred-delete.inc | ||
servers-action-evacuate.inc | ||
servers-action-fixed-ip.inc | ||
servers-action-remote-consoles.inc | ||
servers-action-shelve.inc | ||
servers-actions.inc | ||
servers-admin-action.inc | ||
servers-remote-consoles.inc | ||
servers.inc | ||
urls.inc | ||
versions.inc |