Commit Graph

211 Commits

Author SHA1 Message Date
Takashi Kajinami 91daa2cb6f Remove six from requirements
Now six is no longer used by any code in this repository and can be
removed from requirements completely.

Change-Id: I7bea73058d1c332ea3a47a53c5214ca0d476519b
2024-02-19 10:44:21 +00:00
ricolin 5971243169 Support enables rbac policies new defaults
The Magnum service allow enables policies (RBAC) new defaults and scope by
default. The Default value of config options ``[oslo_policy] enforce_scope``
and ``[oslo_policy] oslo_policy.enforce_new_defaults`` are both to
``False``, but will change to ``True`` in following cycles.

To enable them then modify the below config options value in
``magnum.conf`` file::

  [oslo_policy]
  enforce_new_defaults=True
  enforce_scope=True

reference tc goal for more detail:
https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

Related blueprint secure-rbac

Change-Id: I249942a355577c4f1ef51b3988f0cc4979959d0b
2023-08-30 00:35:24 +08:00
Tobias Urdin c28760c8ac Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I4db6bbbbdc2f311f4c159b2d4f9992cfdbdafac4
2023-01-23 19:17:21 +00:00
guilhermesteinmuller d3d28594b3 Drop mesos driver
The coe mesos has not been maitenaned for quite some
time and hasn't got much attetion from the community
in general. As discussed in the mailing list [1] we
are dropping for now.

In this patch, we start by removing the mesos driver
and its test cases. This part of the code has no impact
for other drivers. Then we can clean up mesos references
that affect the API.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026230.html

Conflicts:
	lower-constraints.txt
	tox.ini

