Bug 1858627

Summary: [OSP13] Could not find or access '/usr/share/openstack-tripleo-heat-templates/docker/services/derive_pci_passthrough_whitelist.py' on the Ansible Controller
Product: Red Hat OpenStack Reporter: Vadim Khitrin <vkhitrin>
Component: openstack-tripleo-heat-templatesAssignee: Karthik Sundaravel <ksundara>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: urgent Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: ahyder, ealcaniz, fiezzi, hakhande, ksundara, mburns, mgarciac, oblaut, supadhya
Target Milestone: z13Keywords: AutomationBlocker, Regression, Triaged, UserExperience, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.4.1-66.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-28 18:24:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vadim Khitrin 2020-07-19 16:42:48 UTC
Description of problem:
When attempting to deploy an SR-IOV capable deployment, deployment fails due to failing to execute derive PCI passthrough script.
The following error is raised:
2020-07-19 09:39:51Z [overcloud.AllNodesDeploySteps.ComputeOvsDpdkSriovHostPrepDeployment]: CREATE_FAILED  Resource CREATE failed: Error: resources[1]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2

 Stack overcloud CREATE_FAILED 

overcloud.AllNodesDeploySteps.ComputeOvsDpdkSriovHostPrepDeployment.1:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: 95f17aa0-8925-471e-8a26-f6297de63ba1
  status: CREATE_FAILED
  status_reason: |
    Error: resources[1]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    changed: [localhost]
    
    TASK [derive pci passthrough whitelist] ****************************************
    An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
    fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/usr/share/openstack-tripleo-heat-templates/docker/services/derive_pci_passthrough_whitelist.py' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/69b653b5-367c-4091-9316-9b359b32782f_playbook.retry
    
    PLAY RECAP *********************************************************************
    localhost                  : ok=16   changed=12   unreachable=0    failed=1   
    
    (truncated, view all with --long)
  deploy_stderr: |

overcloud.AllNodesDeploySteps.ComputeOvsDpdkSriovHostPrepDeployment.0:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: d9edc036-cfd5-44f4-925c-c6b2effe9025
  status: CREATE_FAILED
  status_reason: |
    Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    changed: [localhost]
    
    TASK [derive pci passthrough whitelist] ****************************************
    An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
    fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/usr/share/openstack-tripleo-heat-templates/docker/services/derive_pci_passthrough_whitelist.py' on the Ansible Controller.\nIf you are using a module and expect thHeat Stack create failed.
Heat Stack create failed.
e file to exist on the remote, see the remote_src option"}
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/c3e9bed2-2ddb-4b35-8645-1a1353d6e685_playbook.retry
    
    PLAY RECAP *********************************************************************
    localhost                  : ok=16   changed=12   unreachable=0    failed=1


Version-Release number of selected component (if applicable):
Puddle: 2020-07-14.1
openstack-tripleo-common-containers-8.7.1-20.el7ost.noarch
ansible-tripleo-ipsec-8.1.1-0.20190513184007.7eb892c.el7ost.noarch
openstack-tripleo-heat-templates-8.4.1-62.el7ost.noarch
openstack-tripleo-common-8.7.1-20.el7ost.noarch
openstack-tripleo-ui-8.3.2-3.el7ost.noarch
openstack-tripleo-puppet-elements-8.1.1-2.el7ost.noarch
python-tripleoclient-9.3.1-7.el7ost.noarch
openstack-tripleo-validations-8.5.0-4.el7ost.noarch
puppet-tripleo-8.5.1-14.el7ost.noarch
openstack-tripleo-image-elements-8.0.3-1.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Deploy SR-IOV capable deployment

Actual results:
Deployment fails.

Expected results:
Deployment succeeds.

Additional info:

Comment 30 errata-xmlrpc 2020-10-28 18:24:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 13.0 director bug fix advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4388