Repository navigation
Conversation
Resolves: ZSTAC-55377 Change-Id: I7865656b616d677067676e736875626e656f6263
Resolves: ZSTAC-70073 Change-Id: I6868776cd3368f45a2524116b732996fb2e5461d
Fixed the issue where `kvmagent` was redeployed on each reconnection when `SHUTDOWN_HOOK` was enabled. Resolves: ZSTAC-65206 Change-Id: I646365206a6776667067706e7a6e667a796f686d
<fix>[kvm]: prevent kvmagent from redeploying on every reconnect See merge request zstackio/zstack-utility!5265
creating an image using the python RBD interface may be hung on zstone, so we try to use shell commands to create it as much as possible. Resolves: ZSTAC-68775 Change-Id: I6c6a6a7765686d647061676c6e736a6e616c7473
<fix>[cephdriver]: fix zstone create volume hung See merge request zstackio/zstack-utility!5282
add timeout for lvm command with locking to prevent the VG lock from being occupied due to other command blocking, like lvcreate/lvresize/lvremove.. If the lvm command with locking is hung, it will always occupy the lock and cannot be released. And in scenarios where storage IO is slow and lock contention occurs, it may take longer to execute, so we need to set a timeout that can tolerate this scenario. Resolves/Related: ZSTAC-66089 Change-Id: I99e06f687468706d74787267616279626962679c
Resolves: ZSTAC-70291 Change-Id: I6d6f6d637372636b6c6b74757a6f6879737a7676
update is_virtual_machine method, skip start ipmi_exporter in virtual environment Resolves: ZSTAC-68925 Change-Id: I7979626f626d6977636a6d6a6e6b6a7a74647070
Resolves: ZSTAC-70691 Change-Id: I7366626a76686d6575746d627471616867786e62
<fix>[vm_config]: support multiple huawei gpus See merge request zstackio/zstack-utility!5319
<fix>[prometheus]: skip ipmi_exporter in virtual env See merge request zstackio/zstack-utility!5322
Resolves: ZSTAC-70669 Change-Id: I6a79797173616d78756a6f69626677696b6f6770
<fix>[zstacklib]: support hbm memory See merge request zstackio/zstack-utility!5328
Repeat the collectdmon process Resolves: ZSTAC-56610 Change-Id: I696f7167636179787963636263626e737167786d2
<fix>[network]: enable igmp snooping when create bridge<description> See merge request zstackio/zstack-utility!5327
Resolves: ZSTAC-70670 Change-Id: I6a6d79686f6e6b6e666d7678717a75666d686266
Resolves: ZSTAC-70691 Change-Id: I6b6468746168787472706f6b636975736f73766e
<fix>[sblk]: add timeout for lvm command with locking See merge request zstackio/zstack-utility!5316
Resolves: ZSTAC-70691 Change-Id: I6168657170746d7066766a626c627a7578767778
<fix>[network]:fix ut error <description> See merge request zstackio/zstack-utility!5340
Resolves: ZSTAC-69855 Change-Id: I786979796e6f65786f6363676f737a6e6d6a6b65
Resolves: ZSTAC-69859 Change-Id: I667669726d736271686e627263626766696e6c76
Resolves: ZSTAC-69975 Change-Id: I65746c666e6375647561706e66736f65707a6562
Resolves: ZSTAC-69112 Change-Id: I71617072646265647564716b64706361736f7867
Resolves: ZSTAC-69016 Change-Id: I656f716469746a72646978716c6862756a647369
Resolves: ZSTAC-68894 Change-Id: I65797a6e71646f6e6c64737964796f7662646464
Resolves: ZSTAC-68429 Change-Id: I6d6c7875796a7867697770696d6d716f71746175
<fix>[host]: enable vfio if not loaded See merge request zstackio/zstack-utility!5332
<fix>[vm]: get actual install path for cbd protocol volume See merge request zstackio/zstack-utility!5338
<fix>[cephbackupstorage]: add py3 require rpm See merge request zstackio/zstack-utility!5822
Resolves: ZSTAC-73161 Change-Id: I6f716e626e716d7671706f7a7066726469706378
<fix>[sftpbackupstorage]: fix py3 install See merge request zstackio/zstack-utility!5828
Resolves: ZSTAC-73161 Change-Id: I716566636265647474696d61697661667073686f
<fix>[qga_zwatch]: fix qga out bytes See merge request zstackio/zstack-utility!5839
Resolves: ZSTAC-74975 Change-Id: I7175766371687777686f61747074656369796c73
<fix>[bmv2_gateway_agent]: fix bm start See merge request zstackio/zstack-utility!5846
1. b64encode param and return value have changed to bytes 2. b64decode return value has changed to bytes Resolves: ZSTAC-75160 Change-Id: I6a76617a68676a7576736a69777962656f686776
<fix>[zstackctl]: fix base64 py3 upgrade See merge request zstackio/zstack-utility!5863
1. python3 has already venv model 2. fix struct python3 Resolves: ZSTAC-75162 Change-Id: I707a7062777673757772706a62746e7764716875
<fix>[baremetalpxeserver]: use py3 install venv See merge request zstackio/zstack-utility!5865
Resolves: ZSTAC-75162 Change-Id: I6d67746b6a73696f66767a74726f69647862646c
<fix>[zstacklib]: make sure http post return str See merge request zstackio/zstack-utility!5866
Resolves: ZSTAC-75160 Change-Id: I66636e706b7876716275777561646e777a78796b
<fix>[zstacklib]: fix qga stdout decode See merge request zstackio/zstack-utility!5882
NamedTemporaryFile default mode is w+b cannot write str Resolves: ZSTAC-75445 Change-Id: I7165726f7a686e796b74696a6a79676971766d72
<fix>[kvm_v2v]: write str to tmp file See merge request zstackio/zstack-utility!5896
fix(zstacklib): enable deferred annotations for Python 3.7
…nstraints fix(packaging): add Kylin Python3 dependency constraints
…yment fix(ansible): support Kylin V10/V11 host deployment
…runtime fix(kvmagent): support Python 3.7 and Kylin runtime
fix: skip release RPM for Kylin V10 SP3 2403
Includes openEuler 23.09, Oracle Linux 9, Python3 virtualenv handling, package compatibility, and regression coverage.
fix: add Python3 multi-OS host onboarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This series makes
zstacklibandkvmagentrunnable on both Python 2.7 and Python 3.7+, and adds validated host onboarding support for modern RPM-based distributions:The goal is to allow hosts to be onboarded when the host only provides Python 3, while retaining compatibility with existing Python 2.7 environments.
Changes
Python 2/3 compatibility
pycompatcompatibility layer for removed/renamed Python 2 APIs.long,xrange,commands,urllib2,StringIO,ConfigParser,Queue,cmp,apply,reload,types, andimp.zstacklibandkvmagent.with_metaclass.str.map,filter, andzipconsumers and materialize iterators where repeated traversal is expected.Validation gates
tools/dual_parse_gate.pyto check local Python 3 parsing and remote Python 2.7 parsing.zstacklibandkvmagent.Host onboarding
oe2309andol9.python3-libvirtand Python 3 SELinux packages on supported modern hosts.python3 -m venv --system-site-packagesfor Python 3-only distributions instead of legacyvirtualenv.zstacklibpackage because its virtualenv remains Python 2-based.Test Results
Static and regression checks
Runtime validation
Validated kvmagent deployment and ZStack host connection on:
Hosts were able to register with ZStack and report
Connected.Compatibility
Scope
masterpy3-dualmode-phase-a