Commit Graph

202 Commits

Author SHA1 Message Date
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
zhu.boxiang
a20c42ae90 feat: Add manila policy
1. add manila install into post_install.sh
2. add manila into SUPPORTED_SERVICE_EPS and PREFIX_MAPPINGS
3. add manila policy

Change-Id: I731b6aae1bbfd9bb88dc33d61b1660b71bf60b3a
2022-04-29 17:14:57 +08:00
zhu.boxiang
988185cbdf fix: Fix trove policy
1. add trove into SUPPORTED_SERVICE_EPS
2. add PREFIX_MAPPINGS
3. change manage to remove/add prefix auto

Change-Id: Ia6bfa83cb721655c25952e0fd7c0c12020bdf9ff
2022-04-29 16:52:01 +08:00
zhu.boxiang
4b35a82ea3 fix: Remove invalid count of ports list
Neutron does not supply the count of ports from
list ports api. So we need to remove invalid count
of ports list api from skyline.

Closes-Bug: #1948615
Change-Id: I8858c242957a6cda47c08efa1e1d233db15cad18
2022-04-27 12:22:11 +08:00
zhu.boxiang
e50d2a6bc5 fix: Fix the url path pattern when generate nginx config
Fix the url path pattern when generate nginx config.

Closes-Bug: #1970007
Change-Id: Ifadfee974189f7b1426f29b20f6b23642a45bfee
2022-04-23 12:41:28 +08:00
zhu.boxiang
1ab2cec63b fix: Use -U to upgrade the skyline-console with tarball
Use -U to upgrade the skyline-console with tarball when
building the skyline container.

Change-Id: I494ee49e8ce5983823388c60124364e0a7064f36
2022-04-23 12:01:55 +08:00
zhu.boxiang
ce16e7249b fix: Add prefix for trove policy APIRule
Some rule names are duplicated. So we add prefix for
trove policy APIrule.

Change-Id: Ib49431ffeea170f74163641df2d4f06e97ca06ae
2022-04-14 15:30:46 +08:00
Zuul
643d19e885 Merge "Add Trove configs and policies to Skyline-Apiserver" 2022-04-08 15:05:11 +00:00
Reşit Demir
3aa06f7853 Add Trove configs and policies to Skyline-Apiserver
Change-Id: I28d627dc00dcaafc1582b13b9c0416966978b594
2022-04-06 09:32:10 +00:00
Zuul
9399e80917 Merge "fix: markupsafe ImportError" 2022-03-28 10:14:17 +00:00
yangshaoxue
3c8259e723 fix: markupsafe ImportError
Bug Description
===========
I'm trying to install a skyline image, and getting following error
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/site-packages/markupsafe/__init__.py)

Result
==================
MakeupSafe==2.1.0 is not supported in Jinja2
Using markupsafe==2.0.1 fixes the issue

Issue: https://bugs.launchpad.net/skyline-apiserver/+bug/1966360
Change-Id: I85857c254874f123505a31044f9145de8a1a9ea1
2022-03-25 04:41:59 +00:00
zhu.boxiang
8bfc3ed08c fix: Only use system_session when use id filter
Only use system_session when use id filter

By default, id filter is valid for admin user.

Closes-Bug: #1957142
Change-Id: I57d3014f18e7b2ba832421453f45f71d04489e07
2022-03-24 18:55:31 +08:00
chenliufeiyang
461ddb6632 fix: Use admin permission to list volumes with ids
By default, id filter for list volumes is only availabe
for admin user. So if we login as a normal user. It will
fail to list volumes with ids.

So we use admin permission to list volumes with ids.

Closes-Bug: #1957142
Change-Id: Ia18bf377b34a11d11df898003242eb763f8cfeea
2022-03-17 13:38:20 +08:00
zhu.boxiang
6494ff6a46 fix: Fix the log_dir
If the log_dir is /var/log/kolla, and when we
deploy with devstack, we only chown the permission
for /var/log/kolla/skyline with stack user.
But the permission for /var/log/kolla is still root.
So it can not be access by stack user.
We will both change the log_dir in skyline-console
project.

