Description of problem: In order to create a custom billing provider you need to manually modify the database because of https://github.com/openshift/origin-server/blob/master/broker-util/oo-admin-ctl-usage#L155-L175 checks for the account number. Version-Release number of selected component (if applicable): 2.2 How reproducible: 100% Steps to Reproduce: 1. Follow https://mojo.redhat.com/docs/DOC-1012698 Suggested Action: Allow for oo-admin-ctl-user to set a usage_account_id # oo-admin-ctl-user -l admin --setplanquantity 1 --setplan free \ --setusage_account_id 12345
Upstream PR: https://github.com/openshift/origin-server/pull/6141
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/d723c169a6eefb54546b9d27d804ea463f9a72fb Bug 1221786 - Provide a way for users to set a usage_account_id
Check on puddle [2.2.6/2015-05-18.1] 1. list the user info # oo-admin-ctl-user -l xiaom User xiaom1: plan: usage account id: <--snip--> 2. set the usage account id # oo-admin-ctl-user -l xiaom --setusageaccountid 1234 Setting usage account id 1234 for user xiaom... Done. User xiaom: plan: usage account id: 1234 3. check the value in the database # mongo -u openshift -p mongopass openshift_broker MongoDB shell version: 2.4.6 connecting to: openshift_broker > db.cloud_users.findOne() <--snip--> "usage_account_id" : "1234" }
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1463.html