- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.2k
 
fix: Add the nodepool cgroup mode to the NAP config #2356
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
fix: Add the nodepool cgroup mode to the NAP config #2356
Conversation
| 
           Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request.  | 
    
38438a4    to
    6489769      
    Compare
  
    | 
           Hi @davidholsgrove - Can you please check the CLA. Thanks!  | 
    
0a8987a    to
    b2ab65c      
    Compare
  
    | 
           CLA updated. Thanks @apeabody  | 
    
| 
           /gcbrun  | 
    
| 
           Hi @davidholsgrove - From the CI Tests:  | 
    
| 
           Hi @apeabody I think the testcase was updated in #2224 to downgrade from  I'm not sure from https://cloud.google.com/kubernetes-engine/docs/how-to/migrate-cgroupv2#transition-plan what the default CGROUP is for clusters created with 1.32, but it looks like from the error message in the testcases that its now V2, and the API is rejecting an attempt to set to V1? I dont have access to the cloudbuild logs to see further than the quote in your reply apologies. If the testcase needs to revert this diff, I can include it in my PR?  | 
    
          
 Hi @davidholsgrove! Yes, the API is rejecting when specifically adding to a new the NAP, full removal of  I suggest swapping that values of   | 
    
a91cc48    to
    c224f89      
    Compare
  
    | 
           /gcbrun  | 
    
| 
           Thanks @apeabody - testcases updated to flip the default to V2, with the exception of   | 
    
| 
           /gcbrun  | 
    
| 
           I'll re-run the test again:  | 
    
| 
           Thanks @apeabody - I'm not sure how to resolve that failure without access to run the tests / dig deeper.  | 
    
          
 Looks like we are still seeing in the re-test, let me check on a few PR that don't include this change.  | 
    
          
 Hi @davidholsgrove - I've checked and this error seems to be specific to this change.  I'd suggest (temporarily) removing   | 
    
c224f89    to
    aa0ee48      
    Compare
  
    | 
           Thanks @apeabody - rebased and removed the explicit setting of   | 
    
| 
           /gcbrun  | 
    
          
 Hi @davidholsgrove - Yeah, it's still having the issue: Looking at your change, another possibility is the addition of   | 
    
eabb375    to
    4b82a62      
    Compare
  
    | 
           Hi @apeabody,  | 
    
| 
           /gcbrun  | 
    
          
 Great, that got further, this is from the test itself:  | 
    
4b82a62    to
    09d7ecb      
    Compare
  
    | 
           Thanks again @apeabody - its hard to guess the test logic here without being able to trigger or see the logs. I've updated the  Could we try again?  | 
    
| 
           /gcbrun  | 
    
          
 Yes, this indicates that the observed actual values does not match the test data here: https://github.com/davidholsgrove/terraform-google-kubernetes-engine/blob/nap-cgroup-mode/test/integration/node_pool/testdata/TestNodePool.json  | 
    
| 
           OK, this error is from the cluster, rather than a specific nodepool:  | 
    
09d7ecb    to
    bb657f7      
    Compare
  
    | 
           Thanks @apeabody - returning to this PR, as we still see the same perma-diff with the latest releases of the module. I think I've updated the expected result for the cluster nodepool effectiveCgroupMode. Could you rerun the tests?  | 
    
| 
           /gcbrun  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @davidholsgrove!
Closes #2321
Add the nodepool cgroup mode to the NAP config