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

rhc does not support environment which blocks to connect satellite by basic auth[rhel10-beta]

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0.beta
    • rhc
    • None
    • No
    • None
    • rhel-sst-csi-client-tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      rhc does not support environment which blocks to connect satellite by basic auth[rhel10-beta]

      Please provide the package NVR for which bug is seen:

      rhc-0.2.4-6.el10.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1. Register RHEL-10.0-20240806.0 to RHSM against satellite615:

      [root@dell-per740-68-vm-06 ~]# subscription-manager register --username=admin --password=xxx --org=INSIGHTS_QA_6089719_REM --environment=Library

      Registering to: ci-vm-10-0-148-225.hosted.upshift.rdu2.redhat.com:443/rhsm

      The system has been registered with ID: 6c8797f4-ae03-468c-ae30-b8cc51ca3035

      The registered system name is: dell-per740-68-vm-06.lab.eng.pek2.redhat.com

       

      2. run 'rhc connect' after register satellite:

      [root@dell-per740-68-vm-06 ~]#  rhc connect

      Connecting dell-per740-68-vm-06.lab.eng.pek2.redhat.com to Red Hat.

      This might take a few seconds.

       

      ● This system is already connected to Red Hat Subscription Management

      ● Connected to Red Hat Insights

      ● Activated the Remote Host Configuration daemon

       

      Successfully connected to Red Hat!

       

      Manage your connected systems: https://red.ht/connector

       

      3. run 'rhc connect' before registering satellite:

      [root@dell-per740-68-vm-06 ~]# rhc disconnect

      Disconnecting dell-per740-68-vm-06.lab.eng.pek2.redhat.com from Red Hat.

      This might take a few seconds.

       

      ● Deactivated the Remote Host Configuration daemon

      ● Disconnected from Red Hat Insights

      ● Disconnected from Red Hat Subscription Management

       

      Manage your connected systems: https://red.ht/connector

       

      [root@dell-per740-68-vm-06 ~]# rhc connect --username=admin --password=xxx --organization=INSIGHTS_QA_6089719_REM --environment=Library

      Incorrect Usage: flag provided but not defined: -environment

       

      NAME:

         rhc connect - Connects the system to Red Hat

       

      USAGE:

         rhc connect [command options]

       

      DESCRIPTION:

         The connect command connects the system to Red Hat Subscription Management, Red Hat Insights and Red Hat and activates the Remote Host Configuration daemon that enables Red Hat to interact with the system. For details visit: https://red.ht/connector

       

      OPTIONS:

         --username USERNAME, -u USERNAME  register with USERNAME

         --password PASSWORD, -p PASSWORD  register with PASSWORD

         --organization ID, -o ID          register with ID

         --activation-key KEY, -a KEY      register with KEY

         --help, -h                        show help (default: false)

         

      flag provided but not defined: -environment

       

      [root@dell-per740-68-vm-06 ~]# rhc connect --username=admin --password=xxx --organization=INSIGHTS_QA_6089719_REM

      Connecting dell-per740-68-vm-06.lab.eng.pek2.redhat.com to Red Hat.

      This might take a few seconds.

       

      ! Cannot connect to Red Hat Subscription Management

      ● Skipping connection to Red Hat Insights

      ● Skipping activation of Remote Host Configuration daemon

       

      Manage your connected systems: https://red.ht/connector

       

      The following errors were encountered during connect:

       

      TYPE   STEP  ERROR 

      ERROR  rhsm  cannot connect to Red Hat Subscription Management: error: undefined method `each' for #<Katello::ContentViewEnvironment:0x00005639483f55c0>

       

      4. run 'rhc connect' by activation key:

      [root@dell-per740-68-vm-06 ~]# rhc connect --activation-key=xxx --organization=INSIGHTS_QA_6089719_REM

      Connecting dell-per740-68-vm-06.lab.eng.pek2.redhat.com to Red Hat.

      This might take a few seconds.

       

      ● Connected to Red Hat Subscription Management

      ● Connected to Red Hat Insights

      ● Activated the Remote Host Configuration daemon

       

      Successfully connected to Red Hat!

       

      Manage your connected systems: https://red.ht/connector

      Expected results

      In step 3, rhc can connect redhat by basic username/password.

      Actual results

      In step 3, rhc can not connect by basic username/password mode, as satellite needs envrionment specified when connecting.

       

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              qianzhan@redhat.com Qianqian Zhang
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: