You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "neils-dev (via GitHub)" <gi...@apache.org> on 2023/04/27 04:23:37 UTC

[GitHub] [ozone] neils-dev opened a new pull request, #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup

neils-dev opened a new pull request, #4622:
URL: https://github.com/apache/ozone/pull/4622

   ## What changes were proposed in this pull request?
   To fix problem starting (restarting) datanodes after recovering from an SCM disk failure.  Problem is when scm disk is replaced, a new certificate is issued for SCM making to total count of scm certs greater than number of scm nodes configured.  Patch resolves situation when number of certificates for subject CN (scm host) is greater than 1 by only counting unique scm subject CN certs when validating for Datanodes.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-7985
   
   ## How was this patch tested?
   
   Manual testing.  For SCM disk / node failure recovery.  
   scm:
   i.) decommission SCM
   ii.) replace scm disk wiping metadata directories  
   ii.) restart scm with bootstrapping
   
   Start new datanode.  On datanode restart the datanode requests certificates from the SCM.  The SCM validates the scm certs comparing the number of scm nodes configured in the ozone-site to the number of certs stored in the certstore.  After scm recovery there will be a new certificate issued for recovered scm.  The certstore will container the old scm cert and this new cert  which causes scm certificate validation errors.  This patch resolves having,
   
   ```
   99756580628920    Wed Apr 26 23:44:45 UTC 2023   Sat Jun 03 23:44:45 UTC 2028   CN=scm-sub@scm1.org,OU=4d9927f6-6f83-4d42-98bc-5dc4c9e16b3d,O=CID-8dd541d6-707e-40cd-8e6a-81e8274a37d1         CN=scm-sub@scm3.org,OU=e4aef89b-20f1-4268-a374-a6fa196e0515,O=CID-8dd541d6-707e-40cd-8e6a-81e8274a37d1        
   101965082032306   Thu Apr 27 00:21:33 UTC 2023   Sun Jun 04 00:21:33 UTC 2028   CN=scm-sub@scm1.org,OU=848ae84a-3fa4-4722-9b90-e33b300224d0,O=CID-8dd541d6-707e-40cd-8e6a-81e8274a37d1         CN=scm-sub@scm3.org,OU=e4aef89b-20f1-4268-a374-a6fa196e0515,O=CID-8dd541d6-707e-40cd-8e6a-81e8274a37d1  
   ```
   more than one certificate issued for a given scm host, the certificate subject CN.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] kerneltime commented on pull request #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup

Posted by "kerneltime (via GitHub)" <gi...@apache.org>.
kerneltime commented on PR #4622:
URL: https://github.com/apache/ozone/pull/4622#issuecomment-1529909979

   @swamirishi can you please take a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] ChenSammi commented on pull request #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup

Posted by "ChenSammi (via GitHub)" <gi...@apache.org>.
ChenSammi commented on PR #4622:
URL: https://github.com/apache/ozone/pull/4622#issuecomment-1535684694

   @neils-dev , thanks for working on this.  Not only the SCM Disk failure recovery case will violate this CA certificate count checking, but also decommission a SCM, add a new SCM, SCM sub-CA rotation, and root CA rotation will violate this check.  So it will be a normal case that the active CA certificate number will be greater than the expected number(which is statically calculated by configuration in ozone-site.xml) for a running Ozone cluster. 
   
   #4654 is solving the same problem and can cover all above mentioned cases.  @nandakumar131 . 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] neils-dev closed pull request #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup

Posted by "neils-dev (via GitHub)" <gi...@apache.org>.
neils-dev closed pull request #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup
URL: https://github.com/apache/ozone/pull/4622


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] neils-dev commented on pull request #4622: HDDS-7985. [SCM HA] On SCM Disk failure recovery causes Datanode Failure on startup

Posted by "neils-dev (via GitHub)" <gi...@apache.org>.
neils-dev commented on PR #4622:
URL: https://github.com/apache/ozone/pull/4622#issuecomment-1537269040

   Thanks @ChenSammi .  I'm glad we have a way to resolve this issue.  We will go forward with #4654.
   
   > So it will be a normal case that the active CA certificate number will be greater than the expected number(which is statically calculated by configuration in ozone-site.xml) for a running Ozone cluster.
   > 
   > In the meanwhile, https://github.com/apache/ozone/pull/4654 is trying to solve the same problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org