Commit Graph

261 Commits

Author SHA1 Message Date
d95fec7132 [test] oidc through iframe 2025-01-09 13:59:06 +00:00
zhuboxiang
718cfe2b36 Change to use shell cat to fetch commit_id
Command file can not do correct when run it on centos 7
with docker to build. So Change it to use shell cat.

Change-Id: I1186b22c224bbc6e828f71014f5b7f920df3a651
(cherry picked from commit 2a3a08e328)
2024-07-10 02:41:17 +00:00
zhuboxiang
9b85645aab fix: Set stable-2024.1 version of skyline-console to use
1. Use version of stable-2024.1 for skyline-console package
2. Set docker image tag as 2024.1

Change-Id: Ifedbefe00f6f7d52393fef507f31ddcaf1d122b9
2024-07-02 14:02:18 +08:00
Michal Arbet
c7195d5bcb Fix skyline-apiserver on python3.11
Bump pydantic version which fixes skyline-apiserver
when running under python3.11.

Closes-Bug: #2047145
Change-Id: Idb1897f64ffaf0cd0fbee4f7f198935386a5f599
(cherry picked from commit eea81cef1e)
2024-06-21 18:15:35 +02:00
OpenStack Release Bot
b18edc14c0 Update TOX_CONSTRAINTS_FILE for stable/2024.1
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2024.1 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I99531dd8dab86694f3b836cdef1ef48a65a95b27
2024-03-15 14:21:23 +00:00
OpenStack Release Bot
c5a20b98e4 Update .gitreview for stable/2024.1
Change-Id: Idb6dcf86c5e071c811b1166923f711731351aabb
2024-03-15 14:21:21 +00:00
Zuul
86c2fd5ce7 Merge "fix: Explicit host header in HTTP redirects" 2024-02-21 08:15:37 +00:00
Zuul
c194283b99 Merge "refactor: Prefer FHS-conformant location" 2024-02-21 07:43:43 +00:00
Zuul
3c97f57d80 Merge "feat: Cached download of Skyline Console tarball" 2024-02-21 07:43:42 +00:00
zhuboxiang
d2ed6e4b0c fix: Upgrade the version of databases
For this commit https://review.opendev.org/c/openstack/requirements/+/900435
The version of SQLAlchemy has been as 1.4.50

From the install_requires of databases, we need to upgrade it.
For 0.8.0 version of databases, sqlalchemy>=1.4.42,<1.5

Closes-Bug: #1974452
Closes-Bug: #2025755
Change-Id: I4c046d2e8a8188046f96809219eb6ddf1f950aa6
2024-01-31 17:02:13 +08:00
Florian Haftmann
0af15c5687 fix: Explicit host header in HTTP redirects
Configuration for nginx is now generated in a way such that redirects
have a suitable Host header, which is important e.g. to run skyline
on k8s.

Change-Id: I89503dcbcf988f3e13781d137fc1fde377c3076d
2024-01-24 13:03:13 +01:00
Florian Haftmann
9c58aef47c refactor: Prefer FHS-conformant location
Formally using a FHS-conformant location clarifies that the files
are needed during runtime also.

See also https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html

Change-Id: I569b4248ff0ab6f075e526cf62a41cbf84fa2d08
2024-01-24 13:03:13 +01:00
Florian Haftmann
73cef61356 feat: Cached download of Skyline Console tarball
The tarball is downloaded only once, changes to the sources do not
result in a re-download.

Change-Id: I80ad7ed0a849f639bd4e0655ba6307c09f56814c
2024-01-24 13:03:13 +01:00
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