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

Add Amazon Linux 2 to CI and platform support. #14599

Merged
merged 12 commits into from Mar 13, 2023
Merged

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented Feb 23, 2023

Summary

This initial PR adds it in the Intermediate support tier due to the limited testing so far. The plan is to migrate it to Core tier once we have solid evidence that it works reliably, likely some time after the release of v1.39.0.

Test Plan

New CI passes on this PR.

Any further testing requires this to be merged and wait for nightlies to be published.

Additional Information

Resolves: #14199

This also includes a number of other minor bug fixes, mostly related to the installer and updater code.

@github-actions github-actions bot added area/ci area/docs area/packaging Packaging and operating systems support labels Feb 23, 2023
@netdata-community-bot
Copy link

This pull request has been mentioned on Netdata Community Forums. There might be relevant details there:

https://community.netdata.cloud/t/amazonlinux2-installation-is-there-an-rpm/3524/10

@Ferroin Ferroin marked this pull request as ready for review March 3, 2023 18:20
@Ferroin Ferroin requested a review from a team March 3, 2023 18:20
Copy link
Contributor

@tkatsoulas tkatsoulas left a comment

Choose a reason for hiding this comment

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

shellcheck corrections

.github/scripts/pkg-test.sh Outdated Show resolved Hide resolved
.github/scripts/pkg-test.sh Show resolved Hide resolved
.github/scripts/pkg-test.sh Show resolved Hide resolved
@tkatsoulas
Copy link
Contributor

Looks good, build passes, let's merge it to double down on it via our kickstart

Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
cakrit
cakrit previously approved these changes Mar 9, 2023
Copy link
Contributor

@cakrit cakrit left a comment

Choose a reason for hiding this comment

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

Fine for documentation

@Dim-P
Copy link
Contributor

Dim-P commented Mar 10, 2023

@netdata/agent-sre Do you require any testing to be done using an Amazon Linux 2 VM as part of this PR?

@Ferroin
Copy link
Member Author

Ferroin commented Mar 10, 2023

@netdata/agent-sre Do you require any testing to be done using an Amazon Linux 2 VM as part of this PR?

If you’re offering to test it, that would be greatly appreciated. Simply building the packages locally and confirming at a basic level that they work as they should once installed is sufficient here (the plan is to do more testing once this is merged, and then probably bump AL2 to Core tier support some time after v1.39.0).

@Dim-P
Copy link
Contributor

Dim-P commented Mar 10, 2023

@netdata/agent-sre Do you require any testing to be done using an Amazon Linux 2 VM as part of this PR?

If you’re offering to test it, that would be greatly appreciated. Simply building the packages locally and confirming at a basic level that they work as they should once installed is sufficient here (the plan is to do more testing once this is merged, and then probably bump AL2 to Core tier support some time after v1.39.0).

I don't think I still have access to that VM but I can set one up again and report results here.

@sashwathn
Copy link
Contributor

@tkatsoulas: When do you think this can be merged?

@Ferroin
Copy link
Member Author

Ferroin commented Mar 10, 2023

@sashwathn Theoretically today if we can get the approvals.

@tkatsoulas
Copy link
Contributor

From my end, still pending; a last code inspection on .sh files

@tkatsoulas
Copy link
Contributor

tkatsoulas commented Mar 10, 2023

Done, LGTM, my suggestion, merge it on Monday

@sashwathn
Copy link
Contributor

Thanks @tkatsoulas @Ferroin!

Copy link
Contributor

@Dim-P Dim-P left a comment

Choose a reason for hiding this comment

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

Just tested a local build and a build of native packages locally on an Amazon Linux 2 VM. I didn't notice any errors, LGTM!

@Ferroin I suppose logs like these are expected:

warning: File listed twice: /etc/netdata/netdata.conf                                                                                                                                                                                         
warning: File listed twice: /usr/lib/netdata                                                                                                                                                                                                  
warning: File listed twice: /usr/lib/netdata/conf.d                                                                                                                                                                                           
warning: File listed twice: /usr/lib/netdata/conf.d/apps_groups.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d                                                                                                                                                                                  
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d.conf                                                                                                                                                                             
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/ap.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/apcupsd.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/example.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/libreswan.conf                                                                                                                                                                   
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/nut.conf                                                                                                                                                                         
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/opensips.conf                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/sensors.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d                                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d.conf                                                                                                                                                                               
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/cachestat.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/dcstat.conf                                                                                                                                                                        
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/disk.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/ebpf_kernel_reject_list.txt                                                                                                                                                        
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/fd.conf                                                                                                                                                                            
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/filesystem.conf                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/hardirq.conf                                                                                                                                                                       
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/mdflush.conf                                                                                                                                                                       
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/mount.conf
...

There was also a bogus date in %changelog showing up somewhere, but I didn't take note of where exactly.

@Ferroin
Copy link
Member Author

Ferroin commented Mar 13, 2023

Just tested a local build and a build of native packages locally on an Amazon Linux 2 VM. I didn't notice any errors, LGTM!

@Ferroin I suppose logs like these are expected:

warning: File listed twice: /etc/netdata/netdata.conf                                                                                                                                                                                         
warning: File listed twice: /usr/lib/netdata                                                                                                                                                                                                  
warning: File listed twice: /usr/lib/netdata/conf.d                                                                                                                                                                                           
warning: File listed twice: /usr/lib/netdata/conf.d/apps_groups.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d                                                                                                                                                                                  
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d.conf                                                                                                                                                                             
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/ap.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/apcupsd.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/example.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/libreswan.conf                                                                                                                                                                   
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/nut.conf                                                                                                                                                                         
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/opensips.conf                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/charts.d/sensors.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d                                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d.conf                                                                                                                                                                               
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/cachestat.conf                                                                                                                                                                     
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/dcstat.conf                                                                                                                                                                        
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/disk.conf                                                                                                                                                                          
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/ebpf_kernel_reject_list.txt                                                                                                                                                        
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/fd.conf                                                                                                                                                                            
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/filesystem.conf                                                                                                                                                                    
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/hardirq.conf                                                                                                                                                                       
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/mdflush.conf                                                                                                                                                                       
warning: File listed twice: /usr/lib/netdata/conf.d/ebpf.d/mount.conf
...

There was also a bogus date in %changelog showing up somewhere, but I didn't take note of where exactly.

Yes, all of those should be fixed by #13927

@Ferroin Ferroin merged commit cd8c7a2 into netdata:master Mar 13, 2023
138 of 139 checks passed
@Ferroin Ferroin deleted the al2 branch March 13, 2023 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci area/docs area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Publish native packages for Amazon Linux 2.
7 participants