Without this, when that config is set, the healthcheck will
report uncollected projects that aren't being collected
anymore.
Also fix some testing.
Change-Id: Ife60eee1400ec596565188b477d64f68b247fcec
When collecting a container that has already been deleted
we will get a 404 error, we should just handle it.
Change-Id: Iec7904c5d8554526711a89adf134405028fb757d
Introduce a new ObjectStorageMax transformer which
takes a container and bases the service for it on the
policy used for it in swift so that we can charge differently
for each policy.
Change-Id: Id1a0d7783ae72de0a2da36245badbd770508be81
1. Adding a new config option to support extra product category
2. Support SLA discount product category explicitly
Change-Id: I244c83ee3af3c33e993f332d2093398785e5adfb
Instead of hardcoding the os_distro name in code, this patch is
proposing to add a new config option 'licensed_os_distro_list'
under odoo config section so that we can support more os_distro
for licensed products.
Change-Id: Ia913ebec82815d5e9a0b681d0b0e0b4f5ecbb2d1
If some projects are ignored, we should not take them into consideration
when calculating the last collection time.
Change-Id: I44393101fd655ab7dea542493c53245616ec3c4a
Using 'fields' parameter to explicitly tell odoo to get the fields
we need can improve the query performance a lot.
Change-Id: Ie28f876f9236128a3ecfaf3696a26816d6599d2f
Currently /health API doesn't support the ignore_tenants config
option, which is not consistent with the collector behaviour.
This patch adds the support and related unit test.
Change-Id: I72e5ed35bd50e629d06c6fe53715d056cc024241
Usercase of invisible products:
As a cloud provider, I'd like to hide some products which I don't
want to expose to project users.
In the patch, the units in invoice API is also fixed by getting
the units info from product's internal reference.
Change-Id: Iff05f61c0bc303a100f477696dcc904b64c9724d
This isn't actually used and is a leftover from a thing we did
seven years ago that survives today through copy-pasta.
Change-Id: Ibe09b0c6e3b5f356f63fcf6eda1cdea7394e7808
To get a better API spec, this patch is following the OpenStack
community way to describe API ref. Only /products endpoint is
included, costs and usage endpoint will be added in following
patches.
Implement blueprint: api-ref
Change-Id: Icaa121c4257fcc27df93e63ec8c2bb095ac41c43
Currently, the volume field in the response of /measurements
API is returned as string type, which is not a best practice.
This patch fixes it and changes the test accordingly.
Change-Id: I394ae5a48f97f7efe1cad1ae7609b3fd6364bfae
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links
Change-Id: Id62f97ed4c4f853dcd1e800c92f48c891a3ea1f4
The state/status of invoice can indidate if the invoice has been paid
or not. It would be nice to show/remind our customer via billing panel
if their invoices have been paid.
Change-Id: Ia3f77bbf04ece10f0dc9fdcafa93fcb8d8401c98
To show the discount info in invoice, it's necessary to add discount
into the discount/category mapping.
Change-Id: I53580eaafbd80bd9efd9a17eab03d42bf1edf481