Commit Graph

64 Commits

Author SHA1 Message Date
Kendall Nelson 1d52e37d0a Retire karbor-dashboard
As announced on the openstack-discuss ML[1], Karbor is retiring
this cycle (Wallaby).

This commit retires this repository as per the process defined in
the project-guide[2].

Thank you to all the contributors of Karbor for your hard work!

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html
[2] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Depends-On: https://review.opendev.org/c/openstack/project-config/+/767030
Change-Id: I972ffb299f93863c4e34b1f504b002095661e6af
2021-01-08 00:21:36 +00:00
manchandavishal a96c06dbfd Cleanup for Refactor-error-messages
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: Ie0538de1dd8df45009ca24bab379980d7d1b9613
2020-08-26 11:46:00 +00:00
Zuul 8a7401e0df Merge "Drop mox3 from karbor-dashboard" 2020-06-15 04:39:11 +00:00
Andreas Jaeger 5f293262c9 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Switch to using sphinx-build
- Use openstackdocstheme instead of python2 only oslosphinx
- Remove install_command from tox.ini, the default is fine
- Fix two hacking problems, those were masked by ignore
  to an empty string.

Change-Id: I8f67f8a7998a16805cbda52854a6b0f0ade05dc8
2020-04-21 08:41:10 +02:00
Andreas Jaeger 2396e14085 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix warnings found.

Change-Id: If966592a0f0d2c1000d5dc1ddafe2a3bcae88551
2020-03-31 13:08:03 +00:00
jacky06 98cdd8207e Update json module to jsonutils
oslo project provide jsonutils, and karbor use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/karbor/search?q=jsonutils&unscoped_q=jsonutils

Change-Id: I8a191a0a668a05eb1a63bb6cf45eb2624a7f848a
2019-02-28 00:34:20 +08:00
OpenStack Proposal Bot 77f7031710 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I67bcd60ce7ed13b31a82e89389746ec80c3e9b60
2018-08-12 07:34:02 +00:00
OpenStack Proposal Bot 8c851fce39 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5842ed05896f6a76b718fd835867cfb0b01f8b4e
2018-06-17 07:24:03 +00:00
Charles Short 6aca9b6580 Drop mox3 from karbor-dashboard
This patch does several things at once:

- Remove mox from KarborApiTest. Use mock instead
  of mox3 to mock out the karborclient.
- Use mock to mout the karborclient.
- Drop mox3 from the test-requirements.txt.

This is apart of the mox community goal for Rocky.

Change-Id: Iea9e65778777746682895521f17ca69f5c27f7fd
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-03-29 15:12:34 -04:00
OpenStack Proposal Bot e33c2088f1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I81b491469e4e9b39477ea0fbe977e4c10e084f65
2018-03-01 06:54:01 +00:00
OpenStack Proposal Bot 761570ef87 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I51824947b49b97d592e080d66efea4538a248aa9
2017-12-13 07:08:52 +00:00
Jiao Pengju cce93819d1 Fix trigger creation failed
Currently, karbor use 'calendar' format as the default
time format, but karbor-dashboard use 'crontab', this
makes the trigger creation failed. This patch convert
the time format of the dashboard to canlendar to make
it work.

Change-Id: I7a89365005af3256bdf02478dd60428a118a8bbe
Closes-Bug: #1613587
2017-11-23 16:21:33 +08:00
OpenStack Proposal Bot 29740fce21 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I07a853fd8f508994c75583eda5e2ccc17cd42b3a
2017-10-10 07:07:49 +00:00
Pengju Jiao 1d7fd7c754 Fix checkpoints pagination error
Currently, previous page in checkpoints pagination not
work, it always throw an error in the web page. It is
because that checkpoints in karbor do not need reverse
the order (checkpoints are sorted by 'timestamp@id' in
the backend, so we can not do the reverse only be the
id or name)

This patch will fix it.

Change-Id: I45c3e7337bf2ee9d3f2fbf9ee7a438884b8b8ca9
Closes-Bug: #1714909
2017-09-05 10:31:01 +08:00
Yuval Brik f2f7e6f99b Plan: fix sending per resource parameters
Patch [0] added filtering for plan parameters, to only send parameters
of resources whose type is being protected. This introduced a bug where
per resource parameters were not sent.
Fix that by apply the filtering correctly.

  [0] https://review.openstack.org/492393/

