Commit Graph

15 Commits

Author SHA1 Message Date
songwenping ce88d4edc1 Add tags to .gitignore
When using ctags, it will provide a 'tags' file in the directory.
It should be added to .gitignore.

Change-Id: Iaffac082948745c1b9171834504234570b795065
2021-02-23 17:07:15 +08:00
Ghanshyam Mann af49d0b30a Change default policy file from JSON to YAML
As Cyborg is switching to new policy, this is required
to avoid breaking the existing deployment using policy
file in json format and relying on default value of
'CONF.oslo_policy.policy_file'.

Default value of 'CONF.oslo_policy.policy_file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.

An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.

Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.

Related Blueprint: https://blueprints.launchpad.net/oslo.policy/+spec/policy-json-to-yaml

Change-Id: I865227e516dc7505c463ac279309169d95ea6a22
2020-09-18 14:16:31 +00:00
chenke 5751cebaa2 Exclude cyborg tests dir in UT cover report
We don't care about coverage of actual test code, So exclude
cyborg/tests dir.

Change-Id: I534f652c098ed91afb8f52cfc6bb78268a4d5f21
2019-10-30 09:40:37 +08:00
chenke 9dcbbb33bc Enable openstack-cover-jobs in zuul check for cyborg
In this U version, Improve UT for important Cyborg module is
an important task.

It is necessary to add openstack-cover-jobs to zuul. This way
we can easily view the unit test coverage of each file.

such as nova:
https://github.com/openstack/nova/blob/master/.zuul.yaml#L374

Change-Id: I854a51a2105628c5e5e9c30282e0f4b259c33ed3
2019-10-24 20:39:54 +08:00
Xinran Wang fdeceed353 Notify Nova when all ARQs are resolved for an instance.
Once all the ARQs for an instance have either bound or failed to bind,
Cyborg sends a notification event to Nova indicating success
or failure.

Change-Id: I05cce190d328ae16738959ba806d13a5ae99053c
2019-09-11 07:51:31 -07:00
Yumeng Bao 3cb5c38edb Docs: Autogenerate config documentation
Ensure the documentation is kept up to date by automatically
generating it from the source when the docs are built.

This patch:
1.replace oslosphinx with openstackdocstheme since oslosphinx is obsolete
2.add oslo_config.sphinxconfiggen to generate sample conf file
3.add oslo_policy.sphinxpolicygen to generate sample policy file

Change-Id: I39f03023f0a85e4c8943925268ab3e9066975630
2018-08-08 01:26:38 +00:00
Vu Cong Tuan e76f2a5f90 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I8b0f96f05799b892acfae03522726c17010f0df3
2018-07-24 15:10:52 +07:00
Nguyen Van Trung e4179de2a8 Improve .gitignore for project
This patch will help project ignore some redundant items
during push into gerrit.

Change-Id: I4a9bf4c5b8be64e3327dbf0592f9d858bea6becc
2018-07-06 07:06:50 +00:00
Xinran WANG d5088b7474 Introduce Cyborg Resource Quota -- Usage Part
The concept of quota gives the possibility to limit the maximum number of
acceleration resources that one project/tenant can prossess.
It will also  give the admin users the ability to increase the resource count
on-demand, given that the system constraints are not exceeded.

Change-Id: I554b9d4603d5e65f69c2b924fba66565f7f6c3c4
Partially-Implements: blueprint cyborg-resource-quota
2018-06-11 15:09:09 +08:00
Andreas Jaeger 6765d265b2 Remove ChangeLog
This is not needed to be under version control, remove it.

pbr generates it automatically as needed.

Change-Id: I76abd7738448034d9cabe2bcc39564af9976512c
2018-02-14 09:31:43 +01:00
zhipengh fe04417036 Add release pkg related files
Change-Id: I88a259c05b5e13dbe06f0f00c4f73cbc413cd3ee
Signed-off-by: zhipengh <huangzhipeng@huawei.com>
2018-02-10 10:51:47 +08:00
Jenkins 168ea97459 Merge "Cyborg deployment script" 2017-09-11 19:27:17 +00:00
zhuli c6c5ca042f add policy support
Add policy support to determine which user can access which objects
in which way

Change-Id: If959089366ec252d4a7904d0e78733a2bf52fff5
2017-09-03 21:04:20 +08:00
jkilpatr 85ac496ff6 Cyborg deployment script
This deploys cyborg services across various hosts and sets them up
as boot time services configured to access the local rabbit and mysql
instances and then runs some validations to ensure
that everything started correctly.

This does not have any saftey for multi-controller setups yet, right now
if you hand the playbook 3 hosts under 'controller' it will deploy three
api endpoints and three agents. Which probably won't work right.

Change-Id: I79b6b1ce9bb6766d5e608c89504c4bbaeaba5599
2017-08-30 09:27:56 -04:00
jkilpatr 90799f60c8 Add basic gitignore file
I figured I should break this out of my conductor commit
to merge on it's own sooner.

Change-Id: I839285f7c88e4a1a935b76c7ad8446d4a2fc4389
2017-06-09 08:58:05 -04:00