we shouldn't ignore facter cache generation failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Alex Schultz |
Bug Description
If the host's facter pre-cache step fails, the container-puppet executions will fail with some other error around facts. If we want to skip the cache, then we need to not mount the folder as read-only as that has other effects.
An example would be:
+ mkdir -p /etc/puppet
+ cp -a /tmp/puppet-
+ rm -Rf /etc/puppet/ssl
+ echo '{"step": 6}'
+ TAGS=
+ '[' -n file,file_
+ TAGS='--tags file,file_
+ origin_
+ touch /var/lib/
+ sync
+ set +e
+ export FACTER_
+ FACTER_
++ cat /sys/class/
++ tr '[:upper:]' '[:lower:]'
+ export FACTER_
+ FACTER_
+ FACTER_
+ /usr/bin/puppet apply --summarize --detailed-
Error: Facter: Facter.value uncaught exception: boost::
Error: Facter: Facter.value uncaught exception: boost::
Error: Could not autoload puppet/
Error: Could not autoload puppet/
Error: Facter: error while resolving custom facts in /usr/share/
Error: Facter: Facter.add uncaught exception: boost::
Error: Facter: Facter.value uncaught exception: boost::
Error: Could not autoload puppet/
Error: Could not autoload puppet/
Error: Facter: error while resolving custom facts in /usr/share/
Error: Facter: Facter.fact uncaught exception: boost::
Error: Facter: Facter.value uncaught exception: boost::
Error: Facter: Facter.value uncaught exception: boost::
Error: Facter: error while resolving custom fact "java_version": undefined method `downcase' for nil:NilClass
Warning: Found multiple default providers for package: norpm, yum, pip3; using norpm
Warning: Could not retrieve fact fqdn
Warning: Could not retrieve fact ipaddress
Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/
Warning: Undefined variable 'deploy_
(file & line not available)
Warning: Undefined variable 'osfamily';
(file & line not available)
Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/
Warning: Unknown variable: '::hostname'. at /etc/puppet/
Warning: ModuleLoader: module 'neutron' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
(file & line not available)
Warning: Unknown variable: '::puppetversion'. at /etc/puppet/
Warning: ModuleLoader: module 'openstacklib' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
(file & line not available)
Error: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef at /etc/puppet/
+ rc=1
+ set -e
+ '[' 1 -ne 2 -a 1 -ne 0 ']'
+ exit 1
In this case, this was caused by the host having facter2 which didn't support providing a facter.conf, but the containers did so the pre-cache fails and the attempt to generate cache in the container fails due to not being able to create the folders.
Changed in tripleo: | |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
status: | Triaged → In Progress |
Changed in tripleo: | |
status: | In Progress → Triaged |
assignee: | Bogdan Dobrelya (bogdando) → nobody |
Changed in tripleo: | |
milestone: | ussuri-2 → ussuri-3 |
Changed in tripleo: | |
milestone: | ussuri-3 → ussuri-rc3 |
Change abandoned by Bogdan Dobrelya (bogdando) (<email address hidden>) on branch: master /review. opendev. org/705954
Review: https:/