← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1431932] Re: Make the server group invalid format message more verbose

 

As per the last comment of Kenichi, this need not be fixed now as it is
in RPCv2 which has been deprecated.

** Changed in: nova
     Assignee: Prateek Arora (parora) => (unassigned)

** Changed in: nova
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1431932

Title:
  Make the server group invalid format message more verbose

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  The ServerGroup create v2 API does the following check on the
  requested name for the group:

          if not common.VALID_NAME_REGEX.search(value):
                  msg = _("Invalid format for name: '%s'") % value
                  raise nova.exception.InvalidInput(reason=msg)

  where VALID_NAME_REGEX = re.compile("^(?! )[\w. _-]+(?<! )$",
  re.UNICODE)

  Since other APIs allow non-alphanumeric characters for names, the
  "Inavlid format for name" error message is not especially helpful in
  letting the caller know what is invalid about the name they requested.

  I think a more descriptive/helpful message would be:

  msg = _("Invalid format for name: '%s'. Names can only contain
  alphanumeric characters, dashes, underscores, periods, and spaces and
  cannot begin or end with a space.") % value

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1431932/+subscriptions


References