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

rhc connect does not raise error for sub-man connection when used nonexistent server url on CLI

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-7.9.z
    • rhc
    • None
    • None
    • None
    • rhel-sst-csi-client-tools
    • None
    • False
    • Hide

      None

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

      testCase- run rhc connect with a non existent server, expectation is that it should not connect both rhsm and insights. But on rhel7 and centos 7 it successfully connects Subscription-manager and doesn't honor --server option

      Also rhcd service is up and active state

      Please provide the package NVR for which bug is seen:

      While looking for regression I found an issue with rhc rebased build(not reggression) 

      [root@hp-z600-02 ~]# rpm -qa | grep rhc
      rhc-0.2.4-1.el7_9.x86_64
      [root@hp-z600-02 ~]

      How reproducible:

      [root@hp-z600-02 ~]# rhc connect --username rhel9GA --password redhat@123 --server http://non-existent.server
      Connecting hp-z600-02.ml3.eng.bos.redhat.com to Red Hat.
      This might take a few seconds.

      ● Connected to Red Hat Subscription Management
      ! Cannot connect to Red Hat Insights
      ● Activated the Remote Host Configuration daemon

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

      STEP                       DURATION  
      rhsm                       1.905s    
      insights                   5.134s    
      Remote Host Configuration  20ms      

      The following errors were encountered during connect:

      TYPE   STEP      ERROR  
      ERROR  insights  cannot connect to Red Hat Insights: exit status 1
      [root@hp-z600-02 ~]# systemctl is-active rhcd
      active                                                                                                                        <<<<< it should not be active

      Expected results:

      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

      STEP  DURATION  
      rhsm  50ms      

      The following errors were encountered during connect:

      TYPE   STEP  ERROR  
      ERROR  rhsm  cannot connect to Red Hat Subscription Management: error: [Errno -2] Name or service not known

      Actual results :                        

      Connecting hp-z600-02.ml3.eng.bos.redhat.com to Red Hat.
      This might take a few seconds.

      ● Connected to Red Hat Subscription Management
      ! Cannot connect to Red Hat Insights
      ● Activated the Remote Host Configuration daemon

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

      STEP                       DURATION  
      rhsm                       1.905s    
      insights                   5.134s    
      Remote Host Configuration  20ms      

      The following errors were encountered during connect:

      TYPE   STEP      ERROR  
      ERROR  insights  cannot connect to Red Hat Insights: exit status 1

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              rhn-arpandey Archana Pandey
              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:
              3 Start watching this issue

                Created:
                Updated: