Train support
This commit is contained in:
parent
c0a82146e4
commit
0c980c3cff
BIN
openstack-cyborg-3.0.1.tar.gz
Normal file
BIN
openstack-cyborg-3.0.1.tar.gz
Normal file
Binary file not shown.
134
openstack-cyborg.spec
Normal file
134
openstack-cyborg.spec
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
Name: openstack-cyborg
|
||||||
|
Version: 3.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: OpenStack Accelerator as a Service
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Applications/System
|
||||||
|
URL: https://launchpad.net/cyborg
|
||||||
|
Source0: https://tarballs.opendev.org/openstack/cyborg/openstack-cyborg-3.0.1.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: openstack-macros
|
||||||
|
BuildRequires: openstack-tempest
|
||||||
|
BuildRequires: python3-wsme
|
||||||
|
BuildRequires: python3-ddt
|
||||||
|
BuildRequires: python3-eventlet
|
||||||
|
BuildRequires: python3-fixtures
|
||||||
|
BuildRequires: python3-jsonpatch
|
||||||
|
BuildRequires: python3-keystoneauth1
|
||||||
|
BuildRequires: python3-keystonemiddleware
|
||||||
|
BuildRequires: python3-mock
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
|
BuildRequires: python3-oslo-context
|
||||||
|
BuildRequires: python3-oslo-db
|
||||||
|
BuildRequires: python3-oslo-i18n
|
||||||
|
BuildRequires: python3-oslo-log
|
||||||
|
BuildRequires: python3-oslo-policy
|
||||||
|
BuildRequires: python3-oslo-versionedobjects
|
||||||
|
BuildRequires: python3-oslo-sphinx
|
||||||
|
BuildRequires: python3-oslotest
|
||||||
|
BuildRequires: python3-pecan
|
||||||
|
BuildRequires: python3-psutil
|
||||||
|
BuildRequires: python3-six
|
||||||
|
Requires: python3-cyborg = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: systemd
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
|
Requires(pre): shadow-utils
|
||||||
|
Requires(preun): systemd
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Cyborg (previously known as Nomad) is an OpenStack project that aims to
|
||||||
|
provide a general purpose management framework for acceleration
|
||||||
|
resources (i.e. various types of accelerators such as GPU, FPGA, ASIC,
|
||||||
|
NP, SoCs, NVMe/NOF SSDs, ODP, DPDK/SPDK and so on).
|
||||||
|
|
||||||
|
%package -n python3-cyborg
|
||||||
|
Summary: Cyborg Python library
|
||||||
|
Group: Applications/System
|
||||||
|
Requires: python3-SQLAlchemy
|
||||||
|
Requires: python3-wsme
|
||||||
|
Requires: python3-alembic
|
||||||
|
Requires: python3-eventlet
|
||||||
|
Requires: python3-jsonpatch
|
||||||
|
Requires: python3-keystoneauth1
|
||||||
|
Requires: python3-keystonemiddleware
|
||||||
|
Requires: python3-oslo-concurrency
|
||||||
|
Requires: python3-oslo-config
|
||||||
|
Requires: python3-oslo-context
|
||||||
|
Requires: python3-oslo-db
|
||||||
|
Requires: python3-oslo-i18n
|
||||||
|
Requires: python3-oslo-log
|
||||||
|
Requires: python3-oslo-messaging
|
||||||
|
Requires: python3-oslo-policy
|
||||||
|
Requires: python3-oslo-service
|
||||||
|
Requires: python3-oslo-utils
|
||||||
|
Requires: python3-oslo-versionedobjects
|
||||||
|
Requires: python3-pbr
|
||||||
|
Requires: python3-pecan
|
||||||
|
Requires: python3-psutil
|
||||||
|
Requires: python3-six
|
||||||
|
Requires: python3-stevedore
|
||||||
|
|
||||||
|
%description -n python3-cyborg
|
||||||
|
Cyborg (previously known as Nomad) is an OpenStack project that aims to
|
||||||
|
provide a general purpose management framework for acceleration
|
||||||
|
resources (i.e. various types of accelerators such as GPU, FPGA, ASIC,
|
||||||
|
NP, SoCs, NVMe/NOF SSDs, ODP, DPDK/SPDK and so on).
|
||||||
|
|
||||||
|
This package contains the Cyborg python libraries.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n openstack-cyborg-3.0.1
|
||||||
|
%py_req_cleanup
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{py3_build}
|
||||||
|
|
||||||
|
# config file generation
|
||||||
|
PYTHONPATH=. oslo-config-generator --config-file tools/config/cyborg-config-generator.conf \
|
||||||
|
--output-file etc/cyborg/cyborg.conf.sample
|
||||||
|
PYTHONPATH=. oslopolicy-sample-generator --config-file tools/config/cyborg-policy-generator.conf \
|
||||||
|
--output-file etc/cyborg/policy.json.sample
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{py3_install}
|
||||||
|
install -d -m 755 %{buildroot}%{_localstatedir}/log/cyborg
|
||||||
|
install -d -m 755 %{buildroot}%{_sysconfdir}/cyborg
|
||||||
|
|
||||||
|
mv %{buildroot}%{_prefix}%{_sysconfdir}/cyborg/* %{buildroot}%{_sysconfdir}/cyborg/
|
||||||
|
install -p -D -m 640 etc/cyborg/cyborg.conf.sample %{buildroot}%{_sysconfdir}/cyborg/cyborg.conf
|
||||||
|
install -p -D -m 640 etc/cyborg/policy.json.sample %{buildroot}%{_sysconfdir}/cyborg/policy.json
|
||||||
|
|
||||||
|
# remove duplicates
|
||||||
|
%fdupes %{buildroot}%{python3_sitelib}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%openstack_pre_user_group_create cyborg cyborg /sbin/nologin
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{_bindir}/cyborg-api
|
||||||
|
%{_bindir}/cyborg-conductor
|
||||||
|
%{_bindir}/cyborg-dbsync
|
||||||
|
%{_bindir}/cyborg-agent
|
||||||
|
%{_bindir}/cyborg-status
|
||||||
|
%{_bindir}/cyborg-wsgi-api
|
||||||
|
%dir %attr(0750, root, cyborg) %{_sysconfdir}/cyborg/
|
||||||
|
%config(noreplace) %attr(0640, root, cyborg) %{_sysconfdir}/cyborg/cyborg.conf
|
||||||
|
%config(noreplace) %attr(0640, root, cyborg) %{_sysconfdir}/cyborg/api-paste.ini
|
||||||
|
%config(noreplace) %attr(0640, root, cyborg) %{_sysconfdir}/cyborg/policy.json
|
||||||
|
%dir %attr(0750, cyborg, cyborg) %{_localstatedir}/log/cyborg
|
||||||
|
|
||||||
|
%files -n python3-cyborg
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/cyborg/
|
||||||
|
%{python3_sitelib}/openstack_cyborg*.egg-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Nov 05 2021 wangxiyuan <wangxiyuan1007@gmail.com> - 3.0.1-1
|
||||||
|
- Support OpenStack Train release
|
||||||
Loading…
x
Reference in New Issue
Block a user