fix: Update APT repo configuration steps in dotnet linux recipe - #1229
Conversation
|
Hey @nr-ahemsath Does this changes tested locally. I see Integration tests are passing. Can you please add test results in PR description? Please let us know, when you want us to get it merged. And also can you please get a approval from your peers too on this changes |
|
LGTM |
|
Hi @shashank-reddy-nr: I haven't tested these changes using guided install specifically. I haven't worked on these recipes since 2021 so I don't remember what is required and how to do it, but I do remember it being a bit complex. We made the same change in our agent's CI, specifically a test that runs after we deploy a new agent version to And that test passed when we did an agent release/deploy yesterday: https://github.com/newrelic/newrelic-dotnet-agent/actions/runs/15860680315/job/44717638024 Let me know if this is sufficient. Otherwise I'm happy to test the new guided install recipe locally but I'll need some guidance on how to do that. |
|
@nr-ahemsath Its super easy to test if you have .net env with you on EC2s. Just create a updated linux-systemd.yml file and run below command Command:
localRecipes will override the file which you have given and run the install. If you would like to see debug prints add --debug flag along with above command. As we already have Integration tests for dotnet and it passed with your changes. I just want to double check manually as well.
|
|
@shashank-reddy-nr Cool, thanks. Is there an option to make it work with a staging account and license key? |
|
@nr-ahemsath You can use staging accounts by adding NEW_RELIC_REGION=staging in above command. But on there is WAF restrictions on staging and from AWS external world we can't access. So, I request you to test using prod. |
|
So, I'm running into the following snags when trying to test these changes locally:
So, I can't test on WSL or Docker because they don't have systemd, and I can't test on AWS EC2 because it won't run Ubuntu 20.04. By the way, the missing libssl v1 dependency means that guided install as it is currently implemented for .NET on Linux simply will not work for anybody on a modern, supported Ubuntu. I checked with our GTS team and they could only find one instance of a customer complaining about that failure. So it looks like almost nobody is using guided install on Linux for .NET. Long term, we need to fix the introspector to work on modern Linux distros. We also need to update the integration tests in this repo to test with modern Linux distros and using a supported version of the .NET runtime (8.0+) |
|
@nr-ahemsath Thanks for the efforts on this. Can you please add this long term plan to your backlog. The integration tests are passing. So, I think we are good to merge. LGTM. please let me know, when these changes has to be merged and released as per your plan |
|
@shashank-reddy-nr I created a work item in our team's backlog to address the introspector issues: https://new-relic.atlassian.net/browse/NR-431984 You can merge and release the changes in this PR at any time. |

Changes:
Original PR by @nr-ahemsath : #1227
This PR updates the .NET agent Linux install recipe to use a new public signing key and also replace the use of apt-key add (which is deprecated) with the current best practice of saving the key to a specific file and configuring the APT repo definition to be signed by that file.
Note: this is in draft status until the .NET agent does it's next release, which we plan to do early this week.