Description of problem: Create reserved domain with broker side command rhc-ctl-admin-domain, the namespace name specified with -n option will be recognized as ssh-key type and saved in mongodb. Version-Release number of selected component (if applicable): devenv_2250 How reproducible: always Steps to Reproduce: 1.Login to the instance and create reserved domain for non-existing user. #rhc-admin-ctl-domain -c create -l bmeng+1 -n bmeng1dev -s xxx -t ssh-rsa -k default 2.Check the user info in mongodb 3. Actual results: { "_id": "bmeng+1", "login": "bmeng+1", "max_gears": 3, "uuid": "40051635c5074502a552935d2361c1b6", "ssh_keys": { "default": { "type": "bmeng1dev", "key": "xxx" } }, "parent_user_login": null, "consumed_gears": 0, "capabilities": { "gear_sizes": { "0": "small" } } } Expected results: The type under ssh_keys section should be ssh-rsa. Additional info:
expect to this to be fixed as part of the model refactor
will look at today
https://github.com/openshift/crankcase/pull/600
(In reply to comment #3) > https://github.com/openshift/crankcase/pull/600 https://github.com/openshift/origin-server/pull/600 has been merged , move it to ON_QA to verify.
Checked on devenv_2296, issue has been fixed. [root@ip-xx bin]# oo-admin-ctl-domain -l bmeng+1 -n bmeng1dev -c create -s xxx -k key1 -t ssh-rsa Successfully created user. Successfully created domain. Check in mongodb: "domains": { "0": { "namespace": "bmeng1dev", "uuid": "309514ffe4194deda65ff1669c099243" } }, "login": "bmeng+1", "max_gears": 3, "parent_user_login": null, "ssh_keys": { "key1": { "key": "xxx", "type": "ssh-rsa" } },