Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not create podgroup for single pod without ownerreference #496

Closed
sivanzcw opened this issue Oct 29, 2019 · 2 comments
Closed

can not create podgroup for single pod without ownerreference #496

sivanzcw opened this issue Oct 29, 2019 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@sivanzcw
Copy link
Contributor

/kind bug

What happened:
can not create podgroup for single pod without ownerreference
What you expected to happen:
single pod can be scheduled successufully

create single pod

kubectl create -f myapp-deploy.yaml
apiVersion: v1
kind: Pod
metadata:
  name: myapp-deploy
  namespace: default
spec:
  containers:
  - image: ikubernetes/myapp:v1
    imagePullPolicy: IfNotPresent
    name: myapp-containers
    ports:
    - containerPort: 80
      name: http
      protocol: TCP
    resources:
      requests:
        cpu: "1"
  dnsPolicy: ClusterFirst
  schedulerName: volcano
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300

view logs of volcano-controllers

kubectl logs volcano-controllers-57864457d4-shfkv -n volcano-system | grep myapp-deploy
E1029 13:03:54.365619       1 pg_controller.go:136] Failed to handle Pod <default/myapp-deploy>: PodGroup.scheduling.sigs.dev "podgroup-817afc91-fa4c-11e9-b688-fa163ec79500" is invalid: [metadata.ownerReferences.kind: Invalid value: "": kind must not be empty, metadata.ownerReferences.name: Invalid value: "": name must not be empty]
E1029 13:04:14.857172       1 pg_controller_handler.go:94] Failed to create normal PodGroup for Pod <default/myapp-deploy>: PodGroup.scheduling.sigs.dev "podgroup-817afc91-fa4c-11e9-b688-fa163ec79500" is invalid: [metadata.ownerReferences.kind: Invalid value: "": kind must not be empty, metadata.ownerReferences.name: Invalid value: "": name must not be empty]
E1029 13:04:14.857214       1 pg_controller.go:136] Failed to handle Pod <default/myapp-deploy>: PodGroup.scheduling.sigs.dev "podgroup-817afc91-fa4c-11e9-b688-fa163ec79500" is invalid: [metadata.ownerReferences.kind: Invalid value: "": kind must not be empty, metadata.ownerReferences.name: Invalid value: "": name must not be empty]

podgroup creating failed for wrong configuraiton of kind and name of ownerreference

@volcano-sh-bot volcano-sh-bot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 29, 2019
@hzxuzhonghu
Copy link
Collaborator

hzxuzhonghu commented Oct 30, 2019

For the pod not controlled by any resource, let's set the PG ownerref as the pod itself.

@sivanzcw
Copy link
Contributor Author

#499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants