← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Having trouble when tried NNI with FrameworkController on-premise k8s #73

Closed

Description

@juniroc

when i tried nni with FrameworkController on on-premise k8s

I followed this document
https://nni.readthedocs.io/en/stable/TrainingService/FrameworkControllerMode.html

  • create Serviceaccount and clusterrolebinding
kubectl create serviceaccount frameworkcontroller --namespace default
kubectl create clusterrolebinding frameworkcontroller \
  --clusterrole=cluster-admin \
  --user=system:serviceaccount:default:frameworkcontroller
  • and set StatefulSet
    framework-config.yml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: frameworkcontroller
  namespace: default
spec:
  serviceName: frameworkcontroller
  selector:
    matchLabels:
      app: frameworkcontroller
  replicas: 1
  template:
    metadata:
      labels:
        app: frameworkcontroller
    spec:
      # Using the ServiceAccount with granted permission
      # if the k8s cluster enforces authorization.
      serviceAccountName: frameworkcontroller
      containers:
      - name: frameworkcontroller
        image: frameworkcontroller/frameworkcontroller
        # Using k8s inClusterConfig, so usually, no need to specify
        # KUBE_APISERVER_ADDRESS or KUBECONFIG
#        env:
        #- name: KUBE_APISERVER_ADDRESS
        #  value: {http[s]://host:port}
#          - name: KUBECONFIG
#            value: ~/.kube/config
kubectl apply -f framework-config.yml

and when I tried kubectl get po
image

and tried kubectl logs frameworkcontroller-0

image

It said

updateRemoteFrameworkStatus: 
Failed: Framework.frameworkcontroller.microsoft.com "nniexpqfwzydmkenvfpwjw" is invalid:
spec.taskRoles.task.podGracefulDeletionTimeoutSec: Invalid value: "null":
spec.taskRoles.task.podGracefulDeletionTimeoutSec in body must be of type integer: "null"

what should I do to solve this problem?

Activity

  1. yqwang-ms commented on Feb 22, 2022

    @yqwang-ms
    Contributor

    Thanks for reporting this.
    This breaking change (does not allow null) should be introduced by recent #72, and which changed to

    "podGracefulDeletionTimeoutSec": {
    Type: "integer",
    },

    But by design we support null for podGracefulDeletionTimeoutSec, will do a hotfix later, thanks!

  2. yqwang-ms commented on Feb 23, 2022

    @yqwang-ms
    Contributor

    I have just fixed it, juniroc (@juniroc) pls try NNI with the FC latest image or v1.0.1 image:
    frameworkcontroller/frameworkcontroller:v1.0.1
    frameworkcontroller/frameworkbarrier:v1.0.1

    Pls reopen if still meet this issue.

  3. yqwang-ms commented on Feb 23, 2022

    @yqwang-ms
    Contributor

    FYI SparkSnail could you pls help or ask NNI dev to upgrade the default FC image to latest or v1.0.1:
    frameworkcontroller/frameworkcontroller:v1.0.1
    frameworkcontroller/frameworkbarrier:v1.0.1
    Thanks

  4. SparkSnail commented on Feb 23, 2022

    @SparkSnail

    FYI SparkSnail could you pls help or ask NNI dev to upgrade the default FC image to latest or v1.0.1: frameworkcontroller/frameworkcontroller:v1.0.1 frameworkcontroller/frameworkbarrier:v1.0.1 Thanks

    Add liuzhe-lz who is responsible for TrainingService in NNI now, please help to update default FC image version in doc and check if need to update code.

  5. juniroc commented on Feb 24, 2022

    @juniroc
    Author

    Yuqi Wang (@yqwang-ms) yeah it works well

    thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions