Skip to content

Failed to get the ignition-clevis-pin-trustee file #130

@fangge1212

Description

@fangge1212

I had this problem when trying to install the operator as static pod on k8s node.

Steps:

  1. Build the operator images from latest code and push to quay.io:
    make REGISTRY=quay.io/rhn_support_fjin PUSH_FLAGS="--tls-verify=false" push

  2. Create the manifests:
    make REGISTRY=quay.io/rhn_support_fjin manifests

  3. Install k8s on a fedora vm

  4. On the k8s node, copy these pod yaml files to /etc/kubernetes/manifests: trustee_deployment.yaml, cocl-operator.yaml, register-server.yaml. They will be started as static pods by kubelet service

  5. Apply the CRD and CR
    kubectl apply -f trusted-execution-clusters.io_machines.yaml
    kubectl apply -f trusted-execution-clusters.io_trustedexecutionclusters.yaml
    kubectl apply -f trusted_execution_cluster_cr.yaml

  6. Try to get the ignition file
    $ curl -O http://192.168.122.53:8000/ignition-clevis-pin-trustee
    $ cat ignition-clevis-pin-trustee
    {"code":500,"message":"Failed to get Trustee address: More than one TrustedExecutionCluster found in namespace default. trusted-cluster-operator does not support more than one TrustedExecutionCluster. Cancelling Ignition Clevis PIN request."}

  7. Check the CR
    $ kubectl get trustedexecutionclusters.trusted-execution-clusters.io -A
    NAMESPACE NAME AGE
    trusted-execution-clusters trusted-execution-cluster 23h

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