Project

General

Profile

Actions

Bug #6856

closed

Importing single environments not faster than importing all

Added by Florian Sachs over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Importers
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I am building our new production environment based on Foreman 1.4, puppet 2.6 on a RHEL6 machine. Right now, there are 11 environments on the puppet machine (smart_proxy 1) Based on what we have now in our production (Foreman 1.1, puppet 3.0) systems, I expect us to have about 40 environments.

On the old system, a "Import all environments" runs for about 8 (!!!) minutes. I was very happy, when I discovered the new possibility to import only a specfific environment via the API, which could speed up our development turn around time significally.

The problem is, that importing a single environment takes as long as importing all environments:

Import the Environment Number 22 takes 1:22 ::

Started POST "/api/smart_proxies/1/environments/22/import_puppetclasses" for 10.x.x.x at 2014-07-31 10:18:33 +0200
Processing by Api::V2::EnvironmentsController#import_puppetclasses as JSON
  Parameters: {"apiv"=>"v2", "smart_proxy_id"=>"1", "id"=>"22", "environment"=>{}}

Import all environments take 1:18 ::

Started POST "/api/smart_proxies/1/import_puppetclasses" for 10.x.x.x at 2014-07-31 10:20:20 +0200
Processing by Api::V2::SmartProxiesController#import_puppetclasses as JSON
  Parameters: {"apiv"=>"v2", "id"=>"1", "smart_proxy"=>{}}

Shouldn't importing only one environment be significally faster than importing all environments?

regards,
florian

Actions #1

Updated by Florian Sachs over 10 years ago

Just reread this report and noticed some incorrect versions:
Foreman Version is 1.5.1
Puppet is 3.6.1

Actions #2

Updated by Joseph Magen about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Joseph Magen
Actions #3

Updated by The Foreman Bot about 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 1.7.3
  • Pull request https://github.com/theforeman/foreman/pull/1789 added
  • Pull request deleted ()
Actions #4

Updated by Joseph Magen about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Dominic Cleal about 10 years ago

  • Translation missing: en.field_release set to 22
Actions

Also available in: Atom PDF