bosh vms --dns returns "n/a" for "DNS A records" column after bosh upgrade
We found the problem after upgrading the bosh from version 1.3153.0 to 1.3262.3.0. Before the upgrade (bosh is 1.3153.0), the result of "bosh vms --dns" is
| VM | State | VM Type | IPs | CID | Agent ID | Resurrection | DNS A records |
+-----------------------------+---------+----------------+-----------------+----------+--------------------------------------+--------------+-----------------------------------------------------------+
| admin_ui/0 | running | logger | 169.50.70.107 | 22354757 | d3fc83b5-7eb5-4d74-9425-b7471d9573de | active | 0.admin-ui.default.gubin-preyf.microbosh |
| api_worker/0 | running | coreNode | 169.50.71.206 | 22354729 | fb5ce5b1-9e6c-4087-b6fa-433a44afdff6 | active | 0.api-worker.default.gubin-preyf.microbosh |
| api_worker_dal09/0 | running | coreNode_dal09 | 169.54.206.20 | 22354777 | 18cc0ef7-7c20-4c9a-a2c1-a95390bc3e93 | active | 0.api-worker-dal09.default.gubin-preyf.microbosh |
| ccdb_lon02/0 | running | dbNode | 169.50.70.125 | 22354779 | 0189e0f1-3074-4ee3-b002-5ee3a380cc0c | active | 0.ccdb-lon02.default.gubin-preyf.microbosh |
| clock_global/0 | running | coreNode | 169.50.66.245 | 22354733 | a5a7674c-daad-48ea-9a84-36d9a2732db2 | active | 0.clock-global.default.gubin-preyf.microbosh |
...
After bosh upgrade (bosh is 1.3262.3.0), the result of "bosh vms --dns" is
+--------------------------------------------------------------------+---------+-----+----------------+-----------------+----------+--------------------------------------+--------------+---------------+
| VM | State | AZ | VM Type | IPs | CID | Agent ID | Resurrection | DNS A records |
+--------------------------------------------------------------------+---------+-----+----------------+-----------------+----------+--------------------------------------+--------------+---------------+
| admin_ui/0 (f3819020-0015-4619-b217-0ca73e0e447d) | running | n/a | logger | 169.50.70.107 | 22354757 | d3fc83b5-7eb5-4d74-9425-b7471d9573de | active | n/a |
| api_worker/0 (449d9453-1d8b-4bfd-ac6a-0f2245c10e40) | running | n/a | coreNode | 169.50.71.206 | 22354729 | fb5ce5b1-9e6c-4087-b6fa-433a44afdff6 | active | n/a |
| api_worker_dal09/0 (4b767cf7-0a6d-413b-a0ef-13973fa6cb75) | running | n/a | coreNode_dal09 | 169.54.206.20 | 22354777 | 18cc0ef7-7c20-4c9a-a2c1-a95390bc3e93 | active | n/a |
| ccdb_lon02/0 (14109da6-cc51-49e8-8e99-d096e4f59550) | running | n/a | dbNode | 169.50.70.125 | 22354779 | 0189e0f1-3074-4ee3-b002-5ee3a380cc0c | active | n/a |
| clock_global/0 (65b97424-70b1-4387-822f-0bab418ac281) | running | n/a | coreNode | 169.50.66.245 | 22354733 | a5a7674c-daad-48ea-9a84-36d9a2732db2 | active | n/a |
...
The values in column "DNS A records" are all "n/a".
In the old bosh, "bosh vms --dns" returns the values for "DNS A records" from powerdns db. But in the new bosh, "bosh vms --dns" returns the values from column "dns_records" of table "instances". After bosh upgrade, column "dns_records" of table "instances" is empty. The reason we guess should be in bosh/bosh-director/db/migrations/director/20151008232214_add_dns_records.rb. It adds a column "dns_records" to table "instances" but doesn't import the data from powerdns db.
@gu-bin you should be able to run bosh deploy and bring those records back.
@cppforlife it works, thanks!