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

converge errors with --destroy=always confusingly point to destory problems #786

Open
cburroughs opened this issue Jul 20, 2015 · 2 comments

Comments

@cburroughs
Copy link

Conole output makes it look like a problem during the destory action

-----> Converging <default-centos-66>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 3.2.4...
       Removing non-cookbook files before transfer
       Preparing validation.pem
       Preparing client.rb
-----> Chef Omnibus installation detected (install only if missing)
       Transferring files to <default-centos-66>
-----> Destroying <default-centos-66>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #destroy action: [SCP did not finish successfully (1): ]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Build step 'Execute shell' marked build as failure

As does kitchen.log

I, [2015-07-20T11:38:05.602163 #19316]  INFO -- Kitchen: -----> Starting Kitchen (v1.4.0)
I, [2015-07-20T11:38:06.145019 #19316]  INFO -- Kitchen: -----> Cleaning up any prior instances of <default-centos-66>
I, [2015-07-20T11:38:06.145255 #19316]  INFO -- Kitchen: -----> Destroying <default-centos-66>...
I, [2015-07-20T11:38:06.146465 #19316]  INFO -- Kitchen: -----> Testing <default-centos-66>
I, [2015-07-20T11:38:06.146631 #19316]  INFO -- Kitchen: -----> Creating <default-centos-66>...
I, [2015-07-20T11:39:52.961033 #19316]  INFO -- Kitchen: -----> Converging <default-centos-66>...
I, [2015-07-20T11:39:53.963661 #19316]  INFO -- Kitchen: -----> Destroying <default-centos-66>...
E, [2015-07-20T11:39:53.967825 #19316] ERROR -- Kitchen: ------Exception-------
E, [2015-07-20T11:39:53.967883 #19316] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2015-07-20T11:39:53.967924 #19316] ERROR -- Kitchen: Message: Failed to complete #destroy action: [SCP did not finish successfully (1): ]
E, [2015-07-20T11:39:53.967970 #19316] ERROR -- Kitchen: ---Nested Exception---
E, [2015-07-20T11:39:53.968037 #19316] ERROR -- Kitchen: Class: Net::SCP::Error
E, [2015-07-20T11:39:53.968098 #19316] ERROR -- Kitchen: Message: SCP did not finish successfully (1): 

And only the box specific log shows that the error was actually during convergence

5-07-20T11:39:51.216884 #19316]  INFO -- default-centos-66: ==> default: Machine not provisioning because `--no-provision` is specified.
I, [2015-07-20T11:39:52.959190 #19316]  INFO -- default-centos-66: [SSH] Established
I, [2015-07-20T11:39:52.959572 #19316]  INFO -- default-centos-66: Vagrant instance <default-centos-66> created.
I, [2015-07-20T11:39:52.960952 #19316]  INFO -- default-centos-66: Finished creating <default-centos-66> (1m46.81s).
I, [2015-07-20T11:39:52.961104 #19316]  INFO -- default-centos-66: -----> Converging <default-centos-66>...
I, [2015-07-20T11:39:52.961859 #19316]  INFO -- default-centos-66: Preparing files for transfer
I, [2015-07-20T11:39:52.961953 #19316]  INFO -- default-centos-66: Preparing dna.json
I, [2015-07-20T11:39:52.962295 #19316]  INFO -- default-centos-66: Resolving cookbook dependencies with Berkshelf 3.2.4...
I, [2015-07-20T11:39:53.094888 #19316]  INFO -- default-centos-66: Removing non-cookbook files before transfer
I, [2015-07-20T11:39:53.099016 #19316]  INFO -- default-centos-66: Preparing validation.pem
I, [2015-07-20T11:39:53.099358 #19316]  INFO -- default-centos-66: Preparing client.rb
I, [2015-07-20T11:39:53.143196 #19316]  INFO -- default-centos-66: -----> Chef Omnibus installation detected (install only if missing)
I, [2015-07-20T11:39:53.197247 #19316]  INFO -- default-centos-66: Transferring files to <default-centos-66>
E, [2015-07-20T11:39:53.960853 #19316] ERROR -- default-centos-66: Converge failed on instance <default-centos-66>.
E, [2015-07-20T11:39:53.961045 #19316] ERROR -- default-centos-66: ------Exception-------
E, [2015-07-20T11:39:53.961088 #19316] ERROR -- default-centos-66: Class: RuntimeError
E, [2015-07-20T11:39:53.961124 #19316] ERROR -- default-centos-66: Message: �scp: /tmp/kitchen/cookbooks/addthis-yum/recipes/cloudera-cdh4.rb: No such file or directory

E, [2015-07-20T11:39:53.961158 #19316] ERROR -- default-centos-66: ------Backtrace-------
@cheeseplus
Copy link

Seems completely reasonable and I've marked as accepted. PRs obviously welcome but it's at least on the stack now.

@Jonnymcc
Copy link

Any thoughts about how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants