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

Added by Jonathan CLARKE almost 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
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.

Actions #1

Updated by Jonathan CLARKE almost 10 years ago

  • Priority changed from 2 to 1

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

Actions #2

Updated by Jonathan CLARKE almost 10 years ago

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

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

Actions #3

Updated by Jonathan CLARKE almost 10 years ago

  • 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
Actions #4

Updated by Jonathan CLARKE almost 10 years ago

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

Applied in changeset policy-templates:commit:ca4fb89aee33871c35fe5223c541d9c0c0c0c0b2.

Actions #5

Updated by Vincent MEMBRÉ almost 10 years ago

  • Parent task set to #4790
Actions #6

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

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

Actions #7

Updated by Benoît PECCATTE about 9 years ago

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

Also available in: Atom PDF