1. Paul Ruth

Paul Ruth

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 276 total)
  • Author
    Posts
  • in reply to: Error on get_management_os_interface #3231
    Paul Ruth
    Keymaster

      Yeah, it looks like the version of ‘ip’ in Ubuntu 18 is not capable of json as output.

      A workaround would be to use this execute command:

      stdout, stderr = node.execute("ip route list default | cut -d ' ' -f 5")
      print(stdout)

      In general, the fablib functions that get/set internal attributes of the VMs are just convenience wrappers around ssh commands. Most of these settings are determined by the OS or user configuration and are not controlled by FABRIC. Getting them can be tricky so we are trying to add some helper functions, but there will always be some corner cases.  In this case, we can add a check for successful return of a json object and fall back to parsing the string but parsing stdout is always going to be fragile.

      Thanks for letting us know about this.

      in reply to: Error on get_management_os_interface #3227
      Paul Ruth
      Keymaster

        The json it is returning seems like its one big string.  Which image are you using?

        I’d like to try that image and see if it is behaving in a way I didn’t expect.

        in reply to: Error on get_management_os_interface #3223
        Paul Ruth
        Keymaster

          The way this works is that it ssh’s to your node and gets the result of ‘ip addr route’ as json.  It then digs through that json to find the name of the device.

          Your error seems to be that the json that is returned is ‘None’.  This likely means the ssh failed.

          Can you do a “mynode.execute(‘hello, fabric’)” ?  Does that fail too?

          in reply to: Error on fablib.get_slice() function #3214
          Paul Ruth
          Keymaster

            This error needs to more clear, but it basically means the slice you are trying to get doesn’t exist.

             

            in reply to: How to delete a nonempty directory in jupyter notebook #3199
            Paul Ruth
            Keymaster

              What are you trying to delete? How are you trying to delete it?

              You definitely have permissions to delete things in your JupyterHub container.  If you open a terminal in JupyterLab you can get a shell in your container and use most BASH commands.

              in reply to: Fabric authentication errors #3197
              Paul Ruth
              Keymaster

                The error says “Invalid Refresh Token”.   This is a more general error than just the execute method.  You likely need a new API token or need to restart your Jupyter Notebook’s kernel.

                Can you try logging out and back into JuptyerHub?

                Paul

                in reply to: Packets with bad checksum being dropped. #3153
                Paul Ruth
                Keymaster

                  Arash,

                  Have you tried to do this with a physical machines outside of FABRIC.  It would be interesting to see if any switches forward frames with errors.

                  in reply to: Jupiterhub stuck at “Directory not found” dialog #3152
                  Paul Ruth
                  Keymaster

                    I suspect that the only way to fix this is to restart your Juypyter container.  Choose File->Hub Control Panel.  Then stop/start the container.  I think this will rebuild your environment.

                     

                    in reply to: Bastion Login Test failing continuosly #3151
                    Paul Ruth
                    Keymaster

                      Sorry for the delayed response.  We have been running the FABIRC KNIT5 workshop.

                      Can you confirm that your bastion key has not expired?  They expire every 6 months.  You can create a new one at anytime.

                      Paul Ruth
                      Keymaster

                        There is a article here that links to some FABlib documentation.   The sphinx documentation here shows the details of the FABlib API.  Specifically, the submit function is described here and has an optional argument to set the timeout your are looking for.

                        Also, be careful because that slice will only work if all 6 RTK6000s at MAX are available.  You might want to check the availability of those GPUs to find a site that has enough available.

                        Paul

                        in reply to: About jupyterhub #2948
                        Paul Ruth
                        Keymaster

                          This seems like an issue with your account. I’ll need to get someone else to look at it.

                          in reply to: Packets with bad checksum being dropped. #2946
                          Paul Ruth
                          Keymaster

                            Are you using NIC_Basic? A bunch of ethtool settings are not possible with that type of NIC. You probably need to use one of the dedicated NICs.

                            in reply to: About jupyterhub #2944
                            Paul Ruth
                            Keymaster

                              Can you to clear your cookies and retry? Also, make sure you allow cookies.

                              in reply to: Authentication failed after hosts being in Active state #2937
                              Paul Ruth
                              Keymaster

                                If you have the slice you can call:

                                slice_id = slice.get_slice_id()

                                In your example, you could do something like:

                                slice_id = fablib.get_slice(SLICENAME).get_slice_id()

                                in reply to: Authentication failed after hosts being in Active state #2935
                                Paul Ruth
                                Keymaster

                                  Yeah, I think your bastion key expired.  They expire every 6 months.  Try creating another one and retry.

                                  Paul

                                Viewing 15 posts - 91 through 105 (of 276 total)