Change-Id: I852c44cda2f9879aa8d8e405bb39bba13f35b8ca
2022-03-14 10:22:24 +08:00
yangshaoxue
babe6fe563 fix: Update .zuul.yaml
fix: Update .zuul.yaml
Change-Id: I8bc5bdefcfc56c0e91b2b6ff6125e6b9f9b44996
2022-03-10 19:10:57 +08:00
yangshaoxue
c397f97cc4 fix: Add nginx option "listen_address" and "log_dir"
Add nginx option "listen_address" and "log_dir"

Change-Id: I161f76155b7cf34ef3bf4ea1f2416798aa533920
2022-02-16 13:42:13 +08:00
yangshaoxue
47291a2365 fix: Update README.md
Update README.md

Change-Id: I1c07a63700d2f0b9c3474f95dae8d430d0ef03bb
2022-02-14 09:50:48 +08:00
yangshaoxue
14433d9774 fix: update skyline nginx log file address
Update skyline nginx log file address

Change-Id: I150064a8a0175b073c2cb31303a812763cb02f78
2022-02-09 16:42:42 +08:00
zhu.boxiang
e646bd65fe fix: Remove skyline_console when rename whl files
Remove skyline_console when rename whl files

Change-Id: Ia9e49bf284bfaae12536eadeb780005636027cb1
2022-01-12 21:16:35 +08:00
zhu.boxiang
a7ccf5e0fb fix: Cleanup skyline-console in .zuul.yaml and publish job
1. Remove skyline-console from irrelevant-files in .zuul.yaml file
2. Remove skyline-console from publish job

Change-Id: I242ad9dc6ef3491f207dd3ebf93bce853f6a96ff
2022-01-12 11:36:09 +08:00
zhu.boxiang
047f197844 refactor: Remove skyline-console submodule
1. Remove libs/skyline-console submodule
2. Delete .gitmodules file
3. Update the dependencies
4. Update the Dockerfile

Change-Id: I80eae423ba3c308bb7f4d817f9142d9877855e7a
2022-01-06 13:43:46 +08:00
zhu.boxiang
36e4e5ce0e chore: Update submodules
Update submodules of skyline-console

Change-Id: I8ca833da45979b0668e201d55c5dbc528edc9a24
2021-12-02 16:48:59 +08:00
Zuul
70babad06a Merge "feat: Add swift endpoint url when generate nginx.conf" 2021-11-29 03:49:01 +00:00
王晨
01582540ca feat: add query api
Add calling prometheus interface

Change-Id: I2aeac35d91c9b94dcd0549f1a0ac7ca25f6d268f
2021-11-26 07:08:38 +00:00
zhu.boxiang
c5ec9e0faf feat: Add swift endpoint url when generate nginx.conf
Add swift endpoint url when generate nginx.conf.
Add swift type into service mapping. Also update
the sample file of skyline.yaml.

Change-Id: Ib7dc4202bb390557afb665da7f5ae4004d40f324
2021-11-26 09:40:48 +08:00
zhu.boxiang
872f2f4847 docs: Execute make swagger to fill in information
Lack of information for swagger.json. So we execute
make swagger to fill in information.

Change-Id: I2f18df3bf5056579206508cf248bd7bdd1b08618
2021-11-25 11:21:23 +08:00
zhu.boxiang
27d22a984d fix: Error build image
Fail to build skyline image. We should upgrade the pip and setuptools
version.

Remove irrelevant files for skyline-tox-lint-py38 job to retain one job
to trigger zuul.

Refer: https://github.com/python-poetry/poetry/issues/3329

Change-Id: I444faa3aefaa8ef8cfeb5284bc2a7a49bb0cb91b
2021-11-23 11:04:50 +08:00
zhu.boxiang
2fa6e6bd39 feat: Improve the enum value for port device owner
Improve the enum value for port device owner.
Refer: https://opendev.org/openstack/neutron-lib/src/branch/master/neutron_lib/constants.py#L43-L73

Change-Id: I61b3079ab88e78a53b8b2afa6c09463138cb3bbc
2021-11-05 16:41:57 +08:00
yangshaoxue
f47fa7dcd5 Integration with Kolla and Kolla-Ansible
1. Add kolla and kolla-ansible integrated patch
2. Add README to introduce how we can build skyline image with kolla
and deploy skyline with kolla-ansible
3. Add kolla folder as irrelevant files into jobs

Change-Id: I0cc7e9ddd62fc3e20564bf8a0d98d5c7b8f8abac
2021-10-19 16:11:07 +08:00
zhu.boxiang
f369b43f24 style: Change makefile for apiserver and nginx of skyline
1. fix makefile for apiserver and nginx of skyline
2. re-fmt and re-lint for project

Change-Id: I4800b19dad0e3031462f540ff4427ca750d6324f
2021-10-15 15:49:15 +08:00
zhu.boxiang
d1dd62fb8e feat: Add irrelevant-files for zuul jobs
Add irrelevant-files for zuul jobs so that we can reduce the
job cost time when the patch is just docs changes or not-related
changes for these jobs.

Change-Id: I6323a3458927ca265136c8be91fda1c7138074d1
2021-10-13 15:28:25 +08:00
zhu.boxiang
f1d38b6524 Fix: Add post-run into publish job
1. Add post-run into publish job
2. Update skyline-console submodule

Change-Id: Idd7263ed69f14fadf54f0850beb5bcbb930f672d
2021-10-11 13:30:27 +08:00
zhu.boxiang
4b0fd453cc Fix: Add pre-run into job
Add pre-run into job to ensure pip3 and revoke sudo.

Change-Id: I7eb5431f7dc18bfcade5498c7af1a9364bad68bc
2021-10-09 17:26:48 +08:00
zhu.boxiang
7a9b11a6a2 Fix: Only keep one tar.gz and whl package under dist
1. Add all tar.gz packages into one tar.gz package.
2. Keep one whl package under dist. Be carefull, we
should not use the whl package, because it is only for
the zuul job to publish.
3. Remove post and pre yaml files

Change-Id: I6d59bd5d6e4fd62f0b2f9c8d40d634e0ee01e327
2021-10-09 12:07:57 +08:00
zhu.boxiang
ed40bd9419 Fix: Change the parent of publish job
1. Change the parent of publish job
2. Change the regex of rename packages

Change-Id: I3d20d3b2477e268bebffd73a56234994ccf0db91
2021-10-09 09:41:28 +08:00
zhu.boxiang
26a0e85f40 Fix: Reuse nvm.sh before run yarn
1. Reuse nvm.sh before run yarn
2. Move all tar.gz and whell packages into dist under skyline-apiserver

Change-Id: I423b174d19e067eeb16cf4e3a8a51771468c1e4b
2021-10-08 18:29:48 +08:00
zhu.boxiang
7b61aeee13 Fix: Fail to publish package to tarballs
1. Use tox to make packages.
2. Change the way to install nodejs and yarn with nvm.
3. Update the skyline-console submodule

Change-Id: I363ec0dcda428701be2260893ebe97aa3dd77b5f
2021-10-08 16:15:44 +08:00
Zuul
a3518dbf7b Merge "refactor: Change the way to install nodejs and yarn" 2021-10-08 05:54:03 +00:00
zhu.boxiang
7cd4168047 refactor: Change the way to install nodejs and yarn
1. Change the way to install nodejs and yarn
2. Config nginx.conf before start nginx
3. add sudo into cleanup skyline

Change-Id: Id02e135fdbe880b9b052a6b644816f3273361e2a
2021-10-08 11:47:54 +08:00
zhu.boxiang
46b5fcad23 Fix: Add pre.yaml in publish job
The default pre.yaml will revoke the sudo. So we install the extra tools
before we revoke the sudo.

Change-Id: Ie4ae0dc8ee90e6ea79f2b463988c32aa4ddaadba
2021-10-08 09:58:28 +08:00
Zuul
63db3fb835 Merge "feat: Publish source package into tarballs" 2021-09-30 09:28:30 +00:00