After editing script to add local blockstore, "Test Script" produces Rspec that doesn't define blockstore
Consider the geni-lib script attached to this issue (which is the script for profile tbres/bsbug
version 0):
bsbug.py
Given a profile with this script, I do the following:
- visit the profile page;
- click the "Edit" button;
- click the "Edit Code" button;
- uncomment lines 19–21 (adding a local blockstore);
- click the "Test Script" button;
- click the "View Rspec" button.
The presented Rspec does not contain a form defining the blockstore. In particular, the following line seems to be missing:
<emulab:blockstore name="fs" mountpoint="/disk2" class="local" placement="NONSYSVOL"/>
But: If I click "Accept", and then click "View XML", the blockstore is present in the RSpec.
So if I accept the change, it works, but "Test Script" is working in a way that causes the local blockstore not to appear. This was confusing to me when I was recently trying to figure out the geni-lib syntax for defining a local NONSYSVOL blockstore.