I have cloud foundry deployment .I have 3 kafka,3 zookeper and 3- vault/consul instance.
kafka/0 10.20.0.174
zookeeper/2 10.20.0.242
vault_consul/0 10.20.0.247
For testing purpose i delete one of the vm from each .All the vm's are resurrecting and these vm's have new IP now,but dns is missing in them.
bosh vms output is as follows
kafka/0 | running | service-net-medium | 10.20.0.251 | n/a |
zookeeper/2 | running | service-net-medium | 10.20.0.250 | n/a |
vault_consul/0 | failing | small | 10.20.0.25 | n/a
On Analysing the Microbosh DB I found dns name are still mapped with old ip.
Microbosh PostgresDB output
./psql bosh -c "select id, name, type, content from records;"
46 | 0.kafka.ccc-service-net.cf-devtest21vik.microbosh | A | 10.20.0.174
47 | 174.0.20.10.in-addr.arpa | PTR | 0.kafka.ccc-service-net.cf-devtest21vik.microbosh
28 | 2.zookeeper.ccc-service-net.cf-devtest21vik.microbosh | A | 10.20.0.242
29 | 242.0.20.10.in-addr.arpa | PTR | 2.zookeeper.ccc-service-net.cf-devtest21vik.microbosh
67 | 0.vault-consul.ccc-service-net.cf-devtest21vik.microbosh | A | 10.20.0.247
70 | 247.0.20.10.in-addr.arpa | PTR | 0.vault-consul.ccc-service-net.cf-devtest21vik.microbosh
Microbosh manifest file
<% load 'micro01/micro_bosh.rb' %>
name: <%= $os_tenant %>
logging: level: DEBUG
network: type: manual
ip: <%= $ip_address %>
cloud_properties: name: ccc-bosh-net
net_id: <%= $net_id %>
resources: persistent_disk: 50000
cloud_properties: instance_type: <%= $bosh_flavor %> disk: 16384 cloud: plugin: openstack properties: openstack: auth_url: <%= $os_auth_url %> username: <%= $os_username %> api_key: <%= $os_password %> tenant: <%= $os_tenant %> default_security_groups: [vms-security-group] default_key_name: <%= $key_name %> private_key: <%= $key_file %> ignore_server_availability_zone: true
apply_spec:
properties: director:
max_threads: 32 hm:
resurrector_enabled: true
director_account: user: <%= $bosh_username %>
password: <%= $bosh_password %>
ntp: - <%= $ntp1 %> - <%= $ntp2 %>
dns:
recursor: 8.8.8.8 env: bosh: password: <%= $sha_password %>
Is is possible for VM to have same ip if not at least it should update it MIcrobosh DM.Let me know how to achieve this.
Is there any config missing in this. Help me to resolve this issue.Any link will be help full