Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix saltmod & saltutils due to #11337 & f798c953 breakages #11527

Merged
merged 1 commit into from
Mar 26, 2014
Merged

Fix saltmod & saltutils due to #11337 & f798c953 breakages #11527

merged 1 commit into from
Mar 26, 2014

Conversation

kiorky
Copy link
Contributor

@kiorky kiorky commented Mar 26, 2014

@ghost
Copy link

ghost commented Mar 26, 2014

Test FAILed.
Refer to this link for build results: http://jenkins.saltstack.com/job/salt-pr-build/2758/

@s0undt3ch
Copy link
Collaborator

Can you provide me a failing case so I can add as a test case?

@kiorky
Copy link
Contributor Author

kiorky commented Mar 26, 2014

test

test.sls
salt.state:
  salt.state:
    - tgt: [devhost10.local]
    - sls: test2
    - expr_form: list
    - concurrent: true

test2.sls
/bin/true:
  cmd.run: []

With my patch:

local:
----------
          ID: salt.state
    Function: salt.state
      Result: True
     Comment: States ran successfully. Updating devhost10.local.
     Changes:
              devhost10.local:
              ----------
                        ID: /bin/true
                  Function: cmd.run
                    Result: True
                   Comment: Command "/bin/true" run
                   Changes:
                            ----------
                            pid:
                                9536
                            retcode:
                                0
                            stderr:

                            stdout:


              Summary
              ------------
              Succeeded: 1 (changed=1)
              Failed:    0
              ------------
              Total states run:     1

Summary
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1

without my patch

local:
----------
          ID: salt.state
    Function: salt.state
      Result: False
     Comment: Run failed on minions: devhost10.local
              Failures:
                  devhost10.local:
                  ----------
                            ID: /bin/true
                      Function: cmd.run
                        Result: True
                       Comment: Command "/bin/true" run
                       Changes:
                                ----------
                                pid:
                                    9369
                                retcode:
                                    0
                                stderr:

                                stdout:


                  Summary
                  ------------
                  Succeeded: 1 (changed=1)
                  Failed:    0
                  ------------
                  Total states run:     1
     Changes:

Summary
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1 <- FAILING

@kiorky
Copy link
Contributor Author

kiorky commented Mar 26, 2014

rebased the pr

@ghost
Copy link

ghost commented Mar 26, 2014

Test FAILed.
Refer to this link for build results: http://jenkins.saltstack.com/job/salt-pr-build/2762/

@kiorky
Copy link
Contributor Author

kiorky commented Mar 26, 2014

The opposite

testb.sls
salt.state:
  salt.state:
    - tgt: [devhost10.local]
    - sls: test2b
    - expr_form: list
    - concurrent: true

test2b.sls
/bin/false:
  cmd.run: []

should also be test as a falling state

thatch45 added a commit that referenced this pull request Mar 26, 2014
Fix saltmod & saltutils due to #11337 & f798c95 breakages
@thatch45 thatch45 merged commit eeb418b into saltstack:develop Mar 26, 2014
@thatch45
Copy link
Contributor

Thanks for the catch, we did make the state shecks better so this old workaround should no longer be needed

@kiorky kiorky deleted the hf33 branch March 26, 2014 21:18
@s0undt3ch s0undt3ch added the Test label Mar 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants