[chef] Unexpected Knife behavior and messages


Chronological Thread 
  • From: Hedge Hog < >
  • To:
  • Subject: [chef] Unexpected Knife behavior and messages
  • Date: Wed, 6 Apr 2011 18:40:12 +1000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=lGtkuze2GGVfFre9EUO6Gda/oM7DVeloNAP5stSFhNVw7rsiTSjTACKJi5RueMGz5n njeHx7OVDvho8P6dNAJmXJQ3D2DT/roOF+TTdcNKIRnuHSBuSeg0++6G5nO3u9EW48Jp EQNkfLWgJqOno63dnHt5cJoJaG475A4rBXdxE=

Hi,
Not sure if this is a bug, or a feature, but in my experience it is
undesirable behavior:

Given a Client "monitor" exists
When you run `knife client create monitor --no-editor --admin --file
/tmp/monitor/.chef/monitor.pem`
Then the output contains:
       """
       INFO: Created (or updated) client[monitor]
       """
  And the file "/tmp/monitor/.chef/monitor.pem" contains nothing

I think it is better that the file pem not be created at all.  And
rather than the current INFO, a WARN message be issued:
WARN: Conflict. client[monitor] already exists

This warn message is consistent with the HTTP message that knife sees,
but somewhere along the way in knife it gets 'cured'

HTH
-- 
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
  Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com



Archive powered by MHonArc 2.6.16.

§