roach231428 opened a new pull request, #8775:
URL: https://github.com/apache/ozone/pull/8775

   Fixes #8659
   
   ## What changes were proposed in this pull request?
   
   **HDDS-?????. Fix liveness probe failures for httpfs and s3g pods in 
Kubernetes deployment**
   
   This PR addresses persistent restart issues for the `httpfs-0` and `s3g-0` 
pods in the Apache Ozone 2.0.0 Kubernetes deployment, caused by liveness probe 
failures.
   
   ### Changes proposed:
   
   1. **Fix `httpfs` pod impersonation failure**:
   
      * Added the following entries to `core-site.xml` via the config map:
   
        ```yaml
        CORE-SITE.XML_hadoop.proxyuser.hadoop.groups: '*'
        CORE-SITE.XML_hadoop.proxyuser.hadoop.hosts: '*'
   
        ```
      * This resolves the impersonation authorization error:
        `"User: hadoop is not allowed to impersonate hadoop"` which previously 
caused HTTP 500 errors from the `httpfs` liveness endpoint.
   
   2. **Fix `s3g` pod liveness probe misconfiguration**:
   
      * Replaced the HTTP-based `livenessProbe` with a `tcpSocket` check in 
`s3g-statefulset.yaml`.
      * The previous HTTP probe expected an unauthenticated `/` endpoint, but 
`s3g` requires AWS V4 signed requests, leading to a 403 error:
   
        ```
        <Code>InvalidRequest</Code>
        <Message>Error creating s3 auth info...</Message>
        ```
      * Switching to a TCP socket probe on port 9878 avoids invalid HTTP 
probing and allows the container to start successfully.
   
   These changes resolve the liveness failures and allow both pods to reach and 
maintain a healthy state.
   
   ---
   
   ## What is the link to the Apache JIRA
   
   
[[HDDS-?????](https://issues.apache.org/jira/browse/HDDS-?????)](https://issues.apache.org/jira/browse/HDDS-?????)
 — *Pods httpfs-0 and s3g-0 Keep Restarting Due to Liveness Probe Failures in 
Ozone 2.0.0 Kubernetes Deployment*
   
   ---
   
   ## How was this patch tested?
   
   * Applied changes to a test Kubernetes cluster running Ozone 2.0.0
   * Verified that:
   
     * `httpfs-0` passes liveness probe with updated impersonation configs
     * `s3g-0` no longer restarts and remains in Running state with TCP 
liveness check
   * Confirmed via `kubectl describe pod` and container logs that restart loops 
ceased and liveness checks succeeded
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to