Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1117949 - Scalable app will keep using the customized haproxy_ctld.rb even the action hook has been removed from app git repo
Scalable app will keep using the customized haproxy_ctld.rb even the action h...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
2.1.0
Unspecified Unspecified
high Severity medium
: ---
: ---
Assigned To: Jason DeTiberus
libra bugs
: Upstream
Depends On: 1117769
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-09 12:59 EDT by Brenton Leanhardt
Modified: 2014-08-26 09:52 EDT (History)
10 users (show)

See Also:
Fixed In Version: openshift-origin-cartridge-haproxy-1.23.5.5-1.el6op
Doc Type: Bug Fix
Doc Text:
After adding a customized haproxy_ctld.rb file to a scalable application, the application continued to use the customized file for automatic scaling even after the file had been removed from the application's Git repository. This was due to a bug in the HAProxy cartridge. This bug fix updates the HAProxy cartridge control script to handle the removal of customized haproxy_ctld.rb files, and applications now return to using the default file for automatic scaling after a customized file has been removed. A cartridge upgrade is required after applying this fix.
Story Points: ---
Clone Of: 1117769
Environment:
Last Closed: 2014-08-26 09:52:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1095 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.1.5 bug fix and enhancement update 2014-08-26 13:51:34 EDT

  None (edit)
Description Brenton Leanhardt 2014-07-09 12:59:18 EDT
+++ This bug was initially created as a clone of Bug #1117769 +++

Description of problem:
Create scalable app and add the customized haproxy_ctld.rb to the app git repo and push to server. The app will use the customized haproxy_ctld.rb for auto scaling. But after user remove the file from .openshift/action_hook and push the change to server, the gear will keep using the customized haproxy_ctld.rb, restart app cannot fix the issue.

The process of the custom haproxy_ctld will not be killed in gear.

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

How reproducible:
always

Steps to Reproduce:
1. Create scalable app
2. Add a custom haproxy_ctld.rb to the .openshift/action_hooks and git push
3. Remove the custom haproxy_ctld.rb and push it again

Actual results:
The app will still using the custom haproxy_ctld.rb and the process still leaves there even restart the app.

Expected results:
Should use the default haproxy_ctld.rb when user removed the custom one.

Additional info:
Comment 1 Brenton Leanhardt 2014-08-01 09:24:57 EDT
Upstream commits:

commit b5d182d29ee9b0e1ab4fd8bdeb38a122da1ea957
Author: Ben Parees <bparees@redhat.com>
Date:   Wed Jul 9 11:21:40 2014 -0400

    Scalable app will keep using the customized haproxy_ctld.rb even the
    action hook has been removed from app git repo
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1117769

commit 9e48cb9fafb523b29d28fe6373b7fd327a8a4887
Author: Ben Parees <bparees@redhat.com>
Date:   Thu Jul 10 08:07:52 2014 -0400

    Wrong message when starting catridge haproxy_ctld.rb
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1117769
Comment 4 Gaoyun Pei 2014-08-04 02:32:12 EDT
verify this bug with openshift-origin-cartridge-haproxy-1.23.5.5-1.el6op.noarch

After removing custom haproxy_ctld.rb action_hook, the customized haproxy_ctld.rb process was gone. And the default haproxy_ctld.rb was running.

1. Create a scalable app
2. Add a custom haproxy_ctld.rb to the .openshift/action_hooks and git push
3. Remove the custom haproxy_ctld.rb and push it again

ssh into the app, check the running haproxy_ctld.rb process, it is 
"ruby /var/lib/openshift/<gear_uuid>/haproxy/usr/bin/haproxy_ctld.rb" ,
and there's no any other running haproxy_ctld.rb process like 
"ruby /var/lib/openshift/<gear_uuid>/app-root/runtime/repo//.openshift/action_hooks/haproxy_ctld.rb"
Comment 6 errata-xmlrpc 2014-08-26 09:52:44 EDT
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.

http://rhn.redhat.com/errata/RHBA-2014-1095.html

Note You need to log in before you can comment on or make changes to this bug.