Sandbox gets in a unknown state if creation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Sandbox |
Opinion
|
Undecided
|
Unassigned |
Bug Description
I installed MySQL Sandbox 3.0.30 and downloaded MySQL 5.6.10.
Then I tried to create a sandbox:
make_sandbox Downloads/
...
error while creating grant tables
Installing MySQL system tables.
The result is a sandbox in a unknown state.
Then I installed libaio1 and tried again:
make_sandbox Downloads/
...
/home/dveeden/
'--force' option not specified.
Installation halted
After removing the sandbox and retrying again it worked.
Maybe this could be solved by:
- Giving a warning before a 5.5+ sandbox is created on a system without libaio1
- Removing the sandbox if the creation failed. (rollback to known position)
A warning on dependencies is not easy to implement, although it should not be too hard.
About removing the sandbox, I am not sure. The failure happens when the sandbox start, and it could happen also at a later stage, not only with the installation.
Currently, there are a few options:
1) After installing libaio, repeating the installation with -- --force should fix the problem.
2) instead of reinstalling with --force, you can remove the sandbox:
$ sbtool -o delete -s ~/sandboxes/ msb_5_6_ 10
$ make_sandbox ...