Forum Replies Created
-
AuthorPosts
-
We’re only installing from pypi in this case, so the problem is in the dependency tree somewhere (possibly multiple places). One definite problem is that fabric-orchestrator-client 1.3.0 (which is pulled in as a hard version requirement by current fabric-testbed) itself has a hard requirement for fabric-fim==1.3.0, which means we don’t get the 1.4 version even though it exists.
- This reply was modified 2 years ago by Nicholas Bastin.
1 user thanked author for this post.
The portal builder is clickable to documentation, but you cannot follow those instructions, as I noted above, if you don’t already have at least one slice. Your new documentation does not work if you have never created a slice – even in your screenshots you have a slice, which is a requirement for the create slice button to appear and work.
- This reply was modified 2 years, 6 months ago by Nicholas Bastin.
Ignore this for me at least – we’ll just use our own jupyterlab since it doesn’t really matter where it is.
As I said in my original post, that only works for the slice key. There is a FABRIC_BASTION_KEY_PASSWORD defined in AbcFabLIB, but no one actually uses it, so it seems like you have to strip the bastion key to make
post_boot_config
work.We use jupyter a lot, so I’m familiar with resetting the kernel and such.. 🙂
That being said, it’s working now – I had to go to the hub control panel and manually kill my server. Possibly you have to wait some time period after logging out before logging back in to get it to refresh otherwise?
I actually did this – the commented out lines in the os.environ section of the notebook had the token location, so I changed mine to
os.environ['FABRIC_TOKEN_LOCATION']=os.environ['HOME']+'/portal-tokens.json'
, but it’s pretty unhappy about this. Changing it back to .tokens.json doesn’t generate a new file either… I tried logging all the way out of both jhub and the portal, but it didn’t change anything.- This reply was modified 2 years, 6 months ago by Nicholas Bastin.
- This reply was modified 2 years, 6 months ago by Nicholas Bastin.
That may have been optimistic – it returned me a slice object and I can introspect it a very little bit, but the
sm_slice
attribute isNone
, so nothing works.I may have tried to hack around this in a bad way…I uploaded tokens that I generated from the portal. Things have changed, possibly not for the better – now I’m getting:
/opt/conda/lib/python3.9/site-packages/fabrictestbed_extensions/fablib/resources.py in update(self)
423
424 """
--> 425 return_status, topology = fablib.get_slice_manager().resources()
426 if return_status != Status.OK:
427 raise Exception("Failed to get advertised_topology: {}, {}".format(return_status, topology))
AttributeError: 'NoneType' object has no attribute 'resources'
It did however let me make a slice…
So I tried that, now I’m getting:
SliceManagerException: (invalid_grant) invalid refresh token
I thought perhaps this was because apparently I’m not a member of projects I create by default, so I added myself as a member, but that didn’t make a difference (or at least, I’m not sure if it would – this might be something that has to sync up somehow, I have no idea…).
It worked! Thanks for debugging this.
Ok, I’m wagering the problem is that I always use an empty comment – this is a valid key, you really should handle it.. 🙂
I’ll give it a shot with something in the field.
For what it’s worth, I’m getting a 500, so the CORS problem might not be the root cause (new firefox adds the status code):
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://uis.fabric-testbed.net/sshkey/bastion?public_openssh=ssh-rsa%20AAAAB...DeW3Pv%2BBv2PBgP%2Flptd4Q4Hx9RiXsGQshwfbWsdDbxOqP%2Bpj4xyc%3D&description=bastion. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.
I have zero extensions, plain vanilla firefox.
I tried setting
network.notify.change
to false as one of the recommendations from SE, and also tried forcing HTTPS-only mode, and neither of those made any difference.Is there a fabric API endpoint I can use to set my ssh keys? 🙂
I’m using alpine, although I tried an ubuntu VM and that had the same issue. I’m just using the straight .tar.bz2 from mozilla so it should be basically the same everywhere (I do run with –no-remote, but that shouldn’t change anything here). I set up a clean network path to the internet with no proxies or transparent NFs, and that didn’t fix anything either.
-
AuthorPosts