Commit Graph

23 Commits

Author SHA1 Message Date
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
Bharat Kunwar b2e20a1143 Make code compatible with SQLAlchemy 1.4.18
Also, plugins do not need to enable any network service other than what
devstack is already doing [1].

Also, fix doc build:
- bump up tox minversion to 3.18
- set ignore_basepython_conflict to True [2]
- add tex-gyre to binddep.txt [3]

[1] https://review.opendev.org/c/openstack/devstack/+/791436
[2] a0ec2de968/tox.ini (L7)
[3] https://review.opendev.org/c/openstack/openstack-health/+/793984

Change-Id: Ib6e3ed40dc8b075c3cecb967b7417097e3cab60d
Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>
2021-06-28 12:26:19 +00:00
rajat29 74677ad41a Remove SCREEN_LOGDIR from devstack setting
Screen support has been completely removed from devstack.
So we don't need anymore

Change-Id: I7d8b98926e0dae324995db1651d7c5344c275626
2017-09-21 11:03:33 +05:30
Jenkins f04c3ff657 Merge "Revert "devstack: Fix neutron configuration to run in OSIC"" 2016-12-16 17:56:06 +00:00
Monty Taylor ff6514f5bc
Disable horizon, ceilomter and swift in gate hook
If the services are disabled in the devstack/settings file, it disables
them for everyone who uses the magnum devstack plugin. Some people (like
shade) use both magnum and swift to test things. Putting this in the
gate hook means it's used in all of magnum's jobs, but not in other
people's jobs.

Change-Id: Icd82a4ab68533f39f967575c2125b0f61c70e0a6
2016-12-09 13:44:27 -06:00
Spyros Trigazis 67d71104bb Disable horizon, swift and ceilometer
Swift Ceilometer and horizon are not used. Disabling them
it will give us space.

Cleanup disabling of octavia and neutron/lbaas.

Closes-Bug: #1646870
Closes-Bug: #1648148
Change-Id: I4b177421f0eb0a058b8927b9d2dd12865d3c920e
2016-12-07 17:36:12 +01:00
yatin 821bacc4a7 Revert "devstack: Fix neutron configuration to run in OSIC"
This reverts commit 45f071e36e.

The Temporary fix can be reverted as devstack has released
the fix in following patch:-
https://review.openstack.org/398012

Change-Id: I837f4925cf4c797bd1b02a7bf244ca5742159971
Closes-Bug: #1628267
Closes-Bug: #1629133
2016-11-22 08:40:21 +05:30
Spyros Trigazis 45f071e36e devstack: Fix neutron configuration to run in OSIC
We can merge this temporary fix and track the following
related bugs to revert. For details for the issue, please
refer to the bug descriptions.

Related-Bug: #1628267
Related-Bug: #1629133
Change-Id: I51feb6ccdc0fab91a591568866e6801f2bbb319b
2016-10-05 11:44:37 +02:00
rabi 719018e9cb Use heat devstack plugin
Now that heat is available as a devstack plugin, we should
use it. In-tree devstack code for heat is planned to be
removed soon[1].

And also, this patch remove `update_heat_policy` function
in devstack plugin. Because fetching global stack list is
already option to use in Magnum.

[1] https://review.openstack.org/#/c/317618/

Change-Id: Iab675da5ea8d02b3f7e71f6169c81724a0066858
Co-Authored-By: OTSUKA, Yuanying <yuanying@fraction.​jp>
2016-09-15 10:43:09 +09:00
Hua Wang 77e6c3160f Add Support of LBaaS v2 API
LBaaS v1 api is completely removed by neutron, so it
cannot be used now. Added Support of LBaaS v2 API.
Now all COE's uses LBaaS v2.

Co-Authored-By: yatin karel <yatin.karel@nectechnologies.in>
Change-Id: Idbccbe1065857449fc8e158115b7833b68c2da9f
Partially-Implements: blueprint magnum-lbaasv2-support
2016-09-09 10:01:30 +05:30
Thomas Bechtold 3fe3e46d4e devstack: Use magnum-api and magnum-cond for services
"m-api" is already used by Manila so switch to "magnum-api"
and "magnum-cond" for devstack.

Change-Id: I0f5e57dd263164652813088fe624f62cda664727
Closes-Bug: #1569879
2016-04-18 10:33:28 +02:00
YAMAMOTO Takashi f448f12ff8 devstack: Comment out some environment dependent neutron settings
Also, update documentation.

