Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PowerDNS #2501

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Remove PowerDNS #2501

merged 2 commits into from
Apr 2, 2024

Conversation

aramprice
Copy link
Member

@aramprice aramprice commented Feb 24, 2024

What is this change about?

Remove PowerDNS

Please provide contextual information.

The PowerDNS package has not been updated since 2016. This commit removes:

  • package
  • job
  • all config values under dns except domain_name
  • models under src/bosh-director/lib/bosh/director/models/dns/
    • all mention or use of dns_db which was a separate database configuration for these models

What tests have you run against this PR?

rake fly:unit
rake fly:integration
DB=mysql rake fly:integration

How should this change be described in bosh release notes?

PowerDNS job and associated code is removed.

Does this PR introduce a breaking change?

Yes, operators who use PowerDNS will need to migrate to an alternative before upgrading to this release.


@aramprice aramprice force-pushed the remove-powerdns branch 2 times, most recently from 32ce79b to 10135a6 Compare February 24, 2024 02:18
Copy link
Member

@lnguyen lnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aramprice aramprice force-pushed the remove-powerdns branch 10 times, most recently from cd558e1 to da93f01 Compare March 1, 2024 23:04
@aramprice aramprice force-pushed the remove-powerdns branch 2 times, most recently from 14685fd to 8f2fdf5 Compare March 11, 2024 16:43
aramprice added a commit to cloudfoundry/bosh-deployment that referenced this pull request Mar 11, 2024
The PowerDNS package has not been updated since 2016. This commit removes:
- `misc/powerdns.yml`

This change is related to, but not dependent on, the removal of all
PowerDNS packages, jobs, and cofig from the BOSH repo in the BOSH [PR 2501](cloudfoundry/bosh#2501)

The removal of this ops-file is a way to signal that PowerDNS is no
longer supported, and will be removed, see BOSH PR above.
aramprice added a commit to cloudfoundry/bosh-deployment that referenced this pull request Mar 11, 2024
The PowerDNS package has not been updated since 2016. This commit removes:
- `misc/powerdns.yml`

This change is related to, but not dependent on, the removal of all
PowerDNS packages, jobs, and cofig from the BOSH repo in this [PR 2501](cloudfoundry/bosh#2501)

The removal of this ops-file is a way to signal that PowerDNS is no
longer supported, and will be removed, see BOSH PR above.
@aramprice aramprice force-pushed the remove-powerdns branch 6 times, most recently from 9da468b to c98d2dd Compare March 19, 2024 22:14
@aramprice aramprice marked this pull request as ready for review March 20, 2024 16:39
aramprice added a commit to cloudfoundry/bosh-cli that referenced this pull request Mar 20, 2024
PowerDNS is being removed from the BOSH Director, and as a consequence
the data returned from the `instances` and `vms` commands no longer have
DNS data returned.

This commit removes the `--dns` flag and logic to display the data
returnd when it is sent.

See: cloudfoundry/bosh#2501
aramprice added a commit to cloudfoundry/bosh-cli that referenced this pull request Mar 20, 2024
PowerDNS is being removed from the BOSH Director, and as a consequence
the data returned from the `instances` and `vms` commands no longer have
DNS data returned.

This commit removes the `--dns` flag and logic to display the data
returnd when it is sent.

See: cloudfoundry/bosh#2501
@jpalermo jpalermo requested review from a team, danielfor and nouseforaname and removed request for a team March 21, 2024 15:35
The PowerDNS package has not been updated since 2016. This commit
removes:
- package
- job
- all config values under `dns` except `domain_name`
- models under `src/bosh-director/lib/bosh/director/models/dns/`
  - all mention or use of `dns_db` which was a separate database
    configuration for these models
- removes `Instance#dns_records` and associated info from VM, and
  Instance responses
  - The content of this column was only ever populated when PowerDNS was
    enabled

[#183367522]
aramprice added a commit to cloudfoundry/bosh-cli that referenced this pull request Mar 22, 2024
PowerDNS is being removed from the BOSH Director, and as a consequence
the data returned from the `instances` and `vms` commands no longer have
DNS data returned.

This commit removes the `--dns` flag and logic to display the data
returnd when it is sent.

See: cloudfoundry/bosh#2501
@aramprice
Copy link
Member Author

Question from cloudfoundry/bosh-cli#644 (comment)

What happens when a director w/o PowerDNS receives a --dns flag on the instances or vms command?

cc @ystros

@aramprice
Copy link
Member Author

aramprice commented Mar 22, 2024

Question from cloudfoundry/bosh-cli#644 (comment)

What happens when a director w/o PowerDNS receives a --dns flag on the instances or vms command?

cc @ystros

The director code returning a dns response currently always returns this field in the JSON, however it is only ever populated PowerDNS is enabled. see bosh-director/lib/bosh/director/jobs/vm_state.rb:49-56

Added an explicit test in the CLI to validate that PowerDNS-having-director responses are still handled:
bosh-cli/director/vms_test.go:143-144

aramprice added a commit to cloudfoundry/bosh-cli that referenced this pull request Mar 22, 2024
PowerDNS is being removed from the BOSH Director, and as a consequence
the data returned from the `instances` and `vms` commands no longer have
DNS data returned.

This commit removes the `--dns` flag and logic to display the data
returnd when it is sent.

Add a spec to validate that the CLI continues to handle responses from
directors which still have PowerDNS code. Concretely this means the VM
info response has a `"dns"` key in it.

See: cloudfoundry/bosh#2501
@aramprice aramprice requested review from ystros and removed request for nouseforaname March 22, 2024 19:22
@beyhan
Copy link
Member

beyhan commented Mar 28, 2024

Let's wait for another approval on this because the change is quite large.

Copy link
Member

@danielfor danielfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpalermo jpalermo merged commit f5a75d7 into main Apr 2, 2024
3 checks passed
@jpalermo jpalermo deleted the remove-powerdns branch April 2, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

5 participants