OSP13 z9 stack update fails on puppetlabs/facter.conf being written as a directory instead of file

Solution In Progress - Updated -

Issue

  • After performing the minor upgrade steps, we ran our normal overcloud deploy script with no modifications to the templates and is now hitting an ansible error on the computes that is attempting to write to a file; however, it is actually a directory on the computes -- hence the can not use content with a dir as dest error message:
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: TASK [Create puppet caching structures] ****************************************
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: changed: [localhost]
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: TASK [Write facter cache config] ***********************************************
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: fatal: [localhost]: FAILED! => {"changed": false, "msg": "can not use content with a dir as dest"}
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/c7b92568-4302-43e6-8386-fe496da0e65f_playbook.retry
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: PLAY RECAP *********************************************************************
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: localhost                  : ok=27   changed=9    unreachable=0    failed=1
Nov 12 15:29:59 overcloud-compute-0 os-collect-config: [2019-11-12 15:29:59,149] (heat-config) [ERROR] Error running /var/lib/heat-config/heat-config-ansible/c7b92568-4302-43e6-8386-fe496da0e65
f_playbook.yaml. [2]
  • Ansible Task Being Run:
- name: Write facter cache config
  copy:
    dest: /var/lib/container-puppet/puppetlabs/facter.conf
    content: |
      facts : {
        ttls: [
          { "kernel" : 8 hour },
          { "memory" : 8 hour },
          { "networking" : 8 hour },
          { "operating system" : 8 hour },
          { "processor" : 8 hour },
         ]
       }
     setype: svirt_sandbox_file_t
     selevel: s0

Environment

  • Red Hat OpenStack Platform 13.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content