@flaky
@scope_salt
Feature: 0134 - Coexistence with user-defined states
File name: min_salt_user_states.feature
Relative path: secondary/min_salt_user_states.feature
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.179
When
I follow "States" in the content area
00:00:00.068
And
I install a user-defined state for "sle_minion" on the server
00:00:09.850
And
I follow "Highstate" in the content area
00:00:00.065
And
I click on "Show full highstate output"
00:00:00.282
And
I wait for "6" seconds
00:00:06.000
Then
I should see a "user_defined_state" or "running as PID" text in element "highstate"
00:00:00.044
When
I schedule a highstate for "sle_minion" via API
00:00:02.007
And
I wait until event "Apply highstate scheduled" is completed
00:00:41.947
+ 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_user_states.feature:22:in `I wait until event "Apply highstate scheduled" is completed'
Event Details:
Failed to apply state(s): highstate
----------
ID: /tmp/test_user_defined_state
Function: file.managed
Name: /tmp/test_user_defined_state
Result: true
Comment: File /tmp/test_user_defined_state updated
Started: 18:53:45.902692
Duration: 3.989
SLS: user_defined_state
Changed: diff: New file
mode: '0644'
----------
ID: sync_states
Function: saltutil.sync_states
Name: sync_states
Result: true
Comment: No updates to sync
Started: 18:53:45.907655
Duration: 279.343
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:53:47.668258
Duration: 13.588
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:53:47.682021
Duration: 56.845
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:53:47.740386
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: 18:53:47.740527
Duration: 703.688
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:53:48.444448
Duration: 52.993
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:53:48.497594
Duration: 49.331
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:53:48.547077
Duration: 55.37
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:53:48.602592
Duration: 42.705
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:53:48.645469
Duration: 43.683
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:53:48.689477
Duration: 186.432
SLS: channels
Changed: {}
----------
ID: pkg_installed
Function: pkg.installed
Name: pkg_installed
Result: true
Comment: No packages to install provided
Started: 18:53:48.877131
Duration: 1.448
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:53:48.878844
Duration: 12.574
SLS: packages.packages_a47f32880f4250518d78f1cc6a1a9b30
Changed: {}
----------
ID: pkg_latest
Function: pkg.latest
Name: pkg_latest
Result: true
Comment: No packages to install provided
Started: 18:53:48.891654
Duration: 1.088
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:53:48.892852
Duration: 17.768
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:53:48.910757
Duration: 12.704
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:53:48.923620
Duration: 14.204
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:53:48.937963
Duration: 13.624
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:53:48.951715
Duration: 48.626
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:53:49.000498
Duration: 1.509
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-p29465-i27103.scope; invocation ID: b4e5edbd3f624db69de03b83b22110b1
Package 'ansible' not found.Loading repository data...
Reading installed packages...
Started: 18:53:49.002095
Duration: 1741.59
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:53:50.744192
Duration: 14.792
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:53:50.759209
Duration: 110.561
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:53:50.869904
Duration: 33.136
SLS: services.salt-minion
Changed: {}
Then
file "/tmp/test_user_defined_state" should exist on "sle_minion"
0s
@flaky
@scope_salt
Scenario: Cleanup: remove user-defined state and the file it created
When
I follow "States" in the content area
00:00:00.077
And
I uninstall the user-defined state from the server
00:00:04.445
And
I uninstall the managed file from "sle_minion"
00:00:00.741
And
I follow "Highstate" in the content area
00:00:00.067
And
I click on "Show full highstate output"
00:00:00.212
And
I wait for "6" seconds
00:00:06.000
Then
I should not see a "user_defined_state" text in element "highstate"
00:00:00.045