Project

General

Profile

Actions

Bug #12951

closed

Bug #12155: Detection of minicurl and https is done in conflicting ways

Inventory is not sent if curl is not present

Added by Nicolas CHARLES almost 6 years ago. Updated almost 6 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Node uuid: 0ee41d32-baeb-4223-af61-43f432ef3653
rudder     info: Using command line specified bundlesequence
rudder     info: Executing 'no timeout' ... '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --get --file "/var/rudder/cfengine-community/rudder-server-uuid.txt" --url http://relay/uuid'
rudder     info: Completed execution of '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --get --file "/var/rudder/cfengine-community/rudder-server-uuid.txt" --url http://relay/uuid'
rudder     info: Executing 'no timeout' ... '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
  notice: Q: "...-inventory --lo": [info] FusionInventory instance: builtin
Q: "...-inventory --lo": [info] running task Inventory
Q: "...-inventory --lo": [info] Inventory saved in /var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs
rudder     info: Last 3 quoted lines were generated by promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
rudder     info: Completed execution of '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
Start execution with config [0]

rudder     info: Automatically promoting context scope for 'heartbeat_sent' to namespace visibility, due to persistence
M| State         Technique                 Component                 Key                Message
   info          Inventory                 inventory                                    Running inventory
rudder     info: Executing 'no timeout' ... '/var/rudder/tools/cpuid-linux-V1.0.sh  > /var/rudder/tmp/cpuid.arc'
rudder     info: Completed execution of '/var/rudder/tools/cpuid-linux-V1.0.sh  > /var/rudder/tmp/cpuid.arc'
   info          Inventory                 inventory                                    Generated the CPUID
   info          Inventory                 inventory                                    User list generation tool is not present yet. Skipping...
rudder     info: Edit file '/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
rudder     info: Edit file '/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
rudder     info: Copying from 'localhost:/var/rudder/tmp/inventory/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs'
rudder     info: Transforming '/opt/rudder/bin/rudder-sign "/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs"' 
rudder     info: Transformer '/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs' => '/opt/rudder/bin/rudder-sign "/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs"' seemed to work ok
rudder     info: Transforming '/bin/gzip -fq /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs' 
rudder     info: Transformer '/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs' => '/bin/gzip -fq /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs' seemed to work ok
rudder     info: Transforming '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --put --authentication rudder:rudder --file /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.sign --url ${download_endpoint}' 
   error: Finished command related to promiser '/var/rudder/inventories' -- an error occurred, returned 1
rudder     info: Automatically promoting context scope for 'cant_send_inventory' to namespace visibility, due to persistence
   error: Transformer '/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.sign' => '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --put --authentication rudder:rudder --file /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.sign --url ${download_endpoint}' returned error
rudder     info: Transforming '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --put --authentication rudder:rudder --file /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.gz --url ${download_endpoint}' 
   error: Finished command related to promiser '/var/rudder/inventories' -- an error occurred, returned 1
rudder     info: Automatically promoting context scope for 'cant_send_inventory' to namespace visibility, due to persistence
   error: Transformer '/var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.gz' => '/opt/rudder/bin/rudder-perl /var/rudder/cfengine-community/inputs/common/utilities/minicurl --no-verify --put --authentication rudder:rudder --file /var/rudder/inventories/agent1-0ee41d32-baeb-4223-af61-43f432ef3653.ocs.gz --url ${download_endpoint}' returned error
E| error         Inventory                 inventory                                    Could not send the inventory
   warning       Inventory                 inventory                                    Inventory sent via HTTP without TLS
   error: Method 'sendInventory' failed in some repairs
   error: Method 'doInventory_always' failed in some repairs

we never define the endpoint url when curl in not installed

Actions #1

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from New to Rejected

the rudder server is a 4.3 server, so it's expected to fail

Actions #2

Updated by Nicolas CHARLES almost 6 years ago

  • Subject changed from Inventory is not correctly sent if curl is not present to Inventory is not sent if curl is not present
  • Description updated (diff)
  • Status changed from Rejected to New
Actions #3

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #4

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1331
Actions #5

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by François ARMAND almost 6 years ago

  • Target version changed from 4.1.14 to 4.1.13
Actions #7

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.13, 4.2.7 and 4.3.3 which were released today.

Actions

Also available in: Atom PDF