Update debian packaging for sysinv
- Upate packaging to be python3 only. - Make the package install and add missing files. Story: 2009101 Task: 43046 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: Idc7d96ceab4d5df16d1f4a93df1eebaeb8447a85
This commit is contained in:
parent
1fddec725d
commit
f7a90a9381
|
@ -1,54 +0,0 @@
|
|||
Source: sysinv
|
||||
Priority: optional
|
||||
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
|
||||
Build-Depends: python-setuptools,
|
||||
python-all,
|
||||
debhelper,
|
||||
dh-python,
|
||||
python-pbr,
|
||||
python-wheel,
|
||||
python-pip,
|
||||
systemd
|
||||
Standards-Version: 3.9.6
|
||||
|
||||
Package: sysinv
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends},
|
||||
${python:Depends},
|
||||
python-boto3,
|
||||
python-docker,
|
||||
python-parted,
|
||||
python-rfc3986,
|
||||
python-six,
|
||||
python-pyudev,
|
||||
python-pbr,
|
||||
python-ipaddr,
|
||||
python-jsonpatch,
|
||||
python-kubernetes,
|
||||
python-eventlet,
|
||||
python-oslo-utils,
|
||||
python-oslo-config,
|
||||
python-oslo-concurrency,
|
||||
python-oslo-db,
|
||||
python-oslo-log,
|
||||
python-oslo-serialization,
|
||||
python-oslo-service,
|
||||
python-netaddr,
|
||||
python-webob,
|
||||
python-webtest,
|
||||
python-wsme,
|
||||
python-mock,
|
||||
python-keyring,
|
||||
python-keystoneauth1,
|
||||
python-keystonemiddleware,
|
||||
python-paste,
|
||||
python-pecan,
|
||||
python-psutil,
|
||||
python-requests,
|
||||
python-retrying,
|
||||
python-sqlalchemy,
|
||||
python-stevedore,
|
||||
python-pytest,
|
||||
python-testtools,
|
||||
tsconfig
|
||||
Description: This package contains the StarlingX sysinv project.
|
|
@ -0,0 +1,5 @@
|
|||
sysinv (1.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Chuck Short <charles.short@windriver.com> Wed, 18 Aug 2021 13:41:30 +0000
|
|
@ -0,0 +1,147 @@
|
|||
Source: sysinv
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: Starlingx Developers <StarlingX-discuss@lists.StarlingX.io>
|
||||
Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, python3-all, python3-pbr
|
||||
Build-Depends-Indep:
|
||||
python3-sqlalchemy,
|
||||
python3-amqplib,
|
||||
python3-boto3,
|
||||
python3-botocore,
|
||||
python3-cryptography,
|
||||
python3-eventlet,
|
||||
python3-greenlet,
|
||||
python3-keyring,
|
||||
python3-kombu,
|
||||
python3-lxml,
|
||||
python3-webob,
|
||||
python3-migrate,
|
||||
python3-netaddr,
|
||||
python3-paramiko,
|
||||
python3-passlib,
|
||||
python3-iso8601,
|
||||
python3-oslo.i18n,
|
||||
python3-oslo.config,
|
||||
python3-oslo.concurrency,
|
||||
python3-oslo.log,
|
||||
python3-oslo.db,
|
||||
python3-oslo.messaging,
|
||||
python3-oslo.rootwrap,
|
||||
python3-oslo.service,
|
||||
python3-oslo.utils,
|
||||
python3-oslo.serialization,
|
||||
python3-cinderclient,
|
||||
python3-glanceclient,
|
||||
python3-keystoneclient,
|
||||
python3-keystonemiddleware,
|
||||
python3-stevedore,
|
||||
python3-websockify,
|
||||
python3-pecan,
|
||||
python3-retrying,
|
||||
python3-six,
|
||||
python3-jsonpatch,
|
||||
python3-wsme,
|
||||
python3-pyghmi,
|
||||
python3-yaml,
|
||||
python3-psutil,
|
||||
python3-simplejson,
|
||||
python3-rpm,
|
||||
python3-ruamel.yaml,
|
||||
python3-docker,
|
||||
python3-kubernetes,
|
||||
python3-pyudev,
|
||||
python3-ldap,
|
||||
python3-psycopg2,
|
||||
python3-barbicanclient,
|
||||
python3-rfc3986,
|
||||
python3-coverage,
|
||||
python3-fixtures,
|
||||
python3-mock,
|
||||
python3-requests-mock,
|
||||
python3-oslotest,
|
||||
python3-stestr,
|
||||
python3-testrepository,
|
||||
python3-testtools,
|
||||
python3-pycryptodome,
|
||||
python3-fmclient,
|
||||
python3-cgcs-patch,
|
||||
tsconfig,
|
||||
python3-fm-api,
|
||||
python3-platform-util,
|
||||
python3-cephclient,
|
||||
cgts-client,
|
||||
controllerconfig
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://www.starlingx.io
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: sysinv
|
||||
Architecture: all
|
||||
Depends: ${python3:Depends}, ${misc:Depends},
|
||||
python3-sqlalchemy,
|
||||
python3-amqplib,
|
||||
python3-boto3,
|
||||
python3-botocore,
|
||||
python3-cryptography,
|
||||
python3-eventlet,
|
||||
python3-greenlet,
|
||||
python3-keyring,
|
||||
python3-kombu,
|
||||
python3-lxml,
|
||||
python3-webob,
|
||||
python3-migrate,
|
||||
python3-netaddr,
|
||||
python3-paramiko,
|
||||
python3-passlib,
|
||||
python3-iso8601,
|
||||
python3-oslo.i18n,
|
||||
python3-oslo.config,
|
||||
python3-oslo.concurrency,
|
||||
python3-oslo.log,
|
||||
python3-oslo.db,
|
||||
python3-oslo.messaging,
|
||||
python3-oslo.rootwrap,
|
||||
python3-oslo.service,
|
||||
python3-oslo.utils,
|
||||
python3-oslo.serialization,
|
||||
python3-glanceclient,
|
||||
python3-keystoneclient,
|
||||
python3-keystonemiddleware,
|
||||
python3-stevedore,
|
||||
python3-websockify,
|
||||
python3-pecan,
|
||||
python3-retrying,
|
||||
python3-six,
|
||||
python3-jsonpatch,
|
||||
python3-wsme,
|
||||
python3-pyghmi,
|
||||
python3-yaml,
|
||||
python3-psutil,
|
||||
python3-simplejson,
|
||||
python3-rpm,
|
||||
python3-ruamel.yaml,
|
||||
python3-docker,
|
||||
python3-kubernetes,
|
||||
python3-pyudev,
|
||||
python3-ldap,
|
||||
python3-psycopg2,
|
||||
python3-barbicanclient,
|
||||
python3-rfc3986,
|
||||
tsconfig,
|
||||
python3-fm-api,
|
||||
python3-fmclient,
|
||||
controllerconfig,
|
||||
python3-cgcs-patch,
|
||||
platform-util,
|
||||
python3-cephclient,
|
||||
cgts-client
|
||||
Description: Starlingx system inventory - daemon
|
||||
Starlingx system inventory
|
||||
|
||||
Package: sysinv-wheels
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, python3-wheel
|
||||
Description: Starlingx system inventory - wheel
|
||||
Starlingx system inventory
|
||||
,
|
||||
This package contains the python wheels.
|
|
@ -0,0 +1,42 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: sysinv
|
||||
Source: https://opendev.org/starlingx/sysinv
|
||||
|
||||
Files: *
|
||||
Copyright: (c) 2013-2021 Wind River Systems, Inc
|
||||
Copyright: Others ((See individual files for more details)
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
||||
|
||||
# If you want to use GPL v2 or later for the /debian/* files use
|
||||
# the following clauses, or change it to suit. Delete these two lines
|
||||
Files: debian/*
|
||||
Copyright: 2021 Wind River Systems, Inc
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/make -f
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
export PYBUILD_NAME=sysinv
|
||||
export PBR_VERSION=1.0.0
|
||||
DEBIAN_DIR := $(CURDIR)/debian/tmp
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
||||
override_dh_auto_test:
|
||||
# FIXME: UTs run during packaging are currently broken
|
||||
PYTHONDIR=$(CURDIR) stestr run || true
|
||||
endif
|
||||
|
||||
override_dh_install:
|
||||
python3 setup.py install -f --install-layout=deb \
|
||||
--root=$(CURDIR)/debian/tmp
|
||||
python3 setup.py bdist_wheel \
|
||||
--universal \
|
||||
-d $(CURDIR)/debian/sysinv-wheel/usr/share/python3-wheels
|
||||
install -p -D -m 755 $(CURDIR)/etc/sysinv/motd-system $(CURDIR)/debian/tmp/etc/motd.d/10-system
|
||||
dh_install
|
||||
|
||||
override_dh_python3:
|
||||
dh_python3 --shebang=/usr/bin/python3
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd --name=sysinv-api
|
||||
dh_installsystemd --name=sysinv-conductor
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms -Xkube-cert-rotation.sh
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -0,0 +1 @@
|
|||
extend-diff-ignore = "^[^/]*[.]egg-info/"
|
|
@ -0,0 +1,4 @@
|
|||
usr/bin
|
||||
etc/goenabled.d
|
||||
etc/sysinv
|
||||
usr/lib/ocf/resource.d
|
|
@ -0,0 +1,32 @@
|
|||
etc/sysinv/sysinv_goenabled_check.sh etc/goenabled.d
|
||||
etc/sysinv/policy.json etc/sysinv
|
||||
etc/sysinv/crushmap-storage-model.txt etc/sysinv
|
||||
etc/sysinv/crushmap-controller-model.txt etc/sysinv
|
||||
etc/sysinv/crushmap-aio-sx.txt etc/sysinv
|
||||
etc/sysinv/delete_load.sh etc/sysinv/upgrades
|
||||
scripts/sysinv-api usr/lib/ocf/resource.d/platform
|
||||
scripts/sysinv-conductor usr/lib/ocf/resource.d/platform
|
||||
scripts/sysinv-api.service lib/systemd/system
|
||||
scripts/sysinv-conductor.service lib/systemd/system
|
||||
scripts/partition_info.sh usr/bin
|
||||
scripts/validate-platform-backup.sh usr/bin
|
||||
scripts/manage-partitions usr/bin
|
||||
scripts/query_pci_id usr/bin
|
||||
scripts/kube-cert-rotation.sh usr/bin
|
||||
scripts/ceph_k8s_update_monitors.sh usr/bin
|
||||
usr/lib/python*/dist-packages/*
|
||||
etc/motd.d/10-system
|
||||
usr/bin/cert-alarm
|
||||
usr/bin/cert-mon
|
||||
usr/bin/sysinv-agent
|
||||
usr/bin/sysinv-api
|
||||
usr/bin/sysinv-conductor
|
||||
usr/bin/sysinv-dbsync
|
||||
usr/bin/sysinv-dnsmasq-lease-update
|
||||
usr/bin/sysinv-fpga-agent
|
||||
usr/bin/sysinv-helm
|
||||
usr/bin/sysinv-puppet
|
||||
usr/bin/sysinv-reset-n3000-fpgas
|
||||
usr/bin/sysinv-rootwrap
|
||||
usr/bin/sysinv-utils
|
||||
usr/bin/sysinv-upgrade
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
debname: sysinv
|
||||
debver: 1.0
|
||||
src_path: sysinv
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
export PYBUILD_INSTALL_ARGS=--install-data=/usr/share --prefix=/usr --single-version-externally-managed
|
||||
export PBR_VERSION=1.0
|
||||
|
||||
%:
|
||||
dh $@ --with python2 --buildsystem=pybuild
|
||||
|
||||
override_dh_auto_test:
|
||||
echo "skipping test"
|
Loading…
Reference in New Issue