* ugettext_lazy is removed
In Django 3.0 ugettext_lazy/ungettext_lazy have been deprecated in favor
of gettext_lazy/ngettext_lazy [0].
* urlunquote is removed
In Django 3.0 django.utils.http.urlquote/urlquote_plus/urlunquote/urlunquote
have been deprecated in favor of the functions that they're aliases for:
urllib.parse.quote/quote_plus/unquote/unquote_plus [0].
We are now using Django 4.2, so we should update our code
with the gettext_lazy/ngettext_lazy aliases.
[0] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
Change-Id: I2fe090fe170dd832deb9cf454a0400303d2e3d92
The Horizon masakari-dashboard only connects to the public in the
openstack_connection() function (masakaridashboard/api/api.py).
Closes-Bug: #2035571
Change-Id: I15433029ee9775fb593937f34c287a66125a1aab
the host names in them are not necessarily the same,
and Masakari service itself validates the input against
the nova service list, not hypervisor list,
since change I9c591d33f17a8d5950bdb1fc2d686e2301fc6d95 in Masakari.
Closes-Bug: #1944679
Change-Id: Id017b91c59aff54435c35d410fcb56a086a732ef
There is no logic in python-masakariclient that masakari-dashboard
requires. It is safe to drop. The check for supported API versions
was irrelevant already as it depends directly on OpenStack SDK.
Change-Id: I97c6db49f1a4dbd36f7003299938a05994e37cb6
If a custom CA file is configured via OPENSTACK_SSL_CACERT, currently
communication with Keystone will fail, since the session is not created
using this CA file.
This change fixes the issue by passing the path to the CA file to the
keystoneauth session constructor.
Change-Id: Iad1bdea97ed649cc3c8f042dc5dd147b989dfd0e
Closes-Bug: #1873736
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: I7f569c39d9b39c81c5e7db61d499ce4192ad0bb7
Depends-On: https://review.opendev.org/708069
Pass interface to honor 'OPENSTACK_ENDPOINT_TYPE' so it can have multiple endpoints,
without this it only communicate with the public endpoint.
Closes-Bug: #1891230
Change-Id: I7caf9170d63eff388af5d690dd6b054188752381
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ib80f2494f0355f6eafcd1df7f7822e31e9e64c40
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I7bf6d007ca8c01b53152301d862f3aacf11480b2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
assertItemsEqual was renamed to assertCountEqual in Python 3, and the
testsuite is failing now - rename it.
See also https://six.readthedocs.io/#six.assertCountEqual
This unbreaks the testsuite.
Change-Id: I3cce625c3cad6303f99198ba1c91f59f6f5add41
Added a new tab "Progress Details" on notification details page
to display status of the notification.
Depends-On: I9ba787bc8ef9528a7cff5b4c1411dffa454b66d2
Change-Id: I9807bfe3c61f455bf4d34d9da49b0f4945ca9d5a
Horizon and most horizon plugins support Django 2.0 in Rocky.
This commit focuses on passing the unit tests with Django 2.0.
It would be nice if masakari-dashboard team tests it in
real environments.
Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
Drops older Django unit tests from tox.ini
as horizon dropped Django <=1.10 support in Rocky.
Change-Id: I67907a2460f8472e5a6222210d74b3eed71be064
For host update it is showing incorrect message as "Successfully
updated segment". Modified the message as "Successfully updated
host".
Change-Id: Ib0c323a2b16b67ca73d0a0e5333ae69800e0203d
Implemented update host functionality.
Also added test case for update host.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I197440d069a1b5b49a234da8f05a01d45f222f2e
Implemented host detail functionality.
Also Added test case for host detail.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I7e62e4a2b1e15ddeb2a592670518d8358f4a6b1c
Implemented delete host functionality.
Also added test case for delete host.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I8265b4f1af7bb61d15d005ee3785895f678f7d10
Added host panel and implemented add and list host functionality.
Also added test cases that actually not covering the line of code
but tested the add and list host functionally.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I756ab397bd9c84a4520c4ed12a576832784ab41f
Added update segment functionality.
Also added test cases that actually not covering
the line of code but tested the update segment functionally.
Partial-Implements: blueprint masakari-dashboard
Change-Id: Ib0424ee076ff0e8cc8c3ea898d986d32cc195ed2
Implemented segment detail functionality.
Added test cases that actually not covering the line of code
but tested the detail segment functionally.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I214c9df87af3c4ff29abc2e2b30b287b81cd603c
Added delete segment functionality.
Also added test cases that actually not covering
the line of code but tested the delete segment functionally.
Partial-Implements: blueprint masakari-dashboard
Change-Id: Iabf59e92be9de09d2d2fde48fea403b7cd2bcd26
Added segment panel and implemented list and create segment
functionality.Added test cases that actually not covering the
line of code but tested the list and create functionally.
Partial-Implements: blueprint masakari-dashboard
Change-Id: I1366bfdc188f4e0d53fa46f2a6ea3790c9f295fc