Description of problem: In the file /etc/openshift/resource_limit.conf, node_profile is "small" by default. As user can change node_profile to other name they want, so we should let user create the district with the same name Version-Release number of selected component (if applicable): http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.z/2013-01-30.1/ How reproducible: 100% Steps to Reproduce: 1.Set node_profile equal "haha" in /etc/openshift/resource_limit.conf node_profile=haha 2.create a district with "haha" type Actual results: [root@broker]# oo-admin-ctl-district -p haha -n jia Node profile must be one of: (small(default)|medium) Expected results: Should create successfully Additional info:
It would certainly be nice if changing /etc/openshift/resource_limits.conf was the only thing that was needed. However, currently the oo-admin-crl-district code relies on the VALID_GEAR_SIZES setting in /etc/openshift/broker.conf. The node profile has to be set there too. This is getting reworked quite a bit upstream so we'll make sure this gets taken into account there.
VALID_GEAR_SIZES is mentioned briefly in the admin guide https://access.redhat.com/knowledge/docs/en-US/OpenShift_Enterprise/1/html-single/Administration_Guide/index.html#sect-OpenShift_Enterprise-Administration_Guide-Setting_Default_Gear_Quotas_and_Sizes It probably deserves a mention in the Deployment Guide section about this as well. https://access.redhat.com/knowledge/docs/en-US/OpenShift_Enterprise/1/html-single/Deployment_Guide/index.html#sect-OpenShift_Enterprise-Deployment_Guide-Continuing_Node_Installation_for_Enterprise-Gear_Profiles Given the upstream changes for this are indeterminate, I am switching this to a docs bug. The work to be done is: 1. In the admin guide linked above, mention that gear profiles can't be used by admins to create districts, or develoeprs to create applications / gears, until they are listed in VALID_GEAR_SIZES. 2. Likewise in the deploy guide section above.