Commit Graph

142 Commits

Author SHA1 Message Date
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
Boxiang Zhu
1591f34a25 fix: Add MANIFEST.in and remove templates from packages
Add MANIFEST.in and remove templates from packages.

Change-Id: I9e53143bdf52a38635057511d6863b1e285a334a
2022-07-21 13:42:09 +08:00
Boxiang Zhu
ce4d5bcc01 docs: Change md file to rst file
1. change md file to rst file for readme
2. add README.rst to description_file in setup.cfg

Change-Id: I3ece3849798d708a780c76453a49a2627126b316
2022-07-20 12:00:10 +08:00
Boxiang Zhu
0c5446f937 fix: Add templates into packages
1. remove MANIFEST.in file
2. add templates into packages

Change-Id: Ia0ca5b4f9696779b03a9d81c86eb2e3eb5e8757d
2022-07-20 10:38:45 +08:00
zhu.boxiang
212cdcc2d9 Add gunicorn log handler and formatter
Use handler and formatter for gunicorn.

Change-Id: I036720c4317cb234c16a4026d9b9bc4a193f69db
2022-07-18 06:48:39 +00: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
Wu Wenxiang
22a2895ba9 docs: add skyline logo design
Change-Id: I3fa64de538066aee812925b817b47f605d59e7c5
2022-06-27 16:33:36 +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
Zuul
e7b2fb01b0 Merge "fix: Check both service and endpoint" 2022-06-26 15:59:16 +00: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
Zuul
7a3287503f Merge "Add skyline port settings" 2022-06-23 08:40:38 +00:00
yangshaoxue
068cf9c526 Add skyline port settings
1. skyline port can be set when skyline container starts
2. update readme

Change-Id: Ic7f81e3d753c041fd5ea89268855d4b68086807d
2022-06-23 14:44:23 +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
Reşit Demir
7260c09fae feature: Add zun config and policy
1. add zun install into post_install.sh
2. add zun into SUPPORTED_SERVICE_EPS and PREFIX_MAPPINGS
3. add zun policy

Change-Id: I741922f06ad5103417a817ed0695f6b3d67fb926
2022-05-30 10:17:16 +00:00
zhu.boxiang
193f2ed6c7 refactor: Use pbr to get package version
1. use pbr to get package version
2. update the dependencies' version

Change-Id: If221a54a2eecbca76c212838fddef272bfd48484
2022-05-30 14:42:53 +08:00
zhu.boxiang
c12b6edcf0 fix: Fix the folder name of skyline-console
Fix the folder name of skyline-console when build
skyline docker image to get skyline console commit id.

Change-Id: I4d8e55c0ddd2914ceabf7a2546ebae213ff864ca
2022-05-27 20:00:57 +08:00
zhu.boxiang
72e7cf3cf5 refactor: Remove invalid config
Remove invalid config show_raw_sql.

Change-Id: Id839175530a6de441b3a3c90e94650c3ca851c6f
2022-05-27 16:49:39 +08:00
zhu.boxiang
ee6d1a7a49 fix: Add manila into service mapping
Add manila into service mapping. So if we deployed the
manila service, we can get the endpoint of it by default.
Re-sort the service mapping by its' initial.

Change-Id: I88dbafbe34b0e95eff0b00d9260f1b7a6fc0db77
2022-05-27 11:11:34 +08:00
zhu.boxiang
ed1fb8ffca fix: Use the correct job for post
Use the correct job for post. Use publish-openstack-python-branch-tarball
instead of publish-openstack-python-tarball.

Change-Id: If0e8a2e73d0a7bf238e36119e678f813aedcbd40
2022-05-26 22:13:39 +08:00
zhu.boxiang
37a0cacf26 style: Re-generate the default config yaml
Re-generate the default config yaml.

Change-Id: I4b536694ae311308cdc9b3a43b32c146613daf18
2022-05-26 20:19:51 +08:00
zhu.boxiang
1a050ec2c4 chore: Remove poetry
1. remove poetry dependency
2. add requirements.tx, test-requirements.txt, setup.py and setup.cfg
3. add more env into tox.ini
4. remove some command from Makefile
5. cleanup the dependencies
6. change some commands of README
7. update the devstack

Depends-On: https://review.opendev.org/c/openstack/skyline-console/+/843257

Change-Id: I4cefc4cfdaadf7b3ba03ffe8441e9ae760772349
2022-05-25 22:26:42 +08:00
Numan MENEKŞE
60144767cd feature: Add magnum config and policy
1. add magnum install into post_install.sh
2. add magnum into SUPPORTED_SERVICE_EPS and PREFIX_MAPPINGS
3. add magnum policy

Change-Id: I10d2d337331d8c4857f6e58331e545eead0bf26f
2022-05-25 15:59:28 +08:00
zhu.boxiang
a7856401a9 fix: Remove invalid constant NEUTRON_PORTS_API
Remove invalid constant NEUTRON_PORTS_API.

Depends-On: https://review.opendev.org/c/openstack/skyline-apiserver/+/839462
Change-Id: I05bfcd1483af9daf7da3873cca84df22096e44f2
2022-05-23 21:35:16 +08:00
chenliufeiyang
9aa12defca feature: Add skyline-console commit-id
1. add wget and tar into makefile to get skyline-console package
2. set skyline-console commit into skyline docker image as label

Depends-On: https://review.opendev.org/c/openstack/skyline-console/+/841664
Change-Id: Id69ba06c91343ca6bdccab85c45d258a3a6eaa19
2022-05-20 14:14:21 +08:00
zhu.boxiang
8cb60f0833 chore: Move skyline_apiserver out of libs
1. move skyline_apiserver out of libs
2. remove libs folder
3. remove old skyline folder
4. adjust zull, devstack and dockerfile

Change-Id: I27a4babd3df077d1dfc7555f67a6ea618d4b2966
2022-05-18 17:21:00 +08:00
zhu.boxiang
6949568886 chore: Remove invalid folder from libs
1. remove skyline-log from libs
2. remove skyline-config from libs
3. remove skyline-policy-manager from libs
4. remove skyline-nginx from libs

Change-Id: I26ffdd75384a1949388b1bfc0129245065a04346
2022-05-18 11:14:31 +08:00
zhu.boxiang
9312010923 chore: Merge skyline-nginx into skyline-apiserver
1. merge skyline-nginx into skyline-apiserver

Change-Id: Ib2f31435ce69c52ea2c27d63177f9c8f936c033e
2022-05-16 21:38:38 +08:00
zhu.boxiang
ba249b0741 chore: Merge skyline-policy-manager into skyline-apiserver
1. merge skyline-policy-manager into skyline-apiserver
2. move tests into skyline-apiserver
3. we will remove skyline-policy-manager after we merge
skyline-nginx into skyline-apiserver

Change-Id: Id57598f3726c891e399af81eb0383746f78386b5
2022-05-16 17:12:54 +08:00
zhu.boxiang
6a1bdd4fb4 chore: Merge skyline-config into skyline-apiserver
1. merge skyline-config into skyline-apiserver
2. move tests into skyline-apiserver
3. we will remove skyline-config after we merge skline-policy-manager
and skyline-nginx into skyline-apiserver

Change-Id: I76091eb0f19333bafd999f3e03cb8bfc2ada6640
2022-05-13 14:01:26 +08:00
zhu.boxiang
b4d2d670cf chore: Merge skyline-log into skyline-apiserver
1. merge skyline-log into skyline-apiserver
2. move tests into skyline-apiserver
3. we will remove skyline-log after we merge skline-policy-manager
and skyline-nginx into skyline-apiserver

Change-Id: I04b6e0a8bcddc3139a423a6e31dd603d39498ad8
2022-05-12 16:19:40 +08:00
zhu.boxiang
240e26691d feat: Update policy for manila and trove
1. update policy for manila, use role instead of rule
2. update policy for trove, use role instead of rule
3. update the dependencies for skyline-policy-manager

Change-Id: I57f010f769575f7b75673c5c154eac4fed07b708
2022-05-10 15:16:05 +08:00
zhu.boxiang
370b8bf229 feat: Change the command for testenv:releasenotes
1. change the command for testenv:releasenotes
2. add releasenotes as irrelevant-files for skyline-functional-devstack
job

Change-Id: Ia50312a136841ac42d77dcd5f23774161c9ae141
2022-05-07 15:47:14 +08:00
zhu.boxiang
4dc1583958 feat: Add releatenotes
1. add releatenotes
2. add releatenotes into tox

Change-Id: I96414e63f36e4f481c35c82b9cd2c32e25f1a88b
2022-05-06 19:35:51 +08:00
zhu.boxiang
c104db6a72 chore: Update dependency packages and remove invalid
1. update dependency packages
2. remove invalid packages from pyproject.toml

Change-Id: I3c4d2c875e1d03a2a41304ccf82d4ca1187d6c7d
2022-05-06 09:54:41 +08:00
Zuul
6c8baadfdc Merge "feat: Add manila policy" 2022-05-05 17:03:10 +00:00
Wu Wenxiang
1fc924798f doc: add skyline community icons
1. add skyline community icons
2. add vscode debugging tips
3. add quotas in skyline.yaml.sample
4. add flake8/bandit/pycodestyle plugins

Change-Id: Ib63c12c613c4f6cb24879324b6445cedc268724b
2022-05-04 07:15:31 -07:00
Wu Wenxiang
a7272af0c8 doc: add sqlite connection string example
add sqlite connection string in skyline.yaml.sample

Change-Id: I117f8c51eee9d007399b1e2342952654dbe92db6
2022-05-03 17:30:02 -07:00