force_text() is deprecated in favor of force_str()
and urlquote() is deprecated in favor of
urllib.parse.quote() in Django 4.0. For more please
refer [1].
[1] https: //docs.djangoproject.com/en/4.0/releases/4.0/
Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>
Change-Id: Ibc97402b735c3ddbdd7a2174e14353dad34cbc22
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].
These were already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: I90224714987c8583a8d407f661494479db4214af
The 'SAHARA_AUTO_IP_ALLOCATION_ENABLED' config parameter in Sahara
is confusing. If you wish to disable floating IP options during node
group template creation, set it 'True', but this name sounds like it
has to do with automatically associating a floating IP. So this patch
renames it to a meaningful variable name.
Change-Id: If8f71ea21cb71bbffe996f7db88b7683ad91ecac
In patch[1], the change didn't completely fix the issue
that can't open NGT creating widget if django didn't upgrade
to the lastest version 1.11.
This patch fixes the issue by rewriting the method "build_attrs".
[1] https://review.openstack.org/#/c/489576/
Change-Id: I748c71fd26d3abaf4a059db3c2224589284131c6
Horizon team has overloaded a method "build_attrs" in [1]
to use "var-keyword parameter".
Sahara dashboard will face an error when click button to create
node group template. Error message is:
"TypeError: build_attrs() got an unexpected keyword argument 'name'"
[1]: https://review.openstack.org/#/c/484277/
Change-Id: I4b4fc2d12465fcda5e0feddcf4aab6b11bd9be10
If we don't check for all three possible Cinder service types, we may
end up with Cinder options hidden even when the service is in fact
available.
Change-Id: Ic844dc7d3b138b0918f9c436f0550fe0a4379bae
Closes-Bug: #1678534
Hot Fix: In [0], floating IP and security group operations within
openstack_dashboard were moved. The imports are now corrected.
[0] https://review.openstack.org/#/c/466645/
Related-Blueprint: bp sahara-remove-nova-network
Change-Id: I2c086613fff302e852a2dda51701c620371a27e4
Now if user wants create node group template
and cinder is unavailable, dashboard send
error message: "Unable to retrive volumes type
list".
We can skip pulling cinder information if it's
unavailable and show only one option to "storage
location" field: "Ephemeral Drive".
Change-Id: I53907be435f2c4290adb07d0ec0a2c121c9b890a
Closes-bug: 1524432
Now in file sahara_dashboard/content/data_processing/
nodegroup_templates/workflows/create.py in 445 and 448
lines we get general and service parameters with two
api calls to sahara.
It will be more optimize if we will create only one
api call to sahara.
Change-Id: I5305143d0430d4cd25ba98ce3145a0ab545210c7
Partial-bug: 1430112
There is block of help text by creating
Node Group Template or Cluster Template.
In this commit I add warning message to this
block, if version of plugin is deprecated now.
blueprint: plugin-management-api
Change-Id: I0b454f4762692ddac644602559a45cb0e7297643
Depend-on: Ia125ad8108cafd4e39dc1c2c53f3c62ff3ce3e78
This patch replaces request.REQUEST by request.GET, request.POST or by
their merge (merge is needed because in some cases the request
contains valuable information in both GET and POST methods
simultaneously), as the former doesn't exist anymore in Django 1.9.
This fixes numerous unit test issues in Debian Sid: from 21 errors
1 failure, to 3 errors and 3 failures.
Co-Authored-By: Michael Ionkin <mionkin@mirantis.com>
Closes-Bug: #1560270
Change-Id: Ie0784379895350f6dbfc03949b3473d5171df33b
.format() in python 2.7 cannot handle a unicode string if it contains
non-ASCII characters. This breaks i18n situations.
The behavior of .format() is different between python2 and python3.
We should use .format() only when we are confident that .format()
can handle passed values (like ASCII string or integer) correctly.
This commit does not touch other usages of .format() which work well.
Change-Id: I329b33c1c7776d7f24488572107f7ea35f418398
Closes-Bug: #1551014
This field allows to choice an image (including empty image choice)
for node group template
Also added Base Image field in Node Group Template details page
Change-Id: I87420c489664301dac3f6cad3abc06c97b0e8029
Closes-bug: 1528182
The imports order should follow the simple rule of
groups. There are usually 3 groups in most cases.
However this repository is a plugin so imports from
the base system (Horizon) should be moved to a
separate group.
So imports should go into the following groups:
1) Imports from Python standard modules
2) Imports from dependencies previded in requirements
3) Imports from Horizon
4) Imports within current project
Change-Id: Ie028a4aa6897a3400872a45b94b073b2819ee4ac
Removing the separate guide panels and putting
the code for each guide under the cluster and
jobs panels. Links to the guides still appear
at the top of the job and cluster tables.
Change-Id: I3ccd8370d40bdf9002ae23cbbbfd655a951969a2
Partial-Implements: bp reduce-number-of-panels
First patch in reorganizing the sahara UI to be more
tab oriented rather than death by a thousand panels.
There are other patches that will complete the work,
but this patch addresses the cluster-oriented panels
by moving them under a single panel named Clusters.
Change-Id: Iae4bf4b5127fb29153ec5335070cde7d344e059e
Partial-Implements: bp reduce-number-of-panels