Commit Graph

59 Commits

Author SHA1 Message Date
yangshaoxue
ea69660e4d feat: Add API docs
Update the nginx configuration file to access API docs

Change-Id: I59dc9aee11f87f61d1ecb6095b16bed9658a58c0
2022-11-02 17:31:04 +08:00
Boxiang Zhu
1393aea120 feat: Support both http and https for nginx.conf.j2 template
By default, if we do not supply the ssl_certfile and ssl_keyfile,
nginx will use http.

Change-Id: Iba86cd119e1aeec892c2b663c994778b63767e3e
2022-10-21 14:59:23 +08:00
Boxiang Zhu
fb1d6d8d4b feat: Add log_file config into skyline.yaml.sample
Add log_file config. Now log path of skyline is log_dir
with log_file, no other hardcode path.

Change-Id: Ieb1fd567e02110238568840fe3641770def0994d
2022-10-19 17:29:14 +08:00
Boxiang Zhu
68e1a3cced fix: Update policy
Latest policy update for Zed RC2

manila:
  - https://review.opendev.org/c/openstack/manila/+/856394

Change-Id: I6d0c81354ca6b46d1e71bd0a7e44b9e8ab9cf094
2022-09-30 10:24:46 +08:00
Zuul
fb2ea5ebf2 Merge "fix: Add enforce_new_defaults configuration" 2022-09-19 08:58:42 +00:00
yangsngshaoxue
18b61a1089 fix: Add enforce_new_defaults configuration
Fix barbican policy error

Change-Id: I57ebd29906378a67b5d6fe46ae2c584e0abc2a75
2022-09-16 18:15:29 +08:00
Boxiang Zhu
c6fd1d4147 fix: Lack of Octavia device owner of port
Add Octavia device owner of port

Closes-Bug: #1989551
Change-Id: Ic1d544bd9e61f68549cb052c40c666d6306524ef
2022-09-14 15:53:23 +08:00
Boxiang Zhu
c8e191b457 fix: Update policy
Latest policy update for Zed release(1.0.0).

Now no feature for openstack service.

nova:
  - https://review.opendev.org/c/openstack/nova/+/849209
ironic:
  - https://review.opendev.org/c/openstack/ironic/+/852794
glance:
  - https://review.opendev.org/c/openstack/glance/+/855435
barbican:
  - https://review.opendev.org/c/openstack/barbican/+/854656
  - https://review.opendev.org/c/openstack/barbican/+/854661
  - https://review.opendev.org/c/openstack/barbican/+/854655
  - https://review.opendev.org/c/openstack/barbican/+/854677
  - https://review.opendev.org/c/openstack/barbican/+/854786
manila:
  - https://review.opendev.org/c/openstack/manila/+/825008

Change-Id: I5d5940a0c15672aee4a0b4cdacab4460e69511a3
2022-09-13 09:55:04 +08:00
Boxiang Zhu
def775692d fix: Fix to add compute:kuryr for device_owner filter
Fix to add compute:kuryr for device_owner filter

Closes-Bug: #1988946
Change-Id: I109560a8e2b9584c654dfa47fa6dc11a9eee2072
2022-09-07 15:54:28 +08:00
Zuul
00af398d92 Merge "fix: Fix server_name is null in volumes attachment" 2022-08-26 11:51:11 +00:00
Zuul
1730bc5129 Merge "fix: Add enable field in profile" 2022-08-26 07:16:09 +00:00
Boxiang Zhu
71473abbdc fix: Fix server_name is null in volumes attachment
Fix server_name is null in volumes attachment when volume
is attached to server(s).

Change-Id: I69132a2de6c1974e3c081b7cfff0f29b126837bc
2022-08-26 13:42:32 +08:00
yangsngshaoxue
85da8bd976 fix: Add enable field in profile
Add enable field in profile

Change-Id: I1b7b314d49dcd08e8b01be090a7d5206c2f83d4f
2022-08-26 13:14:00 +08:00
Boxiang Zhu
3ccfeefb6c chore: Add description for api params
Add description for api params.

Change-Id: I2f245f52a610dfeb20e8973bcf2b3dec7e000fb8
2022-08-25 17:41:06 +08:00
Boxiang Zhu
f3dacbcea7 chore: Add license for python file and update policy
1. Add license for python file
2. Update the policy for all services

Change-Id: I4bc6a68874afe1cc51da1a24d278165356d5dec3
2022-08-25 14:35:55 +08:00
Zuul
f097842c86 Merge "fix: Check project_id when supply uuid filter" 2022-08-24 12:06:21 +00:00
Zuul
e7809a0002 Merge "refactor: Move all wrapper into wrapper folder" 2022-08-24 11:23:57 +00:00
Zuul
eee3fe81dc Merge "fix: Set bool as string for bootable and multiattach" 2022-08-24 11:23:55 +00:00
Boxiang Zhu
fefc145642 fix: Check project_id when supply uuid filter
Check project_id when supply uuid filter for volume snapshots list.
If project_id is not the same as login project_id when not supply
all_projects, just return None.

Change-Id: Idba709fe5d85087129144aa6bbbfe811fc36359f
2022-08-24 18:30:01 +08:00
Boxiang Zhu
74b29b8c5c refactor: Move all wrapper into wrapper folder
Move all wrapper into wrapper folder

Change-Id: I3f809a15bebdd3284a07acfde4dc887efc0fe36e
2022-08-24 11:54:11 +08:00
Boxiang Zhu
3641286cd5 fix: Set bool as string for bootable and multiattach
Set bool as string for bootable and multiattach query
params.
The cinder client only accept truth value for api as
query params.

Change-Id: Id26a0233c2ffc2d4165e96cab37c62c77fbefb24
2022-08-24 11:21:20 +08:00
yangsngshaoxue
8fadde52bf fix: Fix empty projects in profile
Fix empty projects in profile when using sso login

Change-Id: I2296cc88f04e3a3eeb2c51d8e83335923e0e5353
2022-08-24 10:57:16 +08:00
Boxiang Zhu
40b30101c3 feat: Return both id and name of children volume for snapshots
Return both id and name of children volume for snapshots

Change-Id: I194e13a368d01178b5e4751a42f8f3e6d0faa4f1
2022-08-23 16:41:37 +08:00
Boxiang Zhu
22ea97f536 refactor: Remove invalid codes for volumes and snapshots
The patch: https://review.opendev.org/c/openstack/python-cinderclient/+/767451
has been merged. And it has been released in Xena branch.

So We change the requirements.txt of the python-cinderclient
version as 8.1.0.

Change-Id: Ibf0ddb4c3ea532fdc1bffab210671bf63c128b02
2022-08-23 16:03:38 +08:00
Boxiang Zhu
aa77306945 fix: Fix member use has no snapshot_id filter for volumes
We use system session to filter volumes with snapshot_id.
The snapshot_id filter is non-available for member user.

Change-Id: I6424f117d28378a8eb1dcafa02e6c50029f62015
2022-08-23 15:06:08 +08:00
Boxiang Zhu
7f0a0818f7 feat: Support uuid filter for volume snapshots list
Support uuid filter for volume snapshots list API.

Change-Id: I916fdca140a05f70d8f558e24c92eb2221246ea7
2022-08-23 14:54:36 +08:00
Boxiang Zhu
4b8fed8f63 fix: Fix server_name is null for ports list api
1. Fix server_name is null for ports list api
2. Add more detailed description of params
3. Update swagger.json file

Change-Id: I3f4601235585db3896e7b1d25176b33ff59caf57
2022-08-18 16:20:38 +08:00
Boxiang Zhu
54e67e606c fix: Catch InternalServerError
We need to catch InternalServerError and then LOG. Just
use user_context.

Change-Id: Iaf4aa2d9c7935735bab600aa892f5d90b5800012
2022-08-18 14:49:20 +08:00
Boxiang Zhu
3dd6cb89fc fix: Fix the limit for ports list
We need set retrieve_all as False when we
use neutron client SDK. Default value is True,
it will retrieve all data.

Change-Id: I4e0222c28038fb1b769667951607376adbae284a
2022-08-17 14:57:10 +08:00
Boxiang Zhu
eb59b2614d fix: Remove invalid panko policy
1. remove invalid panko policy
2. remove install panko from post_install.sh
3. update policy

Change-Id: Icb23e4ff34ff47952294f711ddabd36cc9df706e
2022-08-17 14:05:06 +08:00
yangshaoxue
cbabcbce89 feat: Support SSO login via openID
1. add API sso and websso
2. add sso conf

Implements: blueprint skyline-sso-oid
Change-Id: I352200bb2ebf426adaea71826253730c51eeee03
2022-08-11 17:35:07 +08:00
Boxiang Zhu
5f47c8346a refactor: Remove base_roles and add more into extension_mapping
1. remove base_roles from openstack group
2. add qos and floating-ip-port-forwarding into extention_mapping

Change-Id: I461ae3f8979377ae22ec851bf3315e509b22cfbd
2022-07-28 18:17:10 +08:00
Boxiang Zhu
88ef320dc6 feat: Support mypy check
1. support mypy check, tox -e mypy or tox -e pep8
2. fix error of mypy check

Change-Id: I41b0013d271f3c7d3a28e1ea6dd0b083893d8983
2022-07-28 16:09:31 +08:00
zhu.boxiang
08c6265d1e feat: Support system scope for policy list and check
1. support system scope for policy list and check
2. add target for check policy api
3. update version of requirements and test-requirements

Change-Id: If251d26bdb522b03a8fb94ae0034d8ca44be5b61
2022-07-18 14:47:12 +08:00
zhu.boxiang
4d6f784384 fix: Fix schemas of ServersResponseBase
1. Not alias field. Just description field.
2. fix the python-glanceclient version

Change-Id: I95bdda3e69ad3f55dd1213ea6ef01df6245025db
2022-07-15 13:23:27 +08:00
zhu.boxiang
6ca007c1d0 refactor: Refactor the extension schemas
1. remove prefix ext
2. update the swagger file
3. add more detailed info for schemas field

Change-Id: I08f30087e8889d772db3da09a92f1e9390d10dbe
2022-07-14 13:43:52 +08:00
zhu.boxiang
4d9b577007 refactor: Refactor schemas
1. adjust setting schemas
2. adjust prometheus schemas
3. adjust policy schemas
4. adjust policy_manager schemas
5. adjust login schemas
6. remove some invalid model
7. update the swagger.json file

Change-Id: I6b513498999f1c56481107ca78df656e4c8b38cb
2022-07-13 15:21:51 +08:00
zhu.boxiang
7eaa53c9db refactor: Adjust the common and contrib schemas
1. adjust the common schemas
2. adjust the contrib schemas
3. just use schemas directly because all include in __init__.py
4. update swagger.json file

Change-Id: I4b8c366cbb439fbcb7c118329588eab1b31b9370
2022-07-13 10:16:10 +08:00
zhu.boxiang
1b17da1b2c refactor: cleanup some invalid tests
Some tests codes are not used, so just to cleanup them.

Change-Id: I9596a54705150271ae6900a17448d9250af4f2db
2022-07-12 09:52:49 +08:00
Zuul
a79e1d2c75 Merge "fix: add single quotation markx for password" 2022-06-27 03:06:10 +00:00
Wu Wenxiang
85a7f5fdac fix: add single quotation markx for password
Some users forget to add single quotation marks for the password
value which contains blanks or back slashes, which cause login
failures. Adding signle quotation marks for password values in
the example file as a remind.

Change-Id: I0ab68d67f94a90b983b204ced76e85323eeaacdc
2022-06-27 10:00:29 +08:00
zhu.boxiang
4f5b983a2a fix: Check both service and endpoint
When we decide whether the endpoint will add into profile, we will
both check whether the service has been set for openstack config
and the endpoint of this service exists.

Closes-Bug: #1979903
Change-Id: I0ad5558a0b6886d9af44c3e88eb43fc43f3cf58a
2022-06-26 22:52:38 +08:00
zhu.boxiang
e31e466f76 feat: Remove patch for barbican and update policy
1. remove patch for barbican
2. update heat policy
3. update requirements version

Depends-On: https://review.opendev.org/c/openstack/heat/+/812662
Depends-On: https://review.opendev.org/c/openstack/barbican/+/839147
Change-Id: I8f690c7c1e41cd78199de6386e986512edca9259
2022-06-22 21:54:39 +08:00
zhu.boxiang
fdd1064ab6 chore: Remove unused codes
Remove the coroutine.py file because unused codes.

Change-Id: I095ecd652c8ab17323ad330acb9bf4eddd790336
2022-06-14 21:19:17 +08:00
zhu.boxiang
fc547f8467 feat: Add barbican policy and service_mapping
1. add barbican related policy
2. add barbican into service_mapping
3. add releatenote for barbican
4. update releatenote for zun and magnum

Change-Id: I366e4482617654baab9091736e6f2b186aed6371
2022-06-07 14:05:47 +08:00
zhu.boxiang
10c910c6d5 refactor: Use source code instead of release packages
We install the service projects from opendev instead of
release packages. If the service projects are DEPRECATED,
then we will install them by latest release packages.

Update the neutron policy with the master branch.

Change-Id: I56a10452e731fd6e2597501659ce84e96c4c91ab
2022-06-07 13:29:04 +08:00
zhu.boxiang
32a00a6529 refactor: Register rule and apirule into enforcer
1. We register both apirule and rule into enforcer, so we can keep
the rule in the check_str
2. We re-generate all the services' policy, we just use the original
policy of them. If users want to change, they can change them by
themselves.
3. Adjust the post_install.sh, we install the service packages with
dependencies.
4. Split the ironic and ironic_inspector policy, they can not be in
the same policy file.

Change-Id: I9e152e33be4eef60432fb2030d388b3bec4c082e
2022-06-06 15:03:58 +08:00
Zuul
32990f9269 Merge "fix: Use debug config from default" 2022-05-30 12:47:07 +00:00
Zuul
62038c963e Merge "feature: Add zun config and policy" 2022-05-30 11:39:37 +00:00
zhu.boxiang
2d978cc755 fix: Use debug config from default
Use debug config from default. Set INFO as default level.

Change-Id: I03834f5a69d9f5b6b87d9c4c08296a4589952a92
2022-05-30 18:54:47 +08:00