Change-Id: Ic3cdefe1a27587de4e887e509075e7c43a314262
2017-08-13 14:19:48 +03:00
Yuval Brik 90437986bc Plan: send only parameters for protected resources
Change-Id: I0d47d065b3567c0118dcfccfed5d794013f22f0c
2017-08-10 09:39:05 +03:00
iswarya_vakati a42bb36d5f Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: I751aa0e819faaf0a5cd07741fa812ab15dec967d
2017-07-05 16:01:54 +05:30
Jenkins 583dda65ba Merge "Scheduled operations minor label fix" 2017-03-26 08:31:02 +00:00
Yuval Brik 8549df5c37 Scheduled operations minor label fix
Change-Id: If827a87cea6b7452be861739705c8a20a8d0d561
2017-03-21 16:41:53 +02:00
zhangshuai 5497479156 Fix restore form page
Make restore target optional, user can use default target or
specified restore target by choose the checkbox.

Change-Id: I732dcb684c4b60568817f8fa9ff806955ebaa9a6
2017-03-20 03:24:11 +08:00
Jenkins de064cb87c Merge "Redirect checkpoint restore to restores page" 2017-03-08 09:05:07 +00:00
zhangshuai 4037c0954a Fix restore index page
Query restore related checkpoint may fail, because the checkpoint may
be deleted.

Change-Id: I6179c4179cca2ddbd85b1b12c5ff2ff9433006e6
2017-03-02 08:28:04 +08:00
xiangxinyong 560fc002fe Redirect checkpoint restore to restores page
Once the restore operation is successfully initialized,
redirect to the restore page to get restore state and progress.

Change-Id: I3d3fccbb36dd28d65461b1a18a844fe11e1692b6
2017-02-16 09:35:03 +08:00
Jenkins e7f4f7ef9d Merge "Update restore status in restore page" 2017-02-15 09:54:02 +00:00
Jenkins 5e949b43db Merge "checkpoints: errorneous status_choices -> False" 2017-02-15 09:53:48 +00:00
chenying aec32d5508 Update restore status in restore page
When watching the restore page, update (poll?) the restore
status. If a restore is in_progress, user shouldn't refresh
the page to see it is success.

Change-Id: Idca8860f726eaf5a450e8335b112b9d845b26377
Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>
2017-02-15 11:36:02 +08:00
chenying 11e6346ce3 Fix checkpoint restore form
The restore api has updated, so update this.
and add validate for url

Change-Id: Ibe9dec6f356359eb1535d7f643d235f2547a770d
Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>
2017-02-15 03:12:44 +00:00
Yuval Brik 05db01beb9 checkpoints: errorneous status_choices -> False
Change-Id: I1fc04f8bfc089390ad1198c59383cfab7daafcdf
2017-02-13 14:53:57 +02:00
Jenkins dc95a510dc Merge "Removes unnecessary utf-8 coding" 2017-01-26 17:47:18 +00:00
ji-xuepeng afdd39309f Removes unnecessary utf-8 coding
TrivialFix

Change-Id: Icce92522b064b98e08d8ab149f5784e87bc6c93d
2017-01-26 21:40:04 +08:00
zhangshuai 4a30be1e2b Add checkpoint's link url to provider detail
Such as the title

Change-Id: Ie02df9a2b0bf1e8650a9904d5a2216226a621d5a
2017-01-26 08:59:36 +08:00
zhangshuai d2105f78c0 Update checkpoint status in checkpoint page
When watching the checkpoint page, update (poll?) the checkpoint
status. If a checkpoint is protecting, user shouldn't refresh
the page to see it is available.

Change-Id: I4dd046a3314219586b83837593ebb16fb1217077
Closes-Bug: #1622594
2017-01-26 08:50:53 +08:00
zhangshuai 8374be577c Fix the 'Protect Now' action in protectionplan page
It is better to redirect to checkpoint index page after running
'Protect Now' action.

