1. Ilya Baldin

Ilya Baldin

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 285 total)
  • Author
    Posts
  • in reply to: Lack of space in Server Filesystem #6219
    Ilya Baldin
    Participant

      Hello,

      You can copy the ssh configuration file from work/fabric_config in Jupyter Hub to your laptop (into e.g. ~/.ssh/ directory) along with referenced bastion and sliver keys and then use SCP to copy those files onto your laptop. We are not able to provide significant storage space inside the Jupyter Hub.

      in reply to: Slice.Measurement tagnot showing up in one of my projects #6204
      Ilya Baldin
      Participant

        This tag is not enforced so the problem is somewhere else. Please, when posting a problem begin with posting the exact error traces – we provide some guidelines and best practices for reporting problems on the forums in this article:

        Asking for help on FABRIC forums

        in reply to: Unable to access Non-IPV6 destinations from Nodes. #6195
        Ilya Baldin
        Participant

          It works if there is a DNS name for the IPv4 host. You cannot simply use an IPv4 address.

          in reply to: Unable to access Non-IPV6 destinations from Nodes. #6193
          Ilya Baldin
          Participant

            Assuming you are using the management network of the VM, you may find this article useful:

            Reaching IPv4-only resources like GitHub or Docker Hub from IPv6 FABRIC sites

            in reply to: Download file to local system from Jupyter notebook #6155
            Ilya Baldin
            Participant

              The APIs are enabled for your use, you do need to use them judiciously and keep in mind that if you can invoke them, so can someone else if they have your token.

              in reply to: Download file to local system from Jupyter notebook #6153
              Ilya Baldin
              Participant

                Nishanth,

                I do not believe it is possible to automate getting the token – it requires someone to login using your credentials. However the token should be good for a while – you should be able to select the lifetime.

                Also please note that the token allows access to your container via API without any other checks – if someone steals it they may act on your behalf in the container so long as you have an active container (e.g. upload and execute a notebook) or wipe its contents clean. You must secure the token. Be mindful of e.g. uploading into GitHub or sharing it with others.

                in reply to: Saving tshark files in home directory #6151
                Ilya Baldin
                Participant

                  Make the home directory writable (or write to another directory where root can write). Note that you are doing touch as user rocky, but capturing as root.

                  # make home directory world writable

                  [rocky@Node1 ~]$ chmod go+rwx .

                  # i’m using eth0 as capture interface – that doesn’t matter
                  [rocky@Node1 ~]$ sudo tshark -i eth0 -w logfile
                  Running as user “root” and group “root”. This could be dangerous.
                  Capturing on ‘eth0’

                  In general we are not responsible for OS behaviors – this is left to the experimenter. Our images are standard cloud images maintained by the creators of different distributions and they exhibit standard behaviors for those distributions.

                  in reply to: Download file to local system from Jupyter notebook #6148
                  Ilya Baldin
                  Participant

                    What an excellent question!

                    Yes JupyterHub has two levels of REST APIs – one – the JupyterHub API (for admins) the other the Notebook Server API accessible to users.

                    You need to obtain the API token by going to Hub Control Panel (see the image)

                    The APIs can be invoked using the following URL: https://jupyter.fabric-testbed.net/user/<username>/api

                    where <username> is your primary email (in fact you should see it in your browser address field when you start the notebook, except it will look like https://jupyter.fabric-testbed.net/user/<username>/lab)

                    You can use cURL to make the call (this shows how to start a particular notebook, moving files in and out is similar):

                    curl -X POST -H "Authorization: token <token string>" "https://jupyter.fabric-testbed.net/user/<username>/api/sessions" -d '{"name":"configure_environment.ipynb","type":"notebook","path":"jupyter-examples-rel1.3.3/fabric_examples/fablib_api/configure_environment/configure_environment.ipynb"}'
                    
                    
                    in reply to: Saving tshark files in home directory #6146
                    Ilya Baldin
                    Participant

                      Can you please provide an error message you are seeing?

                      in reply to: How to remove Limit #6141
                      Ilya Baldin
                      Participant

                        The owner of the project you are working in must request this permission to be added to your project via the portal.

                        Ilya Baldin
                        Participant

                          It is quite likely that this is related to either switch behavior or the behaviour of SharedNICs. You appear to be using SharedNICs, and for most control over your experiment you should be using SmartNICs as those are not shared with anyone.

                          in reply to: get_ssh_command not including management IP #6095
                          Ilya Baldin
                          Participant

                            A lot of time it has to do with race conditions that exist when querying for slice state and information about e.g. IP addresses arriving asynchronously from different sites. One workaround is to call get_slice() again – that’s what queries the system for the latest slice model that has the information to produce the SSH command line (like the management IP).

                            get_ssh_command() just looks inside the current model and reports what is there (so while the name may suggest it gets the latest information, it doesn’t – its information is as current as the last call to get_slice()).

                            Ilya Baldin
                            Participant

                              Let us check on this slice before you delete. We should be able to find out what happened, in some cases we are able to fix problems like this.

                              in reply to: problems reserving slice resource #6056
                              Ilya Baldin
                              Participant

                                The notebook seems very straightforward. The problem must be in your environment. Please be sure to wait until the provisioning cell exits – however it does, whether through error, timeout or to completion. There are timeouts built into the fablib code so progress is always guaranteed.

                                If you are unable to fix the problem, you can sign up for office hours under ‘Experiment Help’ category.

                                in reply to: problems reserving slice resource #6052
                                Ilya Baldin
                                Participant

                                  The notebook wasn’t attached, but given this information you need to look at your environment

                                  1. Which container type are you using – is it the same as your students?

                                  2. Which version of fablib are you using – is it the same as your students?

                                Viewing 15 posts - 1 through 15 (of 285 total)