Project

General

Profile

Actions

Bug #21622

closed

Similarly named Chef Environments are not imported

Added by Chris Routh over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
foreman_chef
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

On our server we have some similarly named Chef Environments:

dev Development
dev-ng Development Next Gen
load Load Testing
load-ng Load Testing Next Gen

etc...

When we click "Import from Chef Server" on the environments page, *-ng environments are seen and the :add action is listed as they do not exist. Clicking import results in a "success" message, but the environments never appear.


Files

Actions #2

Updated by Chris Routh over 6 years ago

Thought I'd work around this by adding the environments manually. But we cannot.

This is a flaw in the environments naming standard that either the Chef Gem or Foreman allows for. "must be alphanumeric" - Chef allows for dashes in the name of an environment, so Foreman must also allow this.

Actions #3

Updated by Marek Hulán over 6 years ago

  • Status changed from New to Closed
  • Assignee set to Marek Hulán
  • translation missing: en.field_release changed from 215 to 216
  • Pull request https://github.com/theforeman/foreman_chef/pull/83 added

Thanks for the report and sorry for the delay. I updated the validation according to the docs it can now contain hyphens and underscores.

Actions

Also available in: Atom PDF