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

Bug 1559191

Summary: Corner case still seems to be possible of: Heat tries to detach port from compute nodes nobody touched in heat templates
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: openstack-heatAssignee: Zane Bitter <zbitter>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Ronnie Rasouli <rrasouli>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10.0 (Newton)CC: anande, aschultz, athomas, augol, dbecker, hjensas, jjoyce, lruzicka, mburns, morazi, pmannidi, ramishra, rcernin, rhel-osp-director-maint, rrasouli, sbaker, shardy, srevivo, therve, zbitter
Target Milestone: z6   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1488211 Environment:
Last Closed: 2018-04-23 22:10:35 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 Andreas Karis 2018-03-21 23:51:37 UTC
Hi,

Related to 
* https://bugzilla.redhat.com/show_bug.cgi?id=1488211 
* https://bugzilla.redhat.com/show_bug.cgi?id=1487849

I think we hit this issue again, although the current RPMs are newer than openstack-heat-7.0.5-3.el7ost

This time, a simple restart of all heat services fixed the problem, though.

- Andreas

Comment 2 Andreas Karis 2018-03-21 23:52:39 UTC
There was this bug for osp 9: https://bugzilla.redhat.com/show_bug.cgi?id=1385190
and this for 7: https://access.redhat.com/solutions/3107531
and this for 10: https://bugzilla.redhat.com/show_bug.cgi?id=1488211

~~~
openstack stack failures list overcloud --long
(...)
loud.ComputeDell6152.0.ComputeDell6152:
  resource_type: OS::TripleO::Server
  physical_resource_id: 5c331702-03a8-4ecc-b96e-7a3200660200
  status: UPDATE_FAILED
  status_reason: |
    InterfaceDetachFailed: resources.ComputeDell6152: Failed to detach interface (f06c7b4a-8aa0-4ab7-afd5-b57bd7910736) from server (5c331702-03a8-4ecc-b96e-7a3200660200)
overcloud.Controller.1.Controller:
  resource_type: OS::TripleO::Server
  physical_resource_id: 04e9466b-aaaf-4991-8c64-f559a113d12b
  status: UPDATE_FAILED
  status_reason: |
    InterfaceDetachFailed: resources.Controller: Failed to detach interface (e8afce9a-5053-4e57-a008-4e7d0616aa98) from server (04e9466b-aaaf-4991-8c64-f559a113d12b)
overcloud.Controller.0.Controller:
  resource_type: OS::TripleO::Server
  physical_resource_id: e9d0e270-8ef1-4109-80bf-fd0c36d3c194
  status: UPDATE_FAILED
  status_reason: |
    InterfaceDetachFailed: resources.Controller: Failed to detach interface (c4cf0ea1-2e3b-4da8-9654-356693d2ca4e) from server (e9d0e270-8ef1-4109-80bf-fd0c36d3c194)
overcloud.Controller.2.Controller:
  resource_type: OS::TripleO::Server
  physical_resource_id: a527ad47-e70b-4828-bbbc-2a0db57d272a
  status: UPDATE_FAILED
  status_reason: |
    InterfaceDetachFailed: resources.Controller: Failed to detach interface (c9713a6b-8859-4097-989c-83dc2e72666d) from server (a527ad47-e70b-4828-bbbc-2a0db57d272a)
overcloud.ComputeHP.1.UpdateConfig:
(...)
~~~

I hence checked the openstack-heat version, which was o.k.:
~~~
[stack@director706 ~]$ rpm -qa | grep heat
openstack-tripleo-heat-templates-5.3.3-1.el7ost.noarch
puppet-heat-9.5.0-2.el7ost.noarch
openstack-heat-api-cfn-7.0.6-1.el7ost.noarch
python-heat-agent-0-0.14.1e6015dgit.el7ost.noarch
python-heatclient-1.5.2-1.el7ost.noarch
openstack-heat-api-7.0.6-1.el7ost.noarch
heat-cfntools-1.3.0-2.el7ost.noarch
openstack-heat-common-7.0.6-1.el7ost.noarch
openstack-heat-templates-0-0.14.1e6015dgit.el7ost.noarch
openstack-heat-engine-7.0.6-1.el7ost.noarch
[stack@director706 ~]$ 
~~~

~~~
[stack@director706 ~]$  rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | grep heat
1512151813 (Fri 01 Dec 2017 01:10:13 PM EST) openstack-tripleo-heat-templates
1521613232 (Wed 21 Mar 2018 02:20:32 AM EDT) puppet-heat
1512152133 (Fri 01 Dec 2017 01:15:33 PM EST) openstack-heat-api-cfn
1512113281 (Fri 01 Dec 2017 02:28:01 AM EST) python-heat-agent
1510779591 (Wed 15 Nov 2017 03:59:51 PM EST) python-heatclient
1512152136 (Fri 01 Dec 2017 01:15:36 PM EST) openstack-heat-api
1510772142 (Wed 15 Nov 2017 01:55:42 PM EST) heat-cfntools
1512152129 (Fri 01 Dec 2017 01:15:29 PM EST) openstack-heat-common
1512151811 (Fri 01 Dec 2017 01:10:11 PM EST) openstack-heat-templates
1512152129 (Fri 01 Dec 2017 01:15:29 PM EST) openstack-heat-engine
[stack@director706 ~]$ 
~~~

Comment 3 Andreas Karis 2018-03-21 23:53:50 UTC
My assumption was that openstack-heat* may not have been restarted since the RPMs were updated in December. Hence I restarted all heat services and this fixed the issue. However, I think that we can discard this theory based on system uptime:
~~~
[stack@director706 ~]$ uptime
 19:41:49 up 19:16,  5 users,  load average: 2.64, 2.34, 1.65
[stack@director706 ~]$ 
~~~

And now it goes through. Maybe the fix from https://bugzilla.redhat.com/show_bug.cgi?id=1488211  in openstack-heat-7.0.5-3.el7ost doesn't protect us in all cases from this. It however seems that restarting all heat services fixed the issue.

Comment 7 Andreas Karis 2018-04-23 22:09:42 UTC
Hi,

I haven't hear back from the customer in over 2 weeks, I am hence going to close this bugzilla. We can pick up analysis again with more data if the issue occurs again.

Regards,

Andreas