[jira] [Updated] (AMBARI-20332) Few ambari agent unit tests are failing

2017-03-09 Thread Andrew Onischuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-20332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-20332:
-
Fix Version/s: 2.5.0

> Few ambari agent unit tests are failing
> ---
>
> Key: AMBARI-20332
> URL: https://issues.apache.org/jira/browse/AMBARI-20332
> Project: Ambari
>  Issue Type: Bug
>  Components: test
>Affects Versions: 2.5.0
>Reporter: Yesha Vora
> Fix For: 2.5.0
>
> Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu 
> -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ==
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py",
>  line 179, in test_may_manage_folder
> self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ==
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", 
> line 71, in test_kill_process_with_children
> self.assertTrue(sleep_cmd in out)
> AssertionError
> ==
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 
> 247, in test_facterMemInfoOutput
> self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> --
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO] {code}
> {code}
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main  SUCCESS [  7.696 
> s]
> [INFO] Apache Ambari Project POM .. SUCCESS [  0.213 
> s]
> [INFO] Ambari Web . SUCCESS [02:07 
> min]
> [INFO] Ambari Views ... SUCCESS [  6.316 
> s]
> [INFO] Ambari Admin View .. SUCCESS [01:17 
> min]
> [INFO] utility  SUCCESS [  3.209 
> s]
> [INFO] ambari-metrics . SUCCESS [  1.427 
> s]
> [INFO] Ambari Metrics Common .. SUCCESS [  5.610 
> s]
> [INFO] Ambari Metrics Hadoop Sink . SUCCESS [  7.023 
> s]
> [INFO] Ambari Metrics Flume Sink .. SUCCESS [  5.797 
> s]
> [INFO] Ambari Metrics Kafka Sink .. SUCCESS [  4.710 
> s]
> [INFO] Ambari Metrics Storm Sink .. SUCCESS [  2.895 
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) . SUCCESS [  3.642 
> s]
> [INFO] Ambari Metrics Collector ... SUCCESS [07:18 
> min]
> [INFO] Ambari Metrics Monitor . SUCCESS [  5.923 
> s]
> [INFO] Ambari Metrics Grafana . SUCCESS [  3.769 
> s]
> [INFO] Ambari Metrics Assembly  SUCCESS [  7.651 
> s]
> [INFO] Ambari Server .. FAILURE [15:35 
> min]
> [INFO] Ambari Functional Tests  SKIPPED
> [INFO] Ambari Agent ... FAILURE [ 42.590 
> s]
> [INFO] Ambari Client .. SUCCESS [  0.068 
> s]
> [INFO] Ambari Python Client ... SUCCESS [  2.080 
> s]
> [INFO] Ambari Groovy Client ... SUCCESS [ 17.194 
> s]
> [INFO] Ambari Shell ... SUCCESS [  0.044 
> s]
> [INFO] Ambari Python Shell  SUCCESS [  0.232 
> s]
> [INFO] Ambari Groovy Shell 

[jira] [Updated] (AMBARI-20332) Few ambari agent unit tests are failing

2017-03-09 Thread Andrew Onischuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-20332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-20332:
-
Resolution: Fixed
Status: Resolved  (was: Patch Available)

Committed to trunk and branch-2.5

> Few ambari agent unit tests are failing
> ---
>
> Key: AMBARI-20332
> URL: https://issues.apache.org/jira/browse/AMBARI-20332
> Project: Ambari
>  Issue Type: Bug
>  Components: test
>Affects Versions: 2.5.0
>Reporter: Yesha Vora
>Assignee: Andrew Onischuk
> Fix For: 2.5.0
>
> Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu 
> -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ==
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py",
>  line 179, in test_may_manage_folder
> self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ==
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", 
> line 71, in test_kill_process_with_children
> self.assertTrue(sleep_cmd in out)
> AssertionError
> ==
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 
> 247, in test_facterMemInfoOutput
> self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> --
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO] {code}
> {code}
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main  SUCCESS [  7.696 
> s]
> [INFO] Apache Ambari Project POM .. SUCCESS [  0.213 
> s]
> [INFO] Ambari Web . SUCCESS [02:07 
> min]
> [INFO] Ambari Views ... SUCCESS [  6.316 
> s]
> [INFO] Ambari Admin View .. SUCCESS [01:17 
> min]
> [INFO] utility  SUCCESS [  3.209 
> s]
> [INFO] ambari-metrics . SUCCESS [  1.427 
> s]
> [INFO] Ambari Metrics Common .. SUCCESS [  5.610 
> s]
> [INFO] Ambari Metrics Hadoop Sink . SUCCESS [  7.023 
> s]
> [INFO] Ambari Metrics Flume Sink .. SUCCESS [  5.797 
> s]
> [INFO] Ambari Metrics Kafka Sink .. SUCCESS [  4.710 
> s]
> [INFO] Ambari Metrics Storm Sink .. SUCCESS [  2.895 
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) . SUCCESS [  3.642 
> s]
> [INFO] Ambari Metrics Collector ... SUCCESS [07:18 
> min]
> [INFO] Ambari Metrics Monitor . SUCCESS [  5.923 
> s]
> [INFO] Ambari Metrics Grafana . SUCCESS [  3.769 
> s]
> [INFO] Ambari Metrics Assembly  SUCCESS [  7.651 
> s]
> [INFO] Ambari Server .. FAILURE [15:35 
> min]
> [INFO] Ambari Functional Tests  SKIPPED
> [INFO] Ambari Agent ... FAILURE [ 42.590 
> s]
> [INFO] Ambari Client .. SUCCESS [  0.068 
> s]
> [INFO] Ambari Python Client ... SUCCESS [  2.080 
> s]
> [INFO] Ambari Groovy Client ... SUCCESS [ 17.194 
> s]
> [INFO] Ambari Shell ... SUCCESS [  0.044 
> s]
> 

[jira] [Updated] (AMBARI-20332) Few ambari agent unit tests are failing

2017-03-09 Thread Andrew Onischuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-20332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-20332:
-
Affects Version/s: 2.5.0

> Few ambari agent unit tests are failing
> ---
>
> Key: AMBARI-20332
> URL: https://issues.apache.org/jira/browse/AMBARI-20332
> Project: Ambari
>  Issue Type: Bug
>  Components: test
>Affects Versions: 2.5.0
>Reporter: Yesha Vora
> Fix For: 2.5.0
>
> Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu 
> -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ==
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py",
>  line 179, in test_may_manage_folder
> self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ==
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", 
> line 71, in test_kill_process_with_children
> self.assertTrue(sleep_cmd in out)
> AssertionError
> ==
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 
> 247, in test_facterMemInfoOutput
> self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> --
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO] {code}
> {code}
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main  SUCCESS [  7.696 
> s]
> [INFO] Apache Ambari Project POM .. SUCCESS [  0.213 
> s]
> [INFO] Ambari Web . SUCCESS [02:07 
> min]
> [INFO] Ambari Views ... SUCCESS [  6.316 
> s]
> [INFO] Ambari Admin View .. SUCCESS [01:17 
> min]
> [INFO] utility  SUCCESS [  3.209 
> s]
> [INFO] ambari-metrics . SUCCESS [  1.427 
> s]
> [INFO] Ambari Metrics Common .. SUCCESS [  5.610 
> s]
> [INFO] Ambari Metrics Hadoop Sink . SUCCESS [  7.023 
> s]
> [INFO] Ambari Metrics Flume Sink .. SUCCESS [  5.797 
> s]
> [INFO] Ambari Metrics Kafka Sink .. SUCCESS [  4.710 
> s]
> [INFO] Ambari Metrics Storm Sink .. SUCCESS [  2.895 
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) . SUCCESS [  3.642 
> s]
> [INFO] Ambari Metrics Collector ... SUCCESS [07:18 
> min]
> [INFO] Ambari Metrics Monitor . SUCCESS [  5.923 
> s]
> [INFO] Ambari Metrics Grafana . SUCCESS [  3.769 
> s]
> [INFO] Ambari Metrics Assembly  SUCCESS [  7.651 
> s]
> [INFO] Ambari Server .. FAILURE [15:35 
> min]
> [INFO] Ambari Functional Tests  SKIPPED
> [INFO] Ambari Agent ... FAILURE [ 42.590 
> s]
> [INFO] Ambari Client .. SUCCESS [  0.068 
> s]
> [INFO] Ambari Python Client ... SUCCESS [  2.080 
> s]
> [INFO] Ambari Groovy Client ... SUCCESS [ 17.194 
> s]
> [INFO] Ambari Shell ... SUCCESS [  0.044 
> s]
> [INFO] Ambari Python Shell  SUCCESS [  0.232 
> s]
> [INFO] Ambari Groovy Shell 

[jira] [Updated] (AMBARI-20332) Few ambari agent unit tests are failing

2017-03-09 Thread Andrew Onischuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-20332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-20332:
-
Attachment: AMBARI-20332.patch

> Few ambari agent unit tests are failing
> ---
>
> Key: AMBARI-20332
> URL: https://issues.apache.org/jira/browse/AMBARI-20332
> Project: Ambari
>  Issue Type: Bug
>  Components: test
>Reporter: Yesha Vora
> Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu 
> -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ==
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py",
>  line 179, in test_may_manage_folder
> self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ==
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", 
> line 71, in test_kill_process_with_children
> self.assertTrue(sleep_cmd in out)
> AssertionError
> ==
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 
> 247, in test_facterMemInfoOutput
> self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> --
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO] {code}
> {code}
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main  SUCCESS [  7.696 
> s]
> [INFO] Apache Ambari Project POM .. SUCCESS [  0.213 
> s]
> [INFO] Ambari Web . SUCCESS [02:07 
> min]
> [INFO] Ambari Views ... SUCCESS [  6.316 
> s]
> [INFO] Ambari Admin View .. SUCCESS [01:17 
> min]
> [INFO] utility  SUCCESS [  3.209 
> s]
> [INFO] ambari-metrics . SUCCESS [  1.427 
> s]
> [INFO] Ambari Metrics Common .. SUCCESS [  5.610 
> s]
> [INFO] Ambari Metrics Hadoop Sink . SUCCESS [  7.023 
> s]
> [INFO] Ambari Metrics Flume Sink .. SUCCESS [  5.797 
> s]
> [INFO] Ambari Metrics Kafka Sink .. SUCCESS [  4.710 
> s]
> [INFO] Ambari Metrics Storm Sink .. SUCCESS [  2.895 
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) . SUCCESS [  3.642 
> s]
> [INFO] Ambari Metrics Collector ... SUCCESS [07:18 
> min]
> [INFO] Ambari Metrics Monitor . SUCCESS [  5.923 
> s]
> [INFO] Ambari Metrics Grafana . SUCCESS [  3.769 
> s]
> [INFO] Ambari Metrics Assembly  SUCCESS [  7.651 
> s]
> [INFO] Ambari Server .. FAILURE [15:35 
> min]
> [INFO] Ambari Functional Tests  SKIPPED
> [INFO] Ambari Agent ... FAILURE [ 42.590 
> s]
> [INFO] Ambari Client .. SUCCESS [  0.068 
> s]
> [INFO] Ambari Python Client ... SUCCESS [  2.080 
> s]
> [INFO] Ambari Groovy Client ... SUCCESS [ 17.194 
> s]
> [INFO] Ambari Shell ... SUCCESS [  0.044 
> s]
> [INFO] Ambari Python Shell  SUCCESS [  0.232 
> s]
> [INFO] Ambari Groovy Shell  SUCCESS [ 10.669 
> s]
> 

[jira] [Updated] (AMBARI-20332) Few ambari agent unit tests are failing

2017-03-09 Thread Andrew Onischuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-20332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-20332:
-
Status: Patch Available  (was: Open)

> Few ambari agent unit tests are failing
> ---
>
> Key: AMBARI-20332
> URL: https://issues.apache.org/jira/browse/AMBARI-20332
> Project: Ambari
>  Issue Type: Bug
>  Components: test
>Reporter: Yesha Vora
> Attachments: AMBARI-20332.patch
>
>
> Few ambari agent tests are failing as below. 
> {code:title=test cmd}
> export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=4096m"; mvn -B -nsu 
> -DforkCount=4 -Dmaven.test.failure.ignore=true -fae clean test {code}
> {code}
> ==
> ERROR: test_may_manage_folder (TestDatanodeHelper.TestDatanodeHelper)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py",
>  line 179, in test_may_manage_folder
> self.assertSetEqual(dirs_unmounted, set())
> AttributeError: 'TestDatanodeHelper' object has no attribute 'assertSetEqual'
> ==
> FAIL: test_kill_process_with_children (TestShell.TestShell)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestShell.py", 
> line 71, in test_kill_process_with_children
> self.assertTrue(sleep_cmd in out)
> AssertionError
> ==
> FAIL: test_facterMemInfoOutput (TestHardware.TestHardware)
> --
> Traceback (most recent call last):
>   File "/xxx/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, 
> in patched
> return func(*args, **keywargs)
>   File 
> "/xxx/ambari/ambari-agent/src/test/python/ambari_agent/TestHardware.py", line 
> 247, in test_facterMemInfoOutput
> self.assertEquals(result['memorysize'], 1832392)
> AssertionError: u'4194304' != 1832392
> --
> Ran 448 tests in 15.028s
> FAILED (failures=2, errors=1)
> [INFO] {code}
> {code}
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main  SUCCESS [  7.696 
> s]
> [INFO] Apache Ambari Project POM .. SUCCESS [  0.213 
> s]
> [INFO] Ambari Web . SUCCESS [02:07 
> min]
> [INFO] Ambari Views ... SUCCESS [  6.316 
> s]
> [INFO] Ambari Admin View .. SUCCESS [01:17 
> min]
> [INFO] utility  SUCCESS [  3.209 
> s]
> [INFO] ambari-metrics . SUCCESS [  1.427 
> s]
> [INFO] Ambari Metrics Common .. SUCCESS [  5.610 
> s]
> [INFO] Ambari Metrics Hadoop Sink . SUCCESS [  7.023 
> s]
> [INFO] Ambari Metrics Flume Sink .. SUCCESS [  5.797 
> s]
> [INFO] Ambari Metrics Kafka Sink .. SUCCESS [  4.710 
> s]
> [INFO] Ambari Metrics Storm Sink .. SUCCESS [  2.895 
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) . SUCCESS [  3.642 
> s]
> [INFO] Ambari Metrics Collector ... SUCCESS [07:18 
> min]
> [INFO] Ambari Metrics Monitor . SUCCESS [  5.923 
> s]
> [INFO] Ambari Metrics Grafana . SUCCESS [  3.769 
> s]
> [INFO] Ambari Metrics Assembly  SUCCESS [  7.651 
> s]
> [INFO] Ambari Server .. FAILURE [15:35 
> min]
> [INFO] Ambari Functional Tests  SKIPPED
> [INFO] Ambari Agent ... FAILURE [ 42.590 
> s]
> [INFO] Ambari Client .. SUCCESS [  0.068 
> s]
> [INFO] Ambari Python Client ... SUCCESS [  2.080 
> s]
> [INFO] Ambari Groovy Client ... SUCCESS [ 17.194 
> s]
> [INFO] Ambari Shell ... SUCCESS [  0.044 
> s]
> [INFO] Ambari Python Shell  SUCCESS [  0.232 
> s]
> [INFO] Ambari Groovy Shell  SUCCESS [ 10.669 
> s]