1. Not able to execute commands: Error-Authentication failed

Not able to execute commands: Error-Authentication failed

Home Forums FABRIC General Questions and Discussion Not able to execute commands: Error-Authentication failed

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6912
    Manas Das
    Participant

      Hello Fabric Team,

      When trying to execute commands at various nodes in the slice I am getting this error:

      Exception: Authentication failed.
      
      The code is:

      try:
      for node in slice.get_nodes():
      stdout, stderr = node.execute(‘ls /home/ubuntu’) [just an example nothing works]
      print(stdout)
      print(stderr)

      except Exception as e:
      print(f”Exception: {e}”)

      Also not able to print the slice interfaces (slice.list_interfaces())

      I am using FabLib 1.6.1. My Slice ID is: bbee268d-dbce-4258-b5ad-08837ef84f12

      Any help is appreciated

       

      Thanks

      #6913
      Komal Thareja
      Participant

        Hi Manas,

        This typically happens when either your bastion keys are expired or sliver keys used by fablib don’t match the keys inside the slivers.

        Could you please run this notebook: jupyter-examples-rel1.6.1/configure_and_validate.ipynb to ensure your config is valid and if bastion keys are expired they are regenerated?

        Please try list/show on your slice after that and let us know if you still face the problem.

        P.S: Verified that all your VMs are accessible via SSH.

        Thanks,

        Komal

        #6915
        Manas Das
        Participant

          Hello Komal,

          Thank you for the quick response. I followed your instructions and it is working now. But I have a few questions.

          1. I have recently changed the bastion key, so I don’t get why the key expired.
          2. I am able to ssh into the node, but the bastion key I have in my laptop (local) is different from the bastion key in the Jupyter hub.
          3. Is multiple bastion keys possible?
          4. How to check the expiration date of the bastion key in my Jupyter hub, I know how to check the expiration date of the bastion key that I use to ssh into the node from my local machine.

          Once again thank you for the swift response.

           

          Regards

          Manas

          #6916
          Komal Thareja
          Participant

            Hi Manas,

            Glad to hear the issue is resolved. Please find my responses inline below.

            1. I have recently changed the bastion key, so I don’t get why the key expired.

            [KT] Could you please share how this was done? Please note if the bastion keys are re-created via portal, user is responsible to upload them to JH.

            1. I am able to ssh into the node, but the bastion key I have in my laptop (local) is different from the bastion key in the Jupyter hub.

            [KT] This should not be an issue. Users can have multiple bastion keys.

            1. Is multiple bastion keys possible?

            [KT] Yes, this not an issue.

            1. How to check the expiration date of the bastion key in my Jupyter hub, I know how to check the expiration date of the bastion key that I use to ssh into the node from my local machine.

            [KT] You can check the bastion key expiry on the portal or run the validate_and_configure.ipynb to validate/update your config as needed.

            Hope this helps!

            Thanks,

            Komal

            #6917
            Manas Das
            Participant

              Hello Komal,

              I have created the bastion key in the portal and downloaded it to my local machine, but I think I have not uploaded it into Jupyter Hub. Thank you for clarifying everything.

              Regards,

              Manas

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.