Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2119584

Summary: openstack stack update fails on host with HW-Offload VM during os-net-config
Product: Red Hat OpenStack Reporter: Florin Boboc <fboboc>
Component: os-net-configAssignee: Karthik Sundaravel <ksundara>
Status: CLOSED ERRATA QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: bfournie, cfontain, eprado, hakhande, hbrock, jmarti, jpalanis, jslagle, ksundara, mburns
Target Milestone: zstreamKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: os-net-config-11.5.1-2.20230728005156.8a89b94.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 19:18:30 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 Florin Boboc 2022-08-18 20:29:40 UTC
Description of problem:
 The client is running a stack update on a OSP 16.2.3 VIM having in templates: "NetworkDeploymentActions: ['CREATE','UPDATE']"

 In task: TASK [tripleo-network-config : Disable cloud-init network config]

 ERROR: os-net-config configuration it's falling as it's trying to use a VF that it's used by a instance / vm

Version-Release number of selected component (if applicable): 
  Distro:   [redhat-release] Red Hat Enterprise Linux release 8.4 (Ootpa)
            [rhosp-release] Red Hat OpenStack Platform release 16.2.3 (Train)
            [os-release] Red Hat Enterprise Linux 8.4 (Ootpa) 8.4 (Ootpa)

Actual results: 
        ...
        "[2022/08/18 12:42:08 PM] [INFO] Unbinding 0000:d8:04.1",
        "OSError: [Errno 19] No such device",
        "",
        "During handling of the above exception, another exception occurred:",
        "",
        "Traceback (most recent call last):",
        "  File \"/bin/os-net-config\", line 10, in <module>",
        "    sys.exit(main())",
        "  File \"/usr/lib/python3.6/site-packages/os_net_config/cli.py\", line 331, in main",
        "    restart_openvswitch=restart_ovs)",
        "  File \"/usr/lib/python3.6/site-packages/os_net_config/utils.py\", line 618, in configure_sriov_pfs",
        "    restart_openvswitch=restart_openvswitch)",
        "  File \"/usr/lib/python3.6/site-packages/os_net_config/sriov_config.py\", line 302, in configure_sriov_pf",
        "    f.write(vf_pci)",
        "OSError: [Errno 19] No such device",
        "+ RETVAL=1",
        "+ set -e",
        "+ [[ 1 == 2 ]]",
        "+ [[ 1 != 0 ]]",
        "+ echo 'ERROR: os-net-config configuration failed.'",
        "ERROR: os-net-config configuration failed.",
        ...

Expected results: Client expects not to use the VF of instance and stack update to be successful

Additional info:
[Logs]
  - sosreport from undercloud: 0020-sosreport-tpa-vim-puc-03293078-2022-08-18-iirfjux.tar.xz
  - ansible log attached to the case: 0030-overcloud_deploy-22-08-18-08.log
  - Templates are attached to the case: 0040-hqp2.5templates.tgz
[Workaround]
  - Client changed in his template (home/stack/local-environments/overcloud-environment.yaml)  and stack update worked as network creation was performed.
     FROM: NetworkDeploymentActions: ['CREATE','UPDATE']
       TO: NetworkDeploymentActions: ['CREATE']

"NetworkDeploymentActions: ['CREATE']"

Comment 13 errata-xmlrpc 2023-11-08 19:18:30 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 16.2.6 (Train) bug fix and enhancement 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-2023:6307