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/10/25 19:57:18 UTC

Review Request 63305: Downgrade From HDP 2.6 to 2.5 Leaves 2.6 Hosts as CURRENT Instead of INSTALLED

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

Review request for Ambari, Dmytro Grinenko and Nate Cole.


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


Repository: ambari


Description
-------

STR:
- Install HDP 2.5.4 with ZK
- Perform an RU to 2.6.0.0
- Downgrade back to 2.5.4

All hosts remain current after finalization:
{code}
{
  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions?fields=ClusterStackVersions/host_states",
  "items": [
    {
      "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1",
      "ClusterStackVersions": {
        "cluster_name": "c1",
        "id": 1,
        "repository_version": 1,
        "stack": "HDP",
        "version": "2.5",
        "host_states": {
          "CURRENT": [
            "c6403.ambari.apache.org",
            "c6402.ambari.apache.org",
            "c6401.ambari.apache.org"
          ],
          "INSTALLED": [],
          "INSTALLING": [],
          "INSTALL_FAILED": [],
          "NOT_REQUIRED": [],
          "OUT_OF_SYNC": []
        }
      }
    },
    {
      "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2",
      "ClusterStackVersions": {
        "cluster_name": "c1",
        "id": 2,
        "repository_version": 2,
        "stack": "HDP",
        "version": "2.6",
        "host_states": {
          "CURRENT": [
            "c6403.ambari.apache.org",
            "c6402.ambari.apache.org",
            "c6401.ambari.apache.org"
          ],
          "INSTALLED": [],
          "INSTALLING": [],
          "INSTALL_FAILED": [],
          "NOT_REQUIRED": [],
          "OUT_OF_SYNC": []
        }
      }
    }
  ]
}
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java 4d5f3ba627 


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


Testing
-------

PENDING


Thanks,

Jonathan Hurley


Re: Review Request 63305: Downgrade From HDP 2.6 to 2.5 Leaves 2.6 Hosts as CURRENT Instead of INSTALLED

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


Ship it!




Ship It!

- Nate Cole


On Oct. 25, 2017, 3:57 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63305/
> -----------------------------------------------------------
> 
> (Updated Oct. 25, 2017, 3:57 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko and Nate Cole.
> 
> 
> Bugs: AMBARI-22312
>     https://issues.apache.org/jira/browse/AMBARI-22312
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> - Install HDP 2.5.4 with ZK
> - Perform an RU to 2.6.0.0
> - Downgrade back to 2.5.4
> 
> All hosts remain current after finalization:
> {code}
> {
>   "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions?fields=ClusterStackVersions/host_states",
>   "items": [
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1",
>       "ClusterStackVersions": {
>         "cluster_name": "c1",
>         "id": 1,
>         "repository_version": 1,
>         "stack": "HDP",
>         "version": "2.5",
>         "host_states": {
>           "CURRENT": [
>             "c6403.ambari.apache.org",
>             "c6402.ambari.apache.org",
>             "c6401.ambari.apache.org"
>           ],
>           "INSTALLED": [],
>           "INSTALLING": [],
>           "INSTALL_FAILED": [],
>           "NOT_REQUIRED": [],
>           "OUT_OF_SYNC": []
>         }
>       }
>     },
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2",
>       "ClusterStackVersions": {
>         "cluster_name": "c1",
>         "id": 2,
>         "repository_version": 2,
>         "stack": "HDP",
>         "version": "2.6",
>         "host_states": {
>           "CURRENT": [
>             "c6403.ambari.apache.org",
>             "c6402.ambari.apache.org",
>             "c6401.ambari.apache.org"
>           ],
>           "INSTALLED": [],
>           "INSTALLING": [],
>           "INSTALL_FAILED": [],
>           "NOT_REQUIRED": [],
>           "OUT_OF_SYNC": []
>         }
>       }
>     }
>   ]
> }
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java 4d5f3ba627 
> 
> 
> Diff: https://reviews.apache.org/r/63305/diff/1/
> 
> 
> Testing
> -------
> 
> PENDING
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 63305: Downgrade From HDP 2.6 to 2.5 Leaves 2.6 Hosts as CURRENT Instead of INSTALLED

Posted by Dmytro Grinenko <ha...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/63305/#review189242
-----------------------------------------------------------


Ship it!




Ship It!

- Dmytro Grinenko


On Oct. 25, 2017, 7:57 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63305/
> -----------------------------------------------------------
> 
> (Updated Oct. 25, 2017, 7:57 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko and Nate Cole.
> 
> 
> Bugs: AMBARI-22312
>     https://issues.apache.org/jira/browse/AMBARI-22312
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> - Install HDP 2.5.4 with ZK
> - Perform an RU to 2.6.0.0
> - Downgrade back to 2.5.4
> 
> All hosts remain current after finalization:
> {code}
> {
>   "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions?fields=ClusterStackVersions/host_states",
>   "items": [
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1",
>       "ClusterStackVersions": {
>         "cluster_name": "c1",
>         "id": 1,
>         "repository_version": 1,
>         "stack": "HDP",
>         "version": "2.5",
>         "host_states": {
>           "CURRENT": [
>             "c6403.ambari.apache.org",
>             "c6402.ambari.apache.org",
>             "c6401.ambari.apache.org"
>           ],
>           "INSTALLED": [],
>           "INSTALLING": [],
>           "INSTALL_FAILED": [],
>           "NOT_REQUIRED": [],
>           "OUT_OF_SYNC": []
>         }
>       }
>     },
>     {
>       "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2",
>       "ClusterStackVersions": {
>         "cluster_name": "c1",
>         "id": 2,
>         "repository_version": 2,
>         "stack": "HDP",
>         "version": "2.6",
>         "host_states": {
>           "CURRENT": [
>             "c6403.ambari.apache.org",
>             "c6402.ambari.apache.org",
>             "c6401.ambari.apache.org"
>           ],
>           "INSTALLED": [],
>           "INSTALLING": [],
>           "INSTALL_FAILED": [],
>           "NOT_REQUIRED": [],
>           "OUT_OF_SYNC": []
>         }
>       }
>     }
>   ]
> }
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java 4d5f3ba627 
> 
> 
> Diff: https://reviews.apache.org/r/63305/diff/1/
> 
> 
> Testing
> -------
> 
> PENDING
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>