Skip to content

External-dns >0.15.1 failing with nil pointer dereference on startup #5202

Open
@JyothsnaGuduri

Description

@JyothsnaGuduri

What happened:
After upgrading external-dns to version 0.15.1(helm version 1.15.1) from 0.15.0, app showed following errors and failed to come up healthy

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x25e0d89]

goroutine 1 [running]:
sigs.k8s.io/external-dns/provider/awssd.(*AWSSDProvider).instancesToEndpoint(0xc000d692c0?, 0x4599c58?, 0xc000421110, {0xc000d96ac0, 0x1, 0x10?})
sigs.k8s.io/external-dns/provider/awssd/aws_sd.go:170 +0x89
sigs.k8s.io/external-dns/provider/awssd.(*AWSSDProvider).Records(0xc0006e61a0, {0x4599c58, 0xc0004e3040})
sigs.k8s.io/external-dns/provider/awssd/aws_sd.go:158 +0x350
sigs.k8s.io/external-dns/registry.(*AWSSDRegistry).Records(0xc00022cb40?, {0x4599c58?, 0xc0004e3040?})
sigs.k8s.io/external-dns/registry/aws_sd_registry.go:56 +0x29
sigs.k8s.io/external-dns/controller.(*Controller).RunOnce(0xc000a58b40, {0x4599c58, 0xc0004e3040})
sigs.k8s.io/external-dns/controller/controller.go:212 +0xf8
sigs.k8s.io/external-dns/controller.(*Controller).Run(0xc000a58b40, {0x4599c58, 0xc0004e3040})
sigs.k8s.io/external-dns/controller/controller.go:360 +0xc5
main.main()
sigs.k8s.io/external-dns/main.go:434 +0x396f

What you expected to happen:
App should come up healthy without any errors.

How to reproduce it (as minimally and precisely as possible):
We are using following config

registry: aws-sd
provider:
  name: aws-sd
policy:sync

We have AWS cloudMap domain setup with one of the record not having description defined.

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): >0.15.1
  • DNS provider: AWS cloudmap
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions