Releases: xenserver/status-report
Releases · xenserver/status-report
v2.0.5
User-visible fixes
- CA-394409: plugins: Fix multiple file patterns for the same directory by @bernhardkaindl in #115
- Fixes collection of logs from tapdisk and auto-cert-kit
- CP-49659: Fix modinfo to not abort output on non-ASCII characters by @bernhardkaindl #112 /
- Fixes collecting all modinfo outputs even when modules where the authors have non-ASCII characters are loaded (rare occurrence)
- CP-49680: Support unquoted values in /etc/xensource-inventory by @bernhardkaindl in #114
- Fixes bugtool to not abort in extreme cases when
/etc/xensource-inventory
does not have a management interface (that should not happen, only happened in XenRT, likely due to a DHCP failure)
- Fixes bugtool to not abort in extreme cases when
Details of all merged PRs
- Allow repos to use Sonar to manage clean code, fix warnings by @bernhardkaindl in #98
- CA-390759: Revert removal of PBIS (PowerBroker Identity Service) for future backports. by @bernhardkaindl in #99
- CP-48198: Fix Codecov uploads from the merged commits on master by @bernhardkaindl in #107
- CP-48198: docs-only: test_filter_xapi_clusterd_db.py: Clean-up of comment in header by @bernhardkaindl in #102
- CP-48198:
pre-commit.md
: Minor updates and cleanups by @bernhardkaindl in #101 - CP-48198: docs-only: test_filter_xapi_clusterd_db.py: Clean-up long comments by @bernhardkaindl in #103
- CP-48198:
.codecov.yml
: Fix Py3 coverage flag used topython3.10
by @bernhardkaindl in #106 - CP-48198: test_filter_xapi_clusterd_db.py: Self-test asserting the expected output by @bernhardkaindl in #104
- CP-48198: Fix running pytest on tests/integration in GitHub CI (with coverage) by @bernhardkaindl in #105
- CA-392459: Avoid opening /dev/mem when calling biosdevname by @rosslagerwall in #108
- README.md: Add an FAQ on Code compexity relative to Python2 support by @bernhardkaindl in #110
- CP-49659: Test
modinfo
returning non-ASCII characters and fix the triggered error by @bernhardkaindl in #112 - pytest: Add support for pytest-8.2 on Python3.11 (color, verbose) by @bernhardkaindl in #113
- CP-49680: Support unquoted values in /etc/xensource-inventory by @bernhardkaindl in #114
- CA-394409: plugins: Fix multiple file patterns for the same directory by @bernhardkaindl in #115
New Contributors
- @rosslagerwall made their first contribution in #108
Full Changelog: v2.0.4...v2.0.5
v2.0.4
What's Changed
Release v2.0.4 contains only fixes for error handling and error logging
- Two minor error handling fixes for issues that could be seen with Python 2.7 and Python 3.x, but are highly unlikely to occur.
- Two minor error handling fixes that for issues that can only be seen with Python 3.x (and one of them only with Python 3.6)
- Many improvements to documentation, tests and a minor clean-up of long obsolete code.
Please find the details below.
Fixes for xen-bugtool / xenserver-status-report
- CA-390127: Fix saving all log messages by @bernhardkaindl in #92
- CA-390129: Handle & log exceptions in dump_xapi_rrds() (Is hidden and disabled by default) by @bernhardkaindl in #94
Fixes for use with Python 3
- CP-48447: Correct exception handling for callbacks of the func_output() calls by @bernhardkaindl in #92
- CP-48444: Workaround crash of Python 3.6 with "Illegal seek" with --outfd by @bernhardkaindl in #91
Cleanup of obsolete code (Storage Link / CVSM was removed in XS 6.5)
- CP-47521: Cleanup CAP_CVSM and StorageLink code (was removed in XS 6.5) by @bernhardkaindl in #95
- CP-47521: Remove last forgotten leftover of the StorageLink code by @bernhardkaindl in #96
Tests and CI
- CP-48196: Add a unit-test for
dump_xapi_subprocess_info()
by @bernhardkaindl in #85 - Fix mocking the
xen-bugtool
script in with Python 3.12 by @bernhardkaindl in #90 - Add pre-commit hook to check if the current branch needs rebase by @bernhardkaindl in #89
- CP-48197,CP-48198,CP-46136: Separate Codecov coverage for Python2 and 3.x by @bernhardkaindl in #79
- CA-390129: Add the unit test case for the exception handler added in #94 by @bernhardkaindl in #97
Documentation
- CP-46136: Add doc/release.md: Add documentation on tagging versions by @bernhardkaindl in #86
- CP-46136: Add doc/testing.md: Describe the used test approach by @bernhardkaindl in #83
- CP-46136: Fix mis-spellings noted by the Code spell checker plugin by @bernhardkaindl in #84
Full Changelog: v2.0.3...v2.0.4
v2.0.3
What's Changed
Two very small regression fixes only:
- Fix to preserve the directory traversal order in Python2 by @bernhardkaindl in #88
- Fix yes/no input for Python2/XS8: revert to raw_input() on Python2 by @bernhardkaindl in #87
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
Code changes to xen-bugtool
- CA-389135: Fix the off-by-default and hidden direct-fetched VM RRDs by @bernhardkaindl in #82
- StringIOmtime: move it to define it before using it by @bernhardkaindl in #81
Test suite updates
- Cosmetic clean-up of the
pytest
fixtures in tests/unit/conftest.py by @bernhardkaindl in #70 - Fix test for
disk_list()
to be OS-agnostic and test the major device number filter by @ashwin9390 in #80 - Improve readability of integration tests by @bernhardkaindl in #74
- Restore coverage upload to codecov (falls back to legacy uploader), add coveralls upload by @bernhardkaindl in #71
Documentation updates
- Docs-only: Add tests/unit/conftest-README.md documenting tests/unit/conftest.py by @bernhardkaindl in #68
- Clean-up README-pytest-chroot.md to 88 column width by @bernhardkaindl in #73
New Contributors
- @ashwin9390 made their first contribution in #80 (note: the coding was done by @bernhardkaindl)
Full Changelog: v2.0.1...v2.0.2
v2.0.0
First release of xenserver-status-report with initial support for Python3
To be safe, it is still intended to be used with Python2 as the main interpreter, not all converted code was complete unit tests for Python3 yet.
Note: This does not change the shebang from #!/usr/bin/env python
to a pure Python3 shebang:
- It is not required as all the changes still support Python2 for XS8.2 CU2
- On newer systems where
python
is a symlink topython3
, it will work with Python3.
Summary of Major changes:
- Support for Python 3.6 to 3.11 for new XenServer releases which use Python 3.6 and Python 3.10 or Python 3.10 (or 3.11)
- Support for Python 2.7 is maintained and unit-tested to have tested code ready for backporting to older XCP platforms.
- These backports can re-use existing testing.
- Work on backports can use the existing code base and can be aligned to the master.
- Less divergence between backports of
xen-bugtool
and new code:- Backports are planned to use this feature included in v2.0.0: #51
- Unit-tested with code coverage of ~82% (1285 of 1566 lines) of using Python2.7 and Python3.10.13
Notable new features:
- Feature: Capturing of XenServer SNMP config files with secrets filtering: #56
What's Changed
- Ensure that filtering the xAPI DB keeps working for CP-41819 (Python3 Migration) by @bernhardkaindl in #14
- CP-41819: Start py3 migration with config for isort and apply isort by @bernhardkaindl in #17
- CP-41819: Update except and print() syntax to Python3, use logging by @bernhardkaindl in #18
- Fix has_key() for Python3.x: Apply "2to3 -w -f has_key" - Use: x (not) in y by @bernhardkaindl in #20
- Use hashlib.md5 and skip monkeypatching ZipFile for 3.7+ by @bernhardkaindl in #19
- xen-bugtool/make_inventory(): Py3: Update tuple lambda to for loop by @bernhardkaindl in #21
- Private/bernhardk/py3 long input six by @bernhardkaindl in #23
- Update urlopen() and getoutput() to support Python3 as well by @bernhardkaindl in #24
- Add pytest-based integration test framework by @bernhardkaindl in #25
- Run pre-commit checks in CI (including the Xen-Bugtool Test Environment) by @bernhardkaindl in #26
- Add system load testcase to check collecting sar output, improve verification code by @bernhardkaindl in #27
- tests/unit/conftest.py: Add a common pytest fixture to test functions of xen-bugtool by @bernhardkaindl in #28
- pytest framework: add checking the exit code of test commands by @bernhardkaindl in #29
- tests/unit/test_mdadm_arrays.py: add test for mdadm_arrays() by @bernhardkaindl in #31
- tests/unit/test_xapidb_filter.py: Update/Prepare testcase for Python3 by @bernhardkaindl in #30
- Test the bugtool function dir_list(cap, path_list) to perform as expected by @bernhardkaindl in #32
- Enable Python3 tests and create first ZIP/TAR output archives. by @bernhardkaindl in #33
- Fix typos in comments by @bernhardkaindl in #36
- Rename the srcdir variable to fix spelling checks by @bernhardkaindl in #37
- CP-41819: Py3: Collect, check and report code coverage from Python3 unit test runs by @bernhardkaindl in #35
- pre-commit: Don't string-normalize quotes in xen-bugtool for now by @bernhardkaindl in #38
- Bugfix: xen-bugtool/fd_usage(): Fix TypeError when a pid disappears by @bernhardkaindl in #43
- Remove not used function prettyDict() by @bernhardkaindl in #42
- Unit tests: Add simple pytest test for bugtool.disk_list() by @bernhardkaindl in #41
- TarOutput: Close collected files after reading them to free buffers by @bernhardkaindl in #45
- CI: Improve unit tests to test the bugtool's main() as well by @bernhardkaindl in #44
- CP-45506: Fix asking if /etc/systemd/* should be collected by @bernhardkaindl in #48
- 'Debug: Fix abort in debug mode on unknown entries' by @bernhardkaindl in #49
- Fix harmless warning: Close sub-archives without members as well by @bernhardkaindl in #47
- CI: Add new test to cover lines handling unkown command line options by @bernhardkaindl in #50
- CI/utils.py: Better diagnostic output when tests fail by @bernhardkaindl in #46
- CP-41238: Run commands before collecting directories by @bernhardkaindl in #51
- GitHub CI: Fix problemMatcher to match status-report paths by @bernhardkaindl in #54
- Merge feature branch
feature/snmp-status-report
intomaster
by @BengangY in #56
Full Changelog: v1.3.14...v2.0.0