Public bug reported:

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.

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: sahara

-- 
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:
  [sahara] The mechanism used to avoid duplicate script names in jobs
  binaries is fragile

Status in OpenStack Dashboard (Horizon):
  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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to