Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
595295bf
Commit
595295bf
authored
Oct 27, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix to blockstores; watch for duplicate local BS names and return
error gracefully instead of silent failure.
parent
23fc7a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
protogeni/lib/GeniCM.pm.in
protogeni/lib/GeniCM.pm.in
+9
-0
No files found.
protogeni/lib/GeniCM.pm.in
View file @
595295bf
...
...
@@ -957,6 +957,7 @@ sub GetTicketAuxAux($$$$$$$$$$$)
my @nodeids = ();
my %lannodes = ();
my %allnodes = ();
my %bsnames = ();
# Extra nodes (like XEN vhosts).
my %internal_nodemap = ();
# For stitching, keep track of external nodes and links.
...
...
@@ -7871,6 +7872,14 @@ sub HandleBlockstore($$$$$$$@)
$
message
=
"Illegal blockstore name: $bsname"
;
goto
bad
;
}
#
#
Check
the
tables
for
an
existing
blockstore
with
this
name
,
they
#
have
to
be
experiment
unique
.
#
if
($
virtexperiment
->
Find
(
"virt_blockstores"
,
$
bsname
))
{
$
message
=
"Already have a blockstore with name: $bsname"
;
goto
bad
;
}
}
if
(
defined
($
mount
)
&&
!TBcheck_dbslot($mount, "os_info", "path",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment