The cause of this is
not having an Application Security Group (ASG) set up for the
MySQL for VMware Tanzu deployment. You can check this by running:
cf security-groups
If you don't see an entry for
p.msql then there is no ASG set up for the deployment.
In order to create an ASG please follow these steps:
- Obtain the CIDR that will be used for your ASGs. This is listed in the BOSH Director tile, under the Create Networks tab. In here you will find a Service Network. Please make a note of the CIDR for the Service Network. You will use in the next step.
- Create a file called mysql-asg.json with with the following information. The CIDR is from step one.
- [ { "protocol": "tcp", "destination": "CIDR", "ports": "3306" } ]
- Use the CF CLI and the newly created JSON file to then create an ASG call p.mysql:
- cf create-security-group p.mysql ./mysql-asg.json
- Then you will need to bind the ASG to the appropriate space or, to give all apps access, bind to the default-running ASG Set.
- cf bind-running-security-group p.mysql
After completing these steps you can then run
cf security-groups again and you should see an output similar to the one below.
name organization space lifecycle
#0 default_security_group <all> <all> running
default_security_group <all> <all> staging
#1 p.mysql <all> <all> running
#2 sql_open system nfs running