Issue #12139 has been updated by Sateesh B.
Thanks dominic for your response. I will follow this up in mailing list. Regards, Sateesh B. ---------------------------------------- Bug #12139: Executing the command correctly but the exec is throwing the failure. https://projects.puppetlabs.com/issues/12139 Author: Sateesh B Status: Rejected Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Hi, I am working on puppet script for installation of Openstack. So when I am executing the swift-ring-builder account.builder add z1-<my_ip_here>:6002/sdb1 100, the command is executed correctly but still it throwing the failure message. Please find below the trace: root@v-phyos06:/etc/swift# puppet apply --trace -e 'exec {"swift-ring-builder account.builder add z1-10.233.13.142:6002/sdb1 100":path=>"/usr/bin",logoutput => "on_failure"}' notice: /Stage[main]//Exec[swift-ring-builder account.builder add z1-10.233.13.142:6002/sdb1 100]/returns: **Device z1-10.233.13.142:6002/sdb1_"" with 100.0 weight got id 0** /usr/lib/ruby/1.8/puppet/parameter.rb:171:in `fail' /usr/lib/ruby/1.8/puppet/type/exec.rb:150:in `sync' /usr/lib/ruby/1.8/puppet/transaction/change.rb:34:in `apply' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:21:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `each' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:90:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply' /usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate' /usr/lib/ruby/1.8/puppet/util.rb:424:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/1.8/puppet/util.rb:423:in `thinmark'![]() /usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate' /usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply' /usr/lib/ruby/1.8/puppet/application/apply.rb:133:in `main' /usr/lib/ruby/1.8/puppet/application/apply.rb:35:in `run_command' /usr/lib/ruby/1.8/puppet/application.rb:287:in `run' /usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:287:in `run' /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute' /usr/bin/puppet:4 err: /Stage[main]//Exec[swift-ring-builder account.builder add z1-10.233.13.142:6002/sdb1 100]/returns: change from notrun to 0 failed: swift-ring-builder account.builder add z1-10.233.13.142:6002/sdb1 100 returned 1 instead of one of [0] at line 1 The output of exec command is as expected "***Device z1-10.233.13.142:6002/sdb1_"" with 100.0 weight got id 0***". But it throwing an error. Kindly let me know where did I made the mistake. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
