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

Pending messages are "inherited"/"propagated" down with several suites #15

Closed
artem-sidorenko opened this issue Dec 1, 2015 · 4 comments · Fixed by inspec/inspec#320
Labels
Type: Bug Doesn't work as expected.

Comments

@artem-sidorenko
Copy link

In case you have several instances and one of them gives some pending messages like in my case, whey get propagated to the instance below:

$ kitchen list
Instance                   Driver   Provisioner  Verifier  Transport  Last Action
desktop-mint-172-cinnamon  Vagrant  ChefZero     Inspec    Ssh        Verified
desktop-ubuntu-1404        Vagrant  ChefZero     Inspec    Ssh        Verified

# single verify for mint
############################################################################
$ kitchen verify desktop-mint-172-cinnamon
-----> Starting Kitchen (v1.4.2)
-----> Verifying <desktop-mint-172-cinnamon>...
*............*.........*..*

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) System Package crossover The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  2) System Package x11vnc The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  3) Service x11vnc The `service` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  4) System Package owncloud-client The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

Finished in 0.48911 seconds (files took 1.33 seconds to load)
27 examples, 0 failures, 4 pending

       Finished verifying <desktop-mint-172-cinnamon> (0m1.61s).
-----> Kitchen is finished. (0m4.43s)

# single verify for ubuntu
############################################################################
$ kitchen verify desktop-ubuntu-1404
-----> Starting Kitchen (v1.4.2)
-----> Setting up <desktop-ubuntu-1404>...
       Finished setting up <desktop-ubuntu-1404> (0m0.00s).
-----> Verifying <desktop-ubuntu-1404>...
............................

Finished in 0.94141 seconds (files took 1.36 seconds to load)
28 examples, 0 failures

       Finished verifying <desktop-ubuntu-1404> (0m2.09s).
-----> Kitchen is finished. (0m4.83s)

# verify both of them
############################################################################
$ kitchen verify
-----> Starting Kitchen (v1.4.2)
-----> Verifying <desktop-mint-172-cinnamon>...
*............*.........*..*

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) System Package crossover The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  2) System Package x11vnc The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  3) Service x11vnc The `service` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  4) System Package owncloud-client The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

Finished in 0.49791 seconds (files took 1.35 seconds to load)
27 examples, 0 failures, 4 pending

       Finished verifying <desktop-mint-172-cinnamon> (0m1.64s).
-----> Verifying <desktop-ubuntu-1404>...
............................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) System Package crossover The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  2) System Package x11vnc The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  3) Service x11vnc The `service` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

  4) System Package owncloud-client The `package` resource is not supported on your OS yet.
     # Not yet implemented
     # /home/artem/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.5/lib/inspec/runner.rb:114

Finished in 0.88895 seconds (files took 2.36 seconds to load)
55 examples, 0 failures, 4 pending

       Finished verifying <desktop-ubuntu-1404> (0m1.40s).
-----> Kitchen is finished. (0m5.93s)

Initially I thougth the second output is some kind of summary over failures, but the line Finished verifying <desktop-ubuntu-1404> is displayed after it

Software versions:

$ chef --version
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
$ chef exec gem list inspec

*** LOCAL GEMS ***

inspec (0.9.5, 0.9.2)
kitchen-inspec (0.9.0)
$ inspec version
0.9.5
@chris-rock chris-rock added the bug label Dec 1, 2015
@chris-rock
Copy link
Collaborator

@artem-sidorenko this is definitely a bug, although a summary for each node would be cool.

@artem-sidorenko
Copy link
Author

@chris-rock which kind of summary do you mean? .kitchen.yml? tests? something about boxes?

@chris-rock
Copy link
Collaborator

Idea: show success and failed tests per tested node in a cli table. would also be very great for CI/CD systems.

@artem-sidorenko artem-sidorenko changed the title Pending messages are "inheritet"/"propagated" down with several suites Pending messages are "inherited"/"propagated" down with several suites Dec 1, 2015
@artem-sidorenko
Copy link
Author

Got it, I misunderstood your first response as request for information to me, to provide the details about my instances:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Doesn't work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants