28 Commits

Author SHA1 Message Date
Arthur Dayne
6b9ab023e1 Stop testing python2.7
Python 2.7 support has been dropped. Last release of Cyborg to support
py2.7 is OpenStack Train. The minimum version of Python now
supported by Cyborg is Python 3.6.

Depends-On: https://review.opendev.org/#/c/691766/
Change-Id: Ie87ef7727b50d8d5ca43f0283c5688199c35412e
2019-11-19 02:09:08 -05:00
Yumeng Bao
477b4f9a55 remove rootwrap in cyborg
On one hand, as discussed in this patch[0], rootwap was intented
to be replaced by privsep, especially for new project.
On the other hand, we need remove rootwrap to fix the following
cyborg-tempest job failure in patch [0]:
cannot stat '/opt/stack/cyborg/etc/cyborg/rootwrap.d/*.filters':
No such file or directory

[0]:https://review.opendev.org/#/c/673957/

Change-Id: I1aaf38da3a68c656616c7d701b8f815e17ed0152
2019-09-24 00:30:25 -07:00
Shogo Saito
38119f675e python3 patch (including zuul config)
Fix points are extracted in following methods.

1st: check with sixer:
    change unicode function to use sixer lib.
2nd: check & fix manually.
    2-1: as_dict() function
         fix as_dict() to work in py3 env.
    2-2: delete unnecessary as_dict() call in response to the change in as_dict()
    2-3: fix all_pfs_have_vf() to be able to treat both list and iterator,
         because filter() function returns list in py2, iterator in py3.
    2-4: To treats map() in same way in py2/3 env , wrap map() with list()  in P6,P7
    2-5: add python3.7 to setup.cfg
    2-6: add py3 tests, as voting

Change-Id: Ibfdec7258c731ee45ce1b9bdba4b2024cea78a12
Story: #2003219
Task: #23418
2019-09-13 09:27:22 -07:00
Yikun Jiang
c18731f3e9 Add Huawei Ascend driver
This patch adds the Huawei Ascend driver.

Change-Id: I105f34de9ad95db2e98ac41836e686bafda6c0a5
2019-09-03 09:13:31 +00:00
Zuul
8c26ba4696 Merge "Add the fake driver" 2019-08-09 22:07:46 +00:00
Yikun Jiang
658334455b Add the fake driver
This patch add the fake driver, this driver can be configured
in cyborg.cfg to enable it:

[agent]
enabled_drivers = fake_driver

It would be used in cyborg test.

Change-Id: I08c63d533fd5dbd4330c68a22d2ecafb38134766
2019-08-09 16:24:53 +08:00
inspurericzhang
1500136025 Mailing lists change openstack-dev to openstack-discuss
Change-Id: Icb8c6dc89c381cdcf73e279248b723bd416acccb
2019-07-01 19:15:21 +08:00
zhangbailin
256d9d4b3c Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ib19f54bc790190f9d26164126a528acf78b92f6f
2019-05-18 15:36:18 +08:00
wangzh21
5c4e648159 Add gpu driver
1. Imply gpu driver of passthrough mode.
2. Pre-configure for GPU passthrough(We should move this guide to admin
guide doc later):
a) Edit /etc/default/grub
   Modify GRUB_CMDLINE_LINUX=’… quiet’ to GRUB_CMDLINE_LINUX=’… quiet
   intel_iommu=on’
b) grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
c) Reboot compute node.
d) Check it is successful or not.
   dmesg | grep -e DMAR -e IOMMU
   You would see something echoed.
References:
https://pve.proxmox.com/wiki/Pci_passthrough

3.Remove unused import.
4.Fix spelling mistakes.
5.Fix _match_nova_addr, becase addr in os-acc is like 0000:00:06.0

Story: 2002954
Change-Id: I555b656f80b32eafdc24f9ba81ddc9af416d95e9
2019-03-21 18:01:29 +08:00
wangzh21
ca225fc1bf Add "Report device data to cyborg"
1. Load drivers with stevedore
2. Now update_usage just do the discover, add report data when
   conductor api ready.

Change-Id: Ia813c5a8dd8f29ce689204e52b6e1f691633f5fc
2018-12-16 18:22:49 +08:00
whoami-rajat
79e8f86aa0 Add cyborg-status upgrade check command framework
This adds basic framework for cyborg-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: I4a180f9a1b25c75489ad3cfee30a7b55506e0bbd
Story: 2003657
Task: 26126
2018-10-26 19:42:43 +05:30
Yumeng Bao
e3746dd7b4 Add WSGI support script for cyborg API
Control Plane API endpoints deployment via WSGI [1] was a community goal
in Pike release. This method provides a series of advantages over that
of running api via a Python command that runs a web server.

This patch add scripts for running API services via WSGI.
The follow-up patch will add the devstack install support.

[1]https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html

Change-Id: Ifb0ae2fa2143236fb9b38d230f2604e4e560e66e
2018-10-20 08:37:53 +00:00
Yumeng Bao
33b86b8631 Follow the new PTI for document build
In order to follow the new PTI for doc build, this patch:
1)removes unused build_sphinx in setup.cfg
2)move doc dependencies from test-requirements.txt to doc/requirements.txt
3)update tox.ini

For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ic700f04b857516ce5b25ce5e0fc431d1f08e24f3
2018-08-11 12:55:49 +08:00
zhipengh
c3f97d4b48 Bug fix in setup.cfg for rocky ms2
As Sean and Clark suggested, etc/cyborg/rootwrap.d = etc/cyborg/rootwrap.d/*
has been moved into one line.

Change-Id: I7d51aa158b4918a89fc41b7e931b9ef0465d87ca
Signed-off-by: zhipengh <huangzhipeng@huawei.com>
2018-06-13 08:55:03 +08:00
wangzh21
ae87683acd Fix tox -egenconfig
1.Imply the namespace cyborg
2.Remoeve unused namespace oslo.reports

Change-Id: I61de79aa3b8a97c4a4dd6d92ef7bce951f6efd55
Story: #2002200
Task: #21685
2018-06-10 16:37:40 +08:00
wangzh21
cc9da9a944 Load cyborg-api app with paste_deploy
Change-Id: I3976d05f737e09ceb88c40f65b445bad0b096516
Story: 2002121
Task: 19800
2018-06-07 21:42:52 +08:00
Nguyen Van Trung
ac6b70dc6a Add default configuration files to data_files
In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron and the glance metadefs as has
been mentioned in the related bug report.

Change-Id: I466f235fec7be024f654739a31365724eaf24097
Closes-Bug: #1718356
2018-03-15 23:20:29 +07:00
Andreas Jaeger
6881e76a91 Fix doc build warnings
Fix a couple of warnings that show up when tox -e docs is run.

Also, improve RST formatting and remove extra lines.

Treat warnings as errors to not have those come in again.

Change-Id: I2bdd321a0702168d19ee650c37aabe7f028780c0
2018-02-14 09:30:26 +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
shangxiaobj
f454e41bf6 Update and replace http with https for doc links in cyborg
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I5644f38cf56f1e3b6a31252523a3bf28248e9f08
2017-09-12 22:46:46 -07: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
zhuli
57e4c042ca add cyborg-conductor & db
1. add conductor rpc
2. add cyborg-conductor command
3. add db and init `accelerators` table
4. add accelerator_create method
5. add cyborg-dbsync command

Change-Id: I07333a4df7a42878dcf950b2b7893a37670da87b
2017-08-21 09:25:48 +08:00
zhuli
c7b24fda7f Add cyborg-api command
Change-Id: I392ad0383d5d8299db407df79bd60adbfbd428cd
2017-07-29 04:01:06 -04:00
Arundhati Surpur
8c559f6c3b Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: Ifd063c95b0a4daed589805b1363f39ff89d7def8
2017-07-06 11:30:48 +05:30
zhipengh
43e717bd9e Rename old Nomad files to Cyborg
Replace nomad with cyborg in the skeleton, also update
test-requirement.txt

Change-Id: I2b3f54f2591facc6bab7ab8f41fb8c9919b01845
2017-02-05 22:31:28 +08:00
zhipengh
84fc02aedb initial setup "correct tox.ini testr and test-requirement.txt requirement
, add .testr.cof"

Change-Id: I5abe3fe60897e22edefaf226f9431d5ade2797e1
2016-01-18 14:29:39 +08:00