Bug 1347197

Summary: After mysql cluster startup , delete the master and slave pod will cause slave pod Crash loop back off
Product: OpenShift Container Platform Reporter: Wang Haoran <haowang>
Component: ImageStreamsAssignee: Ben Parees <bparees>
Status: CLOSED CURRENTRELEASE QA Contact: Wang Haoran <haowang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.0CC: aos-bugs, jokerman, mmccomas, tdawson
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-06 18:52:00 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 Wang Haoran 2016-06-16 09:38:38 UTC
Description of problem:
After deploy the mysql cluster using cluster template, delete the master and slave pod will cause slave pod cannot startup

Version-Release number of selected component (if applicable):
registry.access.redhat.com/rhscl/mysql-56-rhel7
registry.access.redhat.com/openshift3/mysql-55-rhel7

How reproducible:
Aways

Steps to Reproduce:
1.Create project
2.Deploy mysql cluster
  $oc new-app -f https://raw.githubusercontent.com/openshift/mysql/master/5.5/examples/replica/mysql_replica.json
3.After cluster startup delete the slave pod
  $oc delete pod <slave_pod>
4. check the pod status
  $oc get pod

Actual results:
Slave pod cannot startup with logs:
You must either specify the following environment variables:
  MYSQL_USER (regex: '^[a-zA-Z0-9_]+$')
  MYSQL_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
  MYSQL_DATABASE (regex: '^[a-zA-Z0-9_]+$')
Or the following environment variable:
  MYSQL_ROOT_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
Or both.
Optional Settings:
  MYSQL_LOWER_CASE_TABLE_NAMES (default: 0)
  MYSQL_MAX_CONNECTIONS (default: 151)
  MYSQL_FT_MIN_WORD_LEN (default: 4)
  MYSQL_FT_MAX_WORD_LEN (default: 20)
  MYSQL_AIO (default: 1)
  MYSQL_KEY_BUFFER_SIZE (default: 32M or 10% of available memory)
  MYSQL_MAX_ALLOWED_PACKET (default: 200M)
  MYSQL_TABLE_OPEN_CACHE (default: 400)
  MYSQL_SORT_BUFFER_SIZE (default: 256K)
  MYSQL_READ_BUFFER_SIZE (default: 8M or 5% of available memory)
  MYSQL_INNODB_BUFFER_POOL_SIZE (default: 32M or 50% of available memory)
  MYSQL_INNODB_LOG_FILE_SIZE (default: 8M or 15% of available memory)
MYSQL_INNODB_LOG_BUFFER_SIZE (default: 8M or 15% of available memory) 

Expected results:
should startup successfully

Additional info:

Comment 1 Wang Haoran 2016-06-21 02:32:06 UTC
image under brew registry works well , feel free to move to ON_QA .

Comment 2 Martin Nagy 2016-06-21 11:29:18 UTC
Hm, just wanted to report that I can't reproduce. OK, moving to ON_QA.