Bug 1108575 - rhc cartridge storage --remove not working on haproxy gear
Summary: rhc cartridge storage --remove not working on haproxy gear
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1067404
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-12 09:26 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:44 UTC (History)
12 users (show)

Fixed In Version: openshift-origin-broker-util-1.23.8.9-1.el6op, rubygem-openshift-origin-controller-1.23.10.8-1.el6op
Doc Type: Bug Fix
Doc Text:
Previously, when users removed additional storage from an application while specifying the HAProxy cartridge, the action completed successfully but the storage removal was not accurately reported. This bug fix updates the broker's controller logic and now storage is accurately reported in this scenario.
Clone Of: 1067404
Environment:
Last Closed: 2014-08-26 13:52:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1095 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.1.5 bug fix and enhancement update 2014-08-26 17:51:34 UTC

Comment 1 Brenton Leanhardt 2014-08-01 13:00:36 UTC
Upstream commits:

commit 3ce626c4a8c530aa08d05534a799a742a940e21a
Author: Abhishek Gupta <abhgupta>
Date:   Wed May 28 14:48:10 2014 -0700

    Bug 1067404: Handling additional storage correctly at the group level

commit 7102c9c830a4f7da6295ccd11e2e8f53f6993f70
Author: Abhishek Gupta <abhgupta>
Date:   Mon Jun 16 11:59:11 2014 -0700

    Bug 1109646: dup was being called on nil

Comment 4 Ma xiaoqiang 2014-08-04 06:25:53 UTC
Check on puddle[2.1.5/2014-08-01.1]

1.create a scalable app
#rhc app create phps php-5.4 -s
2.add storage
rhc cartridge storage -c haproxy-1.4 -a phps --add 4gb 
3.show the storage
rhc cartridge storage -c haproxy-1.4 -a phps --show  
RESULT:
Web Load Balancer
-----------------
  Base Gear Storage:       1GB
  Additional Gear Storage: 4GB
4. remove storage twice
rhc cartridge storage -c haproxy-1.4 -a phps --remove 1
5.check the storage 
#rhc cartridge storage  -a phps
RESULT:

Web Load Balancer
-----------------
  Base Gear Storage:       1GB
  Additional Gear Storage: 2GB
6.login the app and run 'quota -s'
>quota -s
Disk quotas for user 53df203316ae31a3ce000065 (uid 5656): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/vg_rhel65-lv_root
                   1092       0   3072M             237       0    240k

Comment 6 errata-xmlrpc 2014-08-26 13:52:22 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.

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.