To reproduce
Install or update the system
clone vyos-1x repo and build .deb package.
Install deb package
vyos@r14# ls vyos-1x_1.4dev0-4593-g93724b59_amd64.deb [edit] vyos@r14# sudo dpkg -i *.deb && rm *.deb (Reading database ... 72861 files and directories currently installed.) Preparing to unpack vyos-1x_1.4dev0-4593-g93724b59_amd64.deb ... Leaving 'diversion of /etc/securetty to /etc/securetty.distrib by vyos-1x' Leaving 'diversion of /etc/security/capability.conf to /etc/security/capability.conf.distrib by vyos-1x' Leaving 'diversion of /lib/systemd/system/lcdproc.service to /lib/systemd/system/lcdproc.service.distrib by vyos-1x' Leaving 'diversion of /etc/logrotate.d/conntrackd to /etc/logrotate.d/conntrackd.distrib by vyos-1x' Leaving 'diversion of /usr/share/pam-configs/radius to /usr/share/pam-configs/radius.distrib by vyos-1x' Leaving 'diversion of /usr/share/pam-configs/tacplus to /usr/share/pam-configs/tacplus.distrib by vyos-1x' Leaving 'diversion of /etc/rsyslog.conf to /etc/rsyslog.conf.distrib by vyos-1x' Leaving 'diversion of /etc/skel/.bashrc to /etc/skel/.bashrc.distrib by vyos-1x' Leaving 'diversion of /etc/skel/.profile to /etc/skel/.profile.distrib by vyos-1x' Unpacking vyos-1x (1.4dev0-4593-g93724b59) over (1.4dev0-4589-g6a2ddc478) ... Setting up vyos-1x (1.4dev0-4593-g93724b59) ... Unit /lib/systemd/system/vyos-config-cloud-init.service is added as a dependency to a non-existent unit cloud-init-local.service. [edit] vyos@r14#
Change any config option:
vyos@r14# commit Traceback (most recent call last): File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 25, in load_reference from vyos.xml_ref.cache import reference ModuleNotFoundError: No module named 'vyos.xml_ref.cache' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/etc/commit/post-hooks.d/01vyos-commit-revision", line 33, in <module> sys.exit(load_entry_point('vyos==1.3.0', 'console_scripts', 'config-mgmt')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 633, in run config_mgmt = ConfigMgmt() ^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 111, in __init__ d = config.get_config_dict(['system', 'config-management'], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config.py", line 250, in get_config_dict conf_dict = multi_to_list(rpath, conf_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 55, in multi_to_list return load_reference().multi_to_list(rpath, conf) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 29, in load_reference raise ImportError('no xml reference cache !!') ImportError: no xml reference cache !! run-parts: /etc/commit/post-hooks.d/01vyos-commit-revision exited with return code 1 [edit] vyos@r14# [edit] vyos@r14# sudo systemctl restart vyos-configd [edit] vyos@r14# [edit] vyos@r14# commit No configuration changes to commit [edit] vyos@r14# compare Traceback (most recent call last): File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 25, in load_reference from vyos.xml_ref.cache import reference ModuleNotFoundError: No module named 'vyos.xml_ref.cache' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/config-mgmt", line 33, in <module> sys.exit(load_entry_point('vyos==1.3.0', 'console_scripts', 'config-mgmt')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 633, in run config_mgmt = ConfigMgmt() ^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 111, in __init__ d = config.get_config_dict(['system', 'config-management'], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config.py", line 250, in get_config_dict conf_dict = multi_to_list(rpath, conf_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 55, in multi_to_list return load_reference().multi_to_list(rpath, conf) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/xml_ref/__init__.py", line 29, in load_reference raise ImportError('no xml reference cache !!') ImportError: no xml reference cache !! [edit] vyos@r14#