31 Commits

Author SHA1 Message Date
Davlet Panech
242e6630af debian: python-nss: add build scripts + patches
Python NSS module is not buildable by pip on Debian/bullseye and
requires patches. The debian package for this module contains the
required fixes, but contains 2 other problems:
- it builds only the PY3-version of itself
- it (incorrectly) doesn't install pip metadata, making it "invisible"
  by pip

Solution: import python-nss from debian/bullseye + add patches that fix
the above problems.

TESTS
================
Build package in debian environment

Story: 2009897
Task: 44691

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I65ab9b967e38340939bd99c389b72820ee17571b
2022-04-11 15:09:33 -04:00
Yue Tao
4a709349a9 meta_data.yaml: add sha256sum checksum
Test Plan:
Pass: Verify sha256sum checksum via "download -s"

Story: 2008846
Task: 44578

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I78d9dff2af0afb18c6db4e8d2d39ef79b5cf5864
2022-03-03 14:30:40 +08:00
Dan Voiculeasa
9b0fb8e455 debian: Add and patch dh-python package
This is a transient work that enables us to progress Debian
integration. This work affects only Debian.

Sysinv loads stevedore plugins. The logic is based on the fact that
the source files are listed in SOURCES.txt which is included in the
egg. The package that provides a plugin is determined by parsing
entry_point and distribution data. Distribution data loads
information from SOURCES.txt.

dh-python is used during build and silently removes the file that
sysinv expects to be present.

Patch the package to keep the file.

Skip CentOS tests because this is a Debian only package.
Debian tests:
PASS: build python package, build non-package python
PASS: SOURCES.txt present in .egg-info in python package

Partial-Bug: https://bugs.launchpad.net/starlingx/+bug/1955648
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Id45b1ba93f9ee88cc01a9cb1fb25527b8a5f1e19
2022-02-24 18:34:49 +00:00
Dan Voiculeasa
ed19f486ac debian: Add and patch python3-setuptools package
This is a transient work that enables us to progress Debian
integration. This work affects only Debian.

Sysinv loads stevedore plugins. The logic is based on the fact that
the source files are listed in SOURCES.txt which is included in the
egg. The package that provides a plugin is determined by parsing
entry_point and distribution data. Distribution data loads
information from SOURCES.txt.

Setuptools doesn't copy the desired file to egg.
Patch python3-setuptools so it copies the file to egg.

Skip CentOS tests because this is a Debian only package.
Debian tests:
PASS: build python package, build non-package python
PASS: SOURCES.txt present in .egg-info in python package

Partial-Bug: https://bugs.launchpad.net/starlingx/+bug/1955648
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ia318aa0ca6825adfa3d23159691486067d96d475
2022-02-24 15:19:54 +00:00
Kyle MacLeod
e2ab5cc2c8 Patch watch.py in python-kubernetes package
Patch the python2-kubernetes-8.0.0-8.el7.noarch.rpm with recent
bug fix commits required for proper kubernetes watch functionality.

Patches watch.py up to commit 10ae476 in the 'base' repo
(kubernetes-client/python-base).

Commits are taken from the cloned github repo, saved in patch format,
and applied as a patch to the source RPM.

Reference:
https://github.com/kubernetes-client/python-base/commits/master/watch/watch.py

This patch includes commits beginning with d56fdbc, up to and including 10ae476

Testing:
- Built and testing on local distributed cloud system
- Similar testing to this patch but  ased on locally modified package
  has been done on 1000 subcloud system
- Examine/compare contents of installed package vs. expected
- Generating events which trigger the watch conditions
- Monitor watches for proper behaviour on expiry

Story: 2008960
Task: 43053

Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
Change-Id: I7ad78957b6ef61e7204c45f482f201d5c281385b
2021-08-25 17:05:03 -04:00
Dongqi Chen
af359d4938 Add auto-versioning to starlingx/integ packages
This update makes use of the PKG_GITREVCOUNT variable
to auto-version the packages in this repo.

