Skip to content

Instantly share code, notes, and snippets.

View jpartlow's full-sized avatar

Josh Partlow jpartlow

View GitHub Profile
opening connection to suyawmy926zao1i.delivery.puppetlabs.net...
opened
<- "PUT /classifier-api/v1/groups/e8c78a54-0196-4f84-a079-ce7a45c4044c HTTP/1.1\r\nContent-Type: application/json\r\nConnection: close\r\nHost: suyawmy926zao1i.delivery.puppetlabs.net:4433\r\nContent-Length: 580\r\n\r\n"
<- "{\"description\":\"The following acceptance suite nodes (suyawmy926zao1i.delivery.puppetlabs.net, rn930a1swi50w6d.delivery.puppetlabs.net, s5z9w9ypary6xk6.delivery.puppetlabs.net) expect to be able to specify their environment for tesing purposes.\",\"parent\":\"00000000-0000-4000-8000-000000000000\",\"rule\":[\"or\",[\"~\",\"name\",\"suyawmy926zao1i.delivery.puppetlabs.net\"],[\"~\",\"name\",\"rn930a1swi50w6d.delivery.puppetlabs.net\"],[\"~\",\"name\",\"s5z9w9ypary6xk6.delivery.puppetlabs.net\"]],\"classes\":{},\"name\":\"Agent Specified Test Nodes\",\"environment\":\"agent-specified\",\"environment_trumps\":true}"
-> "HTTP/1.1 500 Server Error\r\n"
-> "Date: Wed, 08 Oct 2014 10:29:14 GMT\r\n"
-> "Content-Type: appli
opening connection to suyawmy926zao1i.delivery.puppetlabs.net...
opened
<- "GET /classifier-api/v1/groups HTTP/1.1\r\nContent-Type: application/json\r\nConnection: close\r\nHost: suyawmy926zao1i.delivery.puppetlabs.net:4433\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Wed, 08 Oct 2014 11:19:13 GMT\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/json;charset=UTF-8\r\n"
-> "Connection: close\r\n"
-> "Server: Jetty(9.1.z-SNAPSHOT)\r\n"
-> "\r\n"
"POST /classifier-api/v1/groups/57bf86e4-1204-4011-b87e-b31d02cd6c2a HTTP/1.1\r\nContent-Type: application/json\r\nConnection: close\r\nHost: ouhsdzk4ejjypsf:4433\r\nContent-Length: 375\r\n\r\n"
<- "{\"parent\":\"00000000-0000-4000-8000-000000000000\",\"name\":\"PE MCollective\",\"rule\":[\"and\",[\"~\",[\"fact\",\"pe_version\"],\".+\"],[\"not\",[\"or\",[\"~\",\"name\",\"ouhsdzk4ejjypsf\"],[\"~\",
\"name\",\"o43udfrsza7l0cz\"]]]],\"variables\":{},\"id\":\"57bf86e4-1204-4011-b87e-b31d02cd6c2a\",\"environment_trumps\":false,\"environment\":\"production\",\"classes\":{\"puppet_enterprise::profile::mcol
lective::agent\":{}}}"
-> "HTTP/1.1 422 Unprocessable Entity\r\n"
-> "Date: Tue, 30 Sep 2014 21:55:33 GMT\r\n"
-> "Content-Type: application/json;charset=ISO-8859-1\r\n"
-> "Connection: close\r\n"
-> "Server: Jetty(9.1.z-SNAPSHOT)\r\n"
-> "\r\n"
[root@es5of50gym06g8o ~]# curl -vv -X GET -H 'Accept: application/json' --cert /etc/puppetlabs/puppet/ssl/certs/pe-internal-dashboard.pem --key /etc/puppetlabs/puppet/ssl/private_keys/pe-internal-dashboard.pem --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem https://es5of50gym06g8o:1262/classifier/v1/groups
* About to connect() to es5of50gym06g8o port 1262 (#0)
* Trying 10.32.116.23... connected
* Connected to es5of50gym06g8o (10.32.116.23) port 1262 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/puppetlabs/puppet/ssl/certs/ca.pem
CApath: none
* NSS: client certificate from file
* subject: CN=pe-internal-dashboard
* start date: Sep 16 18:28:55 2014 GMT
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index 5311875..6ccadd8 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -105,6 +105,7 @@ class Puppet::Transaction
overly_deferred_resource_handler = lambda do |resource|
# We don't automatically assign unsuitable providers, so if there
# is one, it must have been selected by the user.
+ return if skip?(resource)
if resource.provider
Error: ReplaceFile(C:/cygwin64/tmp/file_7101.erb.ijLxua, C:/cygwin64/tmp/file_7101.erb.ijLxua20140820-2324-ki5gg6): The process cannot access the file because it is being used by another process.
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/util/windows/file.rb:67:in `replace_file'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/util.rb:458:in `replace_file'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/type/file.rb:798:in `write'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/type/file/content.rb:149:in `sync'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:204:in `sync'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:89:in `block in perform_changes'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:88:in `each'
C:/cygwin64/lib/ruby/site_ruby/1.9.1/puppet/transaction/resource_harness.rb:88:in `perform_changes'
@jpartlow
jpartlow / with debug
Last active August 29, 2015 14:04
1244-failure-example
[root@centos6-master ~]# yum list hiera
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.facebook.net
* extras: centos.expedientevirtual.com
* updates: centos-mirror.jchost.net
Installed Packages
hiera.noarch 1.3.3-1.el6 @puppetlabs-products
Available Packages
hiera.noarch 1.3.4-1.el6 puppetlabs-products