Commit Graph

43 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
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
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
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
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
Jenkins 987e6aba7d Merge "Add delete backup operation in UI" 2017-08-15 13:11:59 +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
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
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
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
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
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
Cao Xuan Hoang 02a4288827 Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ibfaf35be7506db820bea8e41a7fc8fcaf20fe08a
2017-02-06 11:21:15 +07:00
Jenkins 76ca03fd28 Merge "Replace LOG.warn with LOG.warning" 2017-01-12 13:21:25 +00:00
Jenkins fe839b03ae Merge "Replace directly import of logging with import oslo_log" 2017-01-03 07:30:50 +00:00
Pengju Jiao 4efa3a0a26 Fix saving edited session info successfully but shows original values.
Change-Id: I1a238b4de1f61c04803de8092d48cf7534f45fbf
Closes-Bug: #1648379
2016-12-08 21:45:24 +08:00
Pengju Jiao 73021724c2 Fix listing backups failed with using non-existing method.
Change-Id: Ia78b6940462c0e919be0f7b438369ff60e9e9a2c
Closes-Bug: #1647528
2016-12-06 18:36:08 +08:00
Ruslan Aliev b81b540c27 Switch to python-freezerclient
freezer-web-ui needs to be switched to python-freezerclient
in the same way as freezer. freezer.apiclient is no longer
available.

