@sle_minion
@scc_credentials
@skip_if_github_validation
Feature: 0108 - Push a package with unset vendor
Description: In order to distribute software to the clients
As an authorized user
I want to push a package with unset vendor
File name: srv_push_package.feature
Relative path: secondary/srv_push_package.feature
@sle_minion
@scc_credentials
@skip_if_github_validation
Scenario: Pre-requisite: mgr-push package must be installed on the SLES minion
Action 297 failed: uyuni-master-suse-minion.sumaci.aws: saltutil_|-sync_states_|-sync_states_|-sync_states:
name: sync_states
changes: {
}
result: true
comment: No updates to sync
__sls__: util.syncstates
__run_num__: 0.0
start_time: '16:45:59.191169'
duration: 285.57
__id__: sync_states
pkg_|-mgr_absent_ca_package_|-rhn-org-trusted-ssl-cert_|-removed:
name: rhn-org-trusted-ssl-cert
changes: {
}
result: true
comment: All specified packages are already absent
__sls__: certs
__run_num__: 1.0
start_time: '16:46:00.806192'
duration: 14.771
__id__: mgr_absent_ca_package
file_|-mgr_ca_cert_|-/etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT_|-managed:
changes: {
}
comment: File /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT is in the correct state
name: /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT
result: true
__sls__: certs
__run_num__: 2.0
start_time: '16:46:00.824686'
duration: 41.62
__id__: mgr_ca_cert
cmd_|-update-ca-certificates_|-/usr/sbin/update-ca-certificates_|-run:
changes: {
}
result: true
duration: 0.005
start_time: '16:46:00.867667'
comment: State was not run because none of the onchanges reqs changed
__state_ran__: false
__run_num__: 3.0
__sls__: certs
__id__: update-ca-certificates
name: /usr/sbin/update-ca-certificates
file_|-mgr_proxy_ca_cert_symlink_|-/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT_|-symlink:
result: true
name: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
changes: {
}
comment: onlyif condition is false
__sls__: certs
__id__: mgr_proxy_ca_cert_symlink
skip_watch: true
__run_num__: 4.0
start_time: '16:46:00.867783'
duration: 827.505
file_|-mgr_deploy_tools_uyuni_key_|-/etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key_|-managed:
changes: {
}
comment: File /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key is in the correct state
name: /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
result: true
__sls__: channels.gpg-keys
__run_num__: 5.0
start_time: '16:46:01.695459'
duration: 44.419
__id__: mgr_deploy_tools_uyuni_key
file_|-mgr_deploy_suse_addon_key_|-/etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key_|-managed:
changes: {
}
comment: File /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key is in the correct state
name: /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key
result: true
__sls__: channels.gpg-keys
__run_num__: 6.0
start_time: '16:46:01.740192'
duration: 47.159
__id__: mgr_deploy_suse_addon_key
file_|-mgr_deploy_suse16_gpg_key_|-/etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key_|-managed:
changes: {
}
comment: File /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key is in the correct state
name: /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key
result: true
__sls__: channels.gpg-keys
__run_num__: 7.0
start_time: '16:46:01.787530'
duration: 46.24
__id__: mgr_deploy_suse16_gpg_key
module_|-file_///etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key_|-pkg.add_repo_key_|-run:
name: pkg.add_repo_key
changes:
ret: true
comment: Module function pkg.add_repo_key executed
result: true
__sls__: channels.gpg-keys
__run_num__: 8.0
start_time: '16:46:01.833950'
duration: 43.834
__id__: file_///etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
module_|-file_///usr/lib/rpm/gnupg/keys/gpg-pubkey-29b700a4-62b07e22.asc_|-pkg.add_repo_key_|-run:
name: pkg.add_repo_key
changes:
ret: true
comment: Module function pkg.add_repo_key executed
result: true
__sls__: channels.gpg-keys
__run_num__: 9.0
start_time: '16:46:01.877949'
duration: 41.428
__id__: file_///usr/lib/rpm/gnupg/keys/gpg-pubkey-29b700a4-62b07e22.asc
file_|-mgrchannels_repo_|-/etc/zypp/repos.d/susemanager:channels.repo_|-managed:
changes: {
}
comment: File /etc/zypp/repos.d/susemanager:channels.repo is in the correct state
name: /etc/zypp/repos.d/susemanager:channels.repo
result: true
__sls__: channels
__run_num__: 10.0
start_time: '16:46:01.919609'
duration: 170.064
__id__: mgrchannels_repo
pkg_|-pkg_installed_|-pkg_installed_|-installed:
name: pkg_installed
result: false
changes: {
}
comment: |-
An error was encountered while installing package(s): Zypper command failure: Running as unit: run-p13525-i10998.scope; invocation ID: f72d50371f4245b1968e4d198556dc9dLoading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: 1: nothing provides 'python3-rpm' needed by the to be installed python3-mgr-push-5.2.4-2.1.uyuni.noarch
Solution 1: do not install mgr-push-5.2.4-2.1.uyuni.noarch
Solution 2: break python3-mgr-push-5.2.4-2.1.uyuni.noarch by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c/d/?] (c): c
__sls__: packages.pkginstall
__run_num__: 11.0
start_time: '16:46:02.090277'
duration: 1997.932
__id__: pkg_installed
(RuntimeError)
./features/support/commonlib.rb:954:in `block in wait_action_complete'
./features/support/commonlib.rb:100:in `block in repeat_until_timeout'
./features/support/commonlib.rb:89:in `repeat_until_timeout'
./features/support/commonlib.rb:949:in `wait_action_complete'
./features/step_definitions/command_steps.rb:1890:in `/^I (upgrade|install) "([^"]*)" on "([^"]*)" using the API$/'
features/secondary/srv_push_package.feature:16:in `I install "mgr-push" on "sle_minion" using the API'
@sle_minion
@scc_credentials
@skip_if_github_validation
Scenario: Push a package with unset vendor through the SLES minion
When
I copy unset package file on "sle_minion"
00:00:02.192
And
I push package "/root/subscription-tools-1.0-0.noarch.rpm" into "fake-base-channel-suse-like" channel through "sle_minion"
00:00:00.433
+ Show Error
+ Screenshot
FAIL: mgrpush -u admin -p admin --server=uyuni-master-server.sumaci.aws --nosig -c fake-base-channel-suse-like /root/subscription-tools-1.0-0.noarch.rpm returned status code = 127. Output: (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/common_steps.rb:327:in `/^I push package "([^"]*)" into "([^"]*)" channel through "([^"]*)"$/' features/secondary/srv_push_package.feature:20:in `I push package "/root/subscription-tools-1.0-0.noarch.rpm" into "fake-base-channel-suse-like" channel through "sle_minion"'
Then
I should see package "subscription-tools-1.0-0.noarch" in channel "Fake-Base-Channel-SUSE-like"
0s
@sle_minion
@scc_credentials
@skip_if_github_validation
Scenario: Check vendor of package displayed in web UI
When
I follow the left menu "Software > Channel List > All"
00:00:00.204
And
I follow "Fake-Base-Channel-SUSE-like"
00:00:00.578
And
I follow "Packages"
00:00:00.476
Unable to find link "subscription-tools-1.0-0.noarch" (Capybara::ElementNotFound) ./features/support/commonlib.rb:193:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' features/secondary/srv_push_package.feature:27:in `I follow "subscription-tools-1.0-0.noarch"'
Then
I should see a "Vendor:" text
0s
And
I should see a "Not defined" text
0s
@sle_minion
@scc_credentials
@skip_if_github_validation
Scenario: Cleanup: remove mgr-push from the SLES minion
FAIL: mgrctl exec -i 'spacecmd -u admin -p admin system_removepackage uyuni-master-suse-minion.sumaci.aws mgr-push -y' returned status code = 1. Output: ** Generating system cache ** ** Generating package cache ** (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/support/commonlib.rb:1029:in `trigger_remove' ./features/step_definitions/command_steps.rb:1897:in `/^I remove "([^"]*)" on "([^"]*)" using the API$/' features/secondary/srv_push_package.feature:32:in `I remove "mgr-push" on "sle_minion" using the API'