Bug 1582332

Summary: OSP9 -> OSP10: compute upgrade fails with /root/tripleo_upgrade_node.sh: line 69: change_ovs_2_9_user: command not found
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10.0 (Newton)CC: ccamacho, dbecker, mbracho, mburns, morazi, sclewis, yprokule
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-5.3.10-7.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 23:30:45 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:
Attachments:
Description Flags
tripleo_upgrade_node.sh none

Description Marius Cornea 2018-05-24 23:04:55 UTC
Description of problem:
OSP9 -> OSP10: compute upgrade fails with /root/tripleo_upgrade_node.sh: line 69: change_ovs_2_9_user: command not found:

[stack@undercloud-0 ~]$ upgrade-non-controller.sh --upgrade  e5cdd78e-bb0e-40b1-84dd-68a787a69ec0



Thu May 24 18:57:46 EDT 2018 upgrade-non-controller.sh nova node e5cdd78e-bb0e-40b1-84dd-68a787a69ec0 found with status ACTIVE
Thu May 24 18:57:47 EDT 2018 upgrade-non-controller.sh checking for upgrade script /root/tripleo_upgrade_node.sh on node e5cdd78e-bb0e-40b1-84dd-68a787a69ec0 (192.168.24.10)
Thu May 24 18:57:48 EDT 2018 upgrade-non-controller.sh upgrade script /root/tripleo_upgrade_node.sh found on node e5cdd78e-bb0e-40b1-84dd-68a787a69ec0 (192.168.24.10)
Thu May 24 18:57:49 EDT 2018 upgrade-non-controller.sh Executing /root/tripleo_upgrade_node.sh on 192.168.24.10
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Thu May 24 22:58:01 UTC 2018 yum update os-net-config return code: 0
[2018/05/24 10:58:01 PM] [INFO] Using config file at: /etc/os-net-config/config.json
[2018/05/24 10:58:01 PM] [INFO] Using mapping file at: /etc/os-net-config/mapping.yaml
[2018/05/24 10:58:01 PM] [INFO] Ifcfg net config provider created.
[2018/05/24 10:58:01 PM] [INFO] nic3 mapped to: eth2
[2018/05/24 10:58:01 PM] [INFO] nic2 mapped to: eth1
[2018/05/24 10:58:01 PM] [INFO] nic1 mapped to: eth0
[2018/05/24 10:58:01 PM] [INFO] adding interface: eth0
[2018/05/24 10:58:01 PM] [INFO] adding custom route for interface: eth0
[2018/05/24 10:58:01 PM] [INFO] adding bridge: br-isolated
[2018/05/24 10:58:01 PM] [INFO] adding interface: eth1
[2018/05/24 10:58:01 PM] [INFO] adding vlan: vlan20
[2018/05/24 10:58:01 PM] [INFO] adding vlan: vlan30
[2018/05/24 10:58:01 PM] [INFO] adding vlan: vlan50
[2018/05/24 10:58:01 PM] [INFO] adding interface: eth2
[2018/05/24 10:58:01 PM] [INFO] applying network configs...
[2018/05/24 10:58:01 PM] [INFO] No changes required for interface: eth2
[2018/05/24 10:58:01 PM] [INFO] No changes required for interface: eth1
[2018/05/24 10:58:01 PM] [INFO] No changes required for interface: eth0
[2018/05/24 10:58:01 PM] [INFO] No changes required for vlan interface: vlan20
[2018/05/24 10:58:01 PM] [INFO] No changes required for vlan interface: vlan30
[2018/05/24 10:58:01 PM] [INFO] No changes required for vlan interface: vlan50
[2018/05/24 10:58:01 PM] [INFO] Writing config /etc/sysconfig/network-scripts/route-br-isolated
[2018/05/24 10:58:01 PM] [INFO] Writing config /etc/sysconfig/network-scripts/ifcfg-br-isolated
[2018/05/24 10:58:01 PM] [INFO] Writing config /etc/sysconfig/network-scripts/route6-br-isolated
Thu May 24 22:58:01 UTC 2018 os-net-config: interface configuration files updated successfully
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Metadata Cache Created
        systemctl try-restart openvswitch.service >/dev/null 2>&1 || : 
Manual upgrade of openvswitch - ovs-2.5.0-14 or restart in postun detected
/home/heat-admin/OVS_UPGRADE /home/heat-admin
Attempting to downloading latest openvswitch with yumdownloader
Loaded plugins: product-id, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
--> Running transaction check
---> Package openvswitch.x86_64 0:2.9.0-19.el7fdp will be installed
--> Finished Dependency Resolution
Updating openvswitch-2.9.0-19.el7fdp.x86_64.rpm with --nopostun --notriggerun
/home/heat-admin
/root/tripleo_upgrade_node.sh: line 69: change_ovs_2_9_user: command not found
[stack@undercloud-0 ~]$ 


Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-5.3.10-6.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Upgrade OSP9 to latest OSP10

Actual results:
Upgrade fails while upgrading compute node.

Expected results:
Upgrade completes fine.

Additional info:
Attaching tripleo_upgrade_node.sh script.

Comment 1 Marius Cornea 2018-05-24 23:07:27 UTC
Created attachment 1441301 [details]
tripleo_upgrade_node.sh

Comment 2 Carlos Camacho 2018-05-28 14:02:59 UTC
This might be a missing backport downstream. Assigned during the triage call, please feel free to un-assign it back.

Comment 3 Lukas Bezdicka 2018-05-28 14:12:13 UTC
extraconfig/tasks/major_upgrade_compute.sh and others missing declare for necessary functions

Comment 4 Carlos Camacho 2018-06-06 06:15:28 UTC
Fix packaged

Comment 9 errata-xmlrpc 2018-06-27 23:30:45 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, 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-2018:2101