You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/01/17 00:29:04 UTC

[GitHub] [hadoop-ozone] avijayanhwx opened a new pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

avijayanhwx opened a new pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453
 
 
   …ng found.
   
   ## What changes were proposed in this pull request?
   The Ozone Configuration was not getting passed into the Http Server since there was a recent change in the ConfigurationProvider to provide an instance of 'OzoneConfiguration' instead of 'Configuration'. Hence, Guice created a new Configuration instance for the HttpServer. Since the server did not get the kerberos related configuration, it shut down in the secure environment.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-2897
   
   ## How was this patch tested?
   Manually tested on a secure cluster and verified Recon starts up fine.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] avijayanhwx commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
avijayanhwx commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#issuecomment-575495457
 
 
   > @avijayanhwx The changes look good to me. Can we also add a robot test to start recon in secure environment?
   > We already have robot test for secure cluster.
   
   Thanks for the review @mukul1987. I have added a basic robot test for testing recon REST API works in secure/unsecure environments. Created HDDS-2899 to track adding robot tests for Recon-OM integration.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] avijayanhwx commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
avijayanhwx commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#issuecomment-575411054
 
 
   cc @swagle / @shwetayakkali 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] avijayanhwx edited a comment on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
avijayanhwx edited a comment on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#issuecomment-575411054
 
 
   cc @swagle / @shwetayakkali Please 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] adoroszlai merged pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] adoroszlai commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#issuecomment-575776309
 
 
   Thanks @avijayanhwx for the fix, and @swagle and @mukul1987 for reviews.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] avijayanhwx commented on a change in pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
avijayanhwx commented on a change in pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#discussion_r368087730
 
 

 ##########
 File path: hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-recon.robot
 ##########
 @@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+*** Settings ***
+Documentation       Smoke test to start cluster with docker-compose environments.
+Library             OperatingSystem
+Library             String
+Library             BuiltIn
+Resource            ../commonlib.robot
+
+*** Variables ***
+${ENDPOINT_URL}     http://recon:9888
+
+*** Test Cases ***
+Recon REST API
+    Run Keyword if      '${SECURITY_ENABLED}' == 'true'     Kinit HTTP user
+    ${result} =         Execute                             curl --negotiate -u : -v ${ENDPOINT_URL}/api/containers
+                        Should contain      ${result}       containers
 
 Review comment:
   @adoroszlai Thank you for the suggestion. I have addressed 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] mukul1987 commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
mukul1987 commented on issue #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#issuecomment-575459610
 
 
   @avijayanhwx The changes look good to me. Can we also add a robot test to start recon in secure environment?
   We already have robot test for secure cluster.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] adoroszlai commented on a change in pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #453: HDDS-2897. Ozone recon Start failed due to Kerberos principal not bei…
URL: https://github.com/apache/hadoop-ozone/pull/453#discussion_r367819093
 
 

 ##########
 File path: hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-recon.robot
 ##########
 @@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+*** Settings ***
+Documentation       Smoke test to start cluster with docker-compose environments.
+Library             OperatingSystem
+Library             String
+Library             BuiltIn
+Resource            ../commonlib.robot
+
+*** Variables ***
+${ENDPOINT_URL}     http://recon:9888
+
+*** Test Cases ***
+Recon REST API
+    Run Keyword if      '${SECURITY_ENABLED}' == 'true'     Kinit HTTP user
+    ${result} =         Execute                             curl --negotiate -u : -v ${ENDPOINT_URL}/api/containers
+                        Should contain      ${result}       containers
 
 Review comment:
   The robot tests look good, but I think we could get rid of the duplication.  `security/ozone-secure-recon.robot` works in both secure and unsecure env.  So I propose:
   
   1. rename `security/ozone-secure-recon.robot` to `recon/recon-api.robot` (ie. get rid of the unsecure-only test, but keep its name and location)
   2. add `execute_robot_test recon recon` in `ozonesecure/test.sh`, too
   
   This way the same test would be executed in both secure and unsecure env, similar to eg. `s3` tests:
   
   https://github.com/apache/hadoop-ozone/blob/1caf1e30865aa2b380a7fca6d87f5ae8034fee4e/hadoop-ozone/dist/src/main/compose/ozone/test.sh#L39
   
   https://github.com/apache/hadoop-ozone/blob/1caf1e30865aa2b380a7fca6d87f5ae8034fee4e/hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh#L36

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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