Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-108238

cla should check for presence of certificate before starting chat

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • command-line-assistant
    • None
    • No
    • None
    • rhel-cla
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      I have a RHEL 10 VM which is pointing at an internal DNF repo for content and is currently unsubscribed/unentitled.

      When I start an interactive chat with `cla chat -i` everything looks fine, but as soon as I ask a question, I get an error about a certificate file.

      $ cla chat -i
      Welcome to the interactive mode for command line assistant! To exit, press Ctrl + C or type '.exit'.
      The current session does not include running context.
      >>> how do i run a container with a directory mounted into the container?
      ⁺₊+ Asking RHEL Lightspeed
      Could not find the TLS certificate file, invalid path: /etc/pki/consumer/cert.pem
      

      I recognize this as a side-effect of not having a valid entitlement via subscription-manager, but this might not be obvious to other users.

      I would recommend that `cla` check for the entitlement certs when starting a chat or answering a query and returning a more informative error, like "This system does not have an entitlement certificate. Please register the system with 'subscription-manager' before using 'command-line-assistant'"

      This was using command-line-assistant-0.4.1-1.el10.noarch

              rolivier@redhat.com Rodolfo Olivieri
              miabbott@redhat.com Micah Abbott
              Rodolfo Olivieri Rodolfo Olivieri
              rhel-lightspeed-qe team rhel-lightspeed-qe team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: