@skip_if_github_validation
@scope_formulas
@bug_reported
@skip_if_containerized_server
@ssh_minion
Feature: 0131 - Use salt formulas
Description: * Related GitHub Card: https://github.com/SUSE/spacewalk/issues/30502
In order to use simple forms to apply changes to minions
As an authorized user
I want to be able to install and use salt formulas
File name: min_salt_formulas.feature
Relative path: secondary/min_salt_formulas.feature
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Enable the formula on the minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.558
When
I follow "Formulas" in the content area
00:00:00.074
Then
I should see a "Choose formulas:" text
00:00:00.062
And
I should see a "General System Configuration" text
00:00:00.200
And
I should see a "Locale" text
00:00:00.091
When
I check the "locale" formula
00:00:00.075
And
I click on "Save"
00:00:00.065
And
I wait until I see "Formula saved." text
00:00:00.620
Then
the "locale" formula should be checked
00:00:10.034
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Parametrize the formula on the minion
When
I follow "Formulas" in the content area
00:00:00.066
And
I follow first "Locale" in the content area
00:00:00.272
And
I click on "Expand All Sections"
00:00:00.189
And
I select "Etc/GMT-5" in timezone name field
00:00:00.059
And
I select "French" in language field
00:00:00.045
And
I select "French (Canada)" in keyboard layout field
00:00:00.045
And
I click on "Save Formula"
00:00:00.061
Then
I should see a "Formula saved" text
00:00:00.568
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Check the pillar data after saving the formula
When
I refresh the pillar data
00:00:04.423
Then
the pillar data for "formulas" should be "- locale" on "sle_minion"
00:00:05.017
And
the pillar data for "timezone:name" should be "Etc/GMT-5" on "sle_minion"
00:00:04.297
And
the pillar data for "keyboard_and_language:keyboard_layout" should be "French (Canada)" on "sle_minion"
00:00:03.381
And
the pillar data for "keyboard_and_language:language" should be "French" on "sle_minion"
00:00:03.409
@skip_if_github_validation
@scope_formulas
@bug_reported
@ssh_minion
Scenario: No other minion is affected by the formula
Then
the pillar data for "formulas" should be empty on "ssh_minion"
00:00:11.045
And
the pillar data for "timezone" should be empty on "ssh_minion"
00:00:09.743
And
the pillar data for "keyboard_and_language" should be empty on "ssh_minion"
00:00:09.588
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Use the parametrized formula in test mode
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.525
And
I follow "States" in the content area
00:00:00.068
Then
I should see the toggler "disabled"
00:00:00.013
When
I click on the "disabled" toggler
00:00:00.046
And
I click on "Apply Highstate"
00:00:00.060
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.345
And
I wait at most 300 seconds until event "Apply highstate in test-mode scheduled" is completed
00:00:39.022
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Apply the parametrized formula via the highstate
When
I enable repository "sle_update_repo" on this "sle_minion" without error control
00:00:00.822
And
I follow "States" in the content area
00:00:00.078
And
I click on "Apply Highstate"
00:00:00.060
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.352
When
I wait until event "Apply highstate scheduled" is completed
00:00:41.968
+ 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_salt_formulas.feature:77: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: 18:37:22.463901
Duration: 244.445
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: 18:37:24.184919
Duration: 12.868
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: 18:37:24.201411
Duration: 60.135
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: 18:37:24.262972
Duration: 0.006
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: 18:37:24.263102
Duration: 854.764
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: 18:37:25.118029
Duration: 53.603
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: 18:37:25.171784
Duration: 57.297
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: 18:37:25.229285
Duration: 55.829
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: 18:37:25.285309
Duration: 42.517
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: 18:37:25.327975
Duration: 51.962
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: 18:37:25.380362
Duration: 183.008
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 18:37:25.564003
Duration: 0.887
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_removed
Function: pkg.removed
Name: pkg_removed
Result: true
Comment: All specified packages are already absent
Started: 18:37:25.565100
Duration: 11.411
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 18:37:25.576998
Duration: 1.4
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: mgr_timezone_setting
Function: timezone.system
Name: Etc/GMT-5
Result: true
Comment: Set timezone Etc/GMT-5
Started: 18:37:25.578895
Duration: 167.54
SLS: locale
Changed: timezone: Etc/GMT-5
----------
ID: mgr_timezone_packages
Function: pkg.installed
Name: timezone
Result: true
Comment: All specified packages are already installed
Started: 18:37:25.746598
Duration: 1126.599
SLS: locale
Changed: {}
----------
ID: mgr_timezone_symlink
Function: file.symlink
Name: /etc/localtime
Result: true
Comment: Symlink /etc/localtime is present and owned by root:root
Started: 18:37:26.873639
Duration: 3.521
SLS: locale
Changed: {}
----------
ID: mgr_kb_settings
Function: keyboard.system
Name: ca
Result: true
Comment: Set system keyboard layout ca
Started: 18:37:26.877316
Duration: 150.06
SLS: locale
Changed: layout: ca
----------
ID: mgr_locale_package
Function: pkg.installed
Name: glibc-locale
Result: true
Comment: All specified packages are already installed
Started: 18:37:27.027544
Duration: 18.164
SLS: locale
Changed: {}
----------
ID: /etc/sysconfig/language
Function: file.replace
Name: /etc/sysconfig/language
Result: true
Comment: Changes were made
Started: 18:37:27.045859
Duration: 5.996
SLS: locale
Changed: diff: "--- \n+++ \n@@ -87,7 +87,7 @@\n # Value \"ctype\" means that root uses just LC_CTYPE. \n # Value \"yes\" means that root uses the full settings..\
\ \n #\n-ROOT_USES_LANG=\"ctype\"\n+ROOT_USES_LANG=\"yes\"\n \n ## Type: yesno\n ## Default: no\n"
----------
ID: mgr_language_settings
Function: locale.system
Name: fr_FR.UTF-8
Result: true
Comment: Set system locale fr_FR.UTF-8
Started: 18:37:27.052413
Duration: 419.771
SLS: locale
Changed: locale: fr_FR.UTF-8
----------
ID: disable_spacewalksd
Function: service.dead
Name: rhnsd
Result: true
Comment: The named service rhnsd is not available
Started: 18:37:27.472420
Duration: 25.686
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: 18:37:27.498328
Duration: 23.921
SLS: services.salt-minion
Changed: {}
----------
ID: disable_osad
Function: service.dead
Name: osad
Result: true
Comment: The named service osad is not available
Started: 18:37:27.522407
Duration: 27.434
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: 18:37:27.550006
Duration: 32.441
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: 18:37:27.582593
Duration: 58.186
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: 18:37:27.640912
Duration: 1.672
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-p26218-i25480.scope; invocation ID: 97e0a9eac7f74e6d9075c709a5932e6f
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 18:37:27.642673
Duration: 454.579
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: 18:37:28.099271
Duration: 13.669
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: 18:37:28.113668
Duration: 105.978
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: 18:37:28.219786
Duration: 34.064
SLS: services.salt-minion
Changed: {}
Then
the timezone on "sle_minion" should be "+05"
0s
And
the keymap on "sle_minion" should be "ca"
0s
And
the language on "sle_minion" should be "fr_FR.UTF-8"
0s
And
I disable repository "sle_update_repo" on this "sle_minion" without error control
0s
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Reset the formula on the minion
When
I follow "Formulas" in the content area
00:00:00.078
And
I follow first "Locale" in the content area
00:00:00.215
And
I click on "Clear values" and confirm alert box
00:00:00.356
And
I click on "Save Formula"
00:00:00.065
Then
I should see a "Formula saved" text
00:00:00.582
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Check the pillar data after resetting the formula
When
I refresh the pillar data
00:00:04.450
Then
the pillar data for "formulas" should be "- locale" on "sle_minion"
00:00:03.493
And
the pillar data for "timezone:name" should be "CET" on "sle_minion"
00:00:03.426
And
the pillar data for "keyboard_and_language:keyboard_layout" should be "English (US)" on "sle_minion"
00:00:03.392
And
the pillar data for "keyboard_and_language:language" should be "English (US)" on "sle_minion"
00:00:04.473
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Apply the reset formula via the highstate
And
I follow "States" in the content area
00:00:00.068
And
I click on "Apply Highstate"
00:00:00.060
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.444
When
I wait until event "Apply highstate scheduled" is completed
00:00:43.150
+ 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_salt_formulas.feature:101: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: 18:38:46.753662
Duration: 263.328
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: 18:38:48.392430
Duration: 13.227
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: 18:38:48.409013
Duration: 42.081
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: 18:38:48.452639
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: 18:38:48.452751
Duration: 876.574
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: 18:38:49.329480
Duration: 38.784
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: 18:38:49.368428
Duration: 39.539
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: 18:38:49.408117
Duration: 44.011
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: 18:38:49.452496
Duration: 38.036
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: 18:38:49.491116
Duration: 40.283
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: 18:38:49.531678
Duration: 160.969
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 18:38:49.693305
Duration: 0.725
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_removed
Function: pkg.removed
Name: pkg_removed
Result: true
Comment: All specified packages are already absent
Started: 18:38:49.694219
Duration: 10.918
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 18:38:49.705420
Duration: 0.658
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: mgr_timezone_setting
Function: timezone.system
Name: CET
Result: true
Comment: Set timezone CET
Started: 18:38:49.706164
Duration: 154.315
SLS: locale
Changed: timezone: CET
----------
ID: mgr_timezone_packages
Function: pkg.installed
Name: timezone
Result: true
Comment: All specified packages are already installed
Started: 18:38:49.860613
Duration: 1183.74
SLS: locale
Changed: {}
----------
ID: mgr_timezone_symlink
Function: file.symlink
Name: /etc/localtime
Result: true
Comment: Symlink /etc/localtime is present and owned by root:root
Started: 18:38:51.044740
Duration: 2.324
SLS: locale
Changed: {}
----------
ID: mgr_kb_settings
Function: keyboard.system
Name: us
Result: true
Comment: Set system keyboard layout us
Started: 18:38:51.047166
Duration: 154.24
SLS: locale
Changed: layout: us
----------
ID: mgr_locale_package
Function: pkg.installed
Name: glibc-locale
Result: true
Comment: All specified packages are already installed
Started: 18:38:51.201577
Duration: 15.693
SLS: locale
Changed: {}
----------
ID: /etc/sysconfig/language
Function: file.replace
Name: /etc/sysconfig/language
Result: true
Comment: No changes needed to be made
Started: 18:38:51.217414
Duration: 4.882
SLS: locale
Changed: {}
----------
ID: mgr_language_settings
Function: locale.system
Name: en_US.UTF-8
Result: true
Comment: Set system locale en_US.UTF-8
Started: 18:38:51.222784
Duration: 414.189
SLS: locale
Changed: locale: en_US.UTF-8
----------
ID: disable_spacewalksd
Function: service.dead
Name: rhnsd
Result: true
Comment: The named service rhnsd is not available
Started: 18:38:51.637160
Duration: 25.632
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: 18:38:51.662941
Duration: 15.561
SLS: services.salt-minion
Changed: {}
----------
ID: disable_osad
Function: service.dead
Name: osad
Result: true
Comment: The named service osad is not available
Started: 18:38:51.678675
Duration: 17.251
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: 18:38:51.696731
Duration: 14.969
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: 18:38:51.711850
Duration: 58.974
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: 18:38:51.770966
Duration: 3.948
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-p26848-i25776.scope; invocation ID: fbae8ec5a8cb4a488add24e1970663ef
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 18:38:51.775030
Duration: 388.052
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: 18:38:52.164805
Duration: 13.023
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: 18:38:52.178046
Duration: 108.676
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: 18:38:52.286874
Duration: 36.011
SLS: services.salt-minion
Changed: {}
Then
the timezone on "sle_minion" should be "CET"
0s
And
the keymap on "sle_minion" should be "us"
0s
And
the language on "sle_minion" should be "en_US.UTF-8"
0s
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Disable the formula on the minion
When
I follow "Formulas" in the content area
00:00:00.078
Then
I should see a "Choose formulas:" text
00:00:00.062
And
I should see a "General System Configuration" text
00:00:00.194
And
I should see a "Locale" text
00:00:00.088
When
I uncheck the "locale" formula
00:00:00.074
And
I click on "Save"
00:00:00.060
And
I wait until I see "Formula saved." text
00:00:00.619
Then
the "locale" formula should be unchecked
00:00:10.033
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Check the pillar data after disabling the formula
When
I refresh the pillar data
00:00:04.295
Then
the pillar data for "formulas" should be empty on "sle_minion"
00:00:03.420
And
the pillar data for "timezone" should be empty on "sle_minion"
00:00:03.426
And
the pillar data for "keyboard_and_language" should be empty on "sle_minion"
00:00:04.734
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Assign locale formula to minion via group formula
When
I follow the left menu "Systems > System Groups"
00:00:00.074
When
I follow "Create Group"
00:00:00.277
And
I enter "locale-formula-group" as "name"
00:00:00.075
And
I enter "Test group with locale formula added" as "description"
00:00:00.076
And
I click on "Create Group"
00:00:00.059
Then
I should see a "System group locale-formula-group created." text
00:00:00.074
When
I follow "Formulas" in the content area
00:00:00.070
Then
I should see a "Choose formulas:" text
00:00:00.061
And
I should see a "General System Configuration" text
00:00:00.200
And
I should see a "Locale" text
00:00:00.088
When
I check the "locale" formula
00:00:00.071
And
I click on "Save"
00:00:00.064
And
I wait until I see "Formula saved." text
00:00:00.476
And
I follow "Target"
00:00:00.437
And
I check the "sle_minion" client
00:00:00.060
And
I click on "Add Systems"
00:00:01.073
Then
I should see a "1 systems were added to locale-formula-group server group." text
00:00:00.098
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Check the pillar data after assigning group formula
When
I refresh the pillar data
00:00:03.985
Then
the pillar data for "formulas" should be "- locale" on "sle_minion"
00:00:03.435
And
the pillar data for "timezone:name" should be "CET" on "sle_minion"
00:00:04.589
And
the pillar data for "keyboard_and_language:keyboard_layout" should be "English (US)" on "sle_minion"
00:00:03.431
And
the pillar data for "keyboard_and_language:language" should be "English (US)" on "sle_minion"
00:00:03.472
@skip_if_github_validation
@scope_formulas
@bug_reported
@ssh_minion
Scenario: No other minion is affected by the group formula
Then
the pillar data for "formulas" should be empty on "ssh_minion"
00:00:10.076
And
the pillar data for "timezone" should be empty on "ssh_minion"
00:00:09.896
And
the pillar data for "keyboard_and_language" should be empty on "ssh_minion"
00:00:09.968
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Cleanup: remove "locale-formula-group" system group
When
I follow the left menu "Systems > System Groups"
00:00:00.076
And
I follow "locale-formula-group" in the content area
00:00:00.078
And
I follow "Delete Group" in the content area
00:00:00.066
When
I click on "Confirm Deletion"
00:00:00.057
Then
I should see a "System group" text
00:00:01.026
And
I should see a "locale-formula-group" text
00:00:00.056
And
I should see a "deleted" text
00:00:00.060
@skip_if_github_validation
@scope_formulas
@bug_reported
Scenario: Cleanup: reset locale values on the minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.543
And
I follow "States" in the content area
00:00:00.068
And
I click on "Apply Highstate"
00:00:00.058
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.335
When
I wait until event "Apply highstate scheduled" is completed
00:00:42.113
+ 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_salt_formulas.feature:168: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: 18:41:14.937797
Duration: 369.711
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: 18:41:16.734152
Duration: 15.9
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: 18:41:16.752901
Duration: 41.699
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: 18:41:16.795996
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: 18:41:16.796108
Duration: 709.798
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: 18:41:17.506070
Duration: 40.519
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: 18:41:17.546723
Duration: 46.301
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: 18:41:17.593173
Duration: 44.019
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: 18:41:17.637424
Duration: 44.544
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: 18:41:17.682118
Duration: 40.161
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: 18:41:17.722549
Duration: 156.103
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 18:41:17.879303
Duration: 0.813
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_removed
Function: pkg.removed
Name: pkg_removed
Result: true
Comment: All specified packages are already absent
Started: 18:41:17.880417
Duration: 10.802
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 18:41:17.891471
Duration: 0.606
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: disable_spacewalksd
Function: service.dead
Name: rhnsd
Result: true
Comment: The named service rhnsd is not available
Started: 18:41:17.892160
Duration: 17.793
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: 18:41:17.910095
Duration: 11.64
SLS: services.salt-minion
Changed: {}
----------
ID: disable_osad
Function: service.dead
Name: osad
Result: true
Comment: The named service osad is not available
Started: 18:41:17.921895
Duration: 11.747
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: 18:41:17.933783
Duration: 11.418
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: 18:41:17.945410
Duration: 48.705
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: 18:41:17.994286
Duration: 1.527
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-p27576-i26177.scope; invocation ID: a438441fe3dd42bdaefe9b7c9bc2cf94
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 18:41:17.995902
Duration: 1650.715
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: 18:41:19.648756
Duration: 12.657
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: 18:41:19.661614
Duration: 113.0
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: 18:41:19.774746
Duration: 33.176
SLS: services.salt-minion
Changed: {}
Then
the timezone on "sle_minion" should be "CET"
0s
And
the keymap on "sle_minion" should be "us"
0s
And
the language on "sle_minion" should be "en_US.UTF-8"
0s