Commit Graph

76 Commits

Author SHA1 Message Date
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
zhu.boxiang
54a496a57f refactor: Change the path of file alembic.ini
Change the path of file alembic.ini to skyline_apiserver/db/alembic.

Change-Id: Ic932dd4ed7350217a0db8eb766b863101d54f9af
2021-09-30 14:54:04 +08:00
zhu.boxiang
32cc5d7cc6 feat: Publish source package into tarballs
1. Add post into zuul. So we publish source package into tarballs.
2. Update submodule for skyline-console

Change-Id: I799e5658d0aca588d4f6b5b6ebcca218e1ca57d6
2021-09-30 13:23:16 +08:00
Zuul
5614c154ea Merge "refactor: Remove -f of poetry build command" 2021-09-29 07:46:51 +00:00
Zuul
a51d72f018 Merge "test: Add skyline-config unit test" 2021-09-29 06:37:09 +00:00
zhu.boxiang
28429a0ac5 refactor: Remove -f of poetry build command
1. Remove -f of poetry build command. Merge two commands
as 'poetry build'.
2. Update submodule for skyline-console

Change-Id: I91a04439c3a605a0159890a4603684a785d7a90c
2021-09-29 14:10:13 +08:00
Zuul
9a8dabe7bb Merge "test: Add skyline-log unit test" 2021-09-29 05:14:34 +00:00
Gao Hanxiang
c81b6e11d2 test: Add skyline-config unit test
1. Add skyline-config unit test case and tools
2. Update immutables package type annotation
3. Adjust get_config_path function

Change-Id: Idc70ac164247c0d9cd5135f4e5bbef3994d05f22
2021-09-29 04:30:26 +00:00
Gao Hanxiang
1d14b4067c test: Add skyline-policy-manager unit test
1. Add skyline-policy-manager unit test case and tools
2. Update `setup` method type annotation
3. Move some constants to `skyline_policy_manager.constants`
4. Adjust import to use modules instead of functions
5. Update code format

Change-Id: Ic72e21126de0b16e4d969ad48ce64c57542c4667
2021-09-29 02:50:31 +00:00
Gao Hanxiang
841a224590 test: Add skyline-log unit test
1. Add skyline-log unit test case and tools
2. Update `setup` method type annotation

Change-Id: Icc0ce98063e32501b75525f36262a1ed4c99e61f
2021-09-29 02:50:02 +00:00
zhu.boxiang
da42ade264 feat: Add build sdist
1. add build sdist into Makefile
2. update the submodule for skyline-console

It's ready for kolla to build image with source packages.

Change-Id: Iee016f241e5c141de4f135a35a406517b3f87e1f
2021-09-27 18:03:35 +08:00
zhu.boxiang
12c0618314 feat: Add ironic and octavia into service_mapping
1. add ironic into service_mapping
2. add octavia into service_mapping
3. change interface_type as public

Change-Id: I9ffa419ffac3b7f20784cf7ae4e12a26e3e6bb4d
2021-09-24 16:39:49 +08:00
Gao Hanxiang
1eebe91eaf chore: Update dependencies
1. Update python dependencies
2. Update skyline-console

Change-Id: I9417671b8fecef76a4e00f1bf98877552801f66e
2021-09-23 12:33:16 -04:00
zhu.boxiang
de4adde69e feat: Support devstack integrated functional test
1. add skyline-functional-devstack which inherits from devstack
2. add skyline-functional-devstack into check and gate job
3. add playbook to integrate with devstack for zuul
4. change the port from 8080 to 9999 because the 8080 is used for s3api
5. rename functional-py38 as unittest-py38
6. add install extra tools ready for skyline-console's e2e test

Change-Id: I7f4b549bec6573661e62dd2bd9a3355253afd47d
2021-09-16 13:31:55 +08:00
Zuul
8fd70b6823 Merge "fix: Change the version of setuptools" 2021-09-10 10:27:09 +00:00
zhu.boxiang
809802d920 fix: Change the version of setuptools
The setuptools(>=58.0.0) has removed the support of use_2to3 during build[1].
There is a package named tempita[2] which has set use_2to3 in setup.py.

So here, we set the version of setuptools less than 58.0.0

[1]: https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
[2]: https://github.com/agramfort/tempita/blob/master/setup.py#L53

Change-Id: I0fffaa63eb91c4d4c4bf8d7e149e7087e514aa51
2021-09-10 17:56:44 +08:00
zhu.boxiang
cfba942e3c fix: Remove git_config when make venv
Remove git_config when make venv. So when we integrate
with devstack, we will not be interrupted by git.

Change-Id: I23d6fac4dda5bc1c2caa269f0591cb4e6137743d
2021-09-10 15:31:24 +08:00
zhu.boxiang
8faca27477 docs: Update README doc to link devstack README doc
1. Add devstack README doc link to README zh_CN and en doc
2. Update the table of contents

Change-Id: Iff2dae1d87e6f01eb564542e4b3718f9cfba0887
2021-09-09 11:59:01 +08:00
zhu.boxiang
8b288e1955 feat: Support to deploy skyline with devstack
Add devstack plugin for skyline to deploy by devstack.

There are six main functions for this plugin:
1. install_skyline: to install main dependency of environment,
skyline-apiserver and skyline-console
2. configure_skyline: to config skyline.conf for skyline-apiserver
and nginx.conf for nginx
3. init_skyline: create database of skyline and make db sync
4. start_skyline: start skyline-apiserver as systemd and start nginx
5. stop skyline: stop skyline-apiserver and stop nginx
6. cleanup_skyline: remove all config directories

Change-Id: I632f059b26a3d8612fc1008758f1844498ce7b84
2021-09-08 18:16:06 +08:00
Wu Wenxiang
b8be76df8a fix: get domain always from admin interface
Use config interface in keystone client, rather than default value.

Closes-bug: #1940148
Change-Id: Id0cec1e488f854bfd6e2321e6abe9ac6d5f4a486
2021-09-08 16:37:00 +08:00
zhu.boxiang
f5c946e1c6 fix: Double all_projects params
Input double all_projects params when calling list_projects
function. Remove one of them.

Closes-Bug: #1942087
Change-Id: I7cc80dcb497a2996d50770e6c2b29c9779640e85
2021-08-31 16:58:05 +08:00
zhu.boxiang
4abe8d4032 fix: Lack of import constants
Use constants in contrib but lack of import it.
Here we import constants from skyline_apiserver.types to fix it.

Closes-Bug: #1942087
Change-Id: I6fd874400f77e9d201d6c5d7284c78345d52b63f
2021-08-31 11:52:00 +08:00
Zuul
3b3d292cc5 Merge "fix: Fix make build failed" 2021-08-25 09:27:54 +00:00
Zuul
d182e386e9 Merge "feature: Add x-openstack-request-id into header" 2021-08-25 09:21:58 +00:00
Gao Hanxiang
3855a725a9 fix: Fix make build failed
Since poetry 1.1.8 version introduces a large number of bugs[1], which
makes the process of building container image fail, so the 1.1.8
version of poetry is not used.

[1] https://github.com/python-poetry/poetry/issues/4429

Change-Id: Ia30c2c5e783401aa4bad85139b0bf2fa9a822847
2021-08-25 04:54:43 -04:00
shaleijie
08126209de feature: Add ZUUL JOBs
1. Add `skyline-tox-functional-py38` job to execute unit tests
2. Add `skyline-tox-lint-py38` job to execute code static analysis

Change-Id: I6ee8e89e72b3769a2803f8dc2a7b7a434f16e16f
2021-08-25 15:01:17 +08:00
chenliufeiyang
6dfa997a79 feature: Add x-openstack-request-id into header
1. Add x-openstack-request-id into header
Let the skyline API continue to pass down with Request ID using for tracking chain.
It contributes to find the problem preliminarily.

Change-Id: Ib7f7dcc98183aa99a00fc69b73eba53d87642502
2021-08-25 12:47:26 +08:00