You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ArafatKhan2198 (via GitHub)" <gi...@apache.org> on 2024/02/24 13:27:37 UTC

[PR] HDDS-10414. ozone acceptance: Recon.Recon-Api.Check if Recon picks up DN heartbeats: failed. [ozone]

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

   ## What changes were proposed in this pull request?
   Recon Acceptance test is failing for the robot test :-
   
   ```
   hadoop-ozone/dist/src/main/smoketest/recon/recon-api.robot
   ```
   The discrepancy arises because, in local Docker setups, DataNodes are named using hyphens, such as `datanode-1`, whereas in the upstream (CI) environment, DataNodes utilize underscores, like `datanode_1`. This variation in naming conventions leads to inconsistencies across different environments.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-10414
   ## How was this patch tested?
   
   The acceptance test passed locally :- 
   ```
   ------------------------------------------------------------------------------
   Check if Recon picks up DN heartbeats                                 | PASS |
   ------------------------------------------------------------------------------
   Check if Recon Web UI is up                                           | PASS |
   ------------------------------------------------------------------------------
   Check web UI access                                                   | PASS |
   ------------------------------------------------------------------------------
   Check admin only api access                                           | PASS |
   ------------------------------------------------------------------------------
   Check unhealthy, (admin) api access                                   | PASS |
   ------------------------------------------------------------------------------
   Check normal api access                                               | PASS |
   ------------------------------------------------------------------------------
   ```
   
   And in the forked CI :- https://github.com/ArafatKhan2198/ozone/actions/runs/8030499503
   


-- 
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


Re: [PR] HDDS-10414. ozone acceptance: Recon.Recon-Api.Check if Recon picks up DN heartbeats: failed. [ozone]

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

   So my local docker versions are the following :- 
   ```
   (base) mohammad.khan:ozone/ (HDDS-10324*) $ docker --version                                    
   Docker version 24.0.5, build ced0996
   ```
   ```
   (base) mohammad.khan:ozone/ (HDDS-10324*) $ docker-compose --version                            
   Docker Compose version v2.20.2-desktop.1
   ```


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #6269:
URL: https://github.com/apache/ozone/pull/6269#discussion_r1520085801


##########
hadoop-ozone/dist/src/main/smoketest/topology/cli.robot:
##########
@@ -22,18 +22,27 @@ Test Timeout        5 minutes
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run printTopology
     ${output} =         Execute          ozone admin printTopology
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain          ${output}         IN_SERVICE
+                        Should Match Regexp     ${output}         .*datanode[-_]\\d+.*IN_SERVICE.*

Review Comment:
   `State = HEALTHY` was not in the original expected content, why is it added?
   
   Why is check for `rack2` removed?



##########
hadoop-ozone/dist/src/main/smoketest/topology/cli.robot:
##########
@@ -22,18 +22,27 @@ Test Timeout        5 minutes
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run printTopology
     ${output} =         Execute          ozone admin printTopology
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain          ${output}         IN_SERVICE
+                        Should Match Regexp     ${output}         .*datanode[-_]\\d+.*IN_SERVICE.*
+
 Run printTopology -o
     ${output} =         Execute          ozone admin printTopology -o
-                        Should contain   ${output}         Location: /rack2
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain   ${output}         Location:
+                        Should Match Regexp   ${output}         .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*
+
 Run printTopology --operational-state IN_SERVICE
     ${output} =         Execute          ozone admin printTopology --operational-state IN_SERVICE
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain   ${output}         IN_SERVICE
+                        Should Match Regexp   ${output}         .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*

Review Comment:
   Let's avoid duplicating assertions.  Please extract a `Keyword` and use it in all test cases.



-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

Posted by "ArafatKhan2198 (via GitHub)" <gi...@apache.org>.
ArafatKhan2198 commented on code in PR #6269:
URL: https://github.com/apache/ozone/pull/6269#discussion_r1520255980


##########
hadoop-ozone/dist/src/main/smoketest/topology/cli.robot:
##########
@@ -22,18 +22,27 @@ Test Timeout        5 minutes
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run printTopology
     ${output} =         Execute          ozone admin printTopology
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain          ${output}         IN_SERVICE
+                        Should Match Regexp     ${output}         .*datanode[-_]\\d+.*IN_SERVICE.*
+
 Run printTopology -o
     ${output} =         Execute          ozone admin printTopology -o
-                        Should contain   ${output}         Location: /rack2
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain   ${output}         Location:
+                        Should Match Regexp   ${output}         .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*
+
 Run printTopology --operational-state IN_SERVICE
     ${output} =         Execute          ozone admin printTopology --operational-state IN_SERVICE
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain   ${output}         IN_SERVICE
+                        Should Match Regexp   ${output}         .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*

Review Comment:
   Done



-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

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

   Docker version on my system: `Docker Compose version v2.18.1`
   ```
   $ ../test-single.sh om topology/cli.robot                                    
   ==============================================================================
   Cli :: Smoketest ozone cluster startup                                        
   ==============================================================================
   Run printTopology                                                     | PASS |
   ------------------------------------------------------------------------------
   Run printTopology -o                                                  | PASS |
   ------------------------------------------------------------------------------
   Run printTopology --operational-state IN_SERVICE                      | PASS |
   ------------------------------------------------------------------------------
   Run printTopology --node-state HEALTHY                                | PASS |
   ------------------------------------------------------------------------------
   Cli :: Smoketest ozone cluster startup                                | PASS |
   4 tests, 4 passed, 0 failed
   ==============================================================================
   
   
   $ ../test-single.sh om recon/recon-api.robot  
   ==============================================================================
   Recon-Api :: Smoke test to start cluster with docker-compose environments.    
   ==============================================================================
   Check if Recon picks up OM data                                       | PASS |
   ------------------------------------------------------------------------------
   Check if Recon picks up DN heartbeats                                 | PASS |
   ------------------------------------------------------------------------------
   Check if Recon Web UI is up                                           | FAIL |
   '<html>
   <head>
   <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
   <title>Error 403 Forbidden</title>
   </head>
   <body><h2>HTTP ERROR 403 Forbidden</h2>
   <table>
   <tr><th>URI:</th><td>/</td></tr>
   <tr><th>STATUS:</th><td>403</td></tr>
   <tr><th>MESSAGE:</th><td>Forbidden</td></tr>
   <tr><th>SERVLET:</th><td>org.eclipse.jetty.servlet.DefaultServlet-5cfed0ba</td></tr>
   </table>
   
   </body>
   </html>' does not contain 'Ozone Recon'
   ------------------------------------------------------------------------------
   Check web UI access                                                   | FAIL |
   '403' does not contain '200'
   ------------------------------------------------------------------------------
   Check admin only api access                                           | PASS |
   ------------------------------------------------------------------------------
   Check unhealthy, (admin) api access                                   | PASS |
   ------------------------------------------------------------------------------
   Check normal api access                                               | PASS |
   ------------------------------------------------------------------------------
   Recon-Api :: Smoke test to start cluster with docker-compose envir... | FAIL |
   7 tests, 5 passed, 2 failed
   ==============================================================================
   ```
   (I have some issues with recon UI working in my system so I think the other test failures are related to that)


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

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

   Thanks @ArafatKhan2198 for updating the patch, latest patch looks good.  Let's have someone with Docker Compose V2 also check it.


-- 
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


Re: [PR] HDDS-10414. ozone acceptance: Recon.Recon-Api.Check if Recon picks up DN heartbeats: failed. [ozone]

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

   @ArafatKhan2198 Please include information about the Docker (and Docker Compose) version where the test is failing.


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

Posted by "ArafatKhan2198 (via GitHub)" <gi...@apache.org>.
ArafatKhan2198 commented on code in PR #6269:
URL: https://github.com/apache/ozone/pull/6269#discussion_r1520259542


##########
hadoop-ozone/dist/src/main/smoketest/topology/cli.robot:
##########
@@ -22,18 +22,27 @@ Test Timeout        5 minutes
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run printTopology
     ${output} =         Execute          ozone admin printTopology
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain          ${output}         IN_SERVICE
+                        Should Match Regexp     ${output}         .*datanode[-_]\\d+.*IN_SERVICE.*

Review Comment:
   I think it would be better to remove it since we want this test to work regardless of the health of DN's
   



-- 
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


Re: [PR] HDDS-10414. ozone acceptance: Recon.Recon-Api.Check if Recon picks up DN heartbeats: failed. [ozone]

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

   @ArafatKhan2198 please check whether `hadoop-ozone/dist/src/main/smoketest/topology/cli.robot` is also failing with the same Docker version, it has similar host names in assertion:
   
   ```
   hadoop-ozone/dist/src/main/smoketest/topology/cli.robot
   29:                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
   33:                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE
   36:                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
   39:                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
   ```


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

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

   Hi @adoroszlai can you please take a look
   The forked CI ran green :- https://github.com/ArafatKhan2198/ozone/actions/runs/8229346145
   


-- 
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


Re: [PR] HDDS-10414. ozone acceptance: Recon.Recon-Api.Check if Recon picks up DN heartbeats: failed. [ozone]

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

   @dombizita @devmadhuu Could 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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #6269:
URL: https://github.com/apache/ozone/pull/6269


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

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

   Thanks @ArafatKhan2198 for the patch, @devmadhuu, @Tejaskriya for the review.


-- 
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


Re: [PR] HDDS-10414. Some acceptance tests fail with Docker Compose V2 [ozone]

Posted by "ArafatKhan2198 (via GitHub)" <gi...@apache.org>.
ArafatKhan2198 commented on code in PR #6269:
URL: https://github.com/apache/ozone/pull/6269#discussion_r1520255533


##########
hadoop-ozone/dist/src/main/smoketest/topology/cli.robot:
##########
@@ -22,18 +22,27 @@ Test Timeout        5 minutes
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run printTopology
     ${output} =         Execute          ozone admin printTopology
-                        Should contain   ${output}         10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net)    IN_SERVICE    /rack2
+                        Should Contain   ${output}         State = HEALTHY
+                        Should Contain          ${output}         IN_SERVICE
+                        Should Match Regexp     ${output}         .*datanode[-_]\\d+.*IN_SERVICE.*

Review Comment:
   Each test case begins by checking for the State = HEALTHY output, ensuring that the overall state of the system or the datanodes is as expected.
   All the commands start with this line. 
   
   ```
   sh-4.2$ ozone admin printTopology
   State = HEALTHY
    172.19.0.8(ozone-datanode-4.ozone_default):HTTP=9882,CLIENT_RPC=19864,REPLICATION=9886,RATIS=9858,RATIS_ADMIN=9857,RATIS_SERVER=9856,RATIS_DATASTREAM=9855,STANDALONE=9859    IN_SERVICE    /default-rack
    172.19.0.10(ozone-datanode-1.ozone_default):HTTP=9882,CLIENT_RPC=19864,REPLICATION=9886,RATIS=9858,RATIS_ADMIN=9857,RATIS_SERVER=9856,RATIS_DATASTREAM=9855,STANDALONE=9859    IN_SERVICE    /default-rack
    172.19.0.7(ozone-datanode-5.ozone_default):HTTP=9882,CLIENT_RPC=19864,REPLICATION=9886,RATIS=9858,RATIS_ADMIN=9857,RATIS_SERVER=9856,RATIS_DATASTREAM=9855,STANDALONE=9859    IN_SERVICE    /default-rack
   ```
   And I have added the check for rack again



-- 
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