Change-Id: Icba3e628f7b1e9305b556609bf55676a776ecfa5
Implements: blueprint switch-to-python-freezer-client
Closes-Bug: #1643950
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2016-11-30 16:29:07 +03:00
gecong1973 40ebe1b1ff Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3.[1]
[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I93834b869fb5eeeae270bcd63fcd1b12800e45d9
2016-11-17 03:14:09 +00:00
howardlee ad8849332c Replace directly import of logging with import oslo_log
The oslo.log (logging) configuration library provides standardized
configuration for all openstack projects. It also provides custom
formatters, handlers and support for context specific
logging (like resource id's etc).

In addition, freezer-web-ui should be consistent with freezer in terms
of style commandments, for
more information,see:
https://github.com/openstack/freezer/blob/master/HACKING.rst

Change-Id: I99499c2b16bd7f7fec1be8ebc72f7632994576cc
2016-11-02 16:44:58 +08:00
Ryan Peters 6613c044c6 Retry data not being saved by UI
Updates the code to save the entire action to the job instead
of select data from the action.

Change-Id: I53fda7df69b587103edc74c80587c81f77b86744
2016-09-07 15:56:42 +00:00
Memo Garcia d91aff5de8 Updated tox.ini to support new test environment
Closes-bug: 1611040
Change-Id: I83f9d18db23fb4d8282cdce623dafba84cd89a73
2016-09-04 18:08:50 +01:00
Memo Garcia c141d3c6cf Remove workaround for web page refresh
Closes-bug: 1570292
Change-Id: I78d0aad92f96187e55cec78b76ccf99afb735932
2016-04-14 11:37:22 +01:00
Memo Garcia a1541e6a59 UX improvements
Fix calendar to better display in small windows
Bump the number of results for listing items
Quick workaround to successfully listing items after being created

Closes bug: 1556939
Change-Id: Ibaf0a999a729197900b18c1f22fd819f5e11e797
2016-03-25 12:05:25 +00:00
Jenkins 35aad06a62 Merge "Sync job status between scheduler and ui" 2016-03-10 13:59:36 +00:00
Memo García 1333614b4e Sync job status between scheduler and ui
Resolves bug: 1545682
Change-Id: I47f11677415553f8d870a65f370f453337dff064
2016-02-15 11:47:56 +00:00
Memo García 496b3ad47a Add SSL support for freezer-web-ui
Implements bp: ssl-support

Change-Id: I0870ffc9941c013658ed59ae6ae3f9e39a086467
2016-02-10 13:39:40 +00:00
Pierre-Arthur MATHIEU da9cbb1968 Using a smarter way to get freezer-api URL
By priority:
    - Getting it from the FREEZER_API_URL parameter in the enabled file
    - Getting it from keystone with the provided endpoint type
    - Getting it from keystone with the 'internal' endpoint type
    - Getting it from keystone with the 'public' endpoint type

Resolves bug: 1541933

Change-Id: I7c369ca192f9c3acf551270382abb2bf231abb38
2016-02-04 16:53:33 +00:00
Jenkins a49a0c6d20 Merge "Fix for sessions that point to non-existing urls" 2016-01-18 18:59:21 +00:00
Jenkins dd40a9438a Merge "Send max retries, interval and mandatory fields" 2016-01-18 18:58:37 +00:00
memo 94956bade3 Fix api endpoint for action retrieval
js code cannot reach the api endpoints for action retrieval in specific cases
because it depends on the actual url in the browser

Closes-bug: 1525169
Depends-On: I837e3fe973d72c792cb34711cef9f6507a004d49

Change-Id: Ibffad1a6a24559535c71ea94ba98deeb78ebeccb
2016-01-18 10:56:21 +00:00
Memo García c0d59cc838 Fix for sessions that point to non-existing urls
When a session is selected and then deleted, freezer-web-ui breaks by trying to
create a list of clients inside a non-existing session

Resolves bug: 1533705

Change-Id: I460c0abca746e74f2eab78694765ea941406ecf7
2016-01-14 13:51:47 +00:00
Memo García db813a823e Send max retries, interval and mandatory fields
max retries, max retries interval and mandatory values are not present in
the dictionary that the api gets, this commit fix that by updating the
dictionary with those values

Resolves bug: 1533637

Change-Id: I3be163db0da7e3e84881bb6c3ab378cb1687037c
2016-01-13 12:04:25 +00:00
Jenkins 168cbc22dd Merge "Add keystone 3 support for freezer ui" 2016-01-13 11:04:34 +00:00
Memo García 17f915e032 Enable restore from date in ui
Resolves bug: 1532801

Change-Id: I08dae9b39def792d2f3b0332ed1a7eaaf778eb7c
2016-01-11 13:31:23 +00:00
memo cd0ff0285a Add keystone 3 support for freezer ui
Implements: blueprint keystone-v3-freezer-ui

Change-Id: Id5f84fe4a26069ce162145826593dd19153bc237
2016-01-08 15:20:55 +00:00
memo b48b27fb8c Remove empty tabs in freezer dashboard
remove empty tab for job edition
remove possibility to add job without interval if start and end date
are provided
show a message when a job is started/stoped

Resolves bug: 1523497

Change-Id: Iff39fc9e813969672eecd48d9084fd100bcf611c
2015-12-08 13:58:08 +00:00
Memo García 2cc46f5886 Improved cinder and nova backups ui
Simplified ui for linux snapshots

Change-Id: I18c6350a217327c6fe924373ab104441cf82dc0c
2015-11-28 12:49:34 +00:00
memo 1435d33732 General dashboard enhancements
rename _50_freezer.py to _50_freezer.py.example
updated readme to point to freezer launchpad
improved readability for actions and jobs in the ui

Change-Id: Ib07719e5f91443ea6716f940b6b125b872505088
2015-11-26 15:03:01 +00:00
memo 1c5a79cdef Restore from swift, local and ssh from the dashboard
Restore a backup from the dashboard now supports different storage media to restore from

Change-Id: I303785be5c212c3c30f41d8c3dbf1c23f7818b73
2015-11-25 14:35:35 +00:00
memo 3cce1e3d3b Bug fix while editing actions with missing keys
If a key is not present in the database, the panel failed to open the modal
windows for edition, this fix that by using the dict.get()

Change-Id: Ic5f5e216828f10d41f288408fc5109dc004c6ab9
2015-11-18 14:43:22 +00:00
memo b08558eba4 Improved horizon dashboard for freezer
action, job, session, backup, clients are now objects in api.py
shield decorator to avoid having boilerplate code in views
move from freezer_ui to disaster_recovery url
improved actions edition in a job
javascript lint
added clients panel
added actions panel
improved restore functionality from the dashboard

Change-Id: I23aed516bcde3a40b24144b05f858d1e3a49a796
2015-11-12 16:21:27 +00:00