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
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b
Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.
Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).
Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.
Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
The use of filter() within the codebase expected the output to be
an interator, but the filter function in Python 3 now returns a
lazy loading generator and resulted in stack traces.
This commit replaces the use of filter() (+ lambdas) with more
readable list comprehension to be compatible with Python 2 and 3.
Change-Id: I56af1dc1f6648ec334f901cb59893240b0125031
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.
Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
Horizon commit e50a69d69f338d0ec66baa659a7d82e328e62a67 saw
_cls_registry become a list instead of a set. We need to reflect this
change, or else see:
'set' object has no attribute 'append'
Change-Id: I302b6120145909fc4d342579818b05584a0820a3
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
blocktrans trimmed option removes newlines from contents of blocktrans
and replaces any whitespace at the beginning and end of a line into
a single space. This makes translator life easier.
Closes-Bug: #1741761
Change-Id: I7e8d5337553fff595e66ea406f6528bb6b36ff94
Partially-Implements: bp portable-node-group-and-cluster-templates
This change adds button "Import Template"
to cluster templates tab in dashboard.
Change-Id: If83aaf34f84e82052c3a82ab36cb61648ff3125f
Partially-Implements: bp portable-node-group-and-cluster-templates
This change adds Import Template button to Node Group Templates Tab.
Change-Id: I68c2fa2a856fa8e14aa9512b11f0ea326c25f2a5
Default sorting is not good enough, since it alphabetically sorts
numbers, as in 11 < 2 instead of 11 > 10.
Change-Id: Iaa575cf4ba0fe76524ba2823ce50de30a5b931d9
Closes-Bug: #1707204
Partially-Implements: bp portable-node-group-and-cluster-templates
Depends-On: I027169ace70929318990a4225d456bf1cf8a83b2
This chande adds an option to GUI to enable user export a cluster template
Change-Id: If1c1b055c3f03b656853db1b35c42a422b08de7f
Partially-Implements: bp portable-node-group-and-cluster-templates
Depends-On: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df
This change adds functions to saharaclient to enable export of ngt
to JSON.
Change-Id: Ic5d9dffd0a3ae21a28ecbcfdd88f5cd1194551bb
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
If cluster verification in Sahara is totally disabled, then operators
probably do not want to have ugly UNKNOWN in the cluster status page.
They also probably do not want any references to health at all, if
there will never be any usable information there. So, let's add
something that can be read from local_settings to disable these when
the operator doesn't want them.
Change-Id: Ifc624d07767ed29646aa8a5b5739103fd4972b90
Co-Authored-By: Lucas H. Xu <xuh@bu.edu>
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
Horizon has some changes as bellow about security group and keypairs.
Sahara-dashboard should sync the location of resource with horizon.
* Move Security Groups into its own panel
https://review.openstack.org/#/c/427882/
* Make Key Pairs tab a panel under Compute:
https://review.openstack.org/#/c/408247/
Change-Id: I705e2feff090acd1d17e58b3d77c185fd0006c19