@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@susemanager
Feature: 0075 - Operate an Ansible control node in a normal minion
Description: * Related GitHub Card: https://github.com/SUSE/spacewalk/issues/30427
File name: min_ansible_control_node.feature
Relative path: secondary/min_ansible_control_node.feature
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@susemanager
Scenario: Pre-requisite: Subscribe SUSE minions to SLE-Module-Python3-15-SP7-Pool for x86_64
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I check "SLE-Module-Python3-15-SP7-Pool for x86_64" by label
0s
And
I click on "Next"
0s
And
I click on "Confirm"
0s
And
I wait until I see "Changing the channels has been scheduled." text
0s
And
I follow "scheduled"
0s
And
I wait until I see "1 system successfully completed this action" text, refreshing the page
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Enable "Ansible control node" system type
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.640
When
I store the current last event id for "sle_minion"
00:00:01.982
And
I follow "Properties" in the content area
00:00:00.077
And
I check "ansible_control_node"
00:00:00.082
And
I click on "Update Properties"
00:00:02.189
Then
I wait until I see "Ansible Control Node type has been applied." text
00:00:00.092
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Check that the automatic Ansible inventory refresh succeeds
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.818
When
I wait until a new "Refresh Ansible inventories scheduled by (system)" event is completed for "sle_minion"
00:00:03.977
+ Show Error
+ Screenshot
Action 282 failed: uyuni-master-suse-minion.sumaci.aws: 'ansible.targets' is not available. (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:1873:in `/^I wait until a new "([^"]*)" event is completed for "([^"]*)"$/' features/secondary/min_ansible_control_node.feature:39:in `I wait until a new "Refresh Ansible inventories scheduled by (system)" event is completed for "sle_minion"'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Apply highstate and check that Ansible is installed
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.507
When
I follow "States" in the content area
00:00:00.071
And
I click on "Apply Highstate"
00:00:00.058
And
I wait until event "Apply highstate scheduled" is completed
00:00:42.343
+ Show Error
+ Show Info
+ Screenshot
unknown error - Event failed (SystemCallError) ./features/step_definitions/navigation_steps.rb:107:in `block (2 levels) in (top (required))' ./features/support/commonlib.rb:100:in `block in repeat_until_timeout' ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:99:in `/^I wait at most (\d+) seconds until the event is completed, refreshing the page$/' ./features/step_definitions/common_steps.rb:157:in `/^I wait (\d+) seconds until the event is picked up and (\d+) seconds until the event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:174:in `/^I wait at most (\d+) seconds until event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:151:in `/^I wait until event "([^"]*)" is completed$/' features/secondary/min_ansible_control_node.feature:45:in `I wait until event "Apply highstate scheduled" is completed'
Event Details:
Failed to apply state(s): highstate
----------
ID: sync_states
Function: saltutil.sync_states
Name: sync_states
Result: true
Comment: No updates to sync
Started: 15:15:20.731986
Duration: 253.333
SLS: util.syncstates
Changed: {}
----------
ID: mgr_absent_ca_package
Function: pkg.removed
Name: rhn-org-trusted-ssl-cert
Result: true
Comment: All specified packages are already absent
Started: 15:15:22.415791
Duration: 12.134
SLS: certs
Changed: {}
----------
ID: mgr_ca_cert
Function: file.managed
Name: /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT
Result: true
Comment: File /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT is in the correct state
Started: 15:15:22.431410
Duration: 41.232
SLS: certs
Changed: {}
----------
ID: update-ca-certificates
Function: cmd.run
Name: /usr/sbin/update-ca-certificates
Result: true
Comment: State was not run because none of the onchanges reqs changed
Started: 15:15:22.473931
Duration: 0.005
SLS: certs
Changed: {}
----------
ID: mgr_proxy_ca_cert_symlink
Function: file.symlink
Name: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Result: true
Comment: onlyif condition is false
Started: 15:15:22.475536
Duration: 869.471
SLS: certs
Changed: {}
----------
ID: mgr_deploy_tools_uyuni_key
Function: file.managed
Name: /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
Result: true
Comment: File /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key is in the correct state
Started: 15:15:23.345173
Duration: 48.678
SLS: channels.gpg-keys
Changed: {}
----------
ID: mgr_deploy_suse_addon_key
Function: file.managed
Name: /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key
Result: true
Comment: File /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key is in the correct state
Started: 15:15:23.393996
Duration: 40.404
SLS: channels.gpg-keys
Changed: {}
----------
ID: mgr_deploy_suse16_gpg_key
Function: file.managed
Name: /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key
Result: true
Comment: File /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key is in the correct state
Started: 15:15:23.434547
Duration: 43.089
SLS: channels.gpg-keys
Changed: {}
----------
ID: file_///etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
Function: module.run
Name: pkg.add_repo_key
Result: true
Comment: Module function pkg.add_repo_key executed
Started: 15:15:23.477793
Duration: 40.16
SLS: channels.gpg-keys
Changed: ret: true
----------
ID: file_///usr/lib/rpm/gnupg/keys/gpg-pubkey-29b700a4-62b07e22.asc
Function: module.run
Name: pkg.add_repo_key
Result: true
Comment: Module function pkg.add_repo_key executed
Started: 15:15:23.518102
Duration: 39.656
SLS: channels.gpg-keys
Changed: ret: true
----------
ID: mgrchannels_repo
Function: file.managed
Name: /etc/zypp/repos.d/susemanager:channels.repo
Result: true
Comment: File /etc/zypp/repos.d/susemanager:channels.repo is in the correct state
Started: 15:15:23.558018
Duration: 162.266
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 15:15:23.720999
Duration: 0.817
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_removed
Function: pkg.removed
Name: pkg_removed
Result: true
Comment: All specified packages are already absent
Started: 15:15:23.721994
Duration: 11.682
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 15:15:23.733923
Duration: 0.965
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: disable_spacewalksd
Function: service.dead
Name: rhnsd
Result: true
Comment: The named service rhnsd is not available
Started: 15:15:23.734984
Duration: 20.055
SLS: services.salt-minion
Changed: {}
----------
ID: disable_spacewalk-update-status
Function: service.dead
Name: spacewalk-update-status
Result: true
Comment: The named service spacewalk-update-status is not available
Started: 15:15:23.755197
Duration: 14.972
SLS: services.salt-minion
Changed: {}
----------
ID: disable_osad
Function: service.dead
Name: osad
Result: true
Comment: The named service osad is not available
Started: 15:15:23.770346
Duration: 12.589
SLS: services.salt-minion
Changed: {}
----------
ID: remove_traditional_stack_all
Function: pkg.removed
Name: remove_traditional_stack_all
Result: true
Comment: All specified packages are already absent
Started: 15:15:23.783095
Duration: 13.546
SLS: services.salt-minion
Changed: {}
----------
ID: remove_traditional_stack
Function: pkg.removed
Name: remove_traditional_stack
Result: true
Comment: All specified packages are already absent
Started: 15:15:23.796818
Duration: 55.473
SLS: services.salt-minion
Changed: {}
----------
ID: /etc/sysconfig/rhn/systemid
Function: file.managed
Name: /etc/sysconfig/rhn/systemid
Result: true
Comment: File /etc/sysconfig/rhn/systemid exists with proper permissions. No changes made.
Started: 15:15:23.852447
Duration: 2.834
SLS: services.salt-minion
Changed: {}
----------
ID: mgr_ansible_installed
Function: pkg.installed
Name: mgr_ansible_installed
Result: false
Comment: An error was encountered while installing package(s): Zypper command failure: Running as unit: run-p11013-i9647.scope; invocation ID: a99480f942d8404f87d4844155f72094
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 15:15:23.855393
Duration: 1881.514
SLS: ansible
Changed: {}
----------
ID: mgr_salt_minion_inst
Function: pkg.installed
Name: venv-salt-minion
Result: true
Comment: All specified packages are already installed
Started: 15:15:25.737496
Duration: 12.031
SLS: services.salt-minion
Changed: {}
----------
ID: /etc/venv-salt-minion/minion.d/susemanager.conf
Function: file.managed
Name: /etc/venv-salt-minion/minion.d/susemanager.conf
Result: true
Comment: File /etc/venv-salt-minion/minion.d/susemanager.conf is in the correct state
Started: 15:15:25.749723
Duration: 114.277
SLS: services.salt-minion
Changed: {}
----------
ID: mgr_salt_minion_run
Function: service.running
Name: venv-salt-minion
Result: true
Comment: The service venv-salt-minion is already running
Started: 15:15:25.864141
Duration: 32.0
SLS: services.salt-minion
Changed: {}
Then
"ansible" should be installed on "sle_minion"
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: The Ansible tab appears in the system overview page
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.611
When
I follow "Ansible" in the content area
00:00:00.076
Then
I should see a "Ansible Control Node Configuration" text
00:00:00.058
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Configure some inventory and playbooks path
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.565
When
I follow "Ansible" in the content area
00:00:00.067
Then
I should see a "Ansible Control Node Configuration" text
00:00:00.056
And
I enter "/srv/playbooks/" as "new_playbook_path_input"
00:00:00.116
And
I click on "new_playbook_path_save"
00:00:00.055
And
I enter "/srv/playbooks/orion_dummy/hosts" as "new_inventory_path_input"
00:00:00.114
And
I click on "new_inventory_path_save"
00:00:00.060
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@bug_reported
Scenario: Display inventories
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.944
When
I follow "Ansible" in the content area
00:00:00.055
And
I follow "Inventories" in the content area
00:00:00.062
And
I wait until I see "/srv/playbooks/orion_dummy/hosts" text
00:00:00.236
And
I click on the inventory accordion for "/srv/playbooks/orion_dummy/hosts"
00:00:00.047
Text 'myself' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:69:in `I wait until I see "myself" text'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Discover playbooks and display them
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.500
When
I follow "Ansible" in the content area
00:00:00.076
And
I follow "Playbooks" in the content area
00:00:00.065
And
I wait until I see "/srv/playbooks" text
00:00:00.244
And
I click on "/srv/playbooks"
00:00:00.055
Then
I wait until I see "/srv/playbooks/orion_dummy/playbook_orion_dummy.yml" text
00:04:10.000
+ Show Error
Text '/srv/playbooks/orion_dummy/playbook_orion_dummy.yml' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:77:in `I wait until I see "/srv/playbooks/orion_dummy/playbook_orion_dummy.yml" text'
And
I wait until I see "/srv/playbooks/basic_tests.yml" text
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Run a playbook using custom inventory
Requested /rhn/systems/details/Overview.do?sid=1000010020, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010020&request_method=GET
Unable to find link "Ansible" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:193:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_ansible_control_node.feature:82:in `I follow "Ansible" in the content area'
And
I follow "Playbooks" in the content area
0s
And
I wait until I see "/srv/playbooks" text
0s
And
I click on "/srv/playbooks"
0s
And
I wait until I see "/srv/playbooks/orion_dummy/playbook_orion_dummy.yml" text
0s
And
I click on "orion_dummy/playbook_orion_dummy.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I select "/srv/playbooks/orion_dummy/hosts" from "inventory-path-select"
0s
And
I click on "Schedule"
0s
Then
I should see a "Playbook execution has been scheduled" text
0s
And
I wait until event "Execute playbook 'playbook_orion_dummy.yml' scheduled" is completed
0s
And
file "/tmp/file.txt" should exist on "sle_minion"
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Run the basic tests playbook
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.471
When
I follow "Ansible" in the content area
00:00:00.067
And
I follow "Playbooks" in the content area
00:00:00.064
And
I wait until I see "/srv/playbooks" text
00:00:00.142
And
I click on "/srv/playbooks"
00:00:00.054
Text '/srv/playbooks/basic_tests.yml' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:101:in `I wait until I see "/srv/playbooks/basic_tests.yml" text'
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "42" text
0s
And
I should see a "101010" text
0s
And
I should see a "(code 0)" text
0s
undefined method `map' for true (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Run the basic tests playbook while editing variables and changing their values
Requested /rhn/systems/details/Overview.do?sid=1000010020, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010020&request_method=GET
Unable to find link "Ansible" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:193:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_ansible_control_node.feature:118:in `I follow "Ansible" in the content area'
And
I follow "Playbooks" in the content area
0s
And
I wait until I see "/srv/playbooks" text
0s
And
I click on "/srv/playbooks"
0s
And
I wait until I see "/srv/playbooks/basic_tests.yml" text
0s
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Edit variables"
0s
And
I enter data from table with value as field name
0s
And
I click on "Save"
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "4200" text
0s
And
I should see a "(code 0)" text
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Run the basic tests playbook while editing the EMPTY variables and changing their values
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.123
When
I follow "Ansible" in the content area
00:00:00.068
And
I follow "Playbooks" in the content area
00:00:00.063
And
I wait until I see "/srv/playbooks" text
00:00:00.243
And
I click on "/srv/playbooks"
00:00:00.055
Text '/srv/playbooks/basic_tests.yml' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:150:in `I wait until I see "/srv/playbooks/basic_tests.yml" text'
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Edit variables"
0s
And
I enter data from table with value as field name
0s
And
I click on "Save"
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "42000" text
0s
And
I should see a "4242" text
0s
And
I should see a "(code 0)" text
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@skip_if_github_validation
Scenario: Run the basic tests playbook while editing the NULL variable and changing its value
Requested /rhn/systems/details/Overview.do?sid=1000010020, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010020&request_method=GET
Unable to find link "Ansible" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:193:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_ansible_control_node.feature:178:in `I follow "Ansible" in the content area'
And
I follow "Playbooks" in the content area
0s
And
I wait until I see "/srv/playbooks" text
0s
And
I click on "/srv/playbooks"
0s
And
I wait until I see "/srv/playbooks/basic_tests.yml" text
0s
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Edit variables"
0s
And
I enter data from table with value as field name
0s
And
I click on "Save"
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "65536" text
0s
And
I should see a "(code 0)" text
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@skip_if_github_validation
Scenario: Run the basic tests playbook on SAVE operation of YAML editor with pre-crafted strings
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.490
When
I follow "Ansible" in the content area
00:00:00.067
And
I follow "Playbooks" in the content area
00:00:00.062
And
I wait until I see "/srv/playbooks" text
00:00:00.238
And
I click on "/srv/playbooks"
00:00:00.054
Text '/srv/playbooks/basic_tests.yml' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:214:in `I wait until I see "/srv/playbooks/basic_tests.yml" text'
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Edit variables"
0s
And
I click on "Edit YAML"
0s
And
I click on "Save"
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "42" text
0s
And
I should see a "101010" text
0s
And
I should see a "(code 0)" text
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Run the basic tests playbook on SAVE operation of YAML editor with safe values
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.579
When
I follow "Ansible" in the content area
00:00:00.074
And
I follow "Playbooks" in the content area
00:00:00.064
And
I wait until I see "/srv/playbooks" text
00:00:00.238
And
I click on "/srv/playbooks"
00:00:00.056
Text '/srv/playbooks/basic_tests.yml' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/min_ansible_control_node.feature:238:in `I wait until I see "/srv/playbooks/basic_tests.yml" text'
And
I click on "basic_tests.yml"
0s
And
I wait until I see "Playbook Content" text
0s
And
I click on "Edit variables"
0s
And
I enter data from table with value as field name
0s
And
I click on "Edit YAML"
0s
And
I click on "Save"
0s
And
I click on "Schedule"
0s
And
I wait until I see "Playbook execution has been scheduled" text
0s
And
I wait for "2" seconds
0s
And
I follow "scheduled" in the content area
0s
Then
I wait until I see "1 system successfully completed this action" text or "1 system failed to complete this action" text, refreshing the page
0s
When
I follow "1 system"
0s
And
I wait until I see the system name of "sle_minion"
0s
And
I follow this "sle_minion" link
0s
Then
I should see a "abc" text
0s
And
I should see a "def" text
0s
And
I should see a "ghi" text
0s
And
I should see a "jkl" text
0s
And
I should see a "4096" text
0s
And
I should see a "(code 0)" text
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Cleanup: Disable Ansible and remove test playbooks and inventory file
Requested /rhn/systems/details/Overview.do?sid=1000010020, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010020&request_method=GET
Unable to find link "Properties" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:193:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_ansible_control_node.feature:267:in `I follow "Properties" in the content area'
And
I uncheck "ansible_control_node"
0s
And
I click on "Update Properties"
0s
Then
I should see a "System properties changed" text
0s
And
I remove package "orion-dummy" from this "sle_minion" without error control
0s
And
I remove "/tmp/file.txt" from "sle_minion"
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
@susemanager
Scenario: Cleanup: Unsubscribe SUSE minions from SLE-Module-Python3-15-SP7-Pool for x86_64
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I uncheck "SLE-Module-Python3-15-SP7-Pool for x86_64" by label
0s
And
I click on "Next"
0s
And
I click on "Confirm"
0s
And
I wait until I see "Changing the channels has been scheduled." text
0s
And
I follow "scheduled"
0s
And
I wait until I see "1 system successfully completed this action" text, refreshing the page
0s
@skip_if_github_validation
@scope_ansible
@sle_minion
@bug_reported
Scenario: Cleanup: Apply highstate to disable the minion as an "Ansible control node"
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.500
When
I follow "States" in the content area
00:00:00.072
And
I click on "Apply Highstate"
00:00:00.063
And
I wait until event "Apply highstate scheduled" is completed
00:00:42.022
+ Show Error
+ Show Info
+ Screenshot
unknown error - Event failed (SystemCallError) ./features/step_definitions/navigation_steps.rb:107:in `block (2 levels) in (top (required))' ./features/support/commonlib.rb:100:in `block in repeat_until_timeout' ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:99:in `/^I wait at most (\d+) seconds until the event is completed, refreshing the page$/' ./features/step_definitions/common_steps.rb:157:in `/^I wait (\d+) seconds until the event is picked up and (\d+) seconds until the event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:174:in `/^I wait at most (\d+) seconds until event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:151:in `/^I wait until event "([^"]*)" is completed$/' features/secondary/min_ansible_control_node.feature:290:in `I wait until event "Apply highstate scheduled" is completed'
Event Details:
Failed to apply state(s): highstate
----------
ID: sync_states
Function: saltutil.sync_states
Name: sync_states
Result: true
Comment: No updates to sync
Started: 15:44:53.583331
Duration: 332.6
SLS: util.syncstates
Changed: {}
----------
ID: mgr_absent_ca_package
Function: pkg.removed
Name: rhn-org-trusted-ssl-cert
Result: true
Comment: All specified packages are already absent
Started: 15:44:55.607122
Duration: 12.445
SLS: certs
Changed: {}
----------
ID: mgr_ca_cert
Function: file.managed
Name: /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT
Result: true
Comment: File /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT is in the correct state
Started: 15:44:55.624064
Duration: 53.435
SLS: certs
Changed: {}
----------
ID: update-ca-certificates
Function: cmd.run
Name: /usr/sbin/update-ca-certificates
Result: true
Comment: State was not run because none of the onchanges reqs changed
Started: 15:44:55.679273
Duration: 0.008
SLS: certs
Changed: {}
----------
ID: mgr_proxy_ca_cert_symlink
Function: file.symlink
Name: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Result: true
Comment: onlyif condition is false
Started: 15:44:55.679420
Duration: 909.041
SLS: certs
Changed: {}
----------
ID: mgr_deploy_tools_uyuni_key
Function: file.managed
Name: /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
Result: true
Comment: File /etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key is in the correct state
Started: 15:44:56.588631
Duration: 64.145
SLS: channels.gpg-keys
Changed: {}
----------
ID: mgr_deploy_suse_addon_key
Function: file.managed
Name: /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key
Result: true
Comment: File /etc/pki/rpm-gpg/suse-addon-97a636db0bad8ecc.key is in the correct state
Started: 15:44:56.652989
Duration: 54.42
SLS: channels.gpg-keys
Changed: {}
----------
ID: mgr_deploy_suse16_gpg_key
Function: file.managed
Name: /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key
Result: true
Comment: File /etc/pki/rpm-gpg/suse16-gpg-pubkey-09d9ea69.key is in the correct state
Started: 15:44:56.707566
Duration: 47.742
SLS: channels.gpg-keys
Changed: {}
----------
ID: file_///etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key
Function: module.run
Name: pkg.add_repo_key
Result: true
Comment: Module function pkg.add_repo_key executed
Started: 15:44:56.755475
Duration: 42.369
SLS: channels.gpg-keys
Changed: ret: true
----------
ID: file_///usr/lib/rpm/gnupg/keys/gpg-pubkey-29b700a4-62b07e22.asc
Function: module.run
Name: pkg.add_repo_key
Result: true
Comment: Module function pkg.add_repo_key executed
Started: 15:44:56.798002
Duration: 45.367
SLS: channels.gpg-keys
Changed: ret: true
----------
ID: mgrchannels_repo
Function: file.managed
Name: /etc/zypp/repos.d/susemanager:channels.repo
Result: true
Comment: File /etc/zypp/repos.d/susemanager:channels.repo is in the correct state
Started: 15:44:56.843628
Duration: 171.851
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 15:44:57.016108
Duration: 0.915
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_removed
Function: pkg.removed
Name: pkg_removed
Result: true
Comment: All specified packages are already absent
Started: 15:44:57.017256
Duration: 12.567
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 15:44:57.030092
Duration: 0.735
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: disable_spacewalksd
Function: service.dead
Name: rhnsd
Result: true
Comment: The named service rhnsd is not available
Started: 15:44:57.030927
Duration: 24.007
SLS: services.salt-minion
Changed: {}
----------
ID: disable_spacewalk-update-status
Function: service.dead
Name: spacewalk-update-status
Result: true
Comment: The named service spacewalk-update-status is not available
Started: 15:44:57.055079
Duration: 21.318
SLS: services.salt-minion
Changed: {}
----------
ID: disable_osad
Function: service.dead
Name: osad
Result: true
Comment: The named service osad is not available
Started: 15:44:57.076574
Duration: 15.555
SLS: services.salt-minion
Changed: {}
----------
ID: remove_traditional_stack_all
Function: pkg.removed
Name: remove_traditional_stack_all
Result: true
Comment: All specified packages are already absent
Started: 15:44:57.092319
Duration: 16.02
SLS: services.salt-minion
Changed: {}
----------
ID: remove_traditional_stack
Function: pkg.removed
Name: remove_traditional_stack
Result: true
Comment: All specified packages are already absent
Started: 15:44:57.108489
Duration: 66.725
SLS: services.salt-minion
Changed: {}
----------
ID: /etc/sysconfig/rhn/systemid
Function: file.managed
Name: /etc/sysconfig/rhn/systemid
Result: true
Comment: File /etc/sysconfig/rhn/systemid exists with proper permissions. No changes made.
Started: 15:44:57.175383
Duration: 1.899
SLS: services.salt-minion
Changed: {}
----------
ID: mgr_ansible_installed
Function: pkg.installed
Name: mgr_ansible_installed
Result: false
Comment: An error was encountered while installing package(s): Zypper command failure: Running as unit: run-p11653-i10002.scope; invocation ID: b745e94786774fb5bca5ba3e15c5125c
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 15:44:57.177593
Duration: 1941.462
SLS: ansible
Changed: {}
----------
ID: mgr_salt_minion_inst
Function: pkg.installed
Name: venv-salt-minion
Result: true
Comment: All specified packages are already installed
Started: 15:44:59.121292
Duration: 14.325
SLS: services.salt-minion
Changed: {}
----------
ID: /etc/venv-salt-minion/minion.d/susemanager.conf
Function: file.managed
Name: /etc/venv-salt-minion/minion.d/susemanager.conf
Result: true
Comment: File /etc/venv-salt-minion/minion.d/susemanager.conf is in the correct state
Started: 15:44:59.135826
Duration: 116.825
SLS: services.salt-minion
Changed: {}
----------
ID: mgr_salt_minion_run
Function: service.running
Name: venv-salt-minion
Result: true
Comment: The service venv-salt-minion is already running
Started: 15:44:59.252781
Duration: 33.509
SLS: services.salt-minion
Changed: {}