Project

General

Profile

Actions

Bug #4964

closed

User story #4790: Compress inventories before sending to the server using gzip

If inventory sending is aborted once, gzip asks an interactive question

Bug #4964: If inventory sending is aborted once, gzip asks an interactive question

Added by Jonathan CLARKE over 11 years ago. Updated almost 11 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I just saw this in my cf-agent logs:

2014-06-09T08:36:48+0000     info: /default/doInventory/methods/'any'/default/compressInventories/files/'/var/rudder/inventories'[0]: gzip: /var/rudder/inventories/ip-10-56-69-160-2014-06-09-08-30-25.ocs.gz already exists; do you wish to overwrite (y or n)? 
2014-06-09T08:36:48+0000     info: /default/doInventory/methods/'any'/default/compressInventories/files/'/var/rudder/inventories'[0]: Transformer '/var/rudder/inventories/ip-10-56-69-160-2014-06-09-08-30-25.ocs' => '/bin/gzip -q /var/rudder/inventories/ip-10-56-69-160-2014-06-09-08-30-25.ocs' seemed to work ok

This should be suppressed: gzip should not be asking any questions. I think "-f" option should do it.

Updated by Jonathan CLARKE over 11 years ago Actions #1

  • Priority changed from 2 to 1 (highest)

This is actually worse than I thought: it blocks the cf-agent process until you press enter.

Updated by Jonathan CLARKE over 11 years ago Actions #2

  • Status changed from 8 to In progress
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE

I confirm "-f" fixes the problem, pull requesting.

Updated by Jonathan CLARKE over 11 years ago Actions #3

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/396

Updated by Jonathan CLARKE over 11 years ago Actions #4

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset policy-templates:commit:ca4fb89aee33871c35fe5223c541d9c0c0c0c0b2.

Updated by Vincent MEMBRÉ over 11 years ago Actions #5

  • Parent task set to #4790

Updated by Vincent MEMBRÉ over 11 years ago Actions #6

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.0~beta1 that was released yesterday.

Updated by Benoît PECCATTE almost 11 years ago Actions #7

  • Category changed from 26 to Web - Nodes & inventories
Actions

Also available in: PDF Atom