Change-Id: Id3de4e01371ba5d938ae81d9275745921d0a643a
2017-01-25 03:37:01 +08:00
Yuval Brik 22ec1940fc plans: add provider name to plans table
Change-Id: I68763f5e7ae9993d48ffbd04af27deab084c1b6b
2017-01-24 11:43:45 +02:00
zhangshuai bd1c573a9f Fix provider show checkpoints page
Click on "show checkpoints" of the provider page, provider filtering
options of checkpoint page always display the default value.

Change-Id: I2b414018c6faaf5a0a437e92fc207b4506ea1b15
2017-01-22 07:38:36 +08:00
zhangshuai d3f3c06a05 Plan edit - change resource and parameters
User is unable to update the Protection Plan from the dashboard
- updating name, status, resources and parameters.

Change-Id: I5dfcc9507689a27d1a6bfdc9ca8f9f4711ba797a
Closes-Bug: #1643338
2017-01-16 14:18:12 +08:00
zhangshuai f3eec93b83 Provider is being get for each checkpoint
In checkpoints/views.py, IndexView class, get_data() method, we list
the checkpoints for a provider.
After that, we iterate the checkpoints for that provider and get the
provider using karbor client. This is not necessary: all the checkpoints
are from the same provider, and even if they weren't, we could use karbor
client to get each provider only once.

Change-Id: I790116137a321570c6d386e435f24a5efde2e607
Closes-Bug: #1643331
2017-01-12 04:57:35 +08:00
Jenkins 5b48b1acea Merge "Fix deleting child_sid from nodes_dict one more time" 2016-12-26 02:43:28 +00:00
smile-luobin de71d54143 Fix deleting child_sid from nodes_dict one more time
Change-Id: If8bd0fffbd03bc049d693ce9eae09ae7088c7253
2016-12-25 13:18:45 +00:00
smile-luobin 5f24a51f1b Fix using one str to initialize three variables on a single line
Change-Id: Icacf891cb197b1ee583cb55d3f16bfb68c36103b
2016-12-25 13:18:42 +00:00
Jenkins a7a2e83c14 Merge "Remove unnecessary karbor_dashboard/models.py file" 2016-12-04 14:28:33 +00:00
xiangxinyong 897059fe8e Add delete function in Scheduled Operations
Change-Id: I0ca29bc1eb1bb905adb6af8f8890e9f71ce36f03
Closes-Bug: #1646668
2016-12-02 11:09:37 +08:00
xiangxinyong 1d320b8a72 Add filter feature in Scheduled Operations
Change-Id: Ibb82d3db0822b3ca2bc290346f865af557e00247
Closes-Bug: #1646664
2016-12-02 10:42:15 +08:00
Cao Xuan Hoang 8ee15e773f Remove unnecessary karbor_dashboard/models.py file
The django issue [1] have already fixed. So we can remove the file now.

[1] https://code.djangoproject.com/ticket/7198

Change-Id: Ic9ff376b6f11d0f7db8e9bde144e5581b44c0cb0
2016-11-29 11:13:20 +07:00
Jenkins ba9460e383 Merge "Block checkpoint restore/delete when not available" 2016-11-22 08:14:00 +00:00
xiangxinyong c56125a110 Solve operation logs ui broken
The operation logs ui is broken and throws the following exception:
'IndexView' object has no attribute '_more'.
It should be solved by removing the paging function.

Change-Id: I04a3ae4cea5593b992914f97f3ed9547730d4c87
Closes-Bug: #1643515
2016-11-21 19:39:07 +08:00
Jenkins c4a51d9d7c Merge "Reinit operation logs panel in Karbor dashboard" 2016-11-21 03:48:40 +00:00
Yuval Brik 93e22f5acd Block checkpoint restore/delete when not available
Closes-Bug: #1622596
Change-Id: Icc34ff5464d632a91713d4d7532c58e4c1cea974
2016-11-17 13:49:05 +02:00
Jenkins 4cee645ef0 Merge "Reflect async of checkpoint delete in message" 2016-11-14 12:29:18 +00:00
Yuval Brik 21afe97f7a Reflect async of checkpoint delete in message
Delete is an async operation. Reflect that in delete message

Change-Id: I814fbb6fab2b77557597044d125d90d7163bd3f3
2016-11-07 18:12:44 +02:00