14 Commits

Author SHA1 Message Date
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
707a12317b Fix: "dict" issue for Python 2/3 compatible code
Replace dict.iteritems() with dict.items()
Replace dict.iterkeys() with dict.keys()
Change dict.keys() to list(dict.keys())

Story: 2002909
Task: 24564

Change-Id: Icf5ef6cc9947a87ee8e013d1225b3f36914e6678
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-12-25 16:52:30 +08:00
Changcheng Liu
bbd655d23c typo fix: check right dir before starting ceph-manager
It should be "/proc" instead of "/prod"

Change-Id: Ibba46e69f69aca82698f51c31496dbe4c3a39eb5
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
2018-12-20 10:33:53 +08:00
Zuul
4d6ad383ec Merge "Python 3 compatibility: use print as a function." 2018-11-02 18:38:13 +00: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
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
Jack Ding
e907c9a48c Correct typo: caph should be ceph
Change-Id: Ibf10aa998458a3b6a62b8c55fe7d90af057dae41
Signed-off-by: Jack Ding <jack.ding@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:38 -04:00
Robert Church
415e9d5340 Update upgrade code for removing Ceph Cache Tiering
Story: 2002884
Task: 22846

Change-Id: Ia2207eecea4fe4e590f774764a8beea83fa15fa7
Signed-off-by: Don Penney <don.penney@windriver.com>
Signed-off-by: Jack Ding <jack.ding@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:38 -04:00
Robert Church
11bcebdaad Remove Ceph Cache Tiering
Ceph Cache Tiering feature is not supported anymore. This commit removes
all the code changes associated with the no longer supported Ceph Cache
Tiering.
This implies:
a. cache tiering cannot be configured on system
b. no ceph-caching host could be added
c. no ceph-backing host could be added
d. ceph-caching/ceph-backing personality sub-type won't show up
when 'system host-show'/system host-add command is issued
e. ceph-caching/ceph-backing personality sub-type won't show up when host
is added/listed from horizon

Change-Id: Ic8fe14b7ceca5677f560bd2bce8c70a5c5597a7b
Signed-off-by: Jack Ding <jack.ding@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:37 -04:00
Ovidiu Poncea
084be04d1c Fix periodic thread that monitors Ceph
A timeout between ceph-manager and sysinv is causing ceph-manager to
stop responding. When Ceph Manager detects that 'require_jewel_osds'
flag needs to be set it queries sysinv which for whatever reason
(most likely dealing with some final operations) fails to respond in
a reasonable amount of time. This causes an exception in ceph-manager
which breaks one of the periodic threads execution.

Change-Id: If49f5ffbce4aeac3d50d52f526d1ce905be3cecb
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:36 -04:00
Scott Little
557dfe686c Relocate ceph-manager to stx-integ/ceph/ceph-manager
Move content from stx-upstream to stx-integ

Packages will be relocated to

stx-integ:
    ceph/
        ceph
        ceph-manager

Change-Id: I129faa448e2e52fc82101ae7ebc8ad5688f21523
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:36 -04:00
Erich Cordoba
d4a5366f53 Update TIS_BASE_SRCREV missing references
Change-Id: I0378b337ed0613d1b5e9b0d46790688594730b91
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:35 -04:00
Scott Little
21a02906a4 Relocate ceph to stx-integ/ceph/ceph
Move content from stx-upstream to stx-integ

Packages will be relocated to

stx-integ:
    ceph/
        ceph
        ceph-manager

Change-Id: I94570e59993251d72bbbfb8e7b8d1eb0666868b6
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:08:24 -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