Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1202499 - Unable to set max_allowed_packet for MySQL
Unable to set max_allowed_packet for MySQL
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
2.2.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jason DeTiberus
libra bugs
:
Depends On: 1197825
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-16 14:39 EDT by Brenton Leanhardt
Modified: 2015-04-06 13:06 EDT (History)
10 users (show)

See Also:
Fixed In Version: openshift-origin-cartridge-mysql-1.30.1.1-1.el6op
Doc Type: Enhancement
Doc Text:
This enhancement adds the OPENSHIFT_MYSQL_MAX_ALLOWED_PACKET environment variable for the MySQL cartridge, which allows developers to optionally set the max_allowed_packet MySQL variable. After applying this update, a cartridge upgrade is required. Developers must also restart their application for any changes made using OPENSHIFT_MYSQL_MAX_ALLOWED_PACKET to take effect.
Story Points: ---
Clone Of: 1197825
Environment:
Last Closed: 2015-04-06 13:06:39 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-2015:0779 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.2.5 bug fix and enhancement update 2015-04-06 17:05:45 EDT

  None (edit)
Description Brenton Leanhardt 2015-03-16 14:39:15 EDT
+++ This bug was initially created as a clone of Bug #1197825 +++

Description of problem:

It is not possible to the the MySQL variable "max_allowed_packet" in /etc/my.cnf

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


How reproducible:

Install MySQL, check the mysql cartridge

Steps to Reproduce:
1. Install MySQL
2. 
3.

Actual results:

n/a

Expected results:

There should be an environment variable OPENSHIFT_MYSQL_MAX_ALLOWED_PACKET

Additional info:

--- Additional comment from Ben Parees on 2015-03-02 15:07:01 EST ---

config option added here:
https://github.com/openshift/origin-server/pull/6088

--- Additional comment from openshift-github-bot on 2015-03-02 15:51:19 EST ---

Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/4fc13e4797e1fb0ae5521807c8d9967ec02e51db
Bug 1197825 - Unable to set max_allowed_packet for MySQL
https://bugzilla.redhat.com/show_bug.cgi?id=1197825
It is not possible to the the MySQL variable "max_allowed_packet" in
/etc/my.cnf

--- Additional comment from Wenjing Zheng on 2015-03-02 22:21:03 EST ---

Verified on devenv_5455:
1. Create an app with mysql5.5/5.1 embbed
2. rhc env set OPENSHIFT_MYSQL_MAX_ALLOWED_PACKET=123M -a app
3. Restart app
4. SSH to app and check the value of max_allowed_packet:
mysql>show variables like 'max%' ;
5. It will display the updated value as below:
+----------------------------+----------------------+
| Variable_name              | Value                |
+----------------------------+----------------------+
| max_allowed_packet         | 128974848            |

Instead of its original value:
+----------------------------+----------------------+
| Variable_name              | Value                |
+----------------------------+----------------------+
| max_allowed_packet         | 209715200            |

--- Additional comment from Jens Reimann on 2015-03-03 08:11:26 EST ---

Wow, that was fast!

Thanks! :)

--- Additional comment from Ben Parees on 2015-03-03 08:14:06 EST ---

np, however due to our production release cycle this change won't be in openshift online for about 6 weeks.
Comment 3 Gaoyun Pei 2015-03-17 01:53:25 EDT
Verify this bug with openshift-origin-cartridge-mysql-1.30.1.1-1.el6op.noarch

1. Create an app with mysql5.5/5.1 embedded

2. SSH into the app and check the default configuration of value 'max_allowed_packet'
mysql> show variables like 'max_allowed_packet' ;
+--------------------+-----------+
| Variable_name      | Value     |
+--------------------+-----------+
| max_allowed_packet | 209715200 |


3. rhc env set OPENSHIFT_MYSQL_MAX_ALLOWED_PACKET=512M -a rails

4. Restart app

5. SSH to app and check the value of max_allowed_packet:
mysql> show variables like 'max_allowed_packet' ;
+--------------------+-----------+
| Variable_name      | Value     |
+--------------------+-----------+
| max_allowed_packet | 536870912 |
Comment 5 errata-xmlrpc 2015-04-06 13:06:39 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.

https://rhn.redhat.com/errata/RHBA-2015-0779.html

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