It will be necessary to review existing domains and rectify overlapping domains. You may have trouble listing domains with Cloud Controller in this state, so it is necessary to address this via connecting to Cloud Controller database.
1. Connect to Cloud Controller database (CCDB) which is under PAS MySQL database. Perform steps in article:
https://community.pivotal.io/s/article/How-to-Connect-to-the-PCF-Elastic-Runtime-Internal-MySQL-databaseMariaDB []> use ccdb;2. List out the domains. Review the domain names for overlapping domains (such as subnet
.example
.com which is under example
.com in below output)
MariaDB [ccdb]> select * from domains;
+----+--------------------------------------+---------------------+---------------------+-----------------------------+----------+-----------------
| id | guid | created_at | updated_at | name | wildcard | owning_organization_id | router_group_guid | internal |
+----+--------------------------------------+---------------------+---------------------+-----------------------------+----------+-----------------
| 1 | 11bb1bb3-1282-47a3-ac7a-c519b00df2d2 | 2017-03-29 17:52:50 | 2018-08-20 20:56:24 | subnet.example.com | 1 | NULL | NULL | 0 |
| 19 | f3548479-6443-4d90-9110-d51ab880a7ad | 2018-08-22 13:06:56 | 2018-08-22 13:06:56 | example.com | 1 | 7813 | NULL | 0 |3. Consider forcing example
.com from private domain to shared in order to fix. This can be done by setting
owning_organization_id to null which has affected of making domain shared.
MariaDB [ccdb]> update domains set owning_organization_id=NULL where id=19;Note: This has effect of making domain shared across all PCF organizations, so make sure this is acceptable based on security policies.
Another solution to consider would be deleting or forcing subnet
.example
.com to private domain owned by same organization as example
.com. Please contact Pivotal support if you are unable to find acceptable solution to address overlapping domains.
4. Retry apply changes and verify that CC pre-start script runs properly.