Horizon removed the Django-based implementation of launch instance [1]
which was overriden by cloudkitty-dashboard. Remove override to avoid
breaking Horizon when cloudkitty-dashboard is enabled.
[1] https://review.opendev.org/c/openstack/horizon/+/816303
Change-Id: Ib6516cfb4d9bbe75ddb62969f62629712afca38b
Story: 2009924
Task: 44788
The ugettext_lazy method has been deprecated since Django 3.0[1].
This was already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: Ideeaff4a0bc43e69c7465f34062edc5e381932d5
ABCs in collections should be imported from collections.abc and direct
import from collections is deprecated since Python 3.3.
Change-Id: I6a96d3ed3f046f87822c4cedaa51041885a2d3b6
The CloudKitty dashboard now inherits the interface type from Horizon.
This allows for easier testing, like in an all-in-one to use the
internalURL.
Change-Id: I28d6d1ac1a9d8db4accc4cadc5da261cb86330fd
Story: 2008879
Task: 42424
By default series on the "Cost Per Service Per Hour" graph are stacked
together which means:
* all series have to have the same length, otherwise Rickshaw/D3 won't
be able to stack them up;
* series are drawn one over another and since they are area graphs, this
gives false impression of scale (series other than the first one will
appear higher than what the scale on the Y axis suggests)
This change disables stacking of data series.
Story: 2008582
Task: 41735
Change-Id: I6aed92383a70f8dcf26c45155ef1d16169d40601
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz
Change-Id: I999c8fd4db3b8245f90e3e8f517af606c3b68aa7
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I5a4123c0c5e18c0e25383491253299fc5b54618b
The third party mock library was needed for mocking support across py2
and py3. Now that we have dropped py2 support, we can use the standard
library unittest.mock instead.
Change-Id: I8b0db843743ba234f35f54e29ca820c909102059
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
In python 3, hasattr() expects __getattr__ to raise an AttributeError if
the attribute does not exist. This updates TemplatizableDict accordingly.
Change-Id: I989b5c5d8888bce47fa8c8d7157097d3ea48e0b5
On some forms, after the operation succeeds or fails,
no prompt message is displayed.
This patch add success and error messages on some forms
Change-Id: I07832b79b02871d5e6c8422ea91a7a6f11ae8137
On some forms, after the operation succeeds or fails,
no prompt message is displayed.
This patch add success and error messages on some forms
Change-Id: Ibf031845dd4d30221f45b7501342c22a0c3ccd79
This updates the predictive pricing of the horizon dashboard. Work items:
* The "flavor" field has been changed to "flavor_name" in order
to match gnocchi.
* It is now possible to specify the hashmap service to use for predictive
pricing through the "CLOUDKITTY_QUOTATION_SERVICE".
* The hashmap service used for quotation does now default to "instance"
instead of "compute".
Change-Id: Ice42fc1687ade87c2a4690e3e52782ecbf7f0ee3
This is a rework of the Project/Reporting tag. Its main goal
is to draw the "Cumulative cost repartition" piechart without D3pie,
in order to get rid of that dependency.
Work items:
* Remove d3pie dependency, and replace the piechart by a D3-only donut.
* Use consistent colors between the piechart and time chart.
* Add a color legend.
Change-Id: Ie2207be3c027b6042251fbcb7d93a3cd5455ad3d
Story: 2003578
Task: 24923
Starting with Django 2 (which is the python3 version), the reverse and
reverse_lazy functions are located in the django.urls module rather than
django.core.urlresolvers. In Django>=1.10 (horizon depends on 1.11), these
functions are available in django.urls. This commit aims at improving the
python3 compatibility.
Change-Id: I8e8d281c7cac21c4b5771d2430f7d376b7e8c46a
Until now, the region_name was not specified when instanciating
cloudkittyclient from the horizon dashboard. This caused the
client to use systematically use the default region. That
behavior was problematic in multi-region setups, as only the
cloudkitty API of the default region could be reached.
Change-Id: Ibb399a0b5b96aa808b0bbb7a5a82dd4d8a948063
cloudkitty-dashboard, so far, doesn't have sourcefull versions of JS files.
This makes the whole package non-free.
This is also quite dangerous, because there's no way to track version
of included javascript, leading to potential security hole disaster.
First step is to re-add the source file. Next step will probably be to
use XStatic packages.
This patch partially addresses:
https://storyboard.openstack.org/#!/story/2003578
but cannot claim to actually fix it. The proper fix would be XStatic.
Story: 2003578
Task: 24924
Change-Id: I02738e95a04bfb497c3bcc99fc7d4765bf23a67d
Work items:
- The "Project/Rating" tab has been improved: it does now provide a total
by metric type. This make use of the /summary endpoint instead of /total
(/total is deprecated).
- An "Admin/Rating Summary" tab has been added. An admin user can now have
the cost of every rated tenant at once. By clicking on a tenant, a
per-resource total for the given tenant can be obtained (this view is
similar to the "Project/Rating" tab). A per-resource total for the whole
cloud is also available.
Change-Id: I13b9ba9e04a330ec216378258ad024c8651f6ff5
This adds support for the both options mentionned in the title. The ca
certificate was wrongfully passed to keystoneauth through the 'cert' parameter,
which is meant for the client certificate.
Change-Id: I9a6759a8546a235975177bbea59334aa23f99328
Story: 2003689
Task: 26223
Depends-On: https://review.openstack.org/#/c/600510/
Modal forms need to use templates which extend the default modal form
template of Horizon.
New templates have a description paragraph too.
Task: 23260
Story: 2003138
Closes-Bug: 1749249
Change-Id: Ia2451892d5bf84e1a4bdfea808b9275cba669a17