SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 114 forks source link

CLI Automation failure : test_associate_view_rh_custom_spin #2442

Closed tkolhar closed 9 years ago

tkolhar commented 9 years ago

TestNames: tests.foreman.cli.test_contentviews.TestContentView.test_associate_view_rh_custom_spin

Error Message Couldn't synchronize repo

robottelo.common.ssh: DEBUG: >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv repository synchronize --product="Red Hat Enterprise Linux Workstation" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Workstation RPMs x86_64 6Workstation" --organization-id="230" robottelo.common.ssh: INFO: Instantiated Paramiko client 0x2cc3890 robottelo.common.ssh: INFO: Destroying Paramiko client 0x2cc3890 robottelo.common.ssh: INFO: Destroyed Paramiko client 0x2cc3890 robottelo.common.ssh: DEBUG: <<< stderr [ERROR 2015-06-13 13:42:51 Exception] Error: repository not found Could not synchronize the repository: Error: repository not found [ERROR 2015-06-13 13:42:51 Exception]

HammerCLIForeman::ResolverError (repository not found): /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:191:in pick_result' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:156:infind_resource' /usr/share/gems/gems/hammer_cli_katello-0.0.7.15/lib/hammer_cli_katello/id_resolver.rb:58:in repository_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:149:inget_resource_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:138:in get_identifier' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:230:incustomized_options' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:235:in request_params' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/apipie/command.rb:43:insend_request' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:185:in send_request' /usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.3.4/lib/hammer_cli_foreman_tasks/async_command.rb:14:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in execute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:inrun' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:in run' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/bin/hammer:108:in<top (required)>' /usr/bin/hammer:23:in load' /usr/bin/hammer:23:in

'

Stacktrace

File "/usr/lib64/python2.7/unittest/case.py", line 369, in run testMethod() File "/home/jenkins/workspace/satellite6-automation-downstream-rhel71-cli/tests/foreman/cli/test_contentviews.py", line 627, in test_associate_view_rh_custom_spin self.create_rhel_content() File "/home/jenkins/workspace/satellite6-automation-downstream-rhel71-cli/tests/foreman/cli/test_contentviews.py", line 126, in create_rhel_content self.fail("Couldn't synchronize repo") File "/usr/lib64/python2.7/unittest/case.py", line 450, in fail raise self.failureException(msg) 'Couldn\'t synchronize repo\n--------------------

tkolhar commented 9 years ago

when executed locally using nosetests:

$ nosetests -c robottelo.properties -m test_associate_view_rh_custom_spin /home/tkolhar/git/robottelo/tests/foreman/cli/test_contentviews.py 2015-06-15 16:29:21 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv repository synchronize --product="Red Hat Enterprise Linux Workstation" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Workstation RPMs x86_64 6Workstation" --organization-id="426" 2015-06-15 16:29:25 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x2d82dd0 2015-06-15 16:29:27 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x2d82dd0 2015-06-15 16:29:28 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x2d82dd0 2015-06-15 16:29:28 - robottelo.common.ssh - DEBUG - <<< stderr [ERROR 2015-06-15 06:59:27 Exception] Error: repository not found Could not synchronize the repository: Error: repository not found [ERROR 2015-06-15 06:59:27 Exception]

HammerCLIForeman::ResolverError (repository not found): /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:191:in pick_result' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:156:infind_resource' /usr/share/gems/gems/hammer_cli_katello-0.0.7.15/lib/hammer_cli_katello/id_resolver.rb:58:in repository_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:149:inget_resource_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:138:in get_identifier' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:230:incustomized_options' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:235:in request_params' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/apipie/command.rb:43:insend_request' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:185:in send_request' /usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.3.4/lib/hammer_cli_foreman_tasks/async_command.rb:14:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in execute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:inrun' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:in run' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/bin/hammer:108:in<top (required)>' /usr/bin/hammer:23:in load' /usr/bin/hammer:23:in

' FAIL FAIL: @test: associate Red Hat content in a view Traceback (most recent call last): File "/home/tkolhar/git/robottelo/tests/foreman/cli/test_contentviews.py", line 627, in test_associate_view_rh_custom_spin self.create_rhel_content() File "/home/tkolhar/git/robottelo/tests/foreman/cli/test_contentviews.py", line 126, in create_rhel_content self.fail("Couldn't synchronize repo") AssertionError: Couldn't synchronize repo

XML: foreman-results.xml Ran 1 test in 191.689s

FAILED (failures=1)

sthirugn commented 9 years ago

Failed in Snap 12

tkolhar commented 9 years ago

tested locally using nosetests with latest snap 2015-07-29 12:55:47 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel66.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv repository synchronize --product="Red Hat Enterprise Linux Workstation" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Workstation RPMs x86_64 6Workstation" --organization-id="317" 2015-07-29 12:55:50 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x30a5550 2015-07-29 12:55:52 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x30a5550 2015-07-29 12:55:52 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x30a5550 2015-07-29 12:55:52 - robottelo.common.ssh - DEBUG - <<< stderr [ERROR 2015-07-29 03:25:52 Exception] Error: repository not found Could not synchronize the repository: Error: repository not found [ERROR 2015-07-29 03:25:52 Exception]

HammerCLIForeman::ResolverError (repository not found): /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:191:in pick_result' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:156:infind_resource' /usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.7.17/lib/hammer_cli_katello/id_resolver.rb:58:in repository_id' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:149:insend' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:149:in get_resource_id' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:138:inget_identifier' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:230:in customized_options' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:235:inrequest_params' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4.11/lib/hammer_cli/./apipie/command.rb:43:in send_request' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:185:insend_request' /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman_tasks-0.0.3.5/lib/hammer_cli_foreman_tasks/async_command.rb:14:in execute' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:inrun' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4.11/lib/hammer_cli/./apipie/../abstract.rb:23:in run' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:inexecute' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4.11/lib/hammer_cli/./apipie/../abstract.rb:23:inrun' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in execute' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:inrun' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4.11/lib/hammer_cli/./apipie/../abstract.rb:23:in run' /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:inrun' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4.11/bin/hammer:108 /usr/bin/hammer:19:in `load' /usr/bin/hammer:19

FAIL FAIL: @test: associate Red Hat content in a view Traceback (most recent call last): File "/home/tkolhar/git/robottelo/tests/foreman/cli/test_contentviews.py", line 700, in test_associate_view_rh_custom_spin self.create_rhel_content() File "/home/tkolhar/git/robottelo/tests/foreman/cli/test_contentviews.py", line 126, in create_rhel_content self.fail("Couldn't synchronize repo") AssertionError: Couldn't synchronize repo

XML: foreman-results.xml

Ran 1 test in 173.337s

FAILED (failures=1)

tkolhar commented 9 years ago

this issue occurred again dated 07/27/2015 TestNames: tests.foreman.cli.test_contentviews.TestContentView.test_associate_view_rh_custom_spin

Error Message Couldn't synchronize repo

robottelo.common.ssh: DEBUG: >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv repository synchronize --product="Red Hat Enterprise Linux Workstation" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Workstation RPMs x86_64 6Workstation" --organization-id="302" robottelo.common.ssh: INFO: Instantiated Paramiko client 0x39d6410 robottelo.common.ssh: INFO: Destroying Paramiko client 0x39d6410 robottelo.common.ssh: INFO: Destroyed Paramiko client 0x39d6410 robottelo.common.ssh: DEBUG: <<< stderr [ERROR 2015-07-29 18:13:01 Exception] Error: repository not found Could not synchronize the repository: Error: repository not found [ERROR 2015-07-29 18:13:01 Exception]

HammerCLIForeman::ResolverError (repository not found): /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:191:in pick_result' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/id_resolver.rb:156:infind_resource' /usr/share/gems/gems/hammer_cli_katello-0.0.7.17/lib/hammer_cli_katello/id_resolver.rb:58:in repository_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:149:inget_resource_id' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:138:in get_identifier' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:230:incustomized_options' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:235:in request_params' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/apipie/command.rb:43:insend_request' /usr/share/gems/gems/hammer_cli_foreman-0.1.4.14/lib/hammer_cli_foreman/commands.rb:185:in send_request' /usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.3.5/lib/hammer_cli_foreman_tasks/async_command.rb:14:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in execute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:inrun' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:in run' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:inexecute' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/lib/hammer_cli/abstract.rb:23:inrun' /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in run' /usr/share/gems/gems/hammer_cli-0.1.4.11/bin/hammer:108:in<top (required)>' /usr/bin/hammer:23:in load' /usr/bin/hammer:23:in

'

Stacktrace

File "/usr/lib64/python2.7/unittest/case.py", line 369, in run testMethod() File "/home/jenkins/workspace/satellite6-automation-downstream-rhel71-cli/tests/foreman/cli/test_contentviews.py", line 700, in test_associate_view_rh_custom_spin self.create_rhel_content() File "/home/jenkins/workspace/satellite6-automation-downstream-rhel71-cli/tests/foreman/cli/test_contentviews.py", line 126, in create_rhel_content self.fail("Couldn't synchronize repo") File "/usr/lib64/python2.7/unittest/case.py", line 450, in fail raise self.failureException(msg) 'Couldn\'t synchronize repo\n--------------------