Commit Graph

77 Commits

Author SHA1 Message Date
Kendall Nelson 6a49bf33e1 Update git submodules
* Update karbor from branch 'master'
  to 353f75eca0e2d2c32e898ddea94169ca73f0af54
  - Retire Karbor
    
    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-13 15:10:27 +00:00
Zuul c2c6a4acb3 Update git submodules
* Update karbor from branch 'master'
  - Merge "Switch legacy Zuul jobs to native Zuul v3 jobs"
  - Switch legacy Zuul jobs to native Zuul v3 jobs
    
    Replace the 'karbor-dsvm-fullstack' legacy Zuul job with
    the 'karbor-fullstack' native Zuul v3 job.
    
    See
    https://governance.openstack.org/tc/goals/selected/victoria/native-zuulv3-jobs.html
    for more details.
    
    Change-Id: I558c8e02011e98950354266254511bd113d5c5ec
2020-09-16 03:13:12 +00:00
Zuul 4cc55abe9a Update git submodules
* Update karbor from branch 'master'
  - Merge "Fix 'filter' object has no len ()"
  - Fix 'filter' object has no len ()
    
    Karbor has a python3 compatibility issue where it will fail with:
    TypeError: object of type 'filter' has no len(). 'filter' is a list
    in python.
    
    Change-Id: I6505e454e2073c1611cbe5c4887241253051b1f1
    Closes-Bug: #1891732
2020-09-16 02:30:26 +00:00
Zuul 3a099005e0 Update git submodules
* Update karbor from branch 'master'
  - Merge "Fix inner has no attribute 'message'"
  - Fix inner has no attribute 'message'
    
    When DBDeadlock in karbor-api service, it get the following error:
    AttributeError: 'DBDeadlock' object has no attribute 'message'.
    
    This patch corrects that problem.
    
    Change-Id: I1b268f5cca2c4efdcfb055d2fd8dfe522e6daf9d
    Closes-Bug: #1891571
2020-09-16 02:08:41 +00:00
Sean McGinnis f5b5f77aeb Update git submodules
* Update karbor from branch 'master'
  - Use unittest.mock instead of third party mock
    
    Now that we no longer support py27, we can use the standard library
    unittest.mock module instead of the third party mock lib.
    
    Change-Id: Ifd0d1b8aa419e39361e76a4f846cb4eeaf0d46ca
    Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-08-17 01:14:33 +00:00
Andreas Jaeger 881ff59d7d Update git submodules
* Update karbor from branch 'master'
  - Update hacking for Python3
    
    The repo is Python 3 now, so update hacking to version 3.0.1 which
    supports Python 3.
    
    Fix problems found.
    
    Remove hacking and friends from lower-constraints, they are not needed
    for installation.
    
    Change-Id: I6691687f0cd2fe4c9e7f2a76d333ca9eacb0cbf3
2020-06-15 07:19:25 +00:00
Andreas Jaeger 7e0512780d Update git submodules
* Update karbor from branch 'master'
  - 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
    - Cleanup doc/source/conf.py to remove now obsolete content.
    - Use newer openstackdocstheme version
    - Move constraints into deps
    - Increase warlock dependency, glanceclient blocks version 1.3.0
    
    Change-Id: I8feb2e86281f2250bdc379b7868c5e738c1a19e6
2020-04-28 01:08:27 +00:00
Zuul eee7989d35 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add unit tests for trigger update API"
  - Add unit tests for trigger update API
    
    Change-Id: I7f74c0346eef45ac83207410756e003266989bba
2020-04-08 00:59:01 +00:00
Zuul 1d84f96bf4 Update git submodules
* Update karbor from branch 'master'
  - Merge "Remove password display for rabbitmq on connection log"
  - Remove password display for rabbitmq on connection log
    
    When start karbor-protection and karbor-operationengine service,
    Karbor will log rabbitmq password if debug is enabled. In a
    production environment, this is pretty bad. This patch will fix it.
    
    Change-Id: I11bd6db001739869fc6cddd005c9990d2943b809
    Closes-Bug: #1859540
2020-04-08 00:57:33 +00:00
Zuul de96d5ebc9 Update git submodules
* Update karbor from branch 'master'
  - Merge "Preserve request id in Karbor logs"
  - Preserve request id in Karbor logs
    
    When the admin context is retrieved the user context and its request
    ID is lost and all subsequent log entries have different request IDs.
    
    The fix is to pass the overwrite parameter in Karbor's RequestContext
    __init__ method to the parent oslo class.
    
    Change-Id: I1091ddc8a36244132883932a3a21dea5274eb34a
    Closes-Bug: #1859433
2020-04-08 00:54:21 +00:00
OpenStack Proposal Bot 33413743a5 Update git submodules
* Update karbor from branch 'master'
  - Imported Translations from Zanata
    
    For more information about this automatic import see:
    https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
    
    Change-Id: I333852356cbe61a4209fde06b10c73def3e5100c
2020-04-08 00:49:10 +00:00
shenxindi 22415b2919 Update git submodules
* Update karbor from branch 'master'
  - Remove unsupported calls
    
    Because kubernetes 11.0.0 deleted the function of
    'kubernetes.client.api_client.ApiClient.__del__',
    which caused an ut error and deleted the relevant mock call.
    
    Change-Id: I1ecade75227b3dc37c8fcdf775b7823583faea43
2020-03-19 09:52:07 +00:00
Ghanshyam Mann 35de8176c5 Update git submodules
* Update karbor from branch 'master'
  - [ussuri][goal] Drop python 2.7 support and testing
    
    OpenStack is dropping the py2.7 support in ussuri cycle.
    
    Karbor is ready with python 3 and ok to drop the
    python 2.7 support.
    
    Complete discussion & schedule can be found in
    - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
    - https://etherpad.openstack.org/p/drop-python2-support
    
    Ussuri Communtiy-wide goal:
    https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
    
    Depends-On: https://review.opendev.org/#/c/693631/
    Change-Id: Id923a1e18a1ba2439eda11a88abab64a3b32cab1
2020-02-05 13:28:13 +00:00
shenxindi 04bb5cd26a Update git submodules
* Update karbor from branch 'master'
  - Fix unit test error
    
    Fix all the order of decorators and parameters in unittest.
    
    Change-Id: Ic055aaf38f1e99d21ca1ada3055048ee72a360d9
2019-11-15 07:26:36 +00:00
minruigao 6eeeff832f Update git submodules
* Update karbor from branch 'master'
  - Add unit tests for quota_class_update api
    
    Change-Id: I7a8a374f3978bc08a47c11b657252946339dd6b8
2019-11-14 12:46:58 +00:00
Zuul 113fa87f67 Update git submodules
* Update karbor from branch 'master'
  - Merge "Fix get min interval error"
  - Fix get min interval error
    
    When we use get_min_interval method, the exit condition is
    the execution time is bigger than the rate time. But default
    minutes rate is 2, this may leads errors when the interval
    is bigger than 2 minutes, it always return None. So we can
    not use min interval to judge if the interval is smaller than
    that we configured in the configuration file. This should be
    fixed.
    Story: 2006848
    Task: 37436
    
    Change-Id: I268051f05f9b89e1b6013cfc8cecf90e9dc78581
2019-11-14 10:54:06 +00:00
Zuul be4203880f Update git submodules
* Update karbor from branch 'master'
  - Merge "Add verifications api doc"
  - Add verifications api doc
    
    Change-Id: Id84f40f5786d96438fc7fb84dafc96372a28d634
    Story: 2006807
    Task: 37357
2019-11-14 10:43:47 +00:00
Zuul 1400dbf4d8 Update git submodules
* Update karbor from branch 'master'
  - Merge "Use trustee project_name instead of fixed value"
  - Use trustee project_name instead of fixed value
    
    Currently, when the default project name for openstack
    services is not "service", it will fail when listing
    protectable resources. This patch using trustee.project_name
    to replace it.
    
    Story: 2006797
    Task: 37343
    
    Change-Id: I8be62bb00e70dacd174e7fa3bd65489fb63488ab
2019-11-14 10:43:43 +00:00
Zuul fee7059412 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add unit test for services api"
  - Add unit test for services api
    
    Change-Id: I0a4cec43c76d64191c5e962674ba31b5d6a834a3
    Signed-off-by: helei <helei@cmss.chinamobile.com>
2019-11-14 10:41:45 +00:00
Zuul 1cdc60a6d3 Update git submodules
* Update karbor from branch 'master'
  - Merge "Fix bug for running unittest with unittest module"
  - Fix bug for running unittest with unittest module
    
    When we run unittest with a way like:
    python -m unittest2 <test_file>
    then NoSuchOptError exception will raised
    
    Change-Id: Ib0f9276c1b86ff7f2d1e401ddfae2bf4e920fa78
2019-11-14 10:38:56 +00:00
shenxindi e756773481 Update git submodules
* Update karbor from branch 'master'
  - Fix unit test error
    
    Fix the order of decorators and parameters for
    karbor.protection.manager.ProtectionServiceTest in unittest.
    
    Change-Id: I9d58c33787e0b2039a046ea30c7238485a76af2d
2019-11-14 10:38:55 +00:00
jiaopengju d6d26756cf Update git submodules
* Update karbor from branch 'master'
  - Modify the time interval configurations in devstack
    
    Story: 2006848
    Task: 37436
    
    Change-Id: I9ae08550f74347fc8f8436eca3cf4320ec97dd1f
2019-11-14 05:51:38 +00:00
jiaopengju 8ccac6fa14 Update git submodules
* Update karbor from branch 'master'
  - Remove invalid exception catching
    
    List operation of verifications will never raise VerificationNotFound
    exception in _get_all method, we should remove it to normalize the
    error code.
    
    Change-Id: Ia1a6345b1e38b9ccc4246d2d39d11cc8e537cb4e
2019-11-12 10:09:12 +00:00
Zuul db1184d935 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add services api doc"
  - Add services api doc
    
    Change-Id: I769134524cb47ada83649121e231d337a2dc0db0
    Story: 2006807
    Task: 37357
2019-11-12 07:20:26 +00:00
Zuul 06b1105537 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add some operation log"
  - Add some operation log
    
    For protect operation and retention operation, lacks some
    key operation log print, so we add it.
    
    Change-Id: Ife73b29511de3eea5094732fcfc82ff5e9783bc2
    Signed-off-by: guolei <guolei@cmss.chinamobile.com>
2019-11-11 07:20:31 +00:00
Zuul bd5162be84 Update git submodules
* Update karbor from branch 'master'
  - Merge "Update contributor doc"
  - Update contributor doc
    
    Change-Id: I54497c76c3fc7f6624d4b8ac48601b46569a0d9d
    Story: 2006807
    Task: 37357
2019-11-09 08:42:06 +00:00
liushuai 6f102a9458 Update git submodules
* Update karbor from branch 'master'
  - Add unit test for triggers
    
    Change-Id: I55995462f46d4cd7a135602bde92174edaf6b5a8
2019-11-09 07:30:25 +00:00
Zuul 4858f10f04 Update git submodules
* Update karbor from branch 'master'
  - Merge "Imported Translations from Zanata"
  - Imported Translations from Zanata
    
    For more information about this automatic import see:
    https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
    
    Change-Id: I63ef76eaa7bc22c62bc99bd0fcc9a3e2adec0f51
2019-11-06 04:59:31 +00:00
Zuul b32315f621 Update git submodules
* Update karbor from branch 'master'
  - Merge "Correct spelling errors in test_quota_classes"
  - Correct spelling errors in test_quota_classes
    
    Change-Id: Ie35cc9150f654f2382336eeef23823eb9d766bd7
2019-11-06 04:54:39 +00:00
Zuul bdf05a3d52 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add unit test for quota api"
  - Add unit test for quota api
    
    Change-Id: I5f4bbeced540df4fa002b273728833d98958ebc2
2019-11-04 10:31:46 +00:00
Zuul dee36c4157 Update git submodules
* Update karbor from branch 'master'
  - Merge "Update api ref of checkpoint reset"
  - Update api ref of checkpoint reset
    
    Change-Id: If9dbc815c94f348e31cfa6c9fed303f16a630f64
    Story: 2006807
    Task: 37357
2019-11-04 10:27:18 +00:00
Zuul 5eede4ce2e Update git submodules
* Update karbor from branch 'master'
  - Merge "Add checkpoint reset state command in doc"
  - Add checkpoint reset state command in doc
    
    Change-Id: Ib561f1e1ca1e347e8a52e143af0a836311e69990
    Story: 2006807
    Task: 37357
2019-11-04 02:42:58 +00:00
jiaopengju e53f0ae9b8 Update git submodules
* Update karbor from branch 'master'
  - Added examples and verify options in install guide
    
    Change-Id: Idaa14d90c853a3455f35f7f6fd9e00d0f40844b7
    Story: 2006807
    Task: 37357
2019-11-04 01:48:55 +00:00
Zuul 290cce16ea Update git submodules
* Update karbor from branch 'master'
  - Merge "Optimize jsonschema validation when reset checkpoint state"
  - Optimize jsonschema validation when reset checkpoint state
    
    Add 'os-resetState' validation when reset checkpoint state,
    This patch will optimize parameter verification.
    
    Change-Id: Id31955dbb44694790bb2192eeb247792c9e295f1
2019-11-03 12:07:20 +00:00
Zuul d4ee45e424 Update git submodules
* Update karbor from branch 'master'
  - Merge "Remove invalid none value judgment"
  - Remove invalid none value judgment
    
    volume will never be none here, so we can remove the none
    value judgment and improve the code execution efficiency.
    
    Change-Id: I5d35eebda6d4e9d8fd31a2e32cbcc68632afb2c8
2019-11-01 01:22:45 +00:00
Zuul 8aa7d45918 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add trgger start and end time value check"
  - Add trgger start and end time value check
    
    Currently, karbor do not check start time and end
    time value, so the end time may be early than start
    time. This patch will fix it.
    Story: 2006402
    Task: 36284
    
    Change-Id: If8909c9abd6fdcd7ce2e85a61472a8dc43f6fe51
2019-11-01 01:16:19 +00:00
pengyuesheng ef939f6ae6 Update git submodules
* Update karbor from branch 'master'
  - Switch to Ussuri jobs
    
    Change-Id: I06c8b11ae18d6e50127c346d37be3b80bee290f1
2019-10-25 02:49:56 +00:00
Zuul aea1915fda Update git submodules
* Update karbor from branch 'master'
  - Merge "Do not use 'self' in classmethod"
  - Do not use 'self' in classmethod
    
    'cls' should be used in classmethd, instead of 'self'.
    This patch corrects this in the following places:
        - karbor/services/protection/checkpoint.py
        - karbor/services/protection/protection_plugins/network/neutron_protection_plugin.py
    
    Change-Id: I70c5ae7d3ea79ef5868a222509e583d510d8607c
2019-10-18 02:02:48 +00:00
Zuul 22c0316e57 Update git submodules
* Update karbor from branch 'master'
  - Merge "Update master for stable/train"
  - Update master for stable/train
    
    Add file to the reno documentation build to show release notes for
    stable/train.
    
    Use pbr instruction to increment the minor version number
    automatically so that master versions are higher than the versions on
    stable/train.
    
    Change-Id: I8a13402cc47bc33a38182b3340987eefd9026850
    Sem-Ver: feature
2019-10-08 12:50:18 +00:00
xuanyandong a6444f1935 Update git submodules
* Update karbor from branch 'master'
  - Add Wiki and admin guide links to readme
    
    Change-Id: Ice5723615d87481bc47641cc9dbf44fc477290a3
2019-10-08 12:50:17 +00:00
Zuul ea57ce1098 Update git submodules
* Update karbor from branch 'master'
  - Merge "Replace use of log.warn with log.warning"
  - Replace use of log.warn with log.warning
    
    LOG.warn is deprecated in Python3 and was used only here
    in karbor, this patch updates it to LOG.warning.
    
    Change-Id: Icad346bb6fd3efcac2f42fead1327585297f2f96
2019-09-16 08:21:00 +00:00
Zuul 5d6dbea319 Update git submodules
* Update karbor from branch 'master'
  - Merge "Remove the code which is unreachable"
  - Remove the code which is unreachable
    
    Currently, in neutron_protection_plugin, some code is
    unreachable and will never be executed. This patch will
    remove them.
    
    Change-Id: I3ce4517368fc82aac4eb81c801d6f81a8536e169
2019-09-16 05:57:43 +00:00
wangyu 9ec2cc216f Update git submodules
* Update karbor from branch 'master'
  - Fix unit tests failed
    
    if flow is None for add_tasks when running unit tests,
    the method 'add' for flow  will be failed. this patch
    will fix it.
    
    Change-Id: I1bd70cea69cc54bea34de4b655f6d7caecfdf0e2
2019-09-16 01:12:35 +00:00
chenke 015d3c3c7d Update git submodules
* Update karbor from branch 'master'
  - Switch to the new canonical constraints URL on master
    
    Reference:
    1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html
    2. https://github.com/openstack/nova/blob/master/tox.ini#L17
    
    Change-Id: Ibf8ee07aa34096887e8e3a9b62176b7d3537055f
2019-09-09 11:56:40 +00:00
Corey Bryant ce78dd54c1 Update git submodules
* Update karbor from branch 'master'
  - Add Python 3 Train unit tests
    
    This is a mechanically generated patch to ensure unit testing is in place
    for all of the Tested Runtimes for Train.
    
    See the Train python3-updates goal document for details:
    https://governance.openstack.org/tc/goals/train/python3-updates.html
    
    Change-Id: Ia88c2460e015a5ad7b0631e5eece7d51de5788b5
    Story: #2005924
    Task: #34214
2019-09-09 01:11:55 +00:00
jiaopengju f5901d1a30 Update git submodules
* Update karbor from branch 'master'
  - Using futurist to solve python3 issues
    
    Change-Id: Ibc0beee562905ba93660116799b3f0eb5b7e7b8a
2019-09-08 14:29:15 +00:00
Zuul cec6517e1e Update git submodules
* Update karbor from branch 'master'
  - Merge "Sync Sphinx requirement"
  - Sync Sphinx requirement
    
    Sync sphinx dependency with global requirements. It caps python 2 since
    sphinx 2.0 no longer supports Python 2.7.
    
    Change-Id: I2dc7c29d0e0392f7a8c31e83ed2383863a13cf4d
2019-09-08 11:22:02 +00:00
jiaopengju 0babb491d0 Update git submodules
* Update karbor from branch 'master'
  - Fix unit tests failed
    
    Currently, zuul test job always failed, it is because the
    attribute in SessionClient of nova client has been removed
    and use endpoint_override instead, this patch will fix it.
    
    Change-Id: I3101d829ee4382d95acbdc6b756de2b8619b254f
2019-09-08 11:22:01 +00:00
Zuul 5eec0d1da4 Update git submodules
* Update karbor from branch 'master'
  - Merge "Add support for image boot server backup with data"
  - Add support for image boot server backup with data
    
    This patch added support for image boot server backup with
    data. If the image's parent resource is server type, and
    the option 'enable_server_backup' is True, it will take
    snapshot at first, then backup the new created image by
    doing snapshot.
    
    Change-Id: If548e667f44f671278b2b13c19f97a15d867d905
    Story: 1712059
    Task: 33997
2019-08-07 10:07:57 +00:00
Andreas Jaeger 0a16805ea1 Update git submodules
* Update karbor from branch 'master'
  - Update api-ref location
    
    The api documentation is now published on docs.openstack.org instead
    of developer.openstack.org. Update all links that are changed to the
    new location.
    
    Note that redirects will be set up as well but let's point now to the
    new location.
    
    For details, see:
    http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
    
    Change-Id: Ib43e63ffdc58615f1ea2d273306c7170a1f97f1b
2019-07-31 01:47:56 +00:00