Closed ishustava closed 6 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/145971959
The labels on this github issue will be updated when the story is started.
This was released in cf-mysql-release v36. Closing, but always feel free to re-open if there's a continuing issue.
We're seeing much the same thing on 36.12.0:
2018-04-23 19:53:35 140268210931456 [Warning] mysqld: Disk is full writing '/var/vcap/store/mysql/aria_log.00000001' (Errcode: 28 "No space left on device"). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
2018-04-23 19:53:35 140268210931456 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
2018-04-23 20:03:35 140268210931456 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
2018-04-23 20:13:35 140268210931456 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
but the deployment just hangs until it times out. In this case I think it's that we didn't size our persistent disk to be large enough.
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/157014569
The labels on this github issue will be updated when the story is started.
It looks like https://github.com/cloudfoundry/cf-mysql-release/blob/66defe82354dfc9826ee3c1fa4e3a91486afd140/jobs/mysql/templates/pre-start-setup.erb#L70-L80 never will be true:
$ df -BMB --output=target,size /var/vcap/store | awk ' NR==2 { print $2 }'
>> 1040MB
$ [[ 1040MB < 10000 ]]
$ echo $?
>> 1
Well considering we are sorting lexicographically because <
is for string comparisons, it could maybe be true?? Either way this is wrong. Will fix.
There is a way to make it true and it's terrible. 0.5MB.
Story has been accepted. Closing issue
Issue
When forgetting to include
persistent_disk_type
to a cf-mysql deployment manifest, deployment hangs forever (?) in thepre_start
stage. This is especially awkward becausebosh cancel task XXX
also takes a very long time.How to reproduce
Deploy
cf-mysql
withoutpersistent_disk_type
specified in theinstance_groups
section. Observe deployment hang at theUpdating instance...
stage. On the vm:mysql.err.log
:I was able to resolve this issue by killing the
pre-start
process on the vm.Desired outcome
It would be nice if the
pre-start
script could detect that the persistent disk has not been attached and fail fast.