Commit Graph

26 Commits

Author SHA1 Message Date
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
Scott Little e80813bb81 Relocated some packages to repo 'config-files'
List of relocated subdirectories:

base/centos-release-config
base/dhcp-config
base/dnsmasq-config
base/haproxy-config
base/initscripts-config
base/lighttpd-config
base/net-snmp-config
base/openssh-config
base/setup-config
base/systemd-config
config-files/audit-config
config-files/docker-config
config-files/io-scheduler
config-files/iptables-config
config-files/memcached-custom
config-files/ntp-config
config-files/pam-config
config-files/rsync-config
config-files/shadow-utils-config
config-files/sudo-config
config-files/syslog-ng-config
config-files/util-linux-config
filesystem/filesystem-scripts
filesystem/iscsi-initiator-utils-config
filesystem/nfs-utils-config
ldap/openldap-config
logging/logrotate-config
networking/mellanox/mlx4-config
networking/openvswitch-config

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I3dc0fc9f88931c5e0963d00274408ff7a16fae3a
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I761b0f76150881c765b70b2ccd255244c754bd5d
2019-09-05 20:32:09 -04:00
Scott Little 062ec89dbb Relocated some packages to repo 'utilities'
List of relocated subdirectories:

ceph/ceph-manager
ceph/python-cephclient
filesystem/nfscheck
logging/logmgmt
security/tpm2-openssl-engine
security/wrs-ssl
tools/collector
tools/engtools/hostdata-collectors
utilities/build-info
utilities/namespace-utils
utilities/pci-irq-affinity-agent
utilities/platform-util
utilities/tis-extensions
utilities/update-motd

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I2bf543a235507a4eff644a7feabd646a99d1474f
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I85dda6d09028f57c1fb0f96e4bcd73ab9b9550be
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 20:31:36 -04:00
Don Penney f3c9e6640e Fix bug in logmgmt start check
The start function of the logmgmt init script
checks for a valid pidfile to see if the process is
already running. Unfortunately, the code has a couple
of typos that cause the check to fail if the "start"
is called when the process is already running.

This commit fixes the typos.

Change-Id: I5795d23cc9e41a18b62e35bf3df07817522efe52
Related-Bug: 1827326
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-05-03 14:48:56 -04:00
Eric Barrett cb0b2ffe1e Enable Flake8 Docstring Errors
Flake8 currently ignores the following errors:
H401: docstring should not start with a space
H404: multi line docstring should start without a leading new line
H405: multi line docstring summary not separated with an empty line
Enable them for more consistent formatting of docstrings

Change-Id: I385e28e9c6eca3c02a3def51ff64b00b7a63a853
Story: 2004515
Task: 30076
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-04-18 11:50:45 -04:00
Eric Barrett 27133180fe Enable Flake8 300 Series Errors
Flake8 currently ignores the following errors:
E302: expected 2 blank lines[COMMA] found 1
E303: too many blank lines
E305: expected 2 blank lines after class or function definition, found 1

Change-Id: Idfb00e530967f1a345bc2e263ad77597f83cc5d3
Story: 2004515
Task: 30076
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-04-03 10:40:01 -04:00
Eric Barrett 7bf3a477f3 Enable Flake8 E12X Errors
Flake8 currently ignores the following Errors:
E121: continuation line under-indented for hanging indent
E123: closing bracket doesn't match indentation of opening bracket
E124: closing bracket doesn't match visual indentation
E125: continuation line with same indent as next logical line
E126: continuation line over-indented for hanging indent
E127: continuation line over-indented for visual indent
E128: continuation line under-indented for visual indent
Enable them for more consistent formatting of code

Change-Id: I415d4824a1f335ba3fceb488b0ae60b9861a036a
Story: 2004515
Task: 30076
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-04-02 15:11:16 -04:00
Eric Barrett 11cc2a21bb Enable Flake8 Whitespace Errors
Flake8 currently ignores a number of whitespace related errors:
E201: whitespace after '['
E202: whitespace before '}'
E203: whitespace before ':'
E211: whitespace before '('
E221: multiple spaces before operator
E222: multiple spaces after operator
E225: missing whitespace around operator
E226: missing whitespace around arithmetic operator
E231: missing whitespace after ','
E251: unexpected spaces around keyword / parameter equals
E261: at least two spaces before inline comment
Enable them for more thorough testing of code

Change-Id: Id03f36070b8f16694a12f4d36858680b6e00d530
Story: 2004515
Task: 30076
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-03-26 15:02:53 -04:00
Erich Cordoba 6bfca507bd Add notices to Intel authored files.
Story: 2005265
Task:  30090

Change-Id: I7cc22cf39d971fbf7fa149b89a892de27b8e6b64
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:31:10 -06:00
Saul Wold 1bcac9b7b6 Merge remote-tracking branch 'gerrit/master' into f/centos76
Change-Id: Ie24450986ee993400c994f85d1f047b689052d4c
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-01-11 08:58:59 -08:00
Saul Wold 17b864fbeb Merge remote-tracking branch 'gerrit/master' into f/centos76
Change-Id: I1c4ce76f1870b085b7f8ec39d4e3ae0c9b401a2d
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-01-02 14:29:11 -08:00
Martin, Chen 82050043fa rebase logrotate patch to CentOS 7.6 version
Test:
Pass build and multi-node deploy test

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

Story: 2004522
Task: 28409

Change-Id: Ide5022fab8c0d04971348ef9fffe5890a0fe2cde
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2018-12-26 10:51:26 +08:00
Sun Austin 79c3a1b255 Fix: "import" issue for Python 2/3 compatible code
use proper absolute path to import modules

remove ignore case 'H301: one import per line'

Story: 2002909
Task:  24886

Change-Id: I1d72e68ead64492ff0c74f8c1bf1b460b573bc1e
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-12-26 09:19:59 +08:00
Sun Austin d1dc7bdf90 FIX: oct number issue for Python 2/3 compatible code
change 00xxx or 0xxx to 0oxxx

Story: 2002909
Task:  24561

Change-Id: I1e1ab809a6a1f68a7a1d20e13add314cda554ba5
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-12-25 16:52:30 +08:00
Zuul efd96cd34c Merge "refactor syslog-ng" 2018-11-19 01:28:20 +00:00
slin14 fc4a7c9d49 refactor syslog-ng
Package syslog-ng-config is created to install customized
config file of syslog-ng. Since there is no source code change
in syslog-ng, we could replace the srpm with rpm directly.

syslog-ng-config is set to depends on syslog-ng. So syslog-ng
will be installed automatically.

Test:
Pass build and basic deploy test. Confirmed the related config
file is the same as before.

Story: 2003768
Task: 27599
Depends-On: https://review.openstack.org/616720

Change-Id: I2a4e15b9ffde92aa59072d590de2b56d239e29ad
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-11-09 19:35:54 +08:00
slin14 7880e6f1a1 refactor logrotate
Package logrotate-config is created to config logrotate.conf
and logrotate.cron for logrotate.

Pass build and basic deploy test. And confirmed logrotate.conf
and logrotate.cron is the same as before.

Story: 2003768
Task: 27598

Change-Id: I4792366018f7c4d4960bf1182c8c2ffee5625676
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-11-08 21:07:33 +08:00
Don Penney a89aee499a Add hooks for python wheel generation
This update adds hooks to the spec files for the following packages
to generate wheels for the python modules:
- ceph-manager
- libvirt-python
- logmgmt
- platform-util
- python-3parclient
- python-cephclient
- python-lefthandclient
- python-ryu
- vm-topology

Change-Id: Ia63291e686818d19d0df52ff26b5f0bb3812b8ce
Story: 2003907
Task: 26787
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-10-23 10:35:32 -04:00
slin14 996f18d0e8 de-fuzz logrotate 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: I5a0d830d8bc8ec5c85959bb1b4c243e8c56764c1
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-28 08:03:00 +08:00
Zuul 2a05a16e54 Merge "Enable upstream Cinder volume backup/restore capabilities" 2018-09-26 21:46:39 +00:00
Wei Zhou 3de0c44b33 Enable upstream Cinder volume backup/restore capabilities
Enable /var/log/cinder/cinder-backup.log

Story: 2003115
Task: 26393

Depends-On: Ie71a2c90d89c3023fb8d043e1a26d80c43779133
Change-Id: I0852fafbee585bc8877c94de0958b86a34a8680d
Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
2018-09-21 13:08:23 +00:00
slin14 3788ef98ea add patch to skip 1 cryto test which cause build failure
Story: 2003389
Task: 26333

It should be syslog-ng itself issue.

The error message from log is:
"
  # FAIL: ASSERTION FAILED: FAIL: compilation error doesn't match,
            error=Cannot parse integer value “invalid_length_specification” for --length,
   expected_error=Cannot parse integer value 'invalid_length_specification' for --length
; actual=FALSE, expected=TRUE
"
The only difference between error and expected_error is the double quote and single quote.

Change-Id: I9935c2a3cfcd20619a6c1a4071fb4f1b3b22fa1a
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-10 22:46:33 +08:00
zhipengl 509a975d20 upgrade logrotate to CentOS 7.5 version
Story: 2003389
Task: 24483

Change-Id: I6772a2193c281006cdd78974b711bc500ae38327
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-08-27 04:09:35 +00:00
Don Penney 636898cd68 Protect against unintended log deletions in logmgmt
The logmgmt daemon is using a "logrotate -d" query to determine
the list of monitored files. If that query fails, logmgmt should
not purge unmonitored files, as it may be deleting files that
should be protected.

Change-Id: I8a0b092fdbe8fccb8cf493dc631c22e1d7156269
Signed-off-by: Don Penney <don.penney@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 12:18:51 -04:00
Scott Little 696e01e065 Relocate logmgmt to stx-integ/logging/logmgmt
Move content from stx-utils into stx-integ or stx-update

Packages will be relocated to

stx-update:
    enable-dev-patch
    extras

stx-integ:
    config-files/
        io-scheduler

    filesystem/
        filesystem-scripts

    grub/
        grubby

    logging/
        logmgmt

    tools/
        collector
        monitor-tools

    tools/engtools/
        hostdata-collectors
        parsers

    utilities/
        build-info
        branding   (formerly wrs-branding)
        platform-util

Change-Id: Ie4d2efc756e6294ba456bc54feb823fc8c0be9db
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 12:18:49 -04: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