Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-10 Thread Mugdha Varadkar

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

(Updated Aug. 11, 2017, 4:44 a.m.)


Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
Hurley.


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


Repository: ambari


Description
---

Currently get_stack_version only accepts stack version with -buildnumber at the 
end. 
Need to change stack_version pattern match for stack_version without 
-buildnumber.

For cross stack upgrade from IOP to HDP, if user restart services after Ambari 
upgrade ie before upgrading to HDP stack 2.6, the get_stack_version returns 
None. This affects Ranger-related functionality which depends on stack_version 
for generating file path.

The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
stack_version=None.


Diffs
-

  
ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
 7274a59 


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


Testing
---

Tested:
1)Services restart after ambari upgrade with IOP 4.2.0.0
2)Fresh installs with HDP.
3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y

Unit test report:
Ran 274 tests in 6.820s

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


Thanks,

Mugdha Varadkar



Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-10 Thread Jonathan Hurley

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


Ship it!




Ship It!

- Jonathan Hurley


On Aug. 10, 2017, 2:29 a.m., Mugdha Varadkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61525/
> ---
> 
> (Updated Aug. 10, 2017, 2:29 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
> Hurley.
> 
> 
> Bugs: AMBARI-21690
> https://issues.apache.org/jira/browse/AMBARI-21690
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Currently get_stack_version only accepts stack version with -buildnumber at 
> the end. 
> Need to change stack_version pattern match for stack_version without 
> -buildnumber.
> 
> For cross stack upgrade from IOP to HDP, if user restart services after 
> Ambari upgrade ie before upgrading to HDP stack 2.6, the get_stack_version 
> returns None. This affects Ranger-related functionality which depends on 
> stack_version for generating file path.
> 
> The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
> doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
> stack_version=None.
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  7274a59 
> 
> 
> Diff: https://reviews.apache.org/r/61525/diff/2/
> 
> 
> Testing
> ---
> 
> Tested:
> 1)Services restart after ambari upgrade with IOP 4.2.0.0
> 2)Fresh installs with HDP.
> 3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y
> 
> Unit test report:
> Ran 274 tests in 6.820s
> 
> OK
> --
> Total run:1162
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>



Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-10 Thread Mugdha Varadkar

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

(Updated Aug. 10, 2017, 6:29 a.m.)


Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
Hurley.


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


Repository: ambari


Description
---

Currently get_stack_version only accepts stack version with -buildnumber at the 
end. 
Need to change stack_version pattern match for stack_version without 
-buildnumber.

For cross stack upgrade from IOP to HDP, if user restart services after Ambari 
upgrade ie before upgrading to HDP stack 2.6, the get_stack_version returns 
None. This affects Ranger-related functionality which depends on stack_version 
for generating file path.

The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
stack_version=None.


Diffs (updated)
-

  
ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
 7274a59 


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

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


Testing
---

Tested:
1)Services restart after ambari upgrade with IOP 4.2.0.0
2)Fresh installs with HDP.
3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y

Unit test report:
Ran 274 tests in 6.820s

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


Thanks,

Mugdha Varadkar



Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-09 Thread Jonathan Hurley


> On Aug. 9, 2017, 2:29 p.m., Alejandro Fernandez wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
> > Line 88 (original), 88 (patched)
> > 
> >
> > Just do this instead,
> > 
> > [0-9]+.[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?

pythex.org likes this regex too - +1 for this change.


- Jonathan


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


On Aug. 9, 2017, 9:07 a.m., Mugdha Varadkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61525/
> ---
> 
> (Updated Aug. 9, 2017, 9:07 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
> Hurley.
> 
> 
> Bugs: AMBARI-21690
> https://issues.apache.org/jira/browse/AMBARI-21690
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Currently get_stack_version only accepts stack version with -buildnumber at 
> the end. 
> Need to change stack_version pattern match for stack_version without 
> -buildnumber.
> 
> For cross stack upgrade from IOP to HDP, if user restart services after 
> Ambari upgrade ie before upgrading to HDP stack 2.6, the get_stack_version 
> returns None. This affects Ranger-related functionality which depends on 
> stack_version for generating file path.
> 
> The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
> doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
> stack_version=None.
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  7274a59 
> 
> 
> Diff: https://reviews.apache.org/r/61525/diff/1/
> 
> 
> Testing
> ---
> 
> Tested:
> 1)Services restart after ambari upgrade with IOP 4.2.0.0
> 2)Fresh installs with HDP.
> 3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y
> 
> Unit test report:
> Ran 274 tests in 6.820s
> 
> OK
> --
> Total run:1162
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>



Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-09 Thread Alejandro Fernandez

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




ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
Line 88 (original), 88 (patched)


Just do this instead,

[0-9]+.[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?


- Alejandro Fernandez


On Aug. 9, 2017, 1:07 p.m., Mugdha Varadkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61525/
> ---
> 
> (Updated Aug. 9, 2017, 1:07 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
> Hurley.
> 
> 
> Bugs: AMBARI-21690
> https://issues.apache.org/jira/browse/AMBARI-21690
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Currently get_stack_version only accepts stack version with -buildnumber at 
> the end. 
> Need to change stack_version pattern match for stack_version without 
> -buildnumber.
> 
> For cross stack upgrade from IOP to HDP, if user restart services after 
> Ambari upgrade ie before upgrading to HDP stack 2.6, the get_stack_version 
> returns None. This affects Ranger-related functionality which depends on 
> stack_version for generating file path.
> 
> The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
> doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
> stack_version=None.
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  7274a59 
> 
> 
> Diff: https://reviews.apache.org/r/61525/diff/1/
> 
> 
> Testing
> ---
> 
> Tested:
> 1)Services restart after ambari upgrade with IOP 4.2.0.0
> 2)Fresh installs with HDP.
> 3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y
> 
> Unit test report:
> Ran 274 tests in 6.820s
> 
> OK
> --
> Total run:1162
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>



Re: Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-09 Thread Mugdha Varadkar

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

(Updated Aug. 9, 2017, 1:07 p.m.)


Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
Hurley.


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


Repository: ambari


Description
---

Currently get_stack_version only accepts stack version with -buildnumber at the 
end. 
Need to change stack_version pattern match for stack_version without 
-buildnumber.

For cross stack upgrade from IOP to HDP, if user restart services after Ambari 
upgrade ie before upgrading to HDP stack 2.6, the get_stack_version returns 
None. This affects Ranger-related functionality which depends on stack_version 
for generating file path.

The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
stack_version=None.


Diffs
-

  
ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
 7274a59 


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


Testing
---

Tested:
1)Services restart after ambari upgrade with IOP 4.2.0.0
2)Fresh installs with HDP.
3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y

Unit test report:
Ran 274 tests in 6.820s

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


Thanks,

Mugdha Varadkar



Review Request 61525: AMBARI-21690 Updating get_stack_version pattern match

2017-08-09 Thread Mugdha Varadkar

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

Review request for Ambari, Alejandro Fernandez, Gautam Borad, and Jonathan 
Hurley.


Repository: ambari


Description
---

Currently get_stack_version only accepts stack version with -buildnumber at the 
end. 
Need to change stack_version pattern match for stack_version without 
-buildnumber.

For cross stack upgrade from IOP to HDP, if user restart services after Ambari 
upgrade ie before upgrading to HDP stack 2.6, the get_stack_version returns 
None. This affects Ranger-related functionality which depends on stack_version 
for generating file path.

The problem occured for cluster with IOP - 4.2.0.0 with latest Ambari, which 
doesn't have -buildnumber at the end, so 4.2.0.0 is not matched and 
stack_version=None.


Diffs
-

  
ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
 7274a59 


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


Testing
---

Tested:
1)Services restart after ambari upgrade with IOP 4.2.0.0
2)Fresh installs with HDP.
3)EU from IOP to HDP-2.6.x and HDP-2.6.x to HDP-2.6.y

Unit test report:
Ran 274 tests in 6.820s

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


Thanks,

Mugdha Varadkar