SatelliteQE / robottelo

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

ContentViewFilterTestCase::test_positive_create_with_repo_by_name: one of repositories not found #6093

Closed jhutar closed 6 years ago

jhutar commented 6 years ago
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.4.0, py-1.5.3, pluggy-0.6.0
shared_function enabled - OFF - scope:  - storage: file
rootdir: /home/pok/Checkouts/robottelo, inifile:
plugins: wait-for-1.0.9, services-1.2.1, mock-1.6.3
collected 1 item
2018-06-25 15:47:02 - conftest - DEBUG - Collected 1 test cases

tests/foreman/cli/test_contentviewfilter.py 2018-06-25 15:47:02 - robottelo - INFO - Started setUpClass: tests.foreman.cli.test_contentviewfilter/ContentViewFilterTestCase
2018-06-25 15:47:04 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b79e43d30
2018-06-25 15:47:04 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:04 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv organization create --name="Qv1rZ3"'
2018-06-25 15:47:08 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
Organization created,3,Qv1rZ3

2018-06-25 15:47:08 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b79e43d30
2018-06-25 15:47:10 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b785c87f0
2018-06-25 15:47:10 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:10 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme  organization info --id="3"'
2018-06-25 15:47:13 - robottelo.ssh - INFO - <<< stdout
Id:                     3
Title:                  Qv1rZ3
Name:                   Qv1rZ3
Description:            
Users:                  

Smart proxies:          
    <fqdn>
Subnets:                

Compute resources:      

Installation media:     

Templates:              
    Alterator default (provision)
    Alterator default finish (finish)
    Alterator default PXELinux (PXELinux)
    alterator_pkglist ()
    ansible_provisioning_callback ()
    ansible_tower_callback_script ()
    ansible_tower_callback_service ()
    Atomic Kickstart default (provision)
    AutoYaST default (provision)
    AutoYaST default iPXE (iPXE)
    AutoYaST default PXELinux (PXELinux)
    AutoYaST default user data (user_data)
    AutoYaST SLES default (provision)
    bmc_nic_setup ()
    Boot disk iPXE - generic host (Bootdisk)
    Boot disk iPXE - host (Bootdisk)
    chef_client ()
    coreos_cloudconfig ()
    CoreOS provision (provision)
    CoreOS PXELinux (PXELinux)
    create_users ()
    Discovery Debian kexec (kexec)
    Discovery Red Hat kexec (kexec)
    epel ()
    fix_hosts ()
    FreeBSD (mfsBSD) finish (finish)
    FreeBSD (mfsBSD) provision (provision)
    FreeBSD (mfsBSD) PXELinux (PXELinux)
    freeipa_register ()
    Grubby default (script)
    http_proxy ()
    idm_register ()
    Jumpstart default (provision)
    Jumpstart default finish (finish)
    Jumpstart default PXEGrub (PXEGrub)
    Junos default finish (finish)
    Junos default SLAX (provision)
    Junos default ZTP config (ZTP)
    Kickstart default finish (finish)
    Kickstart default iPXE (iPXE)
    Kickstart default PXEGrub (PXEGrub)
    Kickstart default PXEGrub2 (PXEGrub2)
    Kickstart default PXELinux (PXELinux)
    Kickstart default user data (user_data)
    kickstart_ifcfg_bonded_interface ()
    kickstart_ifcfg_bond_interface ()
    kickstart_ifcfg_generic_interface ()
    kickstart_ifcfg_get_identifier_names ()
    kickstart_networking_setup ()
    Kickstart oVirt-RHVH (provision)
    Kickstart oVirt-RHVH PXELinux (PXELinux)
    NX-OS default POAP setup (POAP)
    Preseed default (provision)
    Preseed default finish (finish)
    Preseed default iPXE (iPXE)
    Preseed default PXEGrub2 (PXEGrub2)
    Preseed default PXELinux (PXELinux)
    Preseed default user data (user_data)
    preseed_networking_setup ()
    puppet.conf ()
    puppetlabs_repo ()
    puppet_setup ()
    pxegrub2_chainload ()
    PXEGrub2 default local boot (PXEGrub2)
    pxegrub2_discovery ()
    PXEGrub2 global default (PXEGrub2)
    pxegrub_chainload ()
    PXEGrub default local boot (PXEGrub)
    pxegrub_discovery ()
    PXEGrub global default (PXEGrub)
    PXELinux chain iPXE (PXELinux)
    PXELinux chain iPXE UNDI (PXELinux)
    pxelinux_chainload ()
    PXELinux default local boot (PXELinux)
    PXELinux default memdisk (PXELinux)
    pxelinux_discovery ()
    PXELinux global default (PXELinux)
    rancheros_cloudconfig ()
    RancherOS provision (provision)
    RancherOS PXELinux (PXELinux)
    redhat_register ()
    remote_execution_ssh_keys ()
    saltstack_minion ()
    saltstack_setup ()
    Satellite Atomic Kickstart Default (provision)
    Satellite Kickstart Default (provision)
    Satellite Kickstart Default Finish (finish)
    Satellite Kickstart Default User Data (user_data)
    UserData default (user_data)
    WAIK default PXELinux (PXELinux)
    XenServer default answerfile (provision)
    XenServer default finish (finish)
    XenServer default PXELinux (PXELinux)
Domains:                

Environments:           

Hostgroups:             

Parameters:             

Created at:             2018/06/25 13:47:06
Updated at:             2018/06/25 13:47:06
Label:                  Qv1rZ3
Description:            
Red Hat Repository URL: https://cdn.redhat.com
Service Levels:

2018-06-25 15:47:13 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b785c87f0
2018-06-25 15:47:14 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b785c89b0
2018-06-25 15:47:14 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:14 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv product create --description="hvUqYkiODxHOuETdJgdT" --label="ICWgOMnSnMwbFNXjvweM" --name="eFJAHIHTiP" --organization-id="3"'
2018-06-25 15:47:18 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
Product created,1,eFJAHIHTiP

2018-06-25 15:47:18 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b785c89b0
2018-06-25 15:47:19 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b785c8080
2018-06-25 15:47:19 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:19 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme  product info --id="1" --organization-id="3"'
2018-06-25 15:47:22 - robottelo.ssh - INFO - <<< stdout
ID:           1
Name:         eFJAHIHTiP
Label:        ICWgOMnSnMwbFNXjvweM
Description:  hvUqYkiODxHOuETdJgdT
Sync State:   
Sync Plan ID: 
GPG:          
    GPG Key ID: 
    GPG Key:
Organization: Qv1rZ3
Readonly:     
Deletable:    
Content:

2018-06-25 15:47:22 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b785c8080
2018-06-25 15:47:23 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78348940
2018-06-25 15:47:23 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:23 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv content-view create --name="vMGFsSPrKP" --organization-id="3"'
2018-06-25 15:47:25 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
Content view created,3,vMGFsSPrKP

2018-06-25 15:47:25 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78348940
2018-06-25 15:47:27 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b783599e8
2018-06-25 15:47:27 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:27 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme  content-view info --id="3"'
2018-06-25 15:47:29 - robottelo.ssh - INFO - <<< stdout
ID:                     3
Name:                   vMGFsSPrKP
Label:                  vMGFsSPrKP
Composite:              false
Description:            
Content Host Count:     0
Organization:           Qv1rZ3
Yum Repositories:       

Docker Repositories:    

OSTree Repositories:    

Puppet Modules:         

Lifecycle Environments: 

Versions:               

Components:             

Activation Keys:

2018-06-25 15:47:29 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b783599e8
2018-06-25 15:47:31 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78348eb8
2018-06-25 15:47:31 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:31 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository create --content-type="yum" --name="jrVJAuHipyuTPgC" --product-id="1" --publish-via-http="true" --url="http://inecas.fedorapeople.org/fakerepos/zoo3/"'
2018-06-25 15:47:34 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
Repository created,1,jrVJAuHipyuTPgC

2018-06-25 15:47:34 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78348eb8
2018-06-25 15:47:36 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b7835dc18
2018-06-25 15:47:36 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:36 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme  repository info --id="1"'
2018-06-25 15:47:38 - robottelo.ssh - INFO - <<< stdout
ID:                 1
Name:               jrVJAuHipyuTPgC
Label:              jrVJAuHipyuTPgC
Organization:       Qv1rZ3
Red Hat Repository: no
Content Type:       yum
Mirror on Sync:     yes
URL:                http://inecas.fedorapeople.org/fakerepos/zoo3/
Publish Via HTTP:   yes
Published At:       http://<fqdn>/pulp/repos/Qv1rZ3/Library/custom/ICWgOMnSnMwbFNXjvweM/jrVJAuHipyuTPgC/
Relative Path:      Qv1rZ3/Library/custom/ICWgOMnSnMwbFNXjvweM/jrVJAuHipyuTPgC
Download Policy:    on_demand
Product:            
    ID:   1
    Name: eFJAHIHTiP
GPG Key:            

Sync:               
    Status: Not Synced
Created:            2018/06/25 13:47:32
Updated:            2018/06/25 13:47:34
Content Counts:     
    Packages:       0
    Source RPMS:    0
    Package Groups: 0
    Errata:         0

2018-06-25 15:47:38 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b7835dc18
2018-06-25 15:47:39 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78362438
2018-06-25 15:47:39 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:39 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository synchronize --id="1"'
2018-06-25 15:47:54 - robottelo.ssh - INFO - <<< stdout
New packages: 32 (89 KB).

2018-06-25 15:47:54 - robottelo.ssh - INFO - <<< stderr
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.045454545454545456/1, 4%, elapsed: 00:00:00
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.05/1, 5%, elapsed: 00:00:02
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.05/1, 5%, elapsed: 00:00:04
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.5/1, 50%, elapsed: 00:00:06
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.5/1, 50%, elapsed: 00:00:08
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 running: 0.6590909090909091/1, 65%, elapsed: 00:00:10
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 success: 1.0/1, 100%, 0.1/s, elapsed: 00:00:12
Task f9eb974c-004d-4a0f-9385-5b28d9c79571 success: 1.0/1, 100%, 0.1/s, elapsed: 00:00:12

2018-06-25 15:47:54 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78362438
2018-06-25 15:47:55 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78359a20
2018-06-25 15:47:55 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:47:55 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv content-view add-repository --id="3" --repository-id="1"'
2018-06-25 15:47:58 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
The repository has been associated,3,vMGFsSPrKP

2018-06-25 15:47:58 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78359a20
2018-06-25 15:48:00 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78374fd0
2018-06-25 15:48:00 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:48:00 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository create --content-type="yum" --name="AUwgRRMsDbUHXty" --product-id="1" --publish-via-http="true" --url="http://inecas.fedorapeople.org/fakerepos/zoo3/"'
2018-06-25 15:48:02 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
Repository created,2,AUwgRRMsDbUHXty

2018-06-25 15:48:02 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78374fd0
2018-06-25 15:48:04 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b78374c88
2018-06-25 15:48:04 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:48:04 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme  repository info --id="2"'
2018-06-25 15:48:06 - robottelo.ssh - INFO - <<< stdout
ID:                 2
Name:               AUwgRRMsDbUHXty
Label:              AUwgRRMsDbUHXty
Organization:       Qv1rZ3
Red Hat Repository: no
Content Type:       yum
Mirror on Sync:     yes
URL:                http://inecas.fedorapeople.org/fakerepos/zoo3/
Publish Via HTTP:   yes
Published At:       http://<fqdn>/pulp/repos/Qv1rZ3/Library/custom/ICWgOMnSnMwbFNXjvweM/AUwgRRMsDbUHXty/
Relative Path:      Qv1rZ3/Library/custom/ICWgOMnSnMwbFNXjvweM/AUwgRRMsDbUHXty
Download Policy:    on_demand
Product:            
    ID:   1
    Name: eFJAHIHTiP
GPG Key:            

Sync:               
    Status: Not Synced
Created:            2018/06/25 13:48:01
Updated:            2018/06/25 13:48:02
Content Counts:     
    Packages:       0
    Source RPMS:    0
    Package Groups: 0
    Errata:         0

2018-06-25 15:48:06 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b78374c88
2018-06-25 15:48:08 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b783625f8
2018-06-25 15:48:08 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:48:08 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository synchronize --id="2"'
2018-06-25 15:48:22 - robottelo.ssh - INFO - <<< stdout
No new packages.

2018-06-25 15:48:22 - robottelo.ssh - INFO - <<< stderr
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.045454545454545456/1, 4%, elapsed: 00:00:00
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.05/1, 5%, elapsed: 00:00:02
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.05/1, 5%, elapsed: 00:00:04
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.05/1, 5%, elapsed: 00:00:06
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.05/1, 5%, elapsed: 00:00:08
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf running: 0.6590909090909091/1, 65%, elapsed: 00:00:10
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf success: 1.0/1, 100%, 0.1/s, elapsed: 00:00:12
Task b84017da-f050-4cf7-9e6e-a4c743d7b8cf success: 1.0/1, 100%, 0.1/s, elapsed: 00:00:12

2018-06-25 15:48:22 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b783625f8
2018-06-25 15:48:24 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b782f9f28
2018-06-25 15:48:24 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:48:24 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv content-view add-repository --id="3" --repository-id="2"'
2018-06-25 15:48:26 - robottelo.ssh - INFO - <<< stdout
Message,Id,Name
The repository has been associated,3,vMGFsSPrKP

2018-06-25 15:48:26 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b782f9f28
2018-06-25 15:48:26 - robottelo - INFO - Entities cleaner disabled
2018-06-25 15:48:26 - robottelo - DEBUG - Started Test: ContentViewFilterTestCase/test_positive_create_with_repo_by_name
2018-06-25 15:48:28 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7f1b7835df28
2018-06-25 15:48:28 - robottelo.ssh - INFO - Connected to [<fqdn>]
2018-06-25 15:48:28 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv content-view filter create --content-view-id="3" --inclusion="false" --name="\xe6\xbe\x8f\xe7\xb0\xaf\xf0\x98\x9d\x9f\xe6\x9b\xa5\xe8\xb3\x9c\xe4\x99\x85\xea\x9b\xa0\xe9\xac\xa6\xe3\x96\xa6\xeb\x9b\xbf" --product="eFJAHIHTiP" --repositories="AUwgRRMsDbUHXty" --organization-id="3" --type="rpm"'
2018-06-25 15:48:30 - robottelo.ssh - INFO - <<< stderr
[ERROR 2018-06-25T09:48:29 Exception] Error: one of repositories not found.
Could not create the filter:
  Error: one of repositories not found.
[ERROR 2018-06-25T09:48:29 Exception] 

HammerCLIForeman::ResolverError (one of repositories not found.):
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/id_resolver.rb:176:in `find_resources'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.13.1/lib/hammer_cli_katello/id_resolver.rb:112:in `repository_ids'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/commands.rb:144:in `get_resource_ids'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:22:in `block in get_options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `each'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `get_options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:13:in `block in all_options_raw'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `each'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `inject'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `all_options_raw'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:18:in `all_options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:22:in `options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:239:in `options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:42:in `parse'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/bin/hammer:143:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'

2018-06-25 15:48:30 - robottelo.ssh - DEBUG - Destroyed Paramiko client 0x7f1b7835df28
F2018-06-25 15:48:30 - robottelo - DEBUG - Finished Test: ContentViewFilterTestCase/test_positive_create_with_repo_by_name
2018-06-25 15:48:30 - robottelo - INFO - Started tearDownClass: tests.foreman.cli.test_contentviewfilter/ContentViewFilterTestCase

=================================== FAILURES ===================================
_______ ContentViewFilterTestCase.test_positive_create_with_repo_by_name _______

self = <tests.foreman.cli.test_contentviewfilter.ContentViewFilterTestCase testMethod=test_positive_create_with_repo_by_name>

    @tier1
    def test_positive_create_with_repo_by_name(self):
        """Create new content view filter and assign it to existing content
            view that has repository assigned to it. Use that repository name for
            proper filter assignment.

            :id: 1b38c7c1-c8cd-49af-adcf-9e05a9201767

            :expectedresults: Content view filter created successfully and has
                proper repository affected

            :BZ: 1228890

            :CaseImportance: Critical
            """
        cvf_name = gen_string('utf8')
        ContentView.filter.create({
            'content-view-id': self.content_view['id'],
            'inclusion': 'false',
            'name': cvf_name,
            'product': self.product['name'],
            'repositories': self.repo['name'],
            'organization-id': self.org['id'],
>           'type': 'rpm',
        })

tests/foreman/cli/test_contentviewfilter.py:384: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
robottelo/cli/base.py:195: in create
    cls._construct_command(options), output_format='csv')
robottelo/cli/base.py:307: in execute
    ignore_stderr=ignore_stderr,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'robottelo.cli.contentview.ContentViewFilter'>
response = SSHCommandResult(stdout=b'', stderr="[ERROR 2018-06-25T09:48:29 Exception] Error: one of repositories not found.\nCoul...d)>'\n    /usr/bin/hammer:23:in `load'\n    /usr/bin/hammer:23:in `<main>'\n\n\n", return_code=70, output_format='csv')
ignore_stderr = None

    @classmethod
    def _handle_response(cls, response, ignore_stderr=None):
        """Verify ``return_code`` of the CLI command.

            Check for a non-zero return code or any stderr contents.

            :param response: a ``SSHCommandResult`` object, returned by
                :mod:`robottelo.ssh.command`.
            :param ignore_stderr: indicates whether to throw a warning in logs if
                ``stderr`` is not empty.
            :returns: contents of ``stdout``.
            :raises robottelo.cli.base.CLIReturnCodeError: If return code is
                different from zero.
            """
        if response.return_code != 0:
            full_msg = (
                u'Command "{0} {1}" finished with return_code {2}\n'
                'stderr contains following message:\n{3}'.format(
                    cls.command_base,
                    cls.command_sub,
                    response.return_code,
                    response.stderr
                )
            )
            error_data = (response.return_code, response.stderr, full_msg)
            if cls._db_error_regex.search(full_msg):
                raise CLIDataBaseError(*error_data)
>           raise CLIReturnCodeError(*error_data)
E           robottelo.cli.base.CLIReturnCodeError: CLIReturnCodeError(return_code=70, stderr="[ERROR 2018-06-25T09:48:29 Exception] Error: one of repositories not found.\nCould not create the filter:\n  Error: one of repositories not found.\n[ERROR 2018-06-25T09:48:29 Exception] \n\nHammerCLIForeman::ResolverError (one of repositories not found.):\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/id_resolver.rb:176:in `find_resources'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.13.1/lib/hammer_cli_katello/id_resolver.rb:112:in `repository_ids'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/commands.rb:144:in `get_resource_ids'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:22:in `block in get_options'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `each'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `get_options'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:13:in `block in all_options_raw'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `each'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `inject'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `all_options_raw'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:18:in `all_options'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:22:in `options'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:239:in `options'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:42:in `parse'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/bin/hammer:143:in `<top (required)>'\n    /usr/bin/hammer:23:in `load'\n    /usr/bin/hammer:23:in `<main>'\n\n\n", msg='Command "content-view filter create" finished with return_code 70\nstderr contains following message:\n[ERROR 2018-06-25T09:48:29 Exception] Error: one of repositories not found.\nCould not create the filter:\n  Error: one of repositories not found.\n[ERROR 2018-06-25T09:48:29 Exception] \n\nHammerCLIForeman::ResolverError (one of repositories not found.):\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/id_resolver.rb:176:in `find_resources\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.13.1/lib/hammer_cli_katello/id_resolver.rb:112:in `repository_ids\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/commands.rb:144:in `get_resource_ids\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:22:in `block in get_options\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `each\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.0/lib/hammer_cli_foreman/option_sources/ids_params.rb:19:in `get_options\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:13:in `block in all_options_raw\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `each\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `inject\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:12:in `all_options_raw\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:18:in `all_options\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/options/option_collector.rb:22:in `options\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:239:in `options\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:42:in `parse\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/lib/hammer_cli/abstract.rb:29:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run\'\n    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.0/bin/hammer:143:in `<top (required)>\'\n    /usr/bin/hammer:23:in `load\'\n    /usr/bin/hammer:23:in `<main>\'\n\n\n'

robottelo/cli/base.py:162: CLIReturnCodeError
============================== 0 tests deselected ==============================
========================== 1 failed in 88.29 seconds ===========================
rplevka commented 6 years ago

this has been passing since snap11 - i assume it's fixed.

do not hesitate to reopen if the issue reoccurs