Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-1541

Create basic bootstrap project for m1 fails with Error: unknown command "workflow" for "kn"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of the problem:

       

      1STEP-BUILD-MANIFESTS23(microdnf:24): librhsm-WARNING **: 20:53:58.885: Found 0 entitlement certificates45(microdnf:24): librhsm-WARNING **: 20:53:58.886: Found 0 entitlement certificates6Downloading metadata...7Downloading metadata...8Downloading metadata...9Package                    Repository            Size10Installing:                                          11 gzip-1.12-1.el9.x86_64    ubi-9-baseos-rpms 171.2 kB12 tar-2:1.34-6.el9_1.x86_64 ubi-9-baseos-rpms 910.7 kB13Transaction Summary:14 Installing:        2 packages15 Reinstalling:      0 packages16 Upgrading:         0 packages17 Obsoleting:        0 packages18 Removing:          0 packages19 Downgrading:       0 packages20Downloading packages...21Running transaction test...22Installing: tar;2:1.34-6.el9_1;x86_64;ubi-9-baseos-rpms23Installing: gzip;1.12-1.el9;x86_64;ubi-9-baseos-rpms24Complete.25  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current26                                 Dload  Upload   Total   Spent    Left  Speed27  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     028  0 38.0M    0  1003    0     0    983      0 11:15:40  0:00:01 11:15:39   983
       47 38.0M   47 18.1M    0     0   9.8M      0  0:00:03  0:00:01  0:00:02 21.9M
      100 38.0M  100 38.0M    0     0  15.2M      0  0:00:02  0:00:02 --:--:-- 25.8M29Error: unknown command "workflow" for "kn"30Run 'kn --help' for usage31 

       

      kn package version from the build manifest Task definition:

      https://mirror.openshift.com/pub/openshift-v4/clients/serverless/1.11.2/kn-linux-amd64.tar.gz 

      kn version from with in the build manifest task pod:

       

      build Date:   2024-06-10 11:52:29
      Git Revision: 415d3186b
      Supported APIs:
      * Serving
        - serving.knative.dev/v1 (knative-serving v1.12.0)
      * Eventing
        - sources.knative.dev/v1 (knative-eventing v1.12.0)
        - eventing.knative.dev/v1 (knative-eventing v1.12.0)
      Error: unknown command "workflow" for "kn"
      Run 'kn --help' for usage 

      kn --help from within the build manifest task pod NOTICE workflow plugin is missing:

      kn is the command line interface for managing Knative Serving and Eventing resources
      
      Find more information about Knative at: https://knative.dev
      
      Serving Commands:
        service      Manage Knative services
        revision     Manage service revisions
        route        List and describe service routes
        domain       Manage domain mappings
        container    Manage service's containers (experimental)
      
      Eventing Commands:
        source       Manage event sources
        broker       Manage message brokers
        trigger      Manage event triggers
        channel      Manage event channels
        subscription Manage event subscriptions
        eventtype    Manage eventtypes
      
      Other Commands:
        plugin       Manage kn plugins
        secret       Manage secrets
        completion   Output shell completion code
        version      Show the version of this client
      
      Plugins:
        event       Manage CloudEvents from command line
        func        Function plugin 

      I downloaded the kn tar from the build manifest Task definition to my cluster and ran the same commands.

       

      kn version from cluster:

      [root@ocp-edge128 ~]# ./kn version
      Version:      v1.11.2
      Build Date:   2024-03-11 18:00:43
      Git Revision: 66f069db
      Supported APIs:
      * Serving
        - serving.knative.dev/v1 (knative-serving v1.11.0)
      * Eventing
        - sources.knative.dev/v1 (knative-eventing v1.11.1)
        - eventing.knative.dev/v1 (knative-eventing v1.11.1)
      [root@ocp-edge128 ~]#  

      kn --help from cluster NOTICE workflow Plugin exists:

      [root@ocp-edge128 ~]# ./kn --help
      kn is the command line interface for managing Knative Serving and Eventing resourcesFind more information about Knative at: https://knative.devServing Commands:
        service      Manage Knative services
        revision     Manage service revisions
        route        List and describe service routes
        domain       Manage domain mappings
        container    Manage service's containers (experimental)Eventing Commands:
        source       Manage event sources
        broker       Manage message brokers
        trigger      Manage event triggers
        channel      Manage event channels
        subscription Manage event subscriptions
        eventtype    Manage eventtypesOther Commands:
        plugin       Manage kn plugins
        secret       Manage secrets
        completion   Output shell completion code
        version      Show the version of this clientPlugins:
        event       Manage CloudEvents from command line
        func        Function plugin
        workflow    Manage Workflow projects
       

       

      How reproducible:

      100%

      Steps to reproduce:

      1. Create basic bootstrap project template

      2. init gitops repo

      3. Watch pipeline run in the CI tab in backstage 

      Actual results:

      Error: unknown command "workflow" for "kn"{}

      Expected results:

      Pipeline completes without error

            masayag@redhat.com Moti Asayag
            gharden1 Gary Harden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: