You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Alexandr Antonenko <hi...@gmail.com> on 2015/03/20 16:42:28 UTC

Review Request 32308: Creating "false" local user

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/
-----------------------------------------------------------

Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.


Bugs: AMBARI-10157
    https://issues.apache.org/jira/browse/AMBARI-10157


Repository: ambari


Description
-------

Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.

zookeeper:x:502:503::/home/zookeeper:/bin/bash
ams:x:503:503::/home/ams:/bin/bash
ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
tez:x:505:503::/home/tez:/bin/bash
false:x:506:503::/home/false:/bin/bash
hdfs:x:507:503::/home/hdfs:/bin/bash
yarn:x:508:503::/home/yarn:/bin/bash
mapred:x:509:503::/home/mapred:/bin/bash


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
  ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
  ambari-web/app/utils/config.js ed34232 

Diff: https://reviews.apache.org/r/32308/diff/


Testing
-------


Thanks,

Alexandr Antonenko


Re: Review Request 32308: Creating "false" local user

Posted by Alexandr Antonenko <hi...@gmail.com>.

> On March 20, 2015, 5:30 p.m., Jaimin Jetly wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml, line 37
> > <https://reviews.apache.org/r/32308/diff/1/?file=901422#file901422line37>
> >
> >     We should avoid introducing a new propertyType if possible. 
> >     
> >     As of know there is just one property that needs to be tweaked. We can have that logic hard-coded in the UI.
> >     
> >     If there are more occurrences of properties that needs to fall in USER section and actual user should not be created on host machines then introducing a  new propertyType is unavoidable but for now we can defer it
> 
> Jaimin Jetly wrote:
>     Anyways the fix should resolve the issue. We can ship it

Hardcoding one of configs on UI can be, not so straightforward task, as it may look like. Currently config loading/merging/saving has a lot of hardcode/dependencies. Because property "ignore_groupsusers_create" will have property_type=undefined, number of places where we will have to add changes can grow up. So we will have to very carefully double check that hardcode on UI side.


For future purpose, can you please explain why we should avoid that ?


- Alexandr


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77241
-----------------------------------------------------------


On March 20, 2015, 3:42 p.m., Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 3:42 p.m.)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>


Re: Review Request 32308: Creating "false" local user

Posted by Jaimin Jetly <ja...@hortonworks.com>.

> On March 20, 2015, 5:30 p.m., Jaimin Jetly wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml, line 37
> > <https://reviews.apache.org/r/32308/diff/1/?file=901422#file901422line37>
> >
> >     We should avoid introducing a new propertyType if possible. 
> >     
> >     As of know there is just one property that needs to be tweaked. We can have that logic hard-coded in the UI.
> >     
> >     If there are more occurrences of properties that needs to fall in USER section and actual user should not be created on host machines then introducing a  new propertyType is unavoidable but for now we can defer it

Anyways the fix should resolve the issue. We can ship it


- Jaimin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77241
-----------------------------------------------------------


On March 20, 2015, 3:42 p.m., Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 3:42 p.m.)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>


Re: Review Request 32308: Creating "false" local user

Posted by Jaimin Jetly <ja...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77241
-----------------------------------------------------------



ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml
<https://reviews.apache.org/r/32308/#comment125112>

    We should avoid introducing a new propertyType if possible. 
    
    As of know there is just one property that needs to be tweaked. We can have that logic hard-coded in the UI.
    
    If there are more occurrences of properties that needs to fall in USER section and actual user should not be created on host machines then introducing a  new propertyType is unavoidable but for now we can defer it


- Jaimin Jetly


On March 20, 2015, 3:42 p.m., Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 3:42 p.m.)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>


Re: Review Request 32308: Creating "false" local user

Posted by Aleksandr Kovalenko <ak...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77225
-----------------------------------------------------------

Ship it!


Ship It!

- Aleksandr Kovalenko


On Березень 20, 2015, 3:42 після полудня, Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated Березень 20, 2015, 3:42 після полудня)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>


Re: Review Request 32308: Creating "false" local user

Posted by Andriy Babiichuk <ab...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77224
-----------------------------------------------------------

Ship it!


Ship It!

- Andriy Babiichuk


On Март 20, 2015, 3:42 п.п., Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated Март 20, 2015, 3:42 п.п.)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>


Re: Review Request 32308: Creating "false" local user

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32308/#review77236
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On March 20, 2015, 3:42 p.m., Alexandr Antonenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32308/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 3:42 p.m.)
> 
> 
> Review request for Ambari, Andriy Babiichuk and Aleksandr Kovalenko.
> 
> 
> Bugs: AMBARI-10157
>     https://issues.apache.org/jira/browse/AMBARI-10157
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Looks like a user *false:x:506:503::/home/false:/bin/bash* is getting created by Ambari. Does not seems tied to any specific combo of Stack or Services, is happening regardless of combo.
> 
> zookeeper:x:502:503::/home/zookeeper:/bin/bash
> ams:x:503:503::/home/ams:/bin/bash
> ambari-qa:x:1001:503::/home/ambari-qa:/bin/bash
> tez:x:505:503::/home/tez:/bin/bash
> false:x:506:503::/home/false:/bin/bash
> hdfs:x:507:503::/home/hdfs:/bin/bash
> yarn:x:508:503::/home/yarn:/bin/bash
> mapred:x:509:503::/home/mapred:/bin/bash
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java e26b48f 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 1bfc1ee 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml f014f8d 
>   ambari-web/app/utils/config.js ed34232 
> 
> Diff: https://reviews.apache.org/r/32308/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Antonenko
> 
>