Bug 1449080 - [paid][online-int][online-stg] repeated and incorrect warning when set activeDeadlineSeconds value to a minus
Summary: [paid][online-int][online-stg] repeated and incorrect warning when set active...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Derek Carr
QA Contact: Xiaoli Tian
URL:
Whiteboard:
: 1466113 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-09 08:09 UTC by yasun
Modified: 2019-07-03 15:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-03 15:13:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yasun 2017-05-09 08:09:49 UTC
Description of problem:
activeDeadlineSeconds warning is repeated and incorrect while set activeDeadlineSeconds value to a minus

Version-Release number of selected component (if applicable):
openshift v3.6.65
kubernetes v1.6.1+5115d708d7

How reproducible:
always

Steps to Reproduce:
1. create a run-once pod
oc run run-once-pod --command=true sleep 2000s --restart=Never
2. patch the pod
oc patch pod run-once-pod -p \{\"spec\":\{\"activeDeadlineSeconds\":-5\}\}

Actual results:
[root@ymsun cucushift-test]# oc patch pod run-once-pod -p \{\"spec\":\{\"activeDeadlineSeconds\":-5\}\}
The Pod "run-once-pod" is invalid: 
* spec.activeDeadlineSeconds: Invalid value: -5: must be greater than 0
* spec.activeDeadlineSeconds: Invalid value: -5: must be greater than or equal to 0

Expected results:
The line "spec.activeDeadlineSeconds: Invalid value: -5: must be greater than or equal to 0" is a repeated warning. And due to 0 can not be used, it is an incorrect warning too.

Additional info:

Comment 1 yasun 2017-06-02 08:47:23 UTC
The issue exist in dev-preview-stg too.

Comment 2 Derek Carr 2017-06-02 20:34:08 UTC
the issue is that on pod update we call:

ValidatePod
ValidatePodUpdate

https://github.com/kubernetes/kubernetes/blob/master/pkg/registry/core/pod/strategy.go#L93

The differing values are because the allowed value set for the field differ on create versus update.

Comment 3 Jessica Forrester 2017-06-29 13:59:27 UTC
*** Bug 1466113 has been marked as a duplicate of this bug. ***

Comment 5 Greg Blomquist 2019-07-03 15:13:21 UTC
No movement on this in 2 years.  If issues still persist, please open a new bug.


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