Bug 821299

Summary: Constant re-adding?
Product: OKD Reporter: Mike McGrath <mmcgrath>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_1809 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-08 17:58:40 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-05-14 02:00:43 UTC
I'm not sure if this is a bug or not but we're seeing this over and over in the logs in prod.

Started POST "/broker/userinfo" for 107.21.193.203 at Sun May 13 21:47:04 -0400 2012
  Processing by LegacyBrokerController#user_info_post as HTML
  Parameters: {"broker_auth_iv"=>"[FILTERED]", "json_data"=>"{\"debug\" : \"true\"}", "broker_auth_key"=>"[FILTERED]"}
User-Agent = 'Java OpenShift/1.2.2-SNAPSHOT ()'
MongoDataStore.find(CloudUser, Craig.Schwarzwald, Craig.Schwarzwald)

Adding user Craig.Schwarzwald...inside legacy_controller
MongoDataStore.find(CloudUser, Craig.Schwarzwald, Craig.Schwarzwald)

MongoDataStore.find(CloudUser, Craig.Schwarzwald, Craig.Schwarzwald)

Comment 1 Xiaoli Tian 2012-06-04 07:36:37 UTC
Tested it on devenv-stage_200, if the user is not existed, it will add it as following:

Started POST "/broker/domain" for 203.114.244.88 at Mon Jun 04 01:44:18 -0400 2012
  Processing by LegacyBrokerController#domain_post as
  Parameters: {"json_data"=>"{\"key_type\":\"ssh-rsa\",\"api\":\"1.1.3\",\"ssh\":\"AAAAB3NzaC1yc2EAAAABIwAAAQEA4NeUyMMeM+8WZITvoArNSYtHeYH/gxpl02JZi2zn1nfAteIKhjY1jSJwmS9puXwOpY4IFIC0JT/ucbtGEQZFTSIhSrZ51bACiuY32pdtNmr5MHAvhIOVwktcjZ+Lmu2fZMEVeGO6bHct0WQ9zBLvcebwCSBKc0xwk5JVr740t+Q00fvcBktVp66qB6AjA7+ELR9reSQLMkQW8URpxeDu6vb8Wh5X/8Vy/m6vfAAEHIjozRNtuvMG5u7jfWs9/5TkpwkQeSs2Q452nndDq0Qt3zLJOYu9ARFandxQh2/CUsbIc9dqQLmTbIgkkjQkqps6J7DetbEAlt3sVyMP1RpH6w==\",\"namespace\":\"domaindev04\",\"rhlogin\":\"xtian+t102\"}", "password"=>"[FILTERED]"}
User-Agent = ''
MongoDataStore.find(CloudUser, xtian+t102, xtian+t102)

Adding user xtian+t102...inside legacy_controller
MongoDataStore.find(CloudUser, xtian+t102, xtian+t102)

DEBUG: Attempting to add user 'xtian+t102'
MongoDataStore.create(CloudUser, xtian+t102, xtian+t102, #hidden)
--------------------------------------------------------------------------


If the user does not exist, it will not add it and the log will not say it's adding user.

Started POST "/broker/userinfo" for 203.114.244.88 at Mon Jun 04 01:46:11 -0400 2012
  Processing by LegacyBrokerController#user_info_post as
  Parameters: {"json_data"=>"{\"api\":\"1.1.3\",\"rhlogin\":\"xtian+t102\"}", "password"=>"[FILTERED]"}
User-Agent = ''

MongoDataStore.find(CloudUser, xtian+t102, xtian+t102)

[REQ_ID=058e356fde10475a8e71fa43b8deb29d] ACTION=LEGACY_USER_INFO
Completed 200 OK in 226ms (Views: 1.8ms)