Project

General

Profile

Actions

Refactor #11019

open

Operatingsystem model limitations

Added by Max Kovgan over 9 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

At our site we often test operating system that are not releases, so the names are not only OS.MAJOR.MINOR, but various others, e.g. OS.MAJOR.MINOR.TIMESTAMP or OS.MAJOR.BETA.
This means current model cannot allow this setup.

A workaround would be to directly edit db entries for filenames, rename filenames to our needs and hope no validator goes through data that already is inside db.
But a better solution would be to revisit model design.

Alternatives:
  • conservative: add an optional attribute "suffix"
  • revisionist: refactor OperatingSystem as follows:
    • remove use of major-minor semantics, just use description
    • i.e. cleanup searches related by that
    • filenames should be created by converter of description field->legal path [e.g. by downcase and replace ' '->'-']

The conservative approach is ... tactical, and relatively easy to implement. but It might hit another wall in the future.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #6884: Centos mirror in "Installation Media" doesn't work for versions without $minorClosedDaniel Lobato Garcia08/01/2014Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Category changed from API to Host creation
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Related to Bug #6884: Centos mirror in "Installation Media" doesn't work for versions without $minor added
Actions

Also available in: Atom PDF