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

Bug 1595114

Summary: [Update] Controller replacement with ODL fails
Product: Red Hat OpenStack Reporter: Tomas Jamrisko <tjamrisk>
Component: openstack-tripleo-heat-templatesAssignee: Janki <jchhatba>
Status: CLOSED ERRATA QA Contact: Tomas Jamrisko <tjamrisk>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: aadam, jchhatba, jschluet, mariel, mburns, mkolesni, mpeterso, tjamrisk
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Update
Fixed In Version: openstack-tripleo-heat-templates-8.0.7-21.el7ost Doc Type: Bug Fix
Doc Text:
OpenDaylight (ODL) configuration files were not recreated during Controller replacement, which caused updates to fail. This fix unmounts /opt/opendaylight/data from the host, which causes the configuration files to be recreated during redeployment.
Story Points: ---
Clone Of:
: 1652440 (view as bug list) Environment:
Last Closed: 2019-01-16 17:55:03 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:
Bug Depends On:    
Bug Blocks: 1652440    
Attachments:
Description Flags
Evidence of the verification and guide to reproduce it none

Description Tomas Jamrisko 2018-06-26 07:44:30 UTC
Description of problem:
Replacing a controller following the documentation: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/director_installation_and_usage/sect-scaling_the_overcloud#sect-Replacing_Controller_Nodes

results in a failure:

 Stack overcloud UPDATE_FAILED 

overcloud.AllNodesDeploySteps.ComputeDeployment_Step4.1:
  resource_type: OS::Heat::StructuredDeployment
  physical_resource_id: 6b430a88-2f6b-4f8b-bfb6-7da3b40ece22
  status: UPDATE_FAILED
  status_reason: |
    Error: resources[1]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
            "Error: curl -k -o /dev/null --fail --silent --head -u odladmin:redhat http://172.17.1.18:8081/restconf/operational/network-topology:network-topology/topology/netvirt:1 returned 22 instead of one of [0]", 
            "Error: /Stage[main]/Neutron::Plugins::Ovs::Opendaylight/Exec[Wait for NetVirt OVSDB to come up]/returns: change from notrun to 0 failed: curl -k -o /dev/null --fail --silent --head -u odladmin:redhat http://172.17.1.18:8081/restconf/operational/network-topology:network-topology/topology/netvirt:1 returned 22 instead of one of [0]", 
            "Warning: /Stage[main]/Neutron::Plugins::Ovs::Opendaylight/Exec[Set OVS Manager to OpenDaylight]: Skipping because of failed dependencies"
        ]
    }
    	to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/1561c766-d74b-46e7-9ea9-7f1391a31911_playbook.retry
    
    PLAY RECAP *********************************************************************
    localhost                  : ok=4    changed=1    unreachable=0    failed=1


The error happens during the last step, after manually editing the cluster configuration and running overcloud deploy for the final time 

Version-Release number of selected component (if applicable):

openstack-tripleo-heat-templates-8.0.2-36.el7ost.noarch

How reproducible:
100 %

Comment 3 Janki 2018-10-23 11:20:02 UTC
The root cause seems to be similar to https://bugzilla.redhat.com/show_bug.cgi?id=1623123. Need karaf logs to confirm. Meanwhile, Tomas please try controller replacement again with this patch https://review.openstack.org/#/c/612663/. And if it fails this time, please share karaf logs.

What you need to do:
1. Delete the deployed stack
2. Apply this patch
3. Deploy the stack
4. Do container replacement procedure

Comment 19 Michel Peterson 2018-12-12 18:48:07 UTC
Created attachment 1513756 [details]
Evidence of the verification and guide to reproduce it

I've verified that this bug is fixed by applying the following two patches, which are included in the RPM stated in the 'fixed in' field:  

  - https://review.openstack.org/612663
  - https://review.openstack.org/620053


The complete evidence of the verification of this patch is attached here. This document also serves as a guide to reproduce the steps to replace a controller.

Next steps are for QE to verify.

Comment 26 Tomas Jamrisko 2018-12-18 09:15:41 UTC
Tested with Janki's patches. Controller replacement passed.

Comment 29 errata-xmlrpc 2019-01-16 17:55:03 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-2019:0068