Bug 1327410

Summary: Got warning "Pod requests bandwidth shaping, but the shaper is undefined" when enable QoS for pod
Product: OpenShift Container Platform Reporter: Yan Du <yadu>
Component: NetworkingAssignee: Dan Williams <dcbw>
Status: CLOSED CURRENTRELEASE QA Contact: Meng Bo <bmeng>
Severity: low Docs Contact:
Priority: low    
Version: 3.2.0CC: aos-bugs, bbennett, dcbw, sukulkar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-09 21:25:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yan Du 2016-04-15 06:21:01 UTC
Description of problem:
Create a pod with QoS enabled, got below warning for pod

Events:
  FirstSeen    LastSeen    Count    From                        SubobjectPath        Type        Reason        Message
  ---------    --------    -----    ----                        -------------        --------    ------        -------
  1m        1m        1    {default-scheduler }                            Normal        Scheduled    Successfully assigned iperf to openshift-127.lab.sjc.redhat.com
  1m        1m        1    {kubelet openshift-127.lab.sjc.redhat.com}    spec.containers{iperf}    Normal        Pulling        pulling image "yadu/hello-openshift-iperf"
  1m        1m        1    {kubelet openshift-127.lab.sjc.redhat.com}    spec.containers{iperf}    Normal        Pulled        Successfully pulled image "yadu/hello-openshift-iperf"
  1m        1m        1    {kubelet openshift-127.lab.sjc.redhat.com}    spec.containers{iperf}    Normal        Created        Created container with docker id 4e337a82ab5b
  1m        1m        1    {kubelet openshift-127.lab.sjc.redhat.com}    spec.containers{iperf}    Normal        Started        Started container with docker id 4e337a82ab5b
  1m        1m        3    {kubelet openshift-127.lab.sjc.redhat.com}                Warning        NilShaper    Pod requests bandwidth shaping, but the shaper is undefined


Version-Release number of selected component (if applicable):
openshift v3.2.0.15
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5

How reproducible:
Always


Steps to Reproduce:
1. Create the pod with QoS enabled
apiVersion: v1
kind: Pod
metadata:
  name: iperf
  annotations:
    kubernetes.io/ingress-bandwidth: 3M
    kubernetes.io/egress-bandwidth: 3M
spec:
  containers:
  - name: iperf
    image: yadu/hello-openshift-iperf
2. Describe the pod



Actual results:
Same as Description


Expected results:
Should not show such warning

Comment 1 Dan Williams 2016-04-22 16:40:44 UTC
This is a bug in upstream kube that was fixed with https://github.com/kubernetes/kubernetes/pull/22827 and won't be present in origin until the next rebase on kubernetes.

Comment 2 Ben Bennett 2016-09-01 17:49:04 UTC
I assume this is in now?

Comment 3 Dan Williams 2016-09-09 21:25:06 UTC
(In reply to Ben Bennett from comment #2)
> I assume this is in now?

Yeah, it should be in kube 1.3 and later, I believe.

Comment 4 Dan Williams 2016-09-09 21:25:35 UTC
(and thus also in OpenShift 3.3 and later)