Story: 2007750
Task: 39951
Change-Id: I854419c922b9db4edbbf6f1e987a982ec2ec7b59
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2020-06-24 09:48:28 +08:00
Zuul
d2c993c381 Merge "Add BuildRequires to avoid build failure in clean mock" 2020-06-01 19:47:48 +00:00
Shuicheng Lin
8955cd876c Add BuildRequires to avoid build failure in clean mock
Closes-Bug: 1880829
Change-Id: I7dfb8dc494f2e873105cd0282ac4fe553b985a97
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2020-05-28 23:14:28 +08:00
Ran An
e5996667f5 Add python3-daemon required by logmgmt
This reverts commit fc125a7a24c00850aafd4a791a63e8e627b5ee1e.

pkg logmgmt upgraded to python3 requires python3 model "daemon",
and no pkgs in Centos7 offical repo provide it.

this patch refer to the python3-daemon pkg build by rdo
for CentOS 8: python-daemon-2.2.3-7.el8.src.rpm

disable the rpm check part which is not required in stx to
reduce python3 dependencies that not supported by CentOS 7

Depends-on: https://review.opendev.org/#/c/728324/
Depends-on: https://review.opendev.org/#/c/729635/
Depends-on: https://review.opendev.org/#/c/728326/
Change-Id: Iad2e4bb2f2087f46b7c27e80a9423cd5cc1e0517
Story: 2007106
Task: 39291
Signed-off-by: SidneyAn <ran1.an@intel.com>
2020-05-27 06:32:15 +00:00
Ran An
fc125a7a24 Revert "Add python3-daemon required by logmgmt"
This reverts commit 97cd7ea5c1037dd22488793ea9271462fedc4c7a.

Change-Id: I3f09054c1546252493f8eb29dc70806829324a52
2020-05-14 11:41:50 +00:00
SidneyAn
97cd7ea5c1 Add python3-daemon required by logmgmt
pkg logmgmt upgraded to python3 requires python3 model "daemon",
and no pkgs in Centos7 offical repo provide it.

this patch refer to the python3-daemon pkg build by rdo
for CentOS 8: python-daemon-2.2.3-7.el8.src.rpm

disable the rpm check part which is not required in stx to
reduce python3 dependencies that not supported by CentOS 7

Depends-on: https://review.opendev.org/#/c/727657/
Depends-on: https://review.opendev.org/#/c/727662/
Change-Id: Ie08ea9c7adf830ad4e8e924fa69352fb2a923a6f
Story: 2007106
Task: 39291
Signed-off-by: SidneyAn <ran1.an@intel.com>
2020-05-13 21:14:03 +08:00
albailey
eeaaaf5796 Fix build break for python-html5lib and python-webencodings
The lst files which stage the downloaded tarballs were altering the
internal directory structure during the mirror download phase, which
meant the %setup commands in the spec files were failing.

This change adapts the spec files to the files downloaded from
the mirror.

Change-Id: I8031c8af0f424a8e19bee062a4df6ddf3383f38d
Closes-Bug: 1866133
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-03-04 17:09:26 -06:00
Teresa Ho
fdaa4c4a9d Add dependency required by oidc-auth
The oidc-auth CLI requires the libraries python-mechanize,
python-html5lib and python-webencodings.
These libraries do not have RPMs available therefore they
need to be packaged here.

Story: 2006711
Task: 38919
Depends-On: https://review.opendev.org/#/c/710991/

Change-Id: Ife8719a70388bc9a0e96149059fd5cc2c1fb232a
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2020-03-03 12:56:11 -05:00
Don Penney
d2909ed9e3 Remove python-smartpm from build
The python-smartpm module is no longer used by the patching framework.
This commit removes it from the build.

Change-Id: I8b3dbffeb9db7675aa545ec674b9193a1b2a1bc5
Story: 2006227
Task: 35828
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-01-15 23:39:55 -05:00
Bart Wensley
bcfade61de Remove obsolete patches for eventlet and requests
We are currently carrying patches for python-eventlet and
python-requests that are over three years old and were
created to "fix" a nova issue. Now that nova is in a
container, it no longer uses our eventlet or requests so
these patches do not have any effect.

The patches need to be removed to allow eventlet to be
upversioned, which is being done in another commit.

Change-Id: I730ba86d8f6ec8b88b060ada324cfd268af24b35
Story: 2006781
Task: 37583
Depends-On: https://review.opendev.org/#/c/700071/
Depends-On: https://review.opendev.org/#/c/700054/
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2019-12-20 10:25:33 -06:00
Scott Little
edb9f64aec Relocated some packages to repo 'compile'
List of relocated subdirectories:

base/bash
base/golang-dep
base/rpm
python/python-2.7.5
base/golang

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I1afe2c0a2f9ca6acf70f29ae85f8497da7593bf8
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I840888f0b012e9fb24e72f4e6a46567e6f949df7
2019-09-05 20:31:20 -04:00
Shuicheng Lin
06988b87db replace python-gunicorn srpm with rpm
For the source patch 0001-add-worker-abort-hook.patch, it is not used.
For the 3 meta patches, only 0001-TIS-gunicorn-19-upgrade.patch is
applied to srpm. And this meta patch just add tis version, and disable
python3 compilation. So it is ok to drop all these patches, and use
rpm to replace srpm.

Story: 2005484
Task: 30578
Depends-On: https://review.opendev.org/653908
Change-Id: I5805cce1dc64dd41be9f415bab985b34791f1506
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2019-04-23 00:51:41 +00:00
Tyler Smith
d1005c01da Rebasing python-requests package
- Rebasing our python-requests patch to a newer version

Change-Id: Ibad4135b814d6e4ff2e0e405c25507e77455fc95
Story: 2004765
Task: 28883
Depends-On: https://review.openstack.org/#/c/653086
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-04-18 18:01:35 +00:00
Tyler Smith
681d7947c4 Upversioning platform horizon to master
We have switched to using vanilla django 1.11, and no longer require
these patches

Change-Id: I5830615bf357e9a06a4518adaccd2bcffb7d00be
Story: 2004765
Task: 28883
Depends-On: https://review.openstack.org/#/c/642797
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-03-12 19:49:25 +00:00
SidneyAn
9f41b6d9db Revert "upgrade python-django to CentOS 7.6 version"
This reverts commit d0e1110fda670d329aabf21fcfd6ee672e198618.

Patch [2/2]
Revert Reason
As part of CentOS 7.6 upgrade tasks, I have upgraded python-django from
1.8.14-1 to 1.11.13 from 3rd-party repo
"https://dl.fedoraproject.org/pub/epel/testing/7/SRPMS/Packages/p/"
However lately CentOS repo made a refreshment and we noticed in official
repo, python-django still keeps version 1.8.14-1.
“http://vault.centos.org/7.6.1810/cloud/Source/openstack-pike/common/”

so we revert previous change d0e1110fda670d329aabf21fcfd6ee672e198618.

Story: 2004522
Task: 28853

Depends-On: https://review.openstack.org/#/c/629970/
Change-Id: Iadd18f4293e82cd50493a524bde96af455765b04
2019-01-15 02:00:27 +00:00
SidneyAn
d0e1110fda upgrade python-django to CentOS 7.6 version
[Patch 2/3]
update to version 1.11.13-4
remove unnecessary patches

Story: 2004522
Task: 28402

Depends-On: https://review.openstack.org/#/c/627590/
Change-Id: Icec77377cb40c253ad4f94a62595b35cae6b46e4
Signed-off-by: SidneyAn <ran1.an@intel.com>
2018-12-28 02:05:44 +00:00
Zhe Hu
2c308d90d5 rebase python patch to CentOS 7.6 version
Test:
Pass build and simplex deploy test

Depends-On: https://review.openstack.org/626065

Story: 2004522
Task: 28396

Change-Id: I850651bb4c5ca2e60d4b63434d5f1cfe72d64069
Signed-off-by: Zhe Hu <zhe.hu@intel.com>
2018-12-19 10:36:23 +08:00
zhipengl
c4617d4c4b Fix fuzzy issue introduced by Change 597433
One fuzzy issue introduced in
https://review.openstack.org/#/c/597433/
smart-recommends.patch line 1164
It will cause build issue!
Change patch error and build pass

Closes-Bug: 1801685

Change-Id: I31d23a6287f8eff53fa26c95914ed8b80a8ed7a9
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-11-06 01:56:04 +08:00
zhangyangyang
fd33abe3f4 Python 3 compatibility: use print as a function.
In Python 3 print is a function.
Especially for multiple string print, need to import
print_function from __future__.

Story: 2002909

Task: 24560

Signed-off-by: zhangyangyang <zhangyangyang@unionpay.com>

Change-Id: Ie31eb59368af57776eb9785dba494432111cd250
2018-10-29 07:40:56 +00:00
Zuul
b6b4354b25 Merge "Fix typos in doc" 2018-10-15 15:09:33 +00:00
slin14
61ab0029fe de-fuzz python patches
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.

Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611

Solution:
  Safest solution is to de-fuzz our patches.

Story: 2003389
Task: 26755

Change-Id: Iaf55ba860a02ea096b7cfbfd9b810cc51de18580
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-28 07:41:08 +08:00
melissaml
fd4a026a25 Fix typos in doc
Change-Id: I6f41510817c5c46a4711882c37c41e46d9381f49
2018-09-23 01:54:14 +08:00
slin14
3fd67fcd89 rebase python patch to CentOS7.5
Story: 2003389
Task: 24465

Change-Id: I4411dd1e617b3f8a2f99543e0c073236c58a29f2
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-08-22 13:32:51 +08:00
Scott Little
bab9bb6b69 Internal restructuring of stx-integ
Create new directories:
   ceph
   config
   config-files
   filesystem
   kernel
   kernel/kernel-modules
   ldap
   logging
   strorage-drivers
   tools
   utilities
   virt

Retire directories:
   connectivity
   core
   devtools
   support
   extended

Delete two packages:
   tgt
   irqbalance

Relocated packages:
   base/
      dhcp
      initscripts
      libevent
      lighttpd
      linuxptp
      memcached
      net-snmp
      novnc
      ntp
      openssh
      pam
      procps
      sanlock
      shadow
      sudo
      systemd
      util-linux
      vim
      watchdog

   ceph/
      python-cephclient

   config/
      facter
      puppet-4.8.2
      puppet-modules

   filesystem/
      e2fsprogs
      nfs-utils
      nfscheck

   kernel/
      kernel-std
      kernel-rt

   kernel/kernel-modules/
      mlnx-ofa_kernel

   ldap/
      nss-pam-ldapd
      openldap

   logging/
      syslog-ng
      logrotate

   networking/
      lldpd
      iproute
      mellanox
      python-ryu
      mlx4-config

   python/
      python-2.7.5
      python-django
      python-gunicorn
      python-setuptools
      python-smartpm
      python-voluptuous

   security/
      shim-signed
      shim-unsigned
      tboot

   strorage-drivers/
      python-3parclient
      python-lefthandclient

   virt/
      cloud-init
      libvirt
      libvirt-python
      qemu

   tools/
      storage-topology
      vm-topology

   utilities/
      tis-extensions
      namespace-utils
      nova-utils
      update-motd

Change-Id: I37ade764d873c701b35eac5881eb40412ba64a86
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 10:06:31 -04:00
Ryan Lau
bad86583a0 Remove python-cryptography and python-suds
Change-Id: I4828250c281f71a094d5de61f0f8e031688be9af
Signed-off-by: Ryan Lau <ryan.lau@windriver.com>
2018-06-26 11:11:19 -04:00
Dean Troyer
3cd12006bb StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:35 -07:00