You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Jonathan Hurley <jh...@hortonworks.com> on 2017/07/10 14:31:53 UTC

Review Request 60745: Allow BI stack services to be stopped as a part of the upgrade pack

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

Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.


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


Repository: ambari


Description
-------

With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.

This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.


Diffs
-----

  ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
  ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
  ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 


Diff: https://reviews.apache.org/r/60745/diff/1/


Testing
-------

Performed an EU with Core services from BI to HDP.


Thanks,

Jonathan Hurley


Re: Review Request 60745: Allow Services To Be Stopped During an EU Between Stack Vendors

Posted by Nate Cole <nc...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/#review180069
-----------------------------------------------------------


Ship it!




Ship It!

- Nate Cole


On July 10, 2017, 10:31 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60745/
> -----------------------------------------------------------
> 
> (Updated July 10, 2017, 10:31 a.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21432
>     https://issues.apache.org/jira/browse/AMBARI-21432
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.
> 
> This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
> 
> 
> Diff: https://reviews.apache.org/r/60745/diff/1/
> 
> 
> Testing
> -------
> 
> Performed an EU with Core services from BI to HDP.
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 60745: Allow Services To Be Stopped During an EU Between Stack Vendors

Posted by Sid Wagle <sw...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/#review180040
-----------------------------------------------------------


Fix it, then Ship it!





ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py
Lines 416 (patched)
<https://reviews.apache.org/r/60745/#comment255039>

    Spelling.


- Sid Wagle


On July 10, 2017, 2:31 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60745/
> -----------------------------------------------------------
> 
> (Updated July 10, 2017, 2:31 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21432
>     https://issues.apache.org/jira/browse/AMBARI-21432
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.
> 
> This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
> 
> 
> Diff: https://reviews.apache.org/r/60745/diff/1/
> 
> 
> Testing
> -------
> 
> Performed an EU with Core services from BI to HDP.
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 60745: Allow BI stack services to be stopped as a part of the upgrade pack

Posted by Jonathan Hurley <jh...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/#review180037
-----------------------------------------------------------




ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py
Lines 406-445 (original), 400-417 (patched)
<https://reviews.apache.org/r/60745/#comment255037>

    It turns out that when adding STOP commands back, we encountered failures all over the place. The problem is that the conf-select tool installed by HDP doesn't take a stack root - it hard codes /usr/hdp (just like the one for BI hard coded /usr/iop)
    
    When sending down any command, the status_params.py consult this function to get the hadoop directory. The logic is like this:
    - If there is not an upgrade in progress, then just return /usr/hdp/current/hadoop-client/conf
    
    - If there is an upgrade in progress, then use the hadoop conf directory which matches this component's version
    
    *The odd part here is that we were also doing a conf_select.select() which failed b/c the stack component was still using a BigInsight number in its patch during the STOP command*
    
    This seems to have been a relic from the ancient HDP 2.2 days where conf-select didn't exist yet and we had to cover the initial upgrade/downgrade situation between 2.2 and 2.3 when conf-select was introduced.
    
    I decided to simply get rid of calling conf-select.select() during the upgrade and I left the exist code which says to invoke it if /usr/hdp/current/hadoop-client/conf is not a link. Technically this can never happen anymore, but I'd rather not change too many tangential areas of the upgrade code.


- Jonathan Hurley


On July 10, 2017, 10:31 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60745/
> -----------------------------------------------------------
> 
> (Updated July 10, 2017, 10:31 a.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21432
>     https://issues.apache.org/jira/browse/AMBARI-21432
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.
> 
> This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
> 
> 
> Diff: https://reviews.apache.org/r/60745/diff/1/
> 
> 
> Testing
> -------
> 
> Performed an EU with Core services from BI to HDP.
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 60745: Allow Services To Be Stopped During an EU Between Stack Vendors

Posted by Jonathan Hurley <jh...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/
-----------------------------------------------------------

(Updated July 10, 2017, 2:44 p.m.)


Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.


Changes
-------

My prior changes where I removed HDP 2.2-specific code caused way too many tests to fail b/c they assumed old directories. I tried to fix them up, but it was too much for this release and should be done separately.


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


Repository: ambari


Description
-------

With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.

This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.


Diffs (updated)
-----

  ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
  ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
  ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
  ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py 60022e10e4 
  ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py dfeb4be734 


Diff: https://reviews.apache.org/r/60745/diff/2/

Changes: https://reviews.apache.org/r/60745/diff/1-2/


Testing (updated)
-------

Performed an EU with Core services from BI to HDP.

----------------------------------------------------------------------
Total run:1161
Total errors:0
Total failures:0
OK


Thanks,

Jonathan Hurley


Re: Review Request 60745: Allow Services To Be Stopped During an EU Between Stack Vendors

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/#review180060
-----------------------------------------------------------


Ship it!




Ship It!

- Alejandro Fernandez


On July 10, 2017, 2:31 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60745/
> -----------------------------------------------------------
> 
> (Updated July 10, 2017, 2:31 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21432
>     https://issues.apache.org/jira/browse/AMBARI-21432
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.
> 
> This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
> 
> 
> Diff: https://reviews.apache.org/r/60745/diff/1/
> 
> 
> Testing
> -------
> 
> Performed an EU with Core services from BI to HDP.
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 60745: Allow Services To Be Stopped During an EU Between Stack Vendors

Posted by Attila Doroszlai <ad...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60745/#review180049
-----------------------------------------------------------


Fix it, then Ship it!




Some trivial issues


ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py
Line 472 (original), 441 (patched)
<https://reviews.apache.org/r/60745/#comment255047>

    "targetted" -> "targeted"



ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
Line 47 (original), 45 (patched)
<https://reviews.apache.org/r/60745/#comment255048>

    trailing whitespace



ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
Lines 124 (patched)
<https://reviews.apache.org/r/60745/#comment255049>

    trailing whitespace


- Attila Doroszlai


On July 10, 2017, 4:31 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60745/
> -----------------------------------------------------------
> 
> (Updated July 10, 2017, 4:31 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, Nate Cole, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21432
>     https://issues.apache.org/jira/browse/AMBARI-21432
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> With stack features allowed to co-exist for cross stack upgrade, once AMBARI-21430 is completed we should be able to do Stop All services from the upgrade pack.
> 
> This will allow EU to look seamless and similar to any intra-stack upgrade with pre-checks and stop enabled.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py facf186f0e 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
>   ambari-server/src/main/resources/stacks/BigInsights/4.2/upgrades/nonrolling-upgrade-to-hdp-2.6.xml 46260058cf 
> 
> 
> Diff: https://reviews.apache.org/r/60745/diff/1/
> 
> 
> Testing
> -------
> 
> Performed an EU with Core services from BI to HDP.
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>