Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

It doesn't actually create SRV records. #47

Open
jackivanov opened this issue Jan 31, 2018 · 3 comments
Open

It doesn't actually create SRV records. #47

jackivanov opened this issue Jan 31, 2018 · 3 comments

Comments

@jackivanov
Copy link

jackivanov commented Jan 31, 2018

How to reproduce:

  1. Create the stack from this template
  2. Check the records aws route53 list-resource-record-sets --hosted-zone-id %hostedzoneid% and see that there are only A records.
[root@ip-10-5-10-105 ec2-user]# /usr/local/bin/ecssd_agent -sync
ERRO[0000] InvalidChangeBatch: Tried to create resource record set [name='ip-10-5-10-105.servicediscovery.internal.', type='A', set-identifier='ip-10-5-10-105.eu-west-1.compute.internal'] but it already exists
	status code: 400, request id: 9802ac73-06b1-11e8-a4eb-11c465327fe3
ERRO[0000] Error creating host A record
INFO[0000] Zone 'servicediscovery.internal' for host 'ip-10-5-10-105.eu-west-1.compute.internal' out of sync, adding 1 and removing 0 records

ecssd_agent continuously shows adding 1, but nothing happens

@dannygu
Copy link

dannygu commented Feb 5, 2018

Same issue here, creates A record but no SRV...

@jackivanov
Copy link
Author

@javierros Could you take a look at this, please?

@frankgibbs
Copy link

frankgibbs commented Apr 5, 2018

I'm having a similar issue. I think it's because I have two VPCs (Production & Test) with private hosted zones for each. Both hosted zones have the same namespace (servicediscovery.internal).

the essd_agent uses ListHostedZonesByNameInput to find the HostedZone to add SRV records and ListHostedZonesByNameInput doesn't seem to return Hosted Zones associated to the VPC from which the ECS Container is running, so it's the agent is trying to add the Production service to the Test Hosted Zone.

https://docs.aws.amazon.com/sdk-for-go/api/service/route53/#ListHostedZonesByNameInput

UPDATE
passing a custom domain in ecssd_agent.conf fixed my issue

exec /usr/local/bin/ecssd_agent mydomain.local >> /var/log/ecssd_agent.log 2>&1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants