The vdsm version in libvirt/qemu config file is not updated after vdsm-4.14 is installed and configured.
1. install vdsm-4.14.* version package on host, such as the following:
# rpm -qa|grep vdsm
2. force configure all the modules
# vdsm-tool configure --force
3. then check the libvirt related files
## beginning of configuration section by vdsm-4.14.0
## end of configuration section by vdsm-4.14.0
## beginning of configuration section by vdsm-4.13.0
## end of configuration section by vdsm-4.13.0
this issue can be reproduced with rhel7 version: vdsm-4.14.7-1.5.el7ev.x86_64.rpm
Its about updating the following part:
def _removeSection(self, path):
remove entire 'configuration section by vdsm' section.
section is removed regardless of it's version.
with self._openConfig(path) as conff:
# version != PACKAGE_VERSION since we do not want to update configuration
# on every update. see 'configuration versioning:' at Configfile.py for
CONF_VERSION = '4.16.0' <---
PKI_DIR = os.path.join(SYSCONF_PATH, 'pki/vdsm')
CA_FILE = os.path.join(PKI_DIR, 'certs/cacert.pem')
CERT_FILE = os.path.join(PKI_DIR, 'certs/vdsmcert.pem')
you should use here @PACKAGE_VERSION@ as in dsaversion.py.in
oh so sorry, my mistake.
its NOTABUG, the CONF_VERSION should not be same as vdsm version.
the CONF_VESION is bumped up ONLY when the default configuration that vdsm put for its related services is changed. since 4.13.0 vdsm didn't manage any changes in defaults. That's the reason for it appears with older version in the conf files.
its even written in the comment bellow and i missed that :)