Change-Id: Iceb1c2a6957b5145ce2d94bcbeaffcf6ed3baff7
2016-03-11 14:32:41 +09:00
YAMAMOTO Takashi 1b2332dfbf devstack: Comment out logging configuration
And move them into "Modify to your environment" section
because they are not appropriate for every environment.

Change-Id: I6d49e1df1f114dc8abc4404f469e25bb3a2a0a8b
2016-02-19 12:19:45 +09:00
Hongbin Lu a8ed34ac7d Enabled ceilometer using plugin model
Devstack plugin, such as ceilometer, should not be enabled in
settings, since the path of the plugin is not available at that time.
Therefore, users have to manually enable it in local.conf, if they
run devstack locally.

Closes-Bug: #1497706
Change-Id: Idca09449ab5a3a5276282ffbcbb0aa73f35c34ae
2015-10-05 15:03:28 -04:00
Tom Cammann b679b827d9 Unwedge the gate by only enabling barbican once
Change-Id: I14b830b3c50fca1942947fe0fe7543c8fb62370e
2015-09-23 12:07:44 +01:00
OTSUKA, Yuanying c5abff2511 Enable Barbican in devstack
This patch changes to use barbican plugin for devstack.

Change-Id: I7d2620888bef3ae6bcc34c333ef3a935245195cf
Partial-Implements: blueprint barbican-support
2015-09-10 14:41:29 +09:00
OTSUKA, Yuanying 31974f2023 Enable barbican in devstack
Magnum will use barbican to store CA and magnum client certs for
TLS support. This patch adds barbican service to devstack
configuration.

Change-Id: Id112699be08788466e7cd9806082e150cbdc15e2
Partial-Implements: blueprint magnum-as-a-ca
2015-08-26 11:13:47 +09:00
Hongbin Lu a2f803f031 Enable ceilometer in devstack
Magnum is going to send metrics/notifications to ceilometer. The
metrics will be leveraged to trigger ceilometer alarms, which is
needed to achieve autoscaling bay.

Change-Id: Ib80c9ab699a72701cefc4dfeb7f2542cecd8f2c9
Partially-Implements: blueprint autoscale-bay
Partially-Implements: blueprint magnum-notifications
2015-08-17 19:06:55 -04:00
Hongbin Lu e0a65684e3 Enable Load-Balancing-as-a-Service in devstack
Load-Balancing-as-a-Service (LBaaS) is a service of Neutron that can
be leverage to create a load balancer. We are going to support multiple
k8s master nodes, so we need load balancers to route traffic to replicated
master nodes.

Change-Id: If92568b35097180760d434125d2973cd5a1ec019
Partially-Implements: blueprint make-master-ha
2015-07-13 16:01:03 -04:00
Kennan 5114844325 Fix the localrc issue
1.Since the local.conf need to live on devstack directory
Refine the cat command to be obvious

2.Also fix one issue, as devstack would use localrc directly
if localrc file exists, but localrc not have enable_plugin
setting. This would cause devstack install without magnum enable.
So we use local.conf as the default configuration kick point to
make magnum can be installed with devstack

Closes-Bug: #1441977
Change-Id: Ib06cd38ed9744d42e664ff92d486c29e7932851f
2015-04-09 20:10:21 +08:00
Robert Pothier d9f58e5b20 Enable Heat services in Devstack settings
Heat is no longer enabled by default in devstack.
This adds Heat the example devstack localrc

Change-Id: I1eb4d763b075da0e3a849c801b8b6973a870b44c
2015-04-07 15:47:55 -04:00
Davanum Srinivas 79ac06cc4b Add tox functional target
Create a formal tox target for functional tests.
Also we should not be overriding the user's localrc.

Closes-Bug: #1440125
Change-Id: Ide639ea89050cf3e1f1e9e40c687d506998f7587
2015-04-06 19:02:23 -04:00
Davanum Srinivas 4c2b973859 Convert to new DevStack plugin model for functional testing
Switch over to the new plugin style as documented here:
http://docs.openstack.org/developer/devstack/plugins.html

Makes it very easy to setup a CI job. Added a new
directory for functional job and the tests are run
from the post_test_hook.sh. There's even a "magnum bay-list"
in the shell script to show that we are actually making
calls to the magnum API endpoint and things are working
fine. Note that this is just the minimal plumbing needed
and there's a lot more effort needed to come up with
proper test cases for testing magnum functionality.

Closes-Bug: #1439621
Change-Id: I88d45015338ef55713b32de196f9071c8fc2031b
2015-04-02 21:14:20 -04:00