Bug 811066

Summary: Warnings running broker scripts from command line
Product: OKD Reporter: Mike McGrath <mmcgrath>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: abhgupta, dmcphers, jialiu, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:26:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McGrath 2012-04-10 02:25:03 UTC
Description of problem:
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/application.rb:15: warning: already initialized constant APP_NAME_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/application.rb:16: warning: already initialized constant NAMESPACE_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/application.rb:17: warning: already initialized constant UNSCALABLE_FRAMEWORKS
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/application.rb:18: warning: already initialized constant SCALABLE_EMBEDDED_CARTS
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/cloud_user.rb:8: warning: already initialized constant DEFAULT_SSH_KEY_NAME
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/legacy_reply.rb:4: warning: already initialized constant API_VERSION
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/legacy_reply.rb:5: warning: already initialized constant API_CAPABILITY
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/legacy_reply.rb:6: warning: already initialized constant C_CAPABILITY
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/legacy_request.rb:5: warning: already initialized constant APP_NAME_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/legacy_request.rb:6: warning: already initialized constant NAMESPACE_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/validators/key_validator.rb:2: warning: already initialized constant KEY_NAME_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/validators/key_validator.rb:3: warning: already initialized constant KEY_NAME_MIN_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/validators/namespace_validator.rb:2: warning: already initialized constant NAMESPACE_MAX_LENGTH
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.8.5/lib/stickshift-controller/app/models/validators/namespace_validator.rb:3: warning: already initialized constant NAMESPACE_MIN_LENGTH
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader

Just causes extra scroll during tests.

Comment 1 Dan McPherson 2012-05-29 17:08:29 UTC
*** Bug 822769 has been marked as a duplicate of this bug. ***

Comment 2 Abhishek Gupta 2012-06-16 01:57:51 UTC
Fixed and waiting for merge
https://github.com/openshift/crankcase/pull/136

Comment 3 Xiaoli Tian 2012-06-19 10:15:48 UTC
Tested this on devenv_1857, run any of the admin scripts or unit testing, no warning messages now.

rhc-admin-ctl-usage --list
Gear usage not found for user: xtian+b100
Done

[root@ip-10-196-62-88 functional]# ruby billing_events_test.rb 
Loaded suite billing_events_test
Started
.
Finished in 1.01509 seconds.