5 Commits

Author SHA1 Message Date
chenyan
7bdf6fd47c add flake8 as pep8 codestyle check.
Enable test for pep8 and use flake8 as check tool.

Story: 2003310
Task: 24446

Change-Id: Idf5cbde46dc1a2a579587438b83f2dcb7b9352bb
Signed-off-by: chenyan <yan.chen@intel.com>
2018-08-10 11:39:57 +08:00
chenyan
b156c7d2a2 Python 3 compatibility: dict related modifications.
1. iteritems() -> items()
2. remove has_key()

Story: 2003310
Task: 24266

Change-Id: I1c92c003333d798d89251e40a1d6cb069c1a922a
Signed-off-by: chenyan <yan.chen@intel.com>
2018-08-07 13:40:35 +08:00
chenyan
4ac52a716e 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: 2003310
Task: 24265
Change-Id: I1e8f80527f9ba97093a8e753f3460110e160d1b9
Signed-off-by: chenyan <yan.chen@intel.com>
2018-08-07 10:55:11 +08:00
Stefan Dinescu
4246a0448d Allow filesystem resize if filesystem alarm present
Doing filesystem resizes is blocked when a node is degraded and
going over 90% filesystem utilization degrades the node.

This prevents the user from clearing the alarm by resizing and
adding more space to a certain filesystem.

To fix this, we check add a new field to every alarm marking
which alarm causes a degrade.

In case of a filesystem resize, we poll all alarms and filter
them for those that are causing a degrade. If the only alarm
that causes a degrade is the filesystem usage alarm, then
it is safe to proceed with the resize.

Change-Id: I9b4a9c34f625ef2669725d489460b15e637c1efc
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-06-28 16:05:54 -04:00
Dean Troyer
6cd8940170 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:00 -07:00