← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427328] Re: [sahara] The mechanism used to avoid duplicate script names in jobs binaries is fragile

 

** Also affects: sahara
   Importance: Undecided
       Status: New

** Summary changed:

- [sahara] The mechanism used to avoid duplicate script names in jobs binaries is fragile
+ [UI] The mechanism used to avoid duplicate script names in jobs binaries is fragile

** Tags removed: sahara
** Tags added: dashboard

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

Title:
  [UI] The mechanism used to avoid duplicate script names in jobs
  binaries is fragile

Status in OpenStack Dashboard (Horizon):
  Invalid
Status in Sahara:
  New

Bug description:
  Create a Job Binary in the internal db, with a specific script name
  (for example, "script_name").

  If the user creates another job binary with the same script name, a unique UUID is added so that the name is unique. 
  But, if the script name is long, the addition of the UUID can make it longer than the field limit (80 characters) and the job creation fails.
  Moreover, this mechanism is counterintuitive as it is not implemented for the job binary "name" field (an error is returned).

  Proposal:
  - remove the mechanism which tries to create an unique script name, and simply returns a validation error if a script name is duplicated.

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


References