Commit Graph

248 Commits

Author SHA1 Message Date
Florian Haftmann
fac43ebbf5 feat: Separate devbuild goal for incremental build
A separate goal for incremental builds does not spoil the
existing sane clean rebuild.

Change-Id: I28f0a7bd6dc05881180e312386bdefd8e331436b
2024-01-24 13:03:13 +01:00
Florian Haftmann
aef1139897 style: Uniform order of arguments, shorter lines
Explicit line breaks make passed arguments clear.

Change-Id: I6ef3b7b52634bca05de63033b0baed2163a65ce9
2024-01-24 13:03:13 +01:00
Wenxiang Wu
b1a693d0a3 docs: add FAQ in README.rst
Closes-Bug: #2049807
Change-Id: I9beb1c1e7ba2d8c0378d4eabe8dbd05ffeb06c69
2024-01-24 06:04:49 +00:00
Dr. Jens Harbott
a725476ffc Revert "fix SQLAlchemy version"
This reverts commit 7b7a94bcce.

Reason for revert: This conflicts with upper-constraints.txt

Change-Id: I27a4a0f8ac4f63952167a8ec869db219efe34ded
2024-01-23 11:16:15 +01:00
Wenxiang Wu
ce10b6691f fix: user login failure due to no role assignment to its default project
This bug start from: https://review.opendev.org/c/openstack/skyline-apiserver/+/901229

Closes-Bug: #2049719
Change-Id: Icd7dbd5128dc8f4eb83a09d3304726ebb96cb074
2024-01-18 15:51:40 +08:00
Zuul
86707c7347 Merge "docs: bp-2024-h1-todo-list.md" 2024-01-18 00:02:55 +00:00
Zuul
122097ae08 Merge "Use service_type instead of service_name" 2024-01-17 07:52:53 +00:00
Zuul
d13f11f66a Merge "fix: remove console tarball before downloading" 2024-01-17 07:23:12 +00:00
Zuul
eef81f4f70 Merge "refactor: Prefer separate LABEL instructions" 2024-01-17 07:17:06 +00:00
Zuul
e201391d3b Merge "feat: Install requirements in separate step" 2024-01-17 07:17:05 +00:00
Zuul
744128f26b Merge "feat: Base installation independent of sources" 2024-01-17 07:17:03 +00:00
Wu Wenxiang
2d9a1c7e01 docs: bp-2024-h1-todo-list.md
make skyline more easier for development

Change-Id: Ia712c65522945766b2afedca6f19c5f1b64f2cc9
2024-01-17 13:46:22 +08:00
Wu Wenxiang
c4014a5019 fix: remove console tarball before downloading
if console tarball exist, the new downloaded package would rename
as xxxx.1, which cause unzip mistake (unzip the original one)

Change-Id: Iba121d1605749f78814d6a5720254184ebe56ba7
2024-01-17 13:38:27 +08:00
Zuul
4880acd608 Merge "fix SQLAlchemy version" 2024-01-16 15:50:59 +00:00
HyoBin Kim
7b7a94bcce fix SQLAlchemy version
https://bugs.launchpad.net/skyline-apiserver/+bug/2025755

the sqlalchemy package will be installed in versions 1.3 and 1.5 or higher due to the influence of the databases package.
(defualt install version 1.4.51) need to <=1.4.41

However, sqlalchemy version 2.0 has been released, so additional improvements to version 1.x will be difficult.

Change-Id: Id08257a74e3cbb7b59e793972a4f093b96a46d30
2024-01-03 14:38:34 +09:00
Arnaud Morin
51a5b4a483 Use service_type instead of service_name
When retrieving endpoints from keystone catalog, it's better to use
service_type rather than service_name because the name can be arbitrary
(some operator use custom names) while the service_type should always be
consistent.

Change-Id: I966f2d9f40b8306ba645363a4967139f44d6adde
Signed-off-by: Arnaud Morin <arnaud.morin@gmail.com>
2023-12-06 23:13:56 +01:00
Florian Haftmann
4546837e14 refactor: Prefer separate LABEL instructions
LABELs can go to separate directives, which does not induce a penalty
on the image since docker 1.10.

See also https://dockerlabs.collabnix.com/beginners/dockerfile/Label_instruction.html

