Commit Graph

143 Commits

Author SHA1 Message Date
manchandavishal cc41dedbc5 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I66118c1af551e69a2deabf87b37efa574233e93b
2022-04-29 16:44:48 +05:30
Cai Hui ed5462edac Fix pylint error:H405
Fix pylint  H405: multi line docstring summary not separated with an empty line

Change-Id: Ic2579afbc20319fc5e35c5170cf33f1e39a8e7f7
2021-11-06 19:27:41 +08:00
OpenStack Proposal Bot c1c0d57ede Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie2567b7f54e8cc54e1814b6884a5184581e1bd5a
2021-03-03 06:27:19 +00:00
jacky06 b248f85a1e Update to hacking 3.0
Update to newest hacking version, it has only minimal changes and full
support for Python 3.

Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

Change-Id: I67f390e6d7b6fb9eeb7522728ba293d3337b3327
2020-05-17 03:14:40 +00:00
OpenStack Proposal Bot 75b145a459 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I176d97ee1a76bd91569cad69ac87e82fa96c265f
2020-01-17 07:32:06 +00:00
Cai Hui 6763ff9a59 Use freezerclient.client to support v1 or v2
The python-freezerclient 2.0.0 is released now. We can directly use
freezerclinent.client to support api v1 or v2.

Change-Id: I30ad8694d137e0fab081b0f8ded842caa723c86f
2018-11-06 20:33:41 -05:00
Zuul 757bd202ed Merge "Support freezer API v2" 2018-10-30 01:13:11 +00:00
Cai Hui 6b2b395796 Support freezer API v2
The web-ui support API v2.

Change-Id: I2a27d092bb38c3ebff1e89b333e017cc12e67624
Story: 2003973
Task: 26915
2018-10-29 07:50:22 -04:00
Qian Min Chen e28dfcf7d3 Remove the redundant attributes
DeleteInstance action inherits from tables.DeleteAction,
the parent class has the 'name', 'classes' and 'icon' attributes,
So remove the unused attributes.

Change-Id: I5ef01ce68edcd7e78ac95747cf5fd8d8f8c96c81
2018-07-19 17:48:08 +08:00
Zuul 3d5d31aa05 Merge "Imported Translations from Zanata" 2018-07-02 11:44:58 +00:00
Kent Wu 40a07a0e00 Avoid using deprecated opt in Web-UI
Use new opt instead of deprecated opt to avoid KeyError.

Change-Id: I9bff33eac9c756afb571f81824a8a3242477f321
Closes-Bug: #1777705
2018-06-19 16:10:24 -06:00
OpenStack Proposal Bot 739e664e9e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I804979472c982c0f041edc2dc5bbe090f96f9460
2018-06-16 07:26:04 +00:00
Jakub Jursa 357117beff Added engine_name parameter to action creation.
With implementation of new engines (nova, rsync, ...) a regression was
introduced - user is no longer able to create working action for nova instance
backup because config generated by freezer-scheduler passed to freezer-agent
doesn't contain 'engine_name' thus falling back to default value 'tar'
even when 'mode' is set to 'nova'. This patch adds possibility to specify
'engine_name' in web UI which is then passed to freezer-scheduler job cfg.

Change-Id: Ifc4ed728db369da54fecef3c2ecf4dfcbfe4fefb
2018-05-22 10:45:19 +02:00
Akihiro Motoki 6bf20357fe Django 2.0 support
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

Note that this commit does not add py35dj20 like other horizon plugins
because there is no actual python unit tests in freezer-web-ui.

Older Django unit tests were dropped from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I38f3f05655324f2a5f38c6e8c6ab53ebaa42d4c8
2018-05-14 02:34:28 +09:00
Ivan Kolodyazhny f2feb0f056 Use Horizon UT framework
Let's use Horizon unit-tests framework where it's
possible to have better cross-project integration.

Related blueprint: improve-horizon-testing

