Bug 1336632 - hpa wrong tips when --max is less than --min
Summary: hpa wrong tips when --max is less than --min
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: dhodovsk
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-17 05:57 UTC by Weihua Meng
Modified: 2017-03-08 18:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
While autoscaling, it was not clear what was the reason of failed --max flag validation. This fix divides reasons to: - value not provided or too low - value of max is lower than value of min
Clone Of:
Environment:
Last Closed: 2017-01-18 12:40:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Description Weihua Meng 2016-05-17 05:57:30 UTC
Description of problem:
Wrong tips show up when --max is less than --min for oc autoscale

Version-Release number of selected component (if applicable):
oc v3.2.0.44
kubernetes v1.2.0-36-g4a3f9c5


How reproducible:
Always

Steps to Reproduce:
1. create RC
2. oc autoscale rc $rcName --max=5 --min=6

Actual results:
--max=MAXPODS is required, and must be at least 1 and --min=MINPODS

Expected results:
something point out the reason, like
--max=MAXPODS must be larger or equal to --min=MINPODS

Additional info:

Comment 1 dhodovsk 2016-06-22 08:27:39 UTC
Fix provided in: 
https://github.com/kubernetes/kubernetes/pull/27844

Comment 2 Andy Goldstein 2016-07-06 15:44:35 UTC
Upstream PR has merged.

Comment 3 Weihua Meng 2016-07-14 08:04:14 UTC
oc autoscale rc $rcName --max=5 --min=6
--max=MAXPODS is required, and must be at least 1 and --min=MINPODS
[root@openshift-140 ~]# openshift version
openshift v3.3.0.5
kubernetes v1.3.0+57fb9ac
etcd 2.3.0+git

need to wait.
which openshift version to verify it?

Comment 4 DeShuai Ma 2016-11-22 08:40:44 UTC
Test on openshift v3.4.0.28+dfe3a66, This bug should be fixed in 3.4, could you set on QA, then QE will verify it.

[root@qe-dma2-master-1 dma]# oc autoscale rc hello-openshift --max=5 --min=6 -n dma2
error: --max=MAXPODS must be larger or equal to --min=MINPODS, max: 5, min: 6

Comment 6 errata-xmlrpc 2017-01-18 12:40:53 UTC
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://access.redhat.com/errata/RHBA-2017:0066


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