Change-Id: Iac33480bc3f4069ab904279ad61b5c58746318c0
2023-12-01 14:02:00 +01:00
Florian Haftmann
bec6c457e5 feat: Install requirements in separate step
Pre-installing the requirements avoids that a mere change of sources
triggers a re-download during incremental docker build.

Change-Id: I734e5d48866aea1b154c467536aaec751cb1740c
2023-12-01 14:02:00 +01:00
Florian Haftmann
8c5bdbe569 feat: Base installation independent of sources
With the aim of incremental development builds, a mere change
of the sources should not result in a re-download of a
substantial amount of distribution packages, including a potential
later re-upload into a container registry.

Change-Id: Ica516f2a40ffaae9ddf4d7dd51d466e23456154f
2023-12-01 14:01:38 +01:00
Florian Haftmann
9e9b76b991 refactor: Official solution for python(3) tools
The re-wiring from python to python3 does not need any manual low-level intervention
but can use official packages.

Change-Id: Idf08a85dd8060d1496802eeca04fb2ca470f6712
2023-12-01 09:02:14 +01:00
Florian Haftmann
f4f081c625 refactor: Tuned
The command git init optionally accepts an explicit working directory,
no need to cd.

Change-Id: I5703b86836170480a6873fd7da85626fa330c85a
2023-12-01 09:02:14 +01:00
Florian Haftmann
70d4677e54 refactor: Dropped redundant environment setting
With LANG set by ENV pervasively, it would be redundant to set
it again for the RUN command line.

Change-Id: Ia9f7d4cf81a268a9db238aa3cec1a9c1029f541f
2023-12-01 09:02:14 +01:00
Boxiang Zhu
55adae48a5 fix: Use system session to handle
Use system session to handle token data and user

Change-Id: I3b0534c4a5097553e3689fcaf7915c4be6df1fe3
2023-11-20 13:50:55 +08:00
Boxiang Zhu
235f7fb286 feat: Add default_project_id
1. add default_project_id into profile to return
2. if user has default_project_id, then we will login into
this project as default.

Change-Id: I147f7866163ae4d102e83f7c28bbf0077f463974
2023-11-17 18:22:54 +08:00
iauhsnaiq
99f557e19c fix: modify database connection way
modify parallelDatabase as Database

Bug: 2042812
Change-Id: I33f282e69e7383a51c3e69b4c8e9273609fb988d
2023-11-10 14:28:56 +08:00
yangshaoxue
1cedd57d6a fix: fix login API error message
the login API does not return an error message

Change-Id: I76be8ca033effe8da98b6e0f5281561b183b6266
2023-11-02 16:02:06 +08:00
root
a27c6daea6 Update the installation documentation
Add configurable policy files.

Change-Id: Ib4395b58dccf94aa18a88b66c9ee3e1e33df9787
2023-11-01 13:32:10 +08:00
yangshaoxue
1e4f72ca2b Add configurable policy files
Configurable policy files are added for services.

Change-Id: I53549fe80798bdd2e6ed3f92f548ed16393a269f
2023-10-31 13:58:22 +08:00
Zuul
cdfe0330d3 Merge "docs: update kolla-ansible deploy skyline steps" 2023-10-26 10:13:43 +00:00
iauhsnaiq
fe56f82f19 support masakari and designate
add masakari and designate policies file and configs.

Change-Id: Ic2d3431df3cb8d33e74d061337514ea3d91bb7ac
2023-10-25 17:23:50 +08:00
Zuul
454b2140f1 Merge "Updating Target Attributes For Barbican Policy" 2023-10-07 09:29:37 +00:00
Boxiang Zhu
9a8d68337d fix: Updated the version of gunicorn
The related patch: https://review.opendev.org/c/openstack/requirements/+/884564

Change-Id: I40786189b960500257967d93f976d528ade12de2
2023-10-07 14:39:11 +08:00
resitdemir
a2f32fc234 Updating Target Attributes For Barbican Policy
Barbican policy contains target attributes which need to be updated in request context
like "target.secret.project.id". Otherwise certificate menu throws permission denied errors.
Also we need to set "target.secret.read" and "target.secret.read_project_access"
but i did not find a way how to set them.

Change-Id: I51631d0be023fc091b32aaeb71145c2893454bba
2023-09-28 08:15:10 +00:00
Zuul
0d8a69c413 Merge "Update master for stable/2023.2" 2023-09-27 04:10:08 +00:00
yangshaoxue
87019798fa fix: Compatible with member and _member_
When the default role is _member_ instead of member, the Skyline API response 401

Bug: 2034976
Change-Id: I7c633728c8de9f300eb718f615bc9950e0c96411
2023-09-19 17:28:45 +08:00
OpenStack Release Bot
d166ff404c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I1dfd129aed9a9f9f40fbe5a9adc472c9a83beccd
2023-09-14 08:58:16 +00:00
Boxiang Zhu
2ceaa1e3ed fix: Add GLOBAL_VENV into skyline devstack plugin script
The devstack project has added GLOBAL_VENV env to adjust
the python env. So skyline needs to adjust the same check.

Change-Id: I5f5c3d40dc706cca2f2a91b48db50de67cb140e3
2023-08-18 13:12:31 +08:00
iauhsnaiq
69271313e3 docs: update kolla-ansible deploy skyline steps
remove kolla-ansible skyline patch
since that has been merged into kolla-ansible.

Change-Id: Ie7e552e9514b91b97a6d6a87b1ee477d56f58710
2023-07-07 17:37:01 +08:00
Zuul
ca3b13fd9a Merge "feat: Add time_expired into cookie" 2023-06-07 11:29:23 +00:00
Boxiang Zhu
9c4f5e5e74 feat: Add time_expired into cookie
Now the expired time for skyline and keystone is not the same
value. Sometime, when the token of keystone is valid but the
jwt token of skyline-apiserver is invalid.
The skyline-console will send the request to backend service
and then get 401 from skyline.
So we add time_expired into cookie, then skyline-console can
check whether time expired or not.

Change-Id: Id1d3a83eb433c18e88828115e8bd744151fb14f7
2023-06-05 16:40:49 +08:00
Wu Wenxiang
51c2b40e4d docs: add spec for feat 'Multi Region & Domain Switch'
Change-Id: I00e319f7c72256f9deb8505cb12b3a9699f12183
2023-06-02 10:18:24 +08:00
Danny Webb
de22d3ba3b change sso port to be optional
request.url.port can return None in the case of default ports (80,443)

Change-Id: I07b5fdf11199afefd2996ff36c6e997e52037308
Signed-off-by: Danny Webb <danny.webb@thehutgroup.com>
2023-04-04 15:27:07 +00:00
Boxiang Zhu
8d85cacab8 Update requirements and test-requirements
To match the upper constraints, update some versions in
requirements and test-requirements

Change-Id: I6d89c56d6e98cfb0927928af195a04867d426a82
2023-03-27 13:12:25 +08:00
OpenStack Release Bot
ef4fb138d3 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I763262d1e306feaa9efe77da2d312821f38ce1ad
2023-03-01 09:44:59 +00:00
wang.chen
2723126f03 docs: Add docker image address
Add docker image address

Change-Id: I5a8423a0414f3af0ee52c8b705c084c26aaea80c
2023-01-18 18:36:29 +08:00
Boxiang Zhu
7292b43c60 fix: eliminate whitespace in passenv values
eliminate whitespace in passenv values

Change-Id: I295aa812235894056d6c8472ef6979621ae6ffb2
2023-01-03 17:03:32 +08:00
yangshaoxue
7f363390c8 fix: prometheus response 500
API /query_range always report 500 error

Bug: 1999839
Change-Id: I66a152c2c76d4984cc2fbf085e8c2d1da3701ece
2022-12-20 11:46:10 +08:00
yangshaoxue
ceabe71b7f feat: Add cafile conf
Add cafile conf and support keystone ssl verify

Change-Id: Id82f49009e2e6778568c629b9fe66e3e50cf73d7
2022-12-15 18:20:49 +08:00
yangshaoxue
c7c346de9a fix: Fix keystone_url default sample
Fixed the issue that keystone_url's default sample was incorrect

Change-Id: I0e5157c1f2cb3a89f3abcd6decc3371116a79835
2022-12-15 15:20:06 +08:00
Tobias Urdin
49259070ad Fix spelling for admin role in Barbican policy
See this patch fixing this [1].

[1] https://review.opendev.org/c/openstack/barbican/+/864226

Change-Id: I9ca2341a0d52d0516f77169783b47e194f16cb00
2022-12-15 01:14:12 +00:00