mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
*/*: remove masked packages
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
190 files changed
-5118
No files matched your search
@@ -1 +0,0 @@
|
||||
DIST cinder-20.0.0.tar.gz 5950094 BLAKE2B 6370f2ea4f1bfecf3602d313b46436a100b5957754750c5ed5f282ec7bdb1797fa4df7764d7eb946d01a47345fc4611bcc8ed565f076556aedf094eec994f89b SHA512 1d7d8cc26b88b1243c7c03c607591815120120257f06355d75f2aab5cc7566470d0f37f2bfc7bc1f51a36a38c8b7016fc5996de9b42d36ebe7f393585a877bb2
|
||||
@@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MYP="${P/_rc/rc}"
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1 linux-info optfeature systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes"
|
||||
HOMEPAGE="
|
||||
https://launchpad.net/cinder
|
||||
https://opendev.org/openstack/cinder/
|
||||
https://pypi.org/project/cinder/
|
||||
https://github.com/openstack/cinder
|
||||
"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/${MYP}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
# qemu is needed for image conversion
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/decorator-4.4.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.30.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/greenlet-0.4.16[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.18.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-4.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-9.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oauth2client-4.1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-8.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-11.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-12.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-4.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-3.8.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-privsep-2.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-reports-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-rootwrap-6.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-4.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-1.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.12.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-versionedobjects-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/paramiko-2.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/paste-3.4.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-5.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-2.4.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-barbicanclient-5.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-glanceclient-3.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-4.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-novaclient-17.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-swiftclient-3.10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2020.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.25.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/rtslib-fb-2.1.74[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-3.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/tabulate-0.8.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/tenacity-6.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.8.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-vmware-3.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-brick-5.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-win-5.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tooz-2.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/google-api-python-client-1.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/castellan-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cursive-0.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/zstd-1.4.5.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto3-1.16.51[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/sqlalchemy-1.4.23[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
|
||||
acct-user/cinder
|
||||
acct-group/cinder
|
||||
app-emulation/qemu
|
||||
sys-fs/sysfsutils
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-admin/sudo
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/ddt-1.4.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-2.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/SQLAlchemy-Utils[${PYTHON_USEDEP}]
|
||||
dev-python/moto[${PYTHON_USEDEP}]
|
||||
dev-python/testresources[${PYTHON_USEDEP}]
|
||||
dev-python/testscenarios[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-no-vendored-urllib.patch" )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_pretend() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
|
||||
if linux_config_exists; then
|
||||
for module in ${CONFIG_CHECK_MODULES}; do
|
||||
linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
rm cinder/tests/unit/test_hacking.py || die
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
# only used for docs
|
||||
sed -i '/^sphinx-feature-classification/d' requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
oslo-config-generator --config-file=tools/config/cinder-config-generator.conf || die
|
||||
oslopolicy-sample-generator --config-file=tools/config/cinder-policy-generator.conf || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
keepdir /etc/cinder
|
||||
dodir /etc/cinder/rootwrap.d
|
||||
|
||||
for svc in api backup scheduler volume; do
|
||||
newinitd "${FILESDIR}/cinder.initd" "cinder-${svc}"
|
||||
systemd_dounit "${FILESDIR}/openstack-cinder-${svc}.service"
|
||||
done
|
||||
|
||||
insinto /etc/cinder
|
||||
insopts -m 0640 -o cinder -g cinder
|
||||
doins "etc/cinder/api-httpd.conf"
|
||||
doins "etc/cinder/logging_sample.conf"
|
||||
doins "etc/cinder/rootwrap.conf"
|
||||
doins "etc/cinder/api-paste.ini"
|
||||
doins "etc/cinder/resource_filters.json"
|
||||
doins "etc/cinder/cinder.conf.sample"
|
||||
doins "etc/cinder/policy.yaml.sample"
|
||||
insinto /etc/cinder/rootwrap.d
|
||||
doins "etc/cinder/rootwrap.d/volume.filters"
|
||||
|
||||
dodir /var/log/cinder
|
||||
fowners cinder:cinder /var/log/cinder
|
||||
|
||||
#add sudoers definitions for user cinder
|
||||
insinto /etc/sudoers.d/
|
||||
insopts -m 0440 -o root -g root
|
||||
newins "${FILESDIR}/cinder.sudoersd" cinder
|
||||
|
||||
newtmpfiles "${FILESDIR}/cinder.tmpfile" cinder.conf
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/cinder.logrotate" cinder.conf
|
||||
|
||||
rm -r "${ED}/usr/etc"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process cinder.conf
|
||||
|
||||
elog "Cinder needs tgtd to be installed and running to work with iscsi"
|
||||
elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
|
||||
|
||||
optfeature "datacore" >=dev-python/websocket-client-0.32.0
|
||||
optfeature "powermax" >=dev-python/pyopenssl-17.5.0
|
||||
optfeature "ds8k" >=dev-python/pyopenssl-17.5.0
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/cinder/backup/drivers/s3.py
|
||||
+++ b/cinder/backup/drivers/s3.py
|
||||
@@ -74,7 +74,7 @@
|
||||
import boto3
|
||||
from botocore.config import Config
|
||||
from botocore import exceptions as boto_exc
|
||||
-from botocore.vendored.requests.packages.urllib3 import exceptions as \
|
||||
+from urllib3 import exceptions as \
|
||||
urrlib_exc
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Starts ${SVCNAME} service for OpenStack"
|
||||
|
||||
command=/usr/bin/${SVCNAME}
|
||||
command_background=yes
|
||||
command_args="--config-file /etc/cinder/cinder.conf --log-file ${CINDER_LOGDIR:-/var/log/cinder}/${SVCNAME}.log"
|
||||
command_user="${CINDER_USER:-cinder}"
|
||||
pidfile=/run/${SVCNAME}.pid
|
||||
required_files=/etc/cinder/cinder.conf
|
||||
retry="SIGTERM/30"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/var/log/cinder/*.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
Defaults:cinder !requiretty
|
||||
|
||||
cinder ALL = (root) NOPASSWD: /usr/bin/cinder-rootwrap
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
d /run/cinder 0755 cinder cinder -
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Cinder API Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cinder
|
||||
ExecStart=/usr/bin/cinder-api --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/api.log
|
||||
Restart=on-failure
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Cinder Backup Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cinder
|
||||
ExecStart=/usr/bin/cinder-backup --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/backup.log
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Cinder Scheduler Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cinder
|
||||
ExecStart=/usr/bin/cinder-scheduler --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/scheduler.log
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Cinder Volume Server
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
After=target.service
|
||||
After=iscsi.service
|
||||
After=iscsid.service
|
||||
After=lvm-cinder.service
|
||||
Requires=lvm-cinder.service
|
||||
Wants=lvm-cinder.service
|
||||
Wants=target.service
|
||||
Wants=iscsi.service
|
||||
Wants=iscsid.service
|
||||
|
||||
[Service]
|
||||
LimitNOFILE=131072
|
||||
LimitNPROC=131072
|
||||
Type=simple
|
||||
User=cinder
|
||||
ExecStart=/usr/bin/cinder-volume --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/volume.log
|
||||
Restart=on-failure
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">cinder</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST openstack-heat-18.0.0.tar.gz 2449231 BLAKE2B a285cc9bb3ac9bb88c5694cefd664ae5e4ffe130317a290e39b5faadd7512cdd515fdc14bc5a03bd610bd11f4fb1f85627c5dd1974f14ad06f13f9a594c1c141 SHA512 222c9ae91a7ab189fe98908629f6c64ccb0cc7dd10fc331c206c10a31a499cc3bdc8717656d2e3c746857de8c85ae13289a8efd2c1a800b9b88553696c2e14e4
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Heat API
|
||||
Documentation=http://docs.openstack.org/
|
||||
After=postgresql.service mysql.service keystone.service rabbitmq-server.service ntp.service network.service
|
||||
|
||||
[Service]
|
||||
User=heat
|
||||
Group=heat
|
||||
ExecStart=/etc/init.d/heat-api systemd-start
|
||||
ExecStop=/etc/init.d/heat-api systemd-stop
|
||||
PIDFile=/var/run/heat/heat-api.pid
|
||||
Restart=on-failure
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Heat Engine
|
||||
Documentation=http://docs.openstack.org/
|
||||
After=postgresql.service mysql.service keystone.service rabbitmq-server.service ntp.service network.service
|
||||
|
||||
[Service]
|
||||
User=heat
|
||||
Group=heat
|
||||
ExecStart=/etc/init.d/heat-engine systemd-start
|
||||
ExecStop=/etc/init.d/heat-engine systemd-stop
|
||||
PIDFile=/var/run/heat/heat-engine.pid
|
||||
Restart=on-failure
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Starts ${SVCNAME} service for OpenStack"
|
||||
|
||||
command=/usr/bin/${SVCNAME}
|
||||
command_user="${HEAT_USER:-heat}"
|
||||
command_background=yes
|
||||
command_args="--config-file /etc/heat/heat.conf --log-file ${HEAT_LOGDIR:-/var/log/heat}/${SVCNAME}.log"
|
||||
pidfile=/run/${SVCNAME}.pid
|
||||
required_files=/etc/heat/heat.conf
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/var/log/heat/*.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
@@ -1,158 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MYP="${P/_rc/rc}"
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1 linux-info systemd
|
||||
|
||||
DESCRIPTION="A CloudFormation-compatible openstack-native cloud orchestration engine"
|
||||
HOMEPAGE="
|
||||
https://launchpad.net/heat
|
||||
https://opendev.org/openstack/heat/
|
||||
https://pypi.org/project/openstack-heat/
|
||||
"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/openstack-${MYP}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/openstack-${MYP}"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-3.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/ddt-1.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/croniter-0.3.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-2.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.18.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-3.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/neutron-lib-1.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/openstacksdk-0.28.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-6.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-6.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/aodhclient-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-blazarclient-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-heatclient-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-ironicclient-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-magnumclient-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-manilaclient-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-mistralclient-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-monascaclient-1.12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-neutronclient-6.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-octaviaclient-1.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-openstackclient-3.12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-saharaclient-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-troveclient-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-vitrageclient-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-zaqarclient-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-zunclient-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.23.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tenacity-6.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/yaql-1.1.3[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
|
||||
acct-user/heat
|
||||
acct-group/heat
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-admin/sudo
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/kombu-5.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tempest-17.1.0[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
rm -r heat/tests/test_hacking.py || die
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
oslo-config-generator --config-file=config-generator.conf || die
|
||||
oslopolicy-sample-generator --config-file etc/heat/heat-policy-generator.conf || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
diropts -m 0750 -o heat -g heat
|
||||
keepdir /etc/heat
|
||||
dodir /etc/heat/environment.d
|
||||
dodir /etc/heat/templates
|
||||
|
||||
for svc in api api-cfn engine; do
|
||||
newinitd "${FILESDIR}/heat.initd" "heat-${svc}"
|
||||
done
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
doins "${FILESDIR}/heat.logrotate"
|
||||
|
||||
insinto /etc/heat
|
||||
insopts -m 0640 -o heat -g heat
|
||||
doins etc/heat/heat.conf.sample
|
||||
doins etc/heat/policy.yaml.sample
|
||||
doins "etc/heat/api-paste.ini"
|
||||
insinto /etc/heat/templates
|
||||
doins "etc/heat/templates/"*
|
||||
insinto /etc/heat/environment.d
|
||||
doins "etc/heat/environment.d/default.yaml"
|
||||
|
||||
dodir /var/log/heat
|
||||
fowners heat:heat /var/log/heat
|
||||
keepdir /var/log/heat
|
||||
|
||||
systemd_dounit "${FILESDIR}/heat-engine.service"
|
||||
systemd_dounit "${FILESDIR}/heat-api.service"
|
||||
|
||||
rm -r "${ED}/usr/etc"
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Heat is a service to orchestrate multiple composite cloud applications using
|
||||
templates, through both an OpenStack-native REST API and a
|
||||
CloudFormation-compatible Query API.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">heat</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,4 +0,0 @@
|
||||
DIST neutron-17.1.2.tar.gz 12930231 BLAKE2B 865e849fb811b3abf8b589ea5752c9305962ed24bcd69a4998425a1d56abcadd87f224e883269b780655f252d40dd050805782080385d94163b5488ffbdbf52a SHA512 1320c96ba5b3b2de5feb313b564baa7308b3b964c628afa57e60ed8f541549b11ddaa0ea1e4025dc0265ad1d962f0961fdc93924fcdde98c9b7c3c23728a3ebd
|
||||
DIST neutron-20.0.0.tar.gz 13258399 BLAKE2B 6a47bb0d27e672af586dc6ba2b3a9eef490a2e60e5cb09e9ed57906ceefc9b148250e703aeedd3801c62b870534ad4b8761f38e4961e62955d4060e25622568d SHA512 52174080b33e06e377da3f07665639a2dce3e33262de120d3a842de23c1564da80d0fe7ba1905fff86a2d7c64480aebf4e8d1809b84e3b16005b8c7e857cac1d
|
||||
DIST neutron-configs-17.1.2.tar.gz 30314 BLAKE2B 885d00259fde0200f6a52d91b18e884012c04cb06e5e4ba6c72b77fbb0a8df30d50efd6db16faa009328eac9b7c5fb31854feb81595a542b4ac5d8172c8056b6 SHA512 cf85a563c417e1fb01f7d329c7021c20782fe67f64c5dfd542deed07e09d6a717e472976df8f1f4c3bb4a6a10e8d8b8300f18e1a3759358b3db12f77dad7bd5b
|
||||
DIST neutron-ml2-plugins-17.1.2.tar.gz 9011 BLAKE2B d9f8cb4d26699ca44a4cf4cd422bd88b9bb5a2138a80fec469021491d87b158502801c2ce79316f52a900877f7706dc93c2a5a5a33c868918effeaa6b65a7931 SHA512 a225310f0f54991a079d515512189b3c08de22c5b13d58960ef24498401fc54b0878ed879d895e696b789e703a0bb3f4a184eccbbfb9ac9fe9447086cb952b37
|
||||
@@ -1,2 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/dhcp_agent.ini")
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/l3_agent.ini")
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/plugins/ml2/ml2_conf.ini" "/etc/neutron/plugins/ml2/linuxbridge_agent.ini")
|
||||
@@ -1,2 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/metadata_agent.ini")
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/plugins/ml2/ml2_conf.ini" "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini")
|
||||
@@ -1 +0,0 @@
|
||||
NEUTRON_CONFS=("/etc/neutron/neutron.conf" "/etc/neutron/plugin.ini")
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Starts ${SVCNAME} service for OpenStack"
|
||||
|
||||
command=/usr/bin/"${SVCNAME}"
|
||||
command_background=yes
|
||||
command_user="${NEUTRON_USER:-neutron}"
|
||||
pidfile=/run/"${SVCNAME}".pid
|
||||
required_files=(${NEUTRON_CONFS[@]:-/etc/neutron/neutron.conf})
|
||||
command_args="${required_files[@]/#/--config-file } --log-file ${NEUTRON_LOGDIR:-/var/log/neutron}/${SVCNAME#*-}.log"
|
||||
retry="SIGTERM/15"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/neutron/*.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
Defaults:neutron !requiretty
|
||||
|
||||
neutron ALL = (root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf *
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
d /run/neutron 0755 neutron neutron -
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron DHCP Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log
|
||||
PrivateTmp=false
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Layer 3 Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-l3-agent --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/l3_agent --config-file /etc/neutron/neutron.conf --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-l3-agent --log-file /var/log/neutron/l3-agent.log
|
||||
PrivateTmp=false
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Linux Bridge Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=neutron
|
||||
PermissionsStartOnly=true
|
||||
ExecStart=/usr/bin/neutron-linuxbridge-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-agent --log-file /var/log/neutron/linuxbridge-agent.log
|
||||
PrivateTmp=true
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Linux Bridge Cleanup Utility
|
||||
After=syslog.target network.target
|
||||
Before=openstack-neutron-linuxbridge-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-linuxbridge-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-cleanup --log-file /var/log/neutron/linuxbridge-agent.log
|
||||
ExecStop=/usr/bin/neutron-linuxbridge-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-cleanup --log-file /var/log/neutron/linuxbridge-agent.log
|
||||
PrivateTmp=true
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Metadata Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-metadata-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-metadata-agent --log-file /var/log/neutron/metadata-agent.log
|
||||
PrivateTmp=false
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Metering Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-metering-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metering_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-metering-agent --log-file /var/log/neutron/metering-agent.log
|
||||
PrivateTmp=false
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Netns Cleanup Utility
|
||||
After=syslog.target network.target openvswitch.service
|
||||
Before=openstack-neutron-openvswitch-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-netns-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-netns-cleanup --log-file /var/log/neutron/dhcp-agent.log
|
||||
ExecStop=/usr/bin/neutron-netns-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-netns-cleanup --force --log-file /var/log/neutron/dhcp-agent.log
|
||||
PrivateTmp=false
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Open vSwitch Cleanup Utility
|
||||
After=syslog.target network.target openvswitch.service
|
||||
Before=openstack-neutron-openvswitch-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/openvswitch-agent.log
|
||||
ExecStop=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/openvswitch-agent.log
|
||||
PrivateTmp=true
|
||||
RemainAfterExit=yes
|
||||
TimeoutSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Neutron Server
|
||||
After=syslog.target network.target
|
||||
[Service]
|
||||
Type=notify
|
||||
User=neutron
|
||||
ExecStart=/usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log
|
||||
PrivateTmp=true
|
||||
NotifyAccess=all
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Just like OpenStack Nova provides an API to dynamically request and
|
||||
configure virtual servers, Neutron provides an API to dynamically request
|
||||
and configure virtual networks. These networks connect "interfaces" from
|
||||
other OpenStack services (e.g., vNICs from Nova VMs). The Neutron API
|
||||
supports extensions to provide advanced network capabilities
|
||||
(e.g., QoS, ACLs, network monitoring, etc).
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="compute-only">Only install things needed on compute hosts</flag>
|
||||
<flag name="dhcp">Installs the initscripts for the neutron dhcp service</flag>
|
||||
<flag name="haproxy">haproxy backend support</flag>
|
||||
<flag name="l3">Installs the initscripts for the neutron l3 agent service</flag>
|
||||
<flag name="metadata">Installs the initscripts for the neutron metadata agent service</flag>
|
||||
<flag name="openvswitch">Installs the initscripts for the neutron openvswitch agent service</flag>
|
||||
<flag name="linuxbridge">Installs the initscripts for the neutron linuxbridge agent service</flag>
|
||||
<flag name="server">Installs the initscripts for the neutron server service</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">neutron</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,227 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1 linux-info
|
||||
|
||||
DESCRIPTION="A virtual network service for Openstack"
|
||||
HOMEPAGE="https://launchpad.net/neutron"
|
||||
if [[ ${PV} == *9999 ]];then
|
||||
inherit git-r3
|
||||
SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/victoria/configs.tar.gz -> neutron-configs-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/victoria/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz"
|
||||
EGIT_REPO_URI="https://github.com/openstack/neutron.git"
|
||||
EGIT_BRANCH="stable/victoria"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/victoria/configs.tar.gz -> neutron-configs-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/victoria/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz
|
||||
https://tarballs.openstack.org/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="compute-only dhcp haproxy ipv6 l3 metadata openvswitch linuxbridge server sqlite +mysql postgres"
|
||||
REQUIRED_USE="!compute-only? ( || ( mysql postgres sqlite ) )
|
||||
compute-only? ( !mysql !postgres !sqlite !dhcp !l3 !metadata !server
|
||||
|| ( openvswitch linuxbridge ) )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-python/pbr-4.0.0[${PYTHON_USEDEP}]
|
||||
app-admin/sudo
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.21.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pecan-1.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/neutron-lib-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-neutronclient-6.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tenacity-6.0.0[${PYTHON_USEDEP}]
|
||||
compute-only? (
|
||||
>=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
sqlite? (
|
||||
>=dev-python/sqlalchemy-1.2.0[sqlite,${PYTHON_USEDEP}]
|
||||
)
|
||||
mysql? (
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
postgres? (
|
||||
>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-3.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.20.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-privsep-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-versionedobjects-1.35.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-ken-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ovs-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ovsdbapp-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyroute2-0.5.13[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/openstacksdk-0.31.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-xenapi-0.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-vif-1.15.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyudev[${PYTHON_USEDEP}]
|
||||
sys-apps/iproute2
|
||||
net-misc/iputils[arping]
|
||||
net-misc/bridge-utils
|
||||
net-firewall/ipset
|
||||
net-firewall/iptables
|
||||
net-firewall/ebtables
|
||||
net-firewall/conntrack-tools
|
||||
haproxy? ( net-proxy/haproxy )
|
||||
openvswitch? ( net-misc/openvswitch )
|
||||
ipv6? (
|
||||
net-misc/radvd
|
||||
>=net-misc/dibbler-1.0.1
|
||||
)
|
||||
dhcp? ( net-dns/dnsmasq[dhcp-tools] )
|
||||
acct-group/neutron
|
||||
acct-user/neutron"
|
||||
|
||||
#PATCHES=(
|
||||
#)
|
||||
|
||||
pkg_pretend() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
|
||||
IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_DEFRAG_IPV4 NF_NAT NF_CONNTRACK \
|
||||
IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
|
||||
if linux_config_exists; then
|
||||
for module in ${CONFIG_CHECK_MODULES}; do
|
||||
linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
fperms 0700 /var/log/neutron
|
||||
fowners neutron:neutron /var/log neutron
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
# it's /bin/ip not /sbin/ip
|
||||
sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use server; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-server"
|
||||
newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
|
||||
dosym ../../plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
|
||||
fi
|
||||
if use dhcp; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
|
||||
newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
|
||||
fi
|
||||
if use l3; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
|
||||
newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
|
||||
fi
|
||||
if use metadata; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
|
||||
newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
|
||||
fi
|
||||
if use openvswitch; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
|
||||
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
|
||||
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
|
||||
fi
|
||||
if use linuxbridge; then
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
|
||||
newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
|
||||
fi
|
||||
diropts -m 755 -o neutron -g neutron
|
||||
dodir /var/log/neutron /var/lib/neutron
|
||||
keepdir /etc/neutron
|
||||
insinto /etc/neutron
|
||||
insopts -m 0640 -o neutron -g neutron
|
||||
|
||||
doins etc/*
|
||||
# stupid renames
|
||||
insinto /etc/neutron
|
||||
doins -r "etc/neutron/plugins"
|
||||
insopts -m 0640 -o root -g root
|
||||
doins "etc/rootwrap.conf"
|
||||
doins -r "etc/neutron/rootwrap.d"
|
||||
|
||||
#add sudoers definitions for user neutron
|
||||
insinto /etc/sudoers.d/
|
||||
insopts -m 0440 -o root -g root
|
||||
newins "${FILESDIR}/neutron.sudoersd" neutron
|
||||
|
||||
# add generated configs
|
||||
cd "${D}/etc/neutron" || die
|
||||
unpack "neutron-configs-${PV}.tar.gz"
|
||||
cd "${D}/etc/neutron/plugins/ml2" || die
|
||||
unpack "neutron-ml2-plugins-${PV}.tar.gz"
|
||||
|
||||
# correcting perms
|
||||
fowners neutron:neutron -R "/etc/neutron"
|
||||
fperms o-rwx -R "/etc/neutron/"
|
||||
|
||||
#remove superfluous stuff
|
||||
rm -R "${D}/usr/etc/"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
# copy migration conf file (not coppied on install via setup.py script)
|
||||
python_moduleinto neutron/db/migration/alembic_migrations
|
||||
python_domodule "neutron/db/migration/alembic_migrations/versions"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "neutron-server's conf.d file may need updating to include additional ini files"
|
||||
elog "We currently assume the ml2 plugin will be used but do not make assumptions"
|
||||
elog "on if you will use openvswitch or linuxbridge (or something else)"
|
||||
elog
|
||||
elog "Other conf.d files may need updating too, but should be good for the default use case"
|
||||
elog
|
||||
}
|
||||
@@ -1,224 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MYP="${P//_/}"
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1 linux-info systemd tmpfiles
|
||||
|
||||
DESCRIPTION="A virtual network service for Openstack"
|
||||
HOMEPAGE="
|
||||
https://launchpad.net/neutron
|
||||
https://opendev.org/openstack/neutron
|
||||
https://pypi.org/project/neutron/
|
||||
"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/${MYP}.tar.gz"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
KEYWORDS=""
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/decorator-4.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.26.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pecan-1.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/neutron-lib-2.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-neutronclient-7.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tenacity-6.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-3.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/alembic-1.6.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-8.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-3.10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-privsep-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-rootwrap-5.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-versionedobjects-1.35.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-2.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-ken-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-resource-classes-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ovs-2.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ovsdbapp-1.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-5.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyroute2-0.6.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/openstacksdk-0.31.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-vif-1.15.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/sqlalchemy-1.3.23[${PYTHON_USEDEP}]
|
||||
|
||||
acct-group/neutron
|
||||
acct-user/neutron
|
||||
dev-python/pyudev[${PYTHON_USEDEP}]
|
||||
net-misc/bridge-utils
|
||||
net-misc/iputils[arping]
|
||||
net-firewall/conntrack-tools
|
||||
net-firewall/ebtables
|
||||
net-firewall/ipset
|
||||
net-firewall/iptables
|
||||
sys-apps/iproute2
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-admin/sudo
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/webtest-2.0.27[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stestr-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ddt-1.0.1[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_pretend() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
|
||||
IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_DEFRAG_IPV4 NF_NAT NF_CONNTRACK \
|
||||
IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
|
||||
if linux_config_exists; then
|
||||
for module in ${CONFIG_CHECK_MODULES}; do
|
||||
linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
fperms 0700 /var/log/neutron
|
||||
fowners neutron:neutron /var/log neutron
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
# it's /bin/ip not /sbin/ip
|
||||
sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
./tools/generate_config_file_samples.sh || die
|
||||
oslopolicy-sample-generator --config-file=etc/oslo-policy-generator/policy.conf || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-server"
|
||||
newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
|
||||
dosym ../../plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
|
||||
newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
|
||||
newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
|
||||
newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
|
||||
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
|
||||
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
|
||||
newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
|
||||
newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
|
||||
|
||||
for svc in {dhcp,l3,linuxbridge,metadata,metering}-agent {linuxbridge,netns,ovs}-cleanup server ; do
|
||||
systemd_dounit "${FILESDIR}/openstack-neutron-${svc}.service"
|
||||
done
|
||||
|
||||
diropts -m 755 -o neutron -g neutron
|
||||
dodir /var/log/neutron /var/lib/neutron
|
||||
keepdir /etc/neutron
|
||||
insinto /etc/neutron
|
||||
insopts -m 0640 -o neutron -g neutron
|
||||
|
||||
insinto /etc/neutron
|
||||
doins etc/api-paste.ini
|
||||
doins etc/policy.yaml.sample
|
||||
|
||||
for i in l3 dhcp metadata metering neutron_ovn_metadata ; do
|
||||
doins "etc/${i}_agent.ini.sample"
|
||||
done
|
||||
|
||||
doins "etc/neutron.conf.sample"
|
||||
doins "etc/neutron/ovn.ini.sample"
|
||||
|
||||
doins -r "etc/neutron/plugins"
|
||||
insopts -m 0640 -o root -g root
|
||||
doins "etc/rootwrap.conf"
|
||||
doins -r "etc/neutron/rootwrap.d"
|
||||
|
||||
newtmpfiles "${FILESDIR}/neutron.tmpfile" neutron.conf
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/neutron.logrotate" neutron.conf
|
||||
|
||||
#add sudoers definitions for user neutron
|
||||
insinto /etc/sudoers.d/
|
||||
insopts -m 0440 -o root -g root
|
||||
newins "${FILESDIR}/neutron.sudoersd" neutron
|
||||
|
||||
# correcting perms
|
||||
fowners neutron:neutron -R "/etc/neutron"
|
||||
fperms o-rwx -R "/etc/neutron/"
|
||||
|
||||
#remove superfluous stuff
|
||||
rm -R "${D}/usr/etc/"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
# copy migration conf file (not coppied on install via setup.py script)
|
||||
python_moduleinto neutron/db/migration/alembic_migrations
|
||||
python_domodule "neutron/db/migration/alembic_migrations/versions"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process neutron.conf
|
||||
|
||||
elog
|
||||
elog "neutron-server's conf.d file may need updating to include additional ini files"
|
||||
elog "We currently assume the ml2 plugin will be used but do not make assumptions"
|
||||
elog "on if you will use openvswitch or linuxbridge (or something else)"
|
||||
elog
|
||||
elog "Other conf.d files may need updating too, but should be good for the default use case"
|
||||
elog
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST nova-25.0.0.tar.gz 9445471 BLAKE2B 5584daee1026ebec9437368b5c39ded4c474d1a15291487f9e9ee72593626a3ce2204ec8bf5acb7d579328a7b7aed57174d42db3cabca1c8e93047e49e0bc847 SHA512 c4a1423dcb97bcc96bb5faccd43f58e17293172121a2715ff13c05690c5b8868befeb45815a9dca33fa5bc387fd8c586f68984b0c931427aa02794a1d2a5179e
|
||||
@@ -1,4 +0,0 @@
|
||||
[DEFAULT]
|
||||
# mkisofs_cmd is needed as the default provider for the binary was remvoed as
|
||||
# a package from Gentoo.
|
||||
mkisofs_cmd = /usr/bin/mkisofs
|
||||
@@ -1,3 +0,0 @@
|
||||
Defaults:nova !requiretty
|
||||
|
||||
nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Starts ${SVCNAME} service for OpenStack"
|
||||
|
||||
command="/usr/bin/${SVCNAME}"
|
||||
command_args="--config-file /etc/nova/nova.conf"
|
||||
pidfile=/run/${SVCNAME}.pid
|
||||
command_background=true
|
||||
required_files=/etc/nova/nova.conf
|
||||
if [ "$SVCNAME" = nova-compute ]; then
|
||||
required_files="${required_files} /etc/nova/nova-compute.conf"
|
||||
command_args="${command_args} --config-file /etc/nova/nova-compute.conf"
|
||||
fi
|
||||
start_stop_daemon_args="-u ${NOVA_USER:-nova}"
|
||||
retry="SIGTERM/15"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner "${NOVA_USER:-nova}":"${NOVA_GROUP:-nova}" --mode 0775 "${NOVA_RUN:-/var/lock/nova}"
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/nova/*.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
d /run/nova 0755 nova nova -
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova API Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-api --log-file /var/log/nova/api.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova Compute Server
|
||||
After=syslog.target network.target libvirtd.service virtqemud.service
|
||||
|
||||
[Service]
|
||||
Environment=LIBGUESTFS_ATTACH_METHOD=appliance
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-compute --log-file /var/log/nova/compute.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova Conductor Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-conductor --log-file /var/log/nova/conductor.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova Metadata API Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-api-metadata --log-file /var/log/nova/metadata.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova NoVNC Proxy Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nova
|
||||
EnvironmentFile=-/etc/conf.d/openstack-nova-novncproxy
|
||||
ExecStart=/usr/bin/nova-novncproxy --web /usr/share/webapps/novnc/ --log-file /var/log/nova/novnc.log $OPTIONS
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova Compute API Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-api-os-compute --log-file /var/log/nova/api-os-compute.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Nova Scheduler Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=0
|
||||
Restart=always
|
||||
User=nova
|
||||
ExecStart=/usr/bin/nova-scheduler --log-file /var/log/nova/scheduler.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
KERNEL=="sd*", SUBSYSTEM=="block", ENV{ID_BUS}=="scsi", PROGRAM="/etc/nova/scsi-openscsi-link.sh %b $id", SYMLINK+="disk/by-path/%c"
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author: Geaaru
|
||||
# Date: October 23, 2014
|
||||
# Version: 0.1.0
|
||||
# License: GPL 2.0
|
||||
|
||||
# Description: Script for udev symlink creation of
|
||||
# scsi disk attached and visible under
|
||||
# /dev/disk/by-path/ with name convention
|
||||
# used in openstack LVM iscsi driver.
|
||||
#
|
||||
# Requirements: lsscsi (for retrieve LUN ID, I don't know how can i do that from udev/iscsiadm)
|
||||
|
||||
# Rules for UDEV must in this format:
|
||||
# KERNEL=="sd*", BUS=="scsi", PROGRAM="/usr/libexec/nova/scsi-openscsi-link.sh %b",SYMLINK+="disk/by-path/%c"
|
||||
|
||||
# NOTE: it seems that input params %b or others are not passed to script.
|
||||
# I try to retrieve it from environment variables.
|
||||
|
||||
if [[ -z "$DEVTYPE" || -z "$ID_BUS" ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "--------------------" >> /tmp/udev.log
|
||||
echo "ENV => `env`" >> /tmp/udev.log
|
||||
echo "--------------------" >> /tmp/udev.log
|
||||
|
||||
if [[ $DEVTYPE != "disk" || $ID_BUS != "scsi" ]]; then
|
||||
echo "EXIT 1" >> /tmp/udev.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ID_SCSI variable what identify ?
|
||||
|
||||
HOST=`echo "$DEVPATH" | awk '{ split($0, word, "/"); print substr(word[4], 5); }'`
|
||||
|
||||
|
||||
|
||||
# Bins
|
||||
iscsiadm=/usr/sbin/iscsiadm
|
||||
lsscsi=/usr/bin/lsscsi
|
||||
|
||||
[ -e /sys/class/iscsi_host ] || exit 1
|
||||
|
||||
# Create file path like this:
|
||||
# /sys/class/iscsi_host/host11/device/session3/iscsi_session/session3/targetname
|
||||
file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/session*/targetname"
|
||||
|
||||
target_iqn=$(cat ${file})
|
||||
|
||||
if [ -z "${target_iqn}" ] ; then
|
||||
echo "EXIT 2" >> /tmp/udev.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Retrieve target_port because I can't retrieve it with iscsi_id
|
||||
# /lib/udev/scsi_id -g -x /dev/sdg
|
||||
# ID_SCSI=1
|
||||
# ID_VENDOR=IET
|
||||
# ID_VENDOR_ENC=IET\x20\x20\x20\x20\x20
|
||||
# ID_MODEL=VIRTUAL-DISK
|
||||
# ID_MODEL_ENC=VIRTUAL-DISK
|
||||
# ID_REVISION=0001
|
||||
# ID_TYPE=disk
|
||||
# ID_SERIAL=1IET_00010001
|
||||
# ID_SERIAL_SHORT=IET_00010001
|
||||
# ID_SCSI_SERIAL= beaf11a
|
||||
|
||||
# iscsiadm -m node | grep --colour=none iqn.2014-09.org.openstack:vol-cinder-f48f0a69-e871-4c47-9cd3-3ccb8c811363 | cut -d',' -f 1
|
||||
|
||||
tp_ispresent=$(${iscsiadm} -m node | grep --colour=none ${target_iqn} | wc -l)
|
||||
if [ x$tp_ispresent = x0 ] ; then
|
||||
# Target is not present. Ignore it.
|
||||
echo "EXIT 3" >> /tmp/udev.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
target_portal=$(${iscsiadm} -m node | grep --colour=none ${target_iqn} | cut -d',' -f 1)
|
||||
#target=$(${iscsiadm} -m node | grep --colour=none ${target_iqn} | cut -d' ' -f 1)
|
||||
#target_portal=$(echo ${target} | cut -d',' -f 1)
|
||||
target_lun=$(${lsscsi} | grep $DEVNAME | sed 's/.[0-9]*:[0-9]*:[0-9]*:\([0-9]*\).*/\1/')
|
||||
|
||||
echo "TARGET_PORTAL=$target_portal" >> /tmp/udev.log
|
||||
echo "TARGET_LUN=$target_lun" >> /tmp/udev.log
|
||||
|
||||
linkname="ip-${target_portal}-iscsi-${target_iqn}-lun-${target_lun}"
|
||||
|
||||
echo "RETURN ${linkname}" >> /tmp/udev.log
|
||||
|
||||
echo "${linkname}"
|
||||
|
||||
exit 0
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Nova is a cloud computing fabric controller
|
||||
(the main part of an IaaS system). It is written in Python.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="iscsi">Installs iscsi helper udev scripts</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">nova</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,226 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EPYTEST_IGNORE="nova/tests/functional"
|
||||
MYP="${P//_/}"
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 linux-info optfeature systemd tmpfiles udev
|
||||
|
||||
DESCRIPTION="Cloud computing fabric controller"
|
||||
HOMEPAGE="
|
||||
https://launchpad.net/nova
|
||||
https://opendev.org/openstack/nova
|
||||
https://pypi.org/project/nova/
|
||||
"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/${MYP}.tar.gz"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="iscsi"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/decorator-4.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.30.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-4.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/greenlet-0.4.15[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/alembic-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/paramiko-2.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-3.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-neutronclient-7.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.25.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockify-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-8.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-4.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.12.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-10.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-10.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-privsep-2.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/rfc3986-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-versionedobjects-1.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-brick-5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-resource-classes-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-traits-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-vif-1.15.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/castellan-0.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/microversion-parse-0.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/retrying-1.3.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-1.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/openstacksdk-0.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
|
||||
|
||||
acct-user/nova
|
||||
acct-group/nova
|
||||
app-emulation/libvirt[iscsi?]
|
||||
app-emulation/spice-html5
|
||||
dev-python/libvirt-python[${PYTHON_USEDEP}]
|
||||
dev-python/oslo-limit[${PYTHON_USEDEP}]
|
||||
net-misc/bridge-utils
|
||||
sys-apps/iproute2
|
||||
sys-fs/sysfsutils
|
||||
sys-fs/multipath-tools
|
||||
|
||||
>=dev-python/sqlalchemy-1.4.13[${PYTHON_USEDEP}]
|
||||
|
||||
iscsi? (
|
||||
sys-fs/lsscsi
|
||||
>=sys-block/open-iscsi-2.0.873-r1
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-admin/sudo
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/types-paramiko-0.1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/ddt-1.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/psycopg:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pymysql-0.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-ironicclient-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/gabbi-1.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/wsgi_intercept-1.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-vmware-3.6.0[${PYTHON_USEDEP}]
|
||||
|
||||
sys-cluster/placement[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
|
||||
IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \
|
||||
NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \
|
||||
ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT"
|
||||
if linux_config_exists; then
|
||||
for module in ${CONFIG_CHECK_MODULES}; do
|
||||
linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
rm nova/tests/unit/test_hacking.py || die
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
oslo-config-generator --config-file=etc/nova/nova-config-generator.conf || die
|
||||
oslopolicy-sample-generator --config-file=etc/nova/nova-policy-generator.conf || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
for svc in api compute conductor consoleauth network novncproxy scheduler spicehtml5proxy xvpvncproxy; do
|
||||
newinitd "${FILESDIR}/nova.initd" "nova-${svc}"
|
||||
done
|
||||
|
||||
for svc in api compute conductor metadata-api novncproxy os-compute-api scheduler; do
|
||||
systemd_dounit "${FILESDIR}/openstack-nova-${svc}.service"
|
||||
done
|
||||
|
||||
diropts -m 0750 -o nova -g qemu
|
||||
dodir /var/log/nova /var/lib/nova/instances
|
||||
diropts -m 0750 -o nova -g nova
|
||||
keepdir /var/log/nova
|
||||
keepdir /var/lib/nova
|
||||
|
||||
insinto /etc/nova
|
||||
insopts -m 0640 -o nova -g nova
|
||||
|
||||
doins etc/nova/nova.conf.sample
|
||||
doins "${FILESDIR}/nova-compute.conf"
|
||||
dodoc etc/nova/README*.txt
|
||||
rm etc/nova/README*.txt || die
|
||||
doins "${S}/etc/nova/"*
|
||||
doins etc/nova/policy.yaml.sample
|
||||
# rootwrap filters
|
||||
insopts -m 0644
|
||||
insinto /etc/nova/rootwrap.d
|
||||
doins etc/nova/rootwrap.d/compute.filters
|
||||
|
||||
# add sudoers definitions for user nova
|
||||
insinto /etc/sudoers.d/
|
||||
insopts -m 0600 -o root -g root
|
||||
doins "${FILESDIR}/nova-sudoers"
|
||||
|
||||
newbashcomp tools/nova-manage.bash_completion nova-manage
|
||||
|
||||
newtmpfiles "${FILESDIR}/nova.tmpfile" nova.conf
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/nova.logrotate" nova.conf
|
||||
|
||||
if use iscsi; then
|
||||
# Install udev rules for handle iscsi disk with right links under /dev
|
||||
udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules
|
||||
|
||||
exeinto "/usr/libexec/${PN}"
|
||||
doins "${FILESDIR}/scsi-openscsi-link.sh"
|
||||
fi
|
||||
|
||||
rm -r "${ED}/usr/etc" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process nova.conf
|
||||
|
||||
use iscsi && elog "iscsid needs to be running if you want cinder to connect"
|
||||
|
||||
optfeature "osprofiler" >=dev-python/osprofiler-1.4.0
|
||||
optfeature "powervm" >=dev-python/pypowervm-1.1.15
|
||||
optfeature "zvm" >=dev-python/zVMCloudConnector-1.3.0
|
||||
optfeature "hyperv" >=dev-python/os-win-5.5.0
|
||||
optfeature "vmware" >=dev-python/oslo-vmware-3.6.0
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="cinder">Installs Openstack block storage service Cinder</flag>
|
||||
<flag name="compute">Installs the dependencies for the nova volume service</flag>
|
||||
<flag name="dhcp">Installs the dependencies for the neutron dhcp service</flag>
|
||||
<flag name="glance">Installs Openstack VM services Glance</flag>
|
||||
<flag name="haproxy">haproxy backend support</flag>
|
||||
<flag name="heat">Installs Openstack orchestration engine Heat</flag>
|
||||
<flag name="iscsi">Allow using an iSCSI remote storage server as pool for disk image storage</flag>
|
||||
<flag name="keystone">Installs Openstack authentication, authorization and service catalog Keystone</flag>
|
||||
<flag name="lvm">Allow using the Logical Volume Manager (<pkg>sys-fs/lvm2</pkg>) as pool for disk image storage</flag>
|
||||
<flag name="memcached">Installs dependencies needed for using memcached as a backend</flag>
|
||||
<flag name="mongo">Installs dependencies needed for using mongo as a backend</flag>
|
||||
<flag name="neutron">Installs Openstack virtual network Neutron</flag>
|
||||
<flag name="nova">Installs Openstack fabric controller Nova</flag>
|
||||
<flag name="novncproxy">Installs dependencies for nova novncproxy service</flag>
|
||||
<flag name="openvswitch">Installs openvswitch for the neutron openvswitch support</flag>
|
||||
<flag name="placement">Installs Openstack HTTP service manager for cloud resources Placement</flag>
|
||||
<flag name="rabbitmq">Installs the rabbitmq server</flag>
|
||||
<flag name="swift">Installs Openstack object/blob store Swift</flag>
|
||||
<!-- <flag name="horizon">Installs Openstack Horizon</flag> -->
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit linux-info python-r1
|
||||
|
||||
DESCRIPTION="A openstack meta-package for installing the various openstack pieces"
|
||||
HOMEPAGE="https://openstack.org"
|
||||
|
||||
LICENSE="metapackage"
|
||||
SLOT="0"
|
||||
IUSE="
|
||||
cinder glance heat keystone neutron nova placement swift
|
||||
compute dhcp haproxy infiniband ipv6 iscsi ldap lvm memcached mongo mysql novncproxy openvswitch postgres rabbitmq sqlite
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|
||||
cinder? (
|
||||
sys-cluster/cinder[${PYTHON_USEDEP}]
|
||||
iscsi? (
|
||||
sys-block/tgt
|
||||
sys-block/open-iscsi
|
||||
)
|
||||
lvm? ( sys-fs/lvm2 )
|
||||
memcached? ( net-misc/memcached )
|
||||
)
|
||||
glance? ( app-admin/glance[${PYTHON_USEDEP}] )
|
||||
heat? ( sys-cluster/heat[${PYTHON_USEDEP}] )
|
||||
keystone? (
|
||||
sys-auth/keystone[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
www-servers/uwsgi[python,${PYTHON_USEDEP}]
|
||||
www-apache/mod_wsgi[${PYTHON_USEDEP}]
|
||||
www-servers/gunicorn[${PYTHON_USEDEP}]
|
||||
)
|
||||
ldap? (
|
||||
>=dev-python/python-ldap-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ldappool-2.3.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
memcached? ( >=dev-python/python-memcached-1.56[${PYTHON_USEDEP}] )
|
||||
mongo? ( >=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}] )
|
||||
)
|
||||
neutron? (
|
||||
sys-cluster/neutron[${PYTHON_USEDEP}]
|
||||
dhcp? ( net-dns/dnsmasq[dhcp-tools] )
|
||||
haproxy? ( net-proxy/haproxy )
|
||||
ipv6? (
|
||||
net-misc/radvd
|
||||
>=net-misc/dibbler-1.0.1
|
||||
)
|
||||
openvswitch? ( net-misc/openvswitch )
|
||||
)
|
||||
nova? (
|
||||
sys-cluster/nova[${PYTHON_USEDEP}]
|
||||
compute? (
|
||||
app-cdr/cdrtools
|
||||
sys-fs/dosfstools
|
||||
app-emulation/qemu
|
||||
)
|
||||
memcached? (
|
||||
net-misc/memcached
|
||||
>=dev-python/python-memcached-1.58[${PYTHON_USEDEP}]
|
||||
)
|
||||
novncproxy? ( www-apps/novnc )
|
||||
openvswitch? ( net-misc/openvswitch )
|
||||
rabbitmq? ( net-misc/rabbitmq-server )
|
||||
)
|
||||
placement? ( sys-cluster/placement[${PYTHON_USEDEP}] )
|
||||
swift? (
|
||||
sys-cluster/swift[${PYTHON_USEDEP}]
|
||||
memcached? ( net-misc/memcached )
|
||||
)
|
||||
|
||||
mysql? ( >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] )
|
||||
postgres? ( >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] )
|
||||
sqlite? ( >=dev-python/sqlalchemy-1.4.23[sqlite,${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
cinder? ( || ( mysql postgres sqlite ) )
|
||||
glance? ( || ( mysql postgres sqlite ) )
|
||||
heat? ( || ( mysql postgres sqlite ) )
|
||||
keystone? ( || ( mysql postgres sqlite ) )
|
||||
neutron? ( || ( mysql postgres sqlite ) )
|
||||
nova? ( || ( mysql postgres sqlite ) )
|
||||
placement? ( || ( mysql postgres sqlite ) )
|
||||
"
|
||||
|
||||
pkg_pretend() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK_MODULES=""
|
||||
# if use tcp; then
|
||||
# CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
|
||||
# fi
|
||||
if use infiniband; then
|
||||
CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
|
||||
CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
|
||||
fi
|
||||
if linux_config_exists; then
|
||||
for module in ${CONFIG_CHECK_MODULES}; do
|
||||
linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
|
||||
done
|
||||
fi
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST openstack-placement-7.0.0.tar.gz 559628 BLAKE2B 5abc67d3728b5ab3dd77df1649230891fe09dc37191bc0c74edb83a841099a6e4ad57560e8a56bd66fba56f0accb1b99eced55379bc3251bfda5c379f9c75b8d SHA512 9b2c0f730002c36e0e50a0468f3aec68f3d518d66cdec03c3324bba43aa1dd36b6f79d8d2775bce64e375265a4aab9b03b83243ea04302ef97f4cebd83793c36
|
||||
@@ -1,8 +0,0 @@
|
||||
/var/log/placement/*.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
d /var/lib/placement 0750 placement placement -
|
||||
d /var/log/placement 0750 placement placement -
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
OpenStack Placement provides an HTTP service for managing, selecting, and claiming providers of classes of inventory representing available resources in a cloud.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,97 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EPYTEST_IGNORE=( placement/tests/functional )
|
||||
MYP="${P//_/}"
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1 tmpfiles
|
||||
|
||||
DESCRIPTION="A HTTP service for managing, selecting, and claiming cloud resources"
|
||||
HOMEPAGE="
|
||||
https://github.com/openstack/placement
|
||||
https://opendev.org/openstack/placement
|
||||
"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/openstack-${MYP}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/openstack-${MYP}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-3.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-4.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-6.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-4.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-4.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.40.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-resource-classes-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/os-traits-2.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/microversion-parse-0.2.1[${PYTHON_USEDEP}]
|
||||
|
||||
acct-user/placement
|
||||
acct-group/placement
|
||||
|
||||
>=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/gabbi-1.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/wsgi_intercept-1.7.0[${PYTHON_USEDEP}]
|
||||
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile_all() {
|
||||
oslo-config-generator --config-file=etc/placement/config-generator.conf || die
|
||||
oslopolicy-sample-generator --config-file=etc/placement/policy-generator.conf || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/placement.logrotate" placement
|
||||
|
||||
diropts -m 0750 -o placement -g placement
|
||||
insinto /etc/placement
|
||||
insopts -m 0640 -o placement -g placement
|
||||
|
||||
doins etc/placement/placement.conf.sample
|
||||
doins etc/placement/policy.yaml.sample
|
||||
|
||||
dobin tools/mysql-migrate-db.sh
|
||||
dobin tools/postgresql-migrate-db.sh
|
||||
|
||||
newtmpfiles "${FILESDIR}/placement.tmpfile" placement.conf
|
||||
|
||||
dodir /var/log/placement
|
||||
fowners placement:placement /var/log/placement
|
||||
keepdir /var/log/placement
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process placement.conf
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST swift-2.29.1.tar.gz 3583459 BLAKE2B 378b865a035c73b80b2aab0a508da1c4acc9837e987c6daf9d8a13b5642d8f4bd0d2ded5702f8760f139322b691be83a0656c19738ab6a7e92511be65c2f2fc2 SHA512 f1309ef1728f2f259ad4cc0cbc2f88697179e1c0ee823f65c49f6f3cf0d8dd0432ee8d180f83e4c362de1e8b033f1d0e351ea95d034bd13355c3dccf2c14d767
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Auditor instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-auditor /etc/swift/account-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
# After network.target just because.
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Auditor
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-auditor /etc/swift/account-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Reaper instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-reaper /etc/swift/account-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Reaper
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-reaper /etc/swift/account-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Replicator instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-replicator /etc/swift/account-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
# After network.target just so replicator can talk to other nodes.
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Replicator
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-replicator /etc/swift/account-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Server instance %I
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-server /etc/swift/account-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Account Server
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-account-server /etc/swift/account-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Auditor instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-auditor /etc/swift/container-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Auditor
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-auditor /etc/swift/container-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Reconciler
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-reconciler /etc/swift/container-reconciler.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Replicator instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-replicator /etc/swift/container-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
# After network.target just so replicator can talk to other nodes.
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Replicator
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-replicator /etc/swift/container-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Updater instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-updater /etc/swift/container-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Updater
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-updater /etc/swift/container-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Server instance %I
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-server /etc/swift/container-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Container Server
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-container-server /etc/swift/container-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Auditor instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-auditor /etc/swift/object-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
# After network.target just because.
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Auditor
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-auditor /etc/swift/object-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Expirer
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-expirer /etc/swift/object-expirer.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Replicator instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-replicator /etc/swift/object-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
# After network.target just so replicator can talk to other nodes.
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Replicator
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-replicator /etc/swift/object-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Updater instance %I
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-updater /etc/swift/object-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Updater
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-updater /etc/swift/object-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Server instance %I
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-server /etc/swift/object-server/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Object Server
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-object-server /etc/swift/object-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=OpenStack Object Storage (swift) - Proxy Server
|
||||
Wants=network-online.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=swift
|
||||
ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,6 +0,0 @@
|
||||
/var/log/swift/swift.log
|
||||
{
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
|
||||
endscript
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
# LOCAL0 is the upstream default. LOCAL1, LOCAL2 are configured in
|
||||
# RHOS and RDO if installed with Packstack (also, mentioned in docs).
|
||||
# The breakout action prevents logging into /var/log/messages, bz#997983.
|
||||
local0.*;local1.*;local2.* /var/log/swift/swift.log
|
||||
& ~
|
||||
@@ -1,6 +0,0 @@
|
||||
# swift needs a couple of directories in /var/run
|
||||
d /var/run/swift 0755 swift root
|
||||
d /var/run/swift/account-server 0755 swift root
|
||||
d /var/run/swift/container-server 0755 swift root
|
||||
d /var/run/swift/object-server 0755 swift root
|
||||
d /var/run/swift/proxy-server 0755 swift root
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
COMMAND=/usr/bin/swift-init
|
||||
PIDFILE=/run/swift/account-server.pid
|
||||
|
||||
depend() {
|
||||
after net
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -r /etc/swift/swift.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/swift.conf"
|
||||
return 1
|
||||
fi
|
||||
if [ ! -r /etc/swift/account-server.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/account-server.conf"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return $?
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account stop
|
||||
eend $?
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
COMMAND=/usr/bin/swift-init
|
||||
PIDFILE=/run/swift/container-server.pid
|
||||
|
||||
depend() {
|
||||
after net
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -r /etc/swift/swift.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/swift.conf"
|
||||
return 1
|
||||
fi
|
||||
if [ ! -r /etc/swift/container-server.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/container-server.conf"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return $?
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- container start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- container stop
|
||||
eend $?
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
COMMAND=/usr/bin/swift-init
|
||||
PIDFILE=/run/swift/object-server.pid
|
||||
|
||||
depend() {
|
||||
after net
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -r /etc/swift/swift.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/swift.conf"
|
||||
return 1
|
||||
fi
|
||||
if [ ! -r /etc/swift/object-server.conf ]; then
|
||||
eerror "Missing required config file: /etc/swift/object-server.conf"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return $?
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- object start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- object stop
|
||||
eend $?
|
||||
}
|
||||
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user