- This topic has 4 replies, 2 voices, and was last updated 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘Increasing lease time causing issues’ is closed to new replies.
Home › Forums › FABRIC General Questions and Discussion › Increasing lease time causing issues
Hi,
Since the last update, sometimes when I update my lease for a slice using the following code:
import datetime
end_date = (datetime.datetime.now().astimezone() + datetime.timedelta(days=14)).strftime(“%Y-%m-%d %H:%M:%S %z”)
try:
slice = fablib.get_slice(name=slice_name)
slice.renew(end_date)
print(f”New lease end date : {slice.get_lease_end()}”)
except Exception as e:
print(f”Exception: {e}”)
For some of my networks I get this state as ActiveTicketed and the overall state of the slice is StableOK. However for the nodes with ActiveTicketed state I cannot see the ssh command or IP to access these nodes but the nodes are accessible and working fine with their initial IPs. (Screenshot attached). There is just no way to get the IP again in case I need them.
Hi Prateek,
Could you please share your slice ID?
Thanks,
Komal
Hi Komal,
Here is the slice ID of my slice for which I shared the screenshot:
7a43bc65-79be-4149-9e35-dce54ed05dee
Hi Prateek,
This looks like a bug, we have a race condition which is preventing the updates to the Slice Graph Model. I will work on addressing this. For now as a workaround, you can determine the IP Addresses via slice commander using show commands. Refer https://learn.fabric-testbed.net/knowledge-base/using-slicecommander-with-fabric/ for slice-commander usage.
Alternatively, you can get the sliver information also via
for s in slice.get_slivers():
print(s._sliver) # This is a json object will provide the needed information
Thanks,
Komal
Thanks!
For now I have my IPs and I can access my machines. I reported this so that there is no issue in future.