Skip to content

Commit

Permalink
CP-53444: For XenServer 9, remove python dnf plugins (#6326)
Browse files Browse the repository at this point in the history
DNF has been updated to dnf5 in XenServer 9 and no longer provides `dnf`
python module. We've rewritten the plugins using C++ for dnf5 and built
them as rpm packages

- No regression issue, XS8
-- 213226 (Dev Run) Repository update **pass** (XS8 uses yum, so no
impact)
- Fix some XS9 issue, but please note there're still other issues will
be addressed later.
-- 213325 (Dev Run) Repository update
  • Loading branch information
liulinC authored Feb 28, 2025
2 parents 90ef043 + aa71400 commit 4a9ef2a
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 308 deletions.
4 changes: 0 additions & 4 deletions python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ IPROG=../scripts/install.sh 755
IDATA=../scripts/install.sh 644

SITE3_DIR=$(shell python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
DNF_PLUGIN_DIR=dnf-plugins

install:
# Create destination directories using install -m 755 -d:
Expand All @@ -16,12 +15,9 @@ install:
install -m 755 -d $(DESTDIR)/etc/sysconfig
install -m 755 -d $(DESTDIR)/usr/lib/systemd/system
install -m 755 -d $(DESTDIR)$(EXTENSIONDIR)
install -m 755 -d $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)

$(IDATA) packages/inventory.py $(DESTDIR)$(SITE3_DIR)/
$(IDATA) packages/observer.py $(DESTDIR)$(SITE3_DIR)/
$(IDATA) dnf_plugins/accesstoken.py $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)/
$(IDATA) dnf_plugins/ptoken.py $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)/

$(IPROG) libexec/metrics.py $(DESTDIR)$(OPTDIR)/debug
$(IPROG) libexec/metricsgraph.py $(DESTDIR)$(OPTDIR)/debug
Expand Down
1 change: 0 additions & 1 deletion python3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ run by xapi and other daemons.
- packages: This contains files to be installed in python's site-packages and are meant
to be modules and packages to be imported by other scripts or executed via python3 -m
- plugins: This contains files that are meant to be xapi plugins
- dnf-plugins: This contains dnf-plugins and are meant to be called automatically by dnf
Empty file removed python3/dnf_plugins/__init__.py
Empty file.
46 changes: 0 additions & 46 deletions python3/dnf_plugins/accesstoken.py

This file was deleted.

32 changes: 0 additions & 32 deletions python3/dnf_plugins/ptoken.py

This file was deleted.

49 changes: 0 additions & 49 deletions python3/dnf_plugins/xapitoken.py

This file was deleted.

12 changes: 0 additions & 12 deletions python3/stubs/dnf.py

This file was deleted.

164 changes: 0 additions & 164 deletions python3/tests/test_dnf_plugins.py

This file was deleted.

0 comments on commit 4a9ef2a

Please sign in to comment.