Change-Id: Ibfe2c062c54563e2bd35410459be8b5c7b2d550e
2018-04-20 11:52:38 +03:00
OpenStack Proposal Bot ab8691b281 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5fc7a2889f63bada6586c366349992e6f52addfe
2018-03-11 07:06:07 +00:00
OpenStack Proposal Bot 5e6215063c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idbcc5b9933fecabd5277fb4f6e9fd995e9684ff6
2018-03-01 07:09:41 +00:00
Zuul 6746550139 Merge "Imported Translations from Zanata" 2018-01-24 17:30:12 +00:00
OpenStack Proposal Bot 4c02b1887d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibbce88700bb8288c6f663d87749126d29a383db2
2018-01-24 08:42:53 +00:00
Stefan Nica 1843be52c1 freezer-client: proper use of cacert option
The OPENSTACK_SSL_CACERT dashboard option was incorrectly
passed as 'cert' instead of 'cacert' when initializing the
freezer-client session.

Change-Id: I1f0b9fe27046caa87398800d91a944bb1d72a1e3
Closes-Bug: #1744992
2018-01-23 19:10:23 +01:00
yang zhenming 569d1dba07 modify the wrong list name of schedule_unit to interval_uint
Closes-Bug: #1744625

Change-Id: I8bd3019405132251774434c82845fdb356e94435
2018-01-21 21:31:33 -08:00
OpenStack Proposal Bot 3ca671efe6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic37392d7416638f3957d429a515fa21d27e22893
2017-10-15 08:50:30 +00:00
Jenkins 460c91aea4 Merge "Add attributes "data-display" to clients table row" 2017-09-20 15:55:58 +00:00
Jenkins 987e6aba7d Merge "Add delete backup operation in UI" 2017-08-15 13:11:59 +00:00
OpenStack Proposal Bot 4746edcd18 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: Iad50ec27619e874eec98b7454b3977801d3551e6
2017-08-14 08:30:55 +00:00
yapeng d6ae33196b Replace patterns syntax by url
The old syntax using patterns is deprecated in Django 1.8, and is
removed in Django 1.10. The current version Django<1.11, this
patch fix the syntax.

Change-Id: I26564c97538c23378c0494739257b31dd8796f5a
Closes-Bug: #1709742
2017-08-10 03:03:19 +00:00
zhangdebo1987 5296db8b0c Add attributes "data-display" to clients table row
In clients table, row attribute "data-display" is missing, so
when we cann't see client name in deleting confirm dialog.
Now I fix it.

Change-Id: Ie0b6b7dcf419b1c4ab4b83715410b7bb678f39fe
Closes-bug: #1703501
2017-07-17 15:39:39 +08:00
howardlee 588b60044c Add delete backup operation in UI
Currently, there is no delete backup operation in freezer-web-ui, if
we want to delete a backup, we can only use the command line. This is
not convenient. This patch will add operation of deleting backup in
freezer web ui.

Change-Id: I31de6b8cafd7cba043ae050f9d4a83d697adb6c6
2017-07-11 08:25:54 +00:00
Jenkins 3aa37ab394 Merge "Failed to create job using freezer-web-ui" 2017-06-06 19:05:42 +00:00
howardlee 2006cdcfde Failed to create job using freezer-web-ui
It can not create a job when i use the freezer ui and it does not
report any error on ui or in log file. When i input corresponding
information and click "save" button on the 'Job Configuration' dialog,
it dose nothing and the 'Job Configuration' dialog still exists.

The cause of this problem is that it get None of uuid when get clients.
This patch will fix it.

Change-Id: I633ba237f18df63072c36ef545497aa51c3dda2c
Closes-Bug: #1688212
2017-05-04 02:26:03 -07:00
zhangdebo af953deb65 Fix a bug when restore a nova instance from UI.
First I backup a nova instance successfully, then I want to
restore it, I have created an action and a job, but the job
runned failed, I found an error in log of freezer agent:
"The parameter --nova-restore-network is required"

In the web form, the name of input field for network is called
"nova_network_id", but in the freezer project, it's called
"nova_restore_network".

Change-Id: Ia2aba0090ac04c5d444fcab675d9cd3357db01cd
Closes-Bug: #1686653
2017-04-27 02:41:34 -07:00
Mohammed Naser 65821bc808
Switch BackupObject to use backup_id
The backup_uuid parameter was dropped from the API for sometime which
means that some of the API calls that expect it to be there in the
dashboard do not get it and return 'None' instead.  This breaks a few
things like the backup list and other features.

This patch addresses this issue by replacing the backup_uuid with
the new key, backup_id.

Change-Id: I4a1ed6cb1247a281f5f1a980fe96fc4a63b18162
Closes-Bug: #1683174
2017-04-16 15:34:49 -04:00
Jenkins d2069fc2b4 Merge "Modify "Interval" field to select format" 2017-04-05 10:21:30 +00:00
Jenkins 6037076e9c Merge "fixed the mistake in using update job web page" 2017-03-30 14:14:51 +00:00
Jenkins 96b54e336b Merge "Replace django_date with datetime.datetime.strftime" 2017-03-28 14:25:13 +00:00
Jenkins 2f018690e7 Merge "Added project_id for keystone v3 credentials" 2017-03-28 14:16:11 +00:00
Memo Garcia dc8c12afef Better error message in horizon
Change-Id: I74384e092cb02c1f7a1979e7fa7a5e555befcd97
2017-03-10 17:02:28 +00:00
Memo Garcia c12d4dabfd Added project_id for keystone v3 credentials
freezer dashboard now supports multi-domain accounts

Change-Id: Ia924210c38cc9e95f5fad3a62ce6170e6de2c71a
Closes-bug: 1671860
2017-03-10 15:52:35 +00:00
jiangpch d78e627783 Replace django_date with datetime.datetime.strftime
The django_date transforms time to string with i18n, which will
cause error while using chinese, we can fix this either encode
the date_str using 'utf8' or use datetime.datetime.strftime to
do the transform job.

Closes-Bug: #1671315

Change-Id: Ice599334b29125cfac69ab30e04b956024f34517
2017-03-09 02:38:33 +00:00
Jenkins 4e94b1e1c0 Merge "Add the missing name in confirm delete modal" 2017-03-08 14:40:35 +00:00
Jenkins 83aaebf879 Merge "Place the error message to correct position" 2017-03-08 14:22:22 +00:00
Jenkins d718cbdc7d Merge "Optimize the checks of instance id for create action" 2017-03-08 14:22:16 +00:00
Jenkins 0a49ff6b97 Merge "Modify the 'Attach To Session' form to 'Bootstrap Modal'" 2017-03-08 14:22:13 +00:00
Jenkins 5d3c08d5f1 Merge "Remove the redundant codes" 2017-03-08 14:22:05 +00:00
Tong Shan bc2066f6bd fixed the mistake in using update job web page
In page "create job" configuration interval help information
is following some format,but when "update" is not the same.

Change-Id: I83761bbea9d6fd4b226254a8a018d27a792def1c
2017-03-02 00:18:44 +00:00
Ruslan Aliev 8add59f426 Removes useless 'verify' option in Client args
Change-Id: Id384e89852ad1070d89faa41f60a5940567718f8
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2017-02-15 18:46:50 +04:00
qiaomin f702a606ca Place the error message to correct position
Modify the error message 'You must define nova network id to restore'
to be around the 'Nova Network ID' field.

Change-Id: Ic732a33c2fd754afa6d1d796b8d9e6f1e382c135
Closes-Bug: #1663888
2017-02-11 22:40:54 +08:00
qiaomin 031917bbcb Optimize the checks of instance id for create action
Make the checks of "Nova Instance ID" and 'Cinder Volume ID'
more correct for create action.

Change-Id: I051cca74d629febb01203c1eb4f2d35f091a7b8d
Closes-Bug: #1663887
2017-02-11 22:29:52 +08:00
Jenkins 40f832375f Merge "Optimize the checks of container for create action" 2017-02-11 12:48:07 +00:00
Jenkins af82e3617b Merge "Modify "Restore From Date" field to datetime format" 2017-02-11 12:47:58 +00:00