Bug 1327410 - Got warning "Pod requests bandwidth shaping, but the shaper is undefined" when enable QoS for pod
Summary: Got warning "Pod requests bandwidth shaping, but the shaper is undefined" whe...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Dan Williams
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-15 06:21 UTC by Yan Du
Modified: 2016-09-09 21:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-09 21:25:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

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)


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