Commit ca3a2979 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix the hostname length check.

parent f3f61c85
......@@ -817,19 +817,6 @@ sub GetTicketAuxAux($$$$$$$$$$)
"Bad resource $component_id in ticket");
goto bad;
}
#
# Check for total hostname length > 63 characters. This
# breaks a lot of clients. Do this until we have a plan
# for dealing with it on the clients. Why 63 instead of 64?
# Cause of a bug in the event library code, that is now fixed,
# but will not make it out to all images for a while.
#
my $fullhostname = $node_nickname . ".${eid}.${pid}.${OURDOMAIN}";
if (length($fullhostname) > 63) {
$response = GeniResponse->Create(GENIRESPONSE_TOOBIG, undef,
"Hostname > 63 characters: $fullhostname");
}
#
# Is the node a virtual node? Must be an update to an
# existing sliver/ticket, since we now return the node_id
......@@ -916,6 +903,20 @@ sub GetTicketAuxAux($$$$$$$$$$)
next;
}
#
# Check for total hostname length > 63 characters. This
# breaks a lot of clients. Do this until we have a plan
# for dealing with it on the clients. Why 63 instead of 64?
# Cause of a bug in the event library code, that is now fixed,
# but will not make it out to all images for a while.
#
my $fullhostname = $node_nickname . ".${eid}.${pid}.${OURDOMAIN}";
if (length($fullhostname) > 63) {
$response = GeniResponse->Create(GENIRESPONSE_TOOBIG, undef,
"Hostname > 63 characters: $fullhostname");
goto bad;
}
#
# Check for disk_image request. Specified as a URN.
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment