Wondering how to fix ‘Error: Function lookup() did not find a value for the name DEFAULT_EXEC_TIMEOUT’? We can help you.
Often our customers report to us that they get this error while trying to install OpenStack using packstack.
Packstack is a utility that uses Puppet modules to provide an easy way to deploy an OpenStack Platform environment on one or several machines. However, we may end up with the above error at times while using packstack. And this can be due to any issue with repositories we use.
Here at Bobcares, we handle requests from our customers to fix similar issues as a part of Server Management Services.
Today let’s see how our Support Engineers fix this issue for our customers.
When do we get Error: Function lookup() did not find a value for the name DEFAULT_EXEC_TIMEOUT
We may get this error while trying to install the latest version of OpenStack using packstack.
Using the following commands we can reproduce the error:
sudo dnf install network-scripts -y
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo systemctl disable NetworkManager
sudo systemctl stop NetworkManager
sudo systemctl enable network
sudo systemctl start network
sudo dnf update -y
sudo dnf config-manager --enable PowerTools
sudo dnf install -y centos-release-openstack-ussuri
sudo dnf update -y
sudo dnf install -y openstack-packstack
sudo packstack --allinone
Following is the actual result we may get:
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
10.20.253.31_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 10.20.253.31_controller.pp
Error: Function lookup() did not find a value for the name 'DEFAULT_EXEC_TIMEOUT'
What Causes this error
The epel repo being enabled causes this error usually. At times the version of puppet in ussuri repo will be 6.14.0. but the installation may have 6.17.0.
We can check the version using the following command depending upon the operating system we use.
[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[[email protected] ~]# arch
[[email protected] ~]# puppet --version
[[email protected] ~]# hiera --version
Furthermore, installing packages from any unsupported repo can be a reason for this.
Next, we will see the steps that our Support Techs follow to fix this issue for our customers.
How to fix this error
Firstly we need to ensure that epel repo is disabled and try to install Openstack again.
So we need to uninstall it and all the dependencies first and reinstall it after disabling epel.
This can be done with the following commands:
# yum autoremove epel-release
# yum autoremove openstack-packstack
# yum clean all
# yum install -y openstack-packstack
Once we do this we will have all the proper versions of dependencies. As a result, we will not get the above error while trying to install OpenStack with packstack.
[Need assistance? We can help you]
In short, we saw how our Support Techs fix this issue found while installing OpenStack with packstack.