Bug 907741 - Administrator cannot create a district with a custom gear size until it is included in VALID_GEAR_SIZE
Summary: Administrator cannot create a district with a custom gear size until it is in...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: bmoss
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-05 07:33 UTC by xjia
Modified: 2017-03-08 17:35 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-20 02:39:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xjia 2013-02-05 07:33:26 UTC
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:

Comment 2 Brenton Leanhardt 2013-02-05 13:55:36 UTC
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.

Comment 3 Luke Meyer 2013-02-05 16:38:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.