Change-Id: Ied76095f1f1c57c6af93d1a6094baa6c7cc31c9b
2022-11-11 23:01:43 +11:00
Ghanshyam Mann 136c9c7c12 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I818ff6549bd6217a727adde0490485a526595ff3
2022-04-30 20:24:11 -05:00
zhoulinhui d053e288a6 Drop Babel from reqs
Not needed per [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I0a1a6204abf3c39ddfa6b83bcfc5d5f532dc2de1
2022-04-13 08:13:53 +00:00
Mohammed Naser 6eb907cc89 Drop Kubernetes Python client dependency
We depend on the Kubernetes Python client for several things such as
health checks & metrics polling.  Those are both run inside periodic
jobs which spawn in greenthreads.

The Kubernetes API uses it's own thread pools which seem to use
native pools and cause several different deadlocks when it comes to
logging.  Since we don't make extensive use of the Kubernetes API
and we want something that doesn't use any threadpools, we can
simply use a simple wrapper using Requests.

This patch takes care of dropping the dependency and refactoring
all the code to use this simple mechansim instead, which should
reduce the overall dependency list as well as avoid any deadlock
issues which are present in the upstream client.

Change-Id: If0b7c96cb77bba0c79a678c9885622f1fe0f7ebc
2022-01-20 16:02:21 +00:00
Ghanshyam Mann 3b7a33eb64 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Icfd9e2a75d8fdfb24cbd1c850f498aadee91f543
2021-03-08 15:11:01 +00:00
Feilong Wang 94737878af Fix gate - update lower-constraints
Story: 2008482
Task: 41522

Change-Id: I875b9b2e0ef8bb6751a27e9a917a6d58042570ce
2021-01-04 09:31:37 +00:00
Andreas Jaeger 7ad3ef18c0 Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I705a40cb3a19e16641a2b9de6891ab72fe2b98f0
2020-04-05 09:45:17 +02:00
Mohammed Naser cfe2753fd3 [fedora atomic k8s] Add boot from volume support
Support boot from volume for Kubernetes all nodes (master and worker)
so that user can create a big size root volume, which could be more
flexible than using docker_volume_size. And user can specify the
volume type so that user can leverage high performance storage, e.g.
NVMe etc.

And a new label etcd_volme_type is added as well so that user can
set volume type for etcd volume.

If the boot_volume_type or etcd_volume_type are not passed by labels,
Magnum will try to read them from config option
default_boot_volume_type and default_etcd_volume_type. A random
volume type from Cinder will be used if those options are not set.

Task: 30374
Story: 2005386

Co-Authorized-By: Feilong Wang<flwang@catalyst.net.nz>

Change-Id: I39dd456bfa285bf06dd948d11c86867fc03d5afb
2019-09-20 05:00:29 +00:00
akhiljain23 2ccf639a39 Add framework for magnum-status upgrade check
This commit adds the functionality of magnum-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: Ia8a74fd8bd5a804e71bb04eb0615fa114a517bc4
Story: 2003657
Task: 26138
2019-01-27 04:26:30 +00:00
Jim Bach 9a6698fb45 Add Octavia python client for Magnum
Adding the client enables the manipulation of Octavia
resources with Magnum such as during cluster deletion,
being able to clean up non-heat created resouces.

Change-Id: I976ab136e24b98d447d61028ce07d0f5dd9d255a
story: 2004259
task: 27795
2018-11-05 11:45:41 -08:00
Nguyen Hai 338b045c23 Fix incompatible requirement
- Fix lower-constraints don't match the lower bounds
in the requirements file(s). It may cause fail in
requirements-check.

Example fail: https://review.openstack.org/#/c/555209/

REF:
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129056.html

- Fix incompatible of eventlet in requirement.txt

Change-Id: I85486f47e08bac6cfb481871861f37d692025f58
2018-04-25 02:38:39 +00:00
OpenStack Proposal Bot c0f8db98ae Updated from global requirements
Change-Id: I0814491a783060b66291991ff58772338d82c148
2018-03-26 08:07:15 +00:00
OpenStack Proposal Bot cae5a1db14 Updated from global requirements
Change-Id: I544ed5be9cbf6eb58df7ddc77ddfc2a1401828cc
2018-01-02 07:00:21 +00:00
OpenStack Proposal Bot 73b725003e Updated from global requirements
Change-Id: I8254a52b9902efba885172a83e487286b6e3011d
2017-12-10 07:11:29 +00:00
OpenStack Proposal Bot 4371d21952 Updated from global requirements
Change-Id: I7aabf35dda0e028c13db6f5244ddce30ea3b84f3
2017-11-16 11:09:01 +00:00
OpenStack Proposal Bot 01652445a9 Updated from global requirements
Change-Id: I4bfb98ba0286aa4a1bbdf390d78d0601112614da
2017-11-12 20:59:11 +00:00
OpenStack Proposal Bot 616b2ee7b7 Updated from global requirements
Change-Id: Ic93e39765e7fc1361f61b8b90bec0f1b415a8d3a
2017-11-08 23:56:02 +00:00
OpenStack Proposal Bot f51fbba461 Updated from global requirements
Change-Id: I6e00f76dff496adefa85240ada9eafb6d7aac3ef
2017-10-14 00:36:58 +00:00
OpenStack Proposal Bot 1e3fa7cc59 Updated from global requirements
Change-Id: Ic719207b03bc6c05b39bed58769e9af6dd5b39e4
2017-09-26 15:48:02 +00:00
OpenStack Proposal Bot c86bffe606 Updated from global requirements
Change-Id: I1af06684e354a0e7601d1711753f60da0295f3cf
2017-09-21 03:41:45 +00:00
OpenStack Proposal Bot ce0c039089 Updated from global requirements
Change-Id: Ic88b8fa8682d9baec64351d4f8745932a106e6a5
2017-09-14 00:33:17 +00:00
OpenStack Proposal Bot 7e16d77317 Updated from global requirements
Change-Id: Id0a113bf98152e832bd5ea1202fbb66324374408
2017-09-01 12:38:00 +00:00
OpenStack Proposal Bot c47caada08 Updated from global requirements
Change-Id: Ie5438e6537ffb41d20e02f54ae28e339045c76aa
2017-08-26 11:34:22 +00:00
OpenStack Proposal Bot d1b754d021 Updated from global requirements
Change-Id: Idf2fc92eec70e0fb400c380e7df2bbb2b02df988
2017-08-18 11:32:09 +00:00
Spyros Trigazis 761bc404f7 Fix barbicanclient and swarm-ci
This squash of commits is required to fix gate

Updated from global requirements

Change-Id: Ib38a2fd3d2f46f8383e2a5245e58f2f03cdb657a

swarm-ci: Assert against ConnectionError instead of SSLError

tcp returns ConnectionError whereas https returns SSLError. The
default protocol we use in magnum is tcp which works fine docker
python SDK docker>=2.0.0.

Change-Id: Ibd122d225ad0f0439abd185bd0846ddb3b22a63a
Fixes: I32b58cf567f4ae5597d9207b81f8546d1062b8b9
2017-07-29 09:13:04 +05:30
OpenStack Proposal Bot d77047dd21 Updated from global requirements
Change-Id: I2a2166a0e33e825790252ac7da10f03d03f06f01
2017-07-23 13:43:46 +00:00
OpenStack Proposal Bot a65d9302ce Updated from global requirements
Change-Id: Iae2e33c6bbf2ca7701720387bdd0863700d41f68
2017-07-19 12:51:43 +00:00
OpenStack Proposal Bot 7a5dc9c8e9 Updated from global requirements
Change-Id: Iee2766147c624b345aed3f5f7955283c1a4cb623
2017-06-19 21:04:35 +00:00
Jenkins fbd558547e Merge "Move to docker python SDK 2.x.x" 2017-06-16 13:05:22 +00:00
OpenStack Proposal Bot 0ce60a60ba Updated from global requirements
Change-Id: Ib9724de256be043d5ecf7112adf7c53dfe5df79e
2017-06-15 16:25:21 +00:00
OpenStack Proposal Bot fbda205ffc Updated from global requirements
Change-Id: I189a29d549869585113575398d5c873125ab3120
2017-06-10 21:39:08 +00:00
Spyros Trigazis (strigazi) 1e0785c320 Move to docker python SDK 2.x.x
Since we use docker >= 12.1 we can move to docker python SDK 2.x.x.
Docker 2.x.x is backwards compatible with older docker versions
using the APIClient instead of the DockerClient [1].

[1] https://docker-py.readthedocs.io/en/stable/api.html

Change-Id: I9e50a877de6e0a8c3ba56c2d7ebbbe336972a146
Close-Bug: #1696862
2017-06-09 15:03:25 +00:00
OpenStack Proposal Bot 034e4b3077 Updated from global requirements
Change-Id: I39ce453ed4d84080d3fe1c8491b9ed186bc49bec
2017-06-08 16:19:22 +00:00
OpenStack Proposal Bot 24510b20e2 Updated from global requirements
Change-Id: Ia27909e1583551783e2189de00a65f8e527c2f47
2017-06-05 17:22:12 +00:00
OpenStack Proposal Bot adb1cea845 Updated from global requirements
Change-Id: I347fc8ca4ee67a5cb9b2239457412b9408f96efc
2017-06-02 02:27:49 +00:00
OpenStack Proposal Bot b051cc8e54 Updated from global requirements
Change-Id: Ib01534bbe91f4fd8d13c47e4e958e3c19375a2a9
2017-05-26 17:20:57 +00:00
OpenStack Proposal Bot 9f61e23600 Updated from global requirements
Change-Id: Ia00f71d7f3e8d6b52101b3b1df1c676f1d7caf6b
2017-05-26 01:49:16 +00:00
OpenStack Proposal Bot 372275090f Updated from global requirements
Change-Id: I700c0f0ab2a153c2345efa1afe7f4f40fafb705d
2017-05-25 16:21:12 +00:00
OpenStack Proposal Bot 9ca126b609 Updated from global requirements
Change-Id: Iacbe0c91d10be97182de935de64108afb42a5892
2017-05-18 12:47:09 +00:00
OpenStack Proposal Bot 533570d8c2 Updated from global requirements
Change-Id: Ia57eaa2e50270c8815fa2104d0a451a5efb5d588
2017-05-04 13:23:21 +00:00
OpenStack Proposal Bot 0a53e2575c Updated from global requirements
Change-Id: Id1b979af72d4b4647a653f48cc8ed1e6b7c9aaf3
2017-04-27 04:23:54 +00:00
OpenStack Proposal Bot d147dd94a3 Updated from global requirements
Change-Id: I812e01a1664acf6503e28d46ed4f4c3fb43a446a
2017-04-12 11:44:56 +00:00
OpenStack Proposal Bot 58886590fd Updated from global requirements
Change-Id: I919d0973c74cf20ea9496ef7800ec2dda9d6cc99
2017-03-17 11:41:40 +00:00
OpenStack Proposal Bot 29b376a1fe Updated from global requirements
Change-Id: I53c472913675e14b7a73190e75630a0141a1ebae
2017-03-08 23:24:45 +00:00
OpenStack Proposal Bot e68e7fb314 Updated from global requirements
Change-Id: Ifc3eec2717021db8a97aaf39999969f731ab525a
2017-03-07 01:58:36 +00:00
Davanum Srinivas e634b55637 Switch to kubernetes upstream python client
For a really long time, we generated and maintained our very own python
client generated from kubernetes swagger json files. Now in Kubernetes
Community there is a concerted effort to organize an official python
client (also generated from swagger) for everyone to use. So let us
please switch over from our python-k8sclient and use the community
driven python client. I have ported all of our end-to-end tests and got
them working in kubernetes client-python project upstream so we should
be protected from regressions.

Implements: blueprint replace-k8sclient-with-upstream-kubernetes-client

Depends-On: I72359f2b811392008eb5267812bf343797b1553a
Change-Id: Ib81a69cfdc25198e259e3b3d4081c92c01fd1bc5
2017-02-13 14:48:08 -05:00
OpenStack Proposal Bot 26fb77bc0b Updated from global requirements
Change-Id: I73d45d37f256ac1b9c8ac0438d4fa20026fef5c3
2017-02-13 15:13:24 +00:00