Knife upload doesn't


#1

I thought maybe I’d found a bug in 11.4.0, so just waited
to try it again in 11.8.0. That bought me nothing.

Something is definitely either broken in knife or in my
understanding of ‘knife upload’

vim ../../environments/production.rb

[ mycookbook version constraint change in file ]

knife upload ../../environments/production.rb

knife environment show production.rb

[ OLD data shown, new version constraint not in data ]

Does anyone have any idea what I am missing here?

‘knife environment from file’ works fine.


#2

Knife upload requires JSON, not Ruby files. It will will likely be expanded to include Ruby files in a future release :slight_smile:

Thanks,
Seth Vargo
Solutions Engineer, Opscode
@sethvargo
From: Jeff Blaine Jeff Blaine
Reply: chef@lists.opscode.com chef@lists.opscode.com
Date: November 7, 2013 at 8:55:27 AM
To: chef@lists.opscode.com chef@lists.opscode.com
Subject: [chef] knife upload doesn’t
I thought maybe I’d found a bug in 11.4.0, so just waited
to try it again in 11.8.0. That bought me nothing.

Something is definitely either broken in knife or in my
understanding of ‘knife upload’

vim …/…/environments/production.rb

[ mycookbook version constraint change in file ]

knife upload …/…/environments/production.rb

knife environment show production.rb

[ OLD data shown, new version constraint not in data ]

Does anyone have any idea what I am missing here?

‘knife environment from file’ works fine.


#3

Jeff I have been experiencing this for some time as well… It is definitely a bug in chef 11 and i opened a couple support cases on it. Support told me to upgrade to 11.8.01 and after doing so i haven’t had the problem. Although the upgrade wasn’t as easy as I thought I had to completely remove chef and then re-run the omnibus package. I think 11.6 was plagued with issues and it didn’t want to behave. Try removing chef from your workstation and reinstall it.

Jon

Sent from my iPhone

On Nov 7, 2013, at 8:55 AM, Jeff Blaine jblaine@kickflop.net wrote:

I thought maybe I’d found a bug in 11.4.0, so just waited
to try it again in 11.8.0. That bought me nothing.

Something is definitely either broken in knife or in my
understanding of ‘knife upload’

vim …/…/environments/production.rb

[ mycookbook version constraint change in file ]

knife upload …/…/environments/production.rb

knife environment show production.rb

[ OLD data shown, new version constraint not in data ]

Does anyone have any idea what I am missing here?

‘knife environment from file’ works fine.


#4

Seth I am able to reproduce this on json files in my environment

Sent from my iPhone

On Nov 7, 2013, at 9:04 AM, Seth Vargo sethvargo@opscode.com wrote:

Knife upload requires JSON, not Ruby files. It will will likely be expanded to include Ruby files in a future release :slight_smile:

Thanks,
Seth Vargo
Solutions Engineer, Opscode
@sethvargo
From: Jeff Blaine Jeff Blaine
Reply: chef@lists.opscode.com chef@lists.opscode.com
Date: November 7, 2013 at 8:55:27 AM
To: chef@lists.opscode.com chef@lists.opscode.com
Subject: [chef] knife upload doesn’t

I thought maybe I’d found a bug in 11.4.0, so just waited
to try it again in 11.8.0. That bought me nothing.

Something is definitely either broken in knife or in my
understanding of ‘knife upload’

vim …/…/environments/production.rb

[ mycookbook version constraint change in file ]

knife upload …/…/environments/production.rb

knife environment show production.rb

[ OLD data shown, new version constraint not in data ]

Does anyone have any idea what I am missing here?

‘knife environment from file’ works fine.


#5

Can you give me a little info about the repro? Like, what directory are
you in (cwd), what is the filename you want to upload, what is your
configuration, what precise command do you type, and what happens when you
type it? JSON is uploading for me in 11.8, but it could be I’m using it
weird :slight_smile:

On Thu, Nov 7, 2013 at 9:08 AM, Jonathan Mickle jmickle05@gmail.com wrote:

Seth I am able to reproduce this on json files in my environment

Sent from my iPhone

On Nov 7, 2013, at 9:04 AM, Seth Vargo sethvargo@opscode.com wrote:

Knife upload requires JSON, not Ruby files. It will will likely be
expanded to include Ruby files in a future release :slight_smile:

Thanks,
Seth Vargo
Solutions Engineer, Opscode
@sethvargo https://twitter.com/sethvargo

From: Jeff Blaine Jeff Blaine jblaine@kickflop.net
Reply: chef@lists.opscode.com chef@lists.opscode.com
Date: November 7, 2013 at 8:55:27 AM
To: chef@lists.opscode.com chef@lists.opscode.com
Subject: [chef] knife upload doesn’t

I thought maybe I’d found a bug in 11.4.0, so just waited
to try it again in 11.8.0. That bought me nothing.

Something is definitely either broken in knife or in my
understanding of ‘knife upload’

vim …/…/environments/production.rb

[ mycookbook version constraint change in file ]

knife upload …/…/environments/production.rb

knife environment show production.rb

[ OLD data shown, new version constraint not in data ]

Does anyone have any idea what I am missing here?

‘knife environment from file’ works fine.