Skip to content

Instantly share code, notes, and snippets.

View ncdc's full-sized avatar

Andy Goldstein ncdc

View GitHub Profile
@ncdc
ncdc / gist:6825960
Created October 4, 2013 13:32
test_unscaled failure
[root@ip-10-202-194-31 functional]# ruby scaling_func_test.rb --name test_unscaled
Run options: --name test_unscaled
# Running tests:
I, [2013-10-04T09:30:24.061734 #10142] INFO -- : Created domain ns46794323 for user user23892422
I, [2013-10-04T09:30:24.061895 #10142] INFO -- : Using framework cartridge: mock-0.1
I, [2013-10-04T09:30:24.062279 #10142] INFO -- : Creating app app65366976 with cartridges: ["mock-0.1"] with scaling: false
I, [2013-10-04T09:30:41.141737 #10142] INFO -- : Created app app65366976 with id 524ec2f02d5972e14b000004
I, [2013-10-04T09:30:42.957693 #10142] INFO -- : Setting OPENSHIFT_KEEP_DEPLOYMENTS to 3 for ns46794323
@ncdc
ncdc / gist:6826046
Created October 4, 2013 13:36
test_unscaled_jenkins failure
[root@ip-10-202-194-31 functional]# ruby scaling_func_test.rb --name test_unscaled_jenkins
Run options: --name test_unscaled_jenkins
# Running tests:
I, [2013-10-04T09:33:38.707311 #13569] INFO -- : Created domain ns27917318 for user user72386111
I, [2013-10-04T09:33:38.707442 #13569] INFO -- : Using framework cartridge: mock-0.1
I, [2013-10-04T09:33:38.707546 #13569] INFO -- : Creating app jenkins34663561 with cartridges: ["jenkins-1"] with scaling: false
I, [2013-10-04T09:34:17.902488 #13569] INFO -- : Created app jenkins34663561 with id 524ec3b22d5972cd0b000012
I, [2013-10-04T09:34:17.902722 #13569] INFO -- : Creating app app72682827 with cartridges: ["mock-0.1", "jenkins-client-1"] with scaling: false
@ncdc
ncdc / gist:6827907
Last active December 24, 2015 16:28
distribute_result = distribute(options)
if distribute_result[:status] != 'success'
failed_gears = distribute_result[:gear_results].select { |r| r[:status] != 'success'}
.map { |r| r[:gear_uuid] }
raise "Failed to distribute to the following gears: #{failed_gears.join(',')}"
end
[root@ip-10-202-194-31 d]# echo `date` > foo; git ci -am w; git push
[master 784a8cb] w
1 file changed, 1 insertion(+), 1 deletion(-)
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 335 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Stopping Mock cartridge
remote: Syncing git content to other proxy gears
[root@ip-10-202-194-31 d]# echo `date` > foo; git ci -am w; git push
[master e95b505] w
1 file changed, 1 insertion(+), 1 deletion(-)
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 334 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Stopping Mock cartridge
remote: Syncing git content to other proxy gears
require 'timeout'
def oo_spawn(command, options = {})
options[:env] ||= (options[:env] || {})
options[:timeout] ||= 3600
options[:buffer_size] ||= 32768
opts = {}
opts[:unsetenv_others] = (options[:unsetenv_others] || false)
platform.log:
October 08 09:11:08 INFO Connecting frontend mapping for 52540459cef240237c000007/haproxy: [/haproxy-status] => [127.1.244.3:8080/] with options: {"protocols"=>["tcp"]}
manifest.rb:
if entry['Protocols']
endpoint.protocols = entry['Protocols']
elsif categories.include?('web_framework') and endpoint_index==1
2013-10-08 11:24:16.834 [INFO ] Started PUT "/broker/rest/domains/agoldste/applications/p3/cartridges/php-5.3" for 127.0.0.1 at 2013-10-08 11:24:16 -0400 (pid:10866)
2013-10-08 11:24:16.845 [INFO ] Processing by EmbCartController#update as JSON (pid:10866)
2013-10-08 11:24:16.845 [INFO ] Parameters: {"scales_from"=>3, "scales_to"=>3, "domain_id"=>"agoldste", "application_id"=>"p3", "id"=>"php-5.3", "emb_cart"=>{"scales_from"=>3, "scales_to"=>3}} (pid:10866)
2013-10-08 11:24:16.846 [DEBUG] API version 1.5 (pid:10866)
2013-10-08 11:24:16.851 [DEBUG] SUCCESS ACTION=AUTHENTICATE USER_ID=5254042ecef240237c000001 LOGIN=a IP=127.0.0.1 SCOPES=session Authenticated (pid:10866)
2013-10-08 11:24:16.860 [INFO ] NEW PENDING APP OP GROUP: UpdateCompLimitsOpGroup from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.16.0/app/models/application.rb:812:in `new'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.16.0/app/models/application.rb:812:in `block in update_component_limits'
/
Started by user Jenkins System Builder
Building remotely on pjbldr in workspace /var/lib/openshift/5258254890c3ab497500025a/app-root/runtime/repo
Checkout:repo / /var/lib/openshift/5258254890c3ab497500025a/app-root/runtime/repo - hudson.remoting.Channel@19a2544:pjbldr
Using strategy: Default
Checkout:repo / /var/lib/openshift/5258254890c3ab497500025a/app-root/runtime/repo - hudson.remoting.LocalChannel@1221ed7
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from ssh://[email protected]/~/git/pj.git
+ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh [email protected] 'gear stop --conditional --git-ref d6654be2105a3f2d34fa2aa866cd78462f6c1919'
Skipping gear stop due to presence of hot deploy marker