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

unknown file type: ../nagios/Dockerfile-kitchen20170105-422-14jw2cf] on zabbix-agent-ubuntu-1404 #252

Open
stefanandres opened this issue Jan 5, 2017 · 0 comments

Comments

@stefanandres
Copy link
Contributor

stefanandres commented Jan 5, 2017

Hi,
sometimes kitchen fails with

E, [2017-01-05T10:16:32.456276 #31945] ERROR -- zabbix-agent-ubuntu-1404: ------Exception-------
E, [2017-01-05T10:16:32.456316 #31945] ERROR -- zabbix-agent-ubuntu-1404: Class: RuntimeError
E, [2017-01-05T10:16:32.456333 #31945] ERROR -- zabbix-agent-ubuntu-1404: Message: unknown file type: ../nagios/Dockerfile-kitchen20170105-422-14jw2cf
E, [2017-01-05T10:16:32.456354 #31945] ERROR -- zabbix-agent-ubuntu-1404: ----------------------
E, [2017-01-05T10:16:32.456369 #31945] ERROR -- zabbix-agent-ubuntu-1404: ------Backtrace-------
E, [2017-01-05T10:16:32.456383 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1387:in `copy'
E, [2017-01-05T10:16:32.456399 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:472:in `block in copy_entry'
E, [2017-01-05T10:16:32.456414 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1498:in `wrap_traverse'
E, [2017-01-05T10:16:32.456429 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:469:in `copy_entry'
E, [2017-01-05T10:16:32.456444 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:444:in `block in cp_r'
E, [2017-01-05T10:16:32.456459 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1571:in `block in fu_each_src_dest'
E, [2017-01-05T10:16:32.456475 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1580:in `block in fu_each_src_dest0'
E, [2017-01-05T10:16:32.456490 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1578:in `each'
E, [2017-01-05T10:16:32.456505 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1578:in `fu_each_src_dest0'
E, [2017-01-05T10:16:32.456523 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:1569:in `fu_each_src_dest'
E, [2017-01-05T10:16:32.456575 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/fileutils.rb:443:in `cp_r'
E, [2017-01-05T10:16:32.456593 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/kitchen-puppet-1.46.0/lib/kitchen/provisioner/puppet_apply.rb:1156:in `block in copy_modules'
E, [2017-01-05T10:16:32.456608 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/kitchen-puppet-1.46.0/lib/kitchen/provisioner/puppet_apply.rb:1152:in `each'
E, [2017-01-05T10:16:32.456623 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/kitchen-puppet-1.46.0/lib/kitchen/provisioner/puppet_apply.rb:1152:in `copy_modules'
E, [2017-01-05T10:16:32.456638 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/kitchen-puppet-1.46.0/lib/kitchen/provisioner/puppet_apply.rb:1137:in `prepare_modules'
E, [2017-01-05T10:16:32.456654 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/kitchen-puppet-1.46.0/lib/kitchen/provisioner/puppet_apply.rb:532:in `create_sandbox'
E, [2017-01-05T10:16:32.456669 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/provisioner/base.rb:65:in `call'
E, [2017-01-05T10:16:32.456684 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:384:in `block in converge_action'
E, [2017-01-05T10:16:32.456702 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:527:in `synchronize_or_call'
E, [2017-01-05T10:16:32.456717 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:489:in `block in action'
E, [2017-01-05T10:16:32.456733 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/benchmark.rb:293:in `measure'
E, [2017-01-05T10:16:32.456749 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:488:in `action'
E, [2017-01-05T10:16:32.456764 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:380:in `converge_action'
E, [2017-01-05T10:16:32.456799 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:359:in `block in transition_to'
E, [2017-01-05T10:16:32.456818 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:358:in `each'
E, [2017-01-05T10:16:32.456833 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:358:in `transition_to'
E, [2017-01-05T10:16:32.456848 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:157:in `verify'
E, [2017-01-05T10:16:32.456862 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:186:in `block in test'
E, [2017-01-05T10:16:32.456877 #31945] ERROR -- zabbix-agent-ubuntu-1404: /usr/lib/ruby/2.3.0/benchmark.rb:293:in `measure'
E, [2017-01-05T10:16:32.456892 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/instance.rb:182:in `test'
E, [2017-01-05T10:16:32.456907 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command.rb:197:in `public_send'
E, [2017-01-05T10:16:32.456921 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2017-01-05T10:16:32.456936 #31945] ERROR -- zabbix-agent-ubuntu-1404: /var/lib/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2017-01-05T10:16:32.456951 #31945] ERROR -- zabbix-agent-ubuntu-1404: ----End Backtrace-----

I'm running a few (~10) test-kitchen procceses parallel (for different test modules though) and this happens in aprox. in 1 out of 100 executions.

As you can see, it tries to open ../nagios instead of ../zabbix-agent. nagios is a different module. I guess this is some kind of race condition on some shared resources

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

No branches or pull requests

1 participant