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

Bug 1629857

Summary: [UPGRADES][14] Error message: 'Client' object has no attribute 'workflow_engine'
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: python-tripleoclientAssignee: Jiri Stransky <jstransk>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: apevec, augol, ccamacho, hbrock, jschluet, jslagle, lhh, mbracho, mburns, sgolovat, srevivo
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-10.5.1-0.20180906012845.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:11 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 Yurii Prokulevych 2018-09-17 14:02:36 UTC
Description of problem:
-----------------------
After running `openstack overcloud upgrade prepare' finished, next message is displayed:
...
2018-09-17 13:48:29Z [QE-Cloud-0]: UPDATE_COMPLETE  Stack UPDATE completed successfully

 Stack QE-Cloud-0/a617c653-4cb6-4e4f-9213-dac3cb002e41 UPDATE_COMPLETE 

2018-09-17 09:48:45.964 2072 WARNING tripleoclient.plugin [-] Waiting for messages on queue 'tripleo' with no timeout.
Success
2018-09-17 09:49:47.139 2072 ERROR openstack [-] 'Client' object has no attribute 'workflow_engine'
2018-09-17 09:49:47.142 2072 INFO osc_lib.shell [-] END return value: 1

Though return code is 0.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
python2-openstackclient-3.16.0-0.20180809175603.f77ca68.el7ost.noarch


Steps to Reproduce:
-------------------
1. Upgrade UC to RHOS-14(2018-09-06.1)
2. Run oc upgrade prepare command:
    openstack overcloud upgrade prepare --stack overcloud \
      --templates /usr/share/openstack-tripleo-heat-templates \
      --stack QE-Cloud-0 \
      -e /home/stack/virt/internal.yaml \
      -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
      -e /home/stack/virt/network/network-environment.yaml \
      -e /home/stack/virt/enable-tls.yaml \
      -e /home/stack/virt/inject-trust-anchor.yaml \
      -e /home/stack/virt/public_vip.yaml \
      -e /usr/share/openstack-tripleo-heat-templates/environments/ssl/tls-endpoints-public-ip.yaml \
      -e /home/stack/virt/hostnames.yml \
      -e /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml \
      -e /home/stack/virt/debug.yaml \
      -e /home/stack/virt/nodes_data.yaml \
      -e /home/stack/virt/docker-images.yaml


Actual results:
---------------
Upgrade prepare command succeeds but message with log level ERROR is displayed after

Expected results:
-----------------
Error message is printed when error occurs.

Comment 1 Jiri Stransky 2018-10-03 15:52:21 UTC
This is a bug in an earlier CLI patch, unrelated to upgrades framework. I managed to reproduce it, fix incoming.

Comment 2 Jiri Stransky 2018-10-03 15:54:37 UTC
I'll bump the severity one notch to 'medium' because overcloudrc isn't getting refreshed because of this bug.

Comment 3 Yurii Prokulevych 2018-10-04 12:44:05 UTC
Manually applied patch:
...
2018-10-04 12:41:36Z [overcloud]: UPDATE_COMPLETE  Stack UPDATE completed successfully

 Stack overcloud/f5ec2886-840c-427a-a139-3c5dac2528dd UPDATE_COMPLETE 

2018-10-04 08:41:50.496 679838 WARNING tripleoclient.plugin [-] Waiting for messages on queue 'tripleo' with no timeout.
Success
2018-10-04 08:43:05.758 679838 WARNING tripleoclient.plugin [-] Waiting for messages on queue 'tripleo' with no timeout.
2018-10-04 08:43:06.945 679838 INFO tripleoclient.v1.overcloud_upgrade.MajorUpgradePrepare [-] Completed Overcloud Upgrade Prepare for stack overcloud
2018-10-04 08:43:06.950 679838 INFO osc_lib.shell [-] END return value: None
(undercloud) [stack@undercloud-0 ~ (undercloud-14-US)]$

Comment 10 errata-xmlrpc 2019-01-11 11:53:11 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/RHEA-2019:0045