Knife user create on chef 12

Hi,

Never tried to create a user using knife when I was on 11. Now on 12,
seems like it’s what’s being encouraged.

When I try: knife user create cumberbatch -u cumberbatch -p fuzbucket -f
.ssh/cumberbatch-chef.pem -a

I get: Response: Field ‘username’ missing

I’ve even tried adding “username” to the json that is presented when
issuing the command. Doing something wrong?

TIA,

  • Michael

Hi Michael (great name, BTW!),

As I learned this week, the knife user commands only worked against the OSS
Chef user model. Enterprise/Hosted Chef, and therefore Chef 12 forked the
user bits, so those commands won't work. You can use the chef-server-ctl
commands on the Chef server to create users, though the behavior feels a
little off currently (mostly around assigning/removing orgs and setting
admin true/false).

Good luck!

--
Michael F. Weinberg | Director of Operations
http://heavywaterops.com | @heavywaterops

On Thu, Mar 5, 2015 at 4:30 PM, Michael Lindsay mlindsay@metrodigi.com
wrote:

Hi,

Never tried to create a user using knife when I was on 11. Now on 12,
seems like it's what's being encouraged.

When I try: knife user create cumberbatch -u cumberbatch -p fuzbucket -f
.ssh/cumberbatch-chef.pem -a

I get: Response: Field 'username' missing

I've even tried adding "username" to the json that is presented when
issuing the command. Doing something wrong?

TIA,

  • Michael

Super, easy enough, thanks for the swift response.

On Thu, Mar 5, 2015 at 4:47 PM, Michael Weinberg michael@hw-ops.com wrote:

Hi Michael (great name, BTW!),

As I learned this week, the knife user commands only worked against the
OSS Chef user model. Enterprise/Hosted Chef, and therefore Chef 12 forked
the user bits, so those commands won't work. You can use the
chef-server-ctl commands on the Chef server to create users, though the
behavior feels a little off currently (mostly around assigning/removing
orgs and setting admin true/false).

Good luck!

--
Michael F. Weinberg | Director of Operations
http://heavywaterops.com | @heavywaterops

On Thu, Mar 5, 2015 at 4:30 PM, Michael Lindsay mlindsay@metrodigi.com
wrote:

Hi,

Never tried to create a user using knife when I was on 11. Now on 12,
seems like it's what's being encouraged.

When I try: knife user create cumberbatch -u cumberbatch -p fuzbucket -f
.ssh/cumberbatch-chef.pem -a

I get: Response: Field 'username' missing

I've even tried adding "username" to the json that is presented when
issuing the command. Doing something wrong?

TIA,

  • Michael

It is planned to provide another remote tools or upgrade knife to makes
knife user working again ?

On Fri, Mar 6, 2015 at 1:53 AM, Michael Lindsay mlindsay@metrodigi.com
wrote:

Super, easy enough, thanks for the swift response.

On Thu, Mar 5, 2015 at 4:47 PM, Michael Weinberg michael@hw-ops.com
wrote:

Hi Michael (great name, BTW!),

As I learned this week, the knife user commands only worked against the
OSS Chef user model. Enterprise/Hosted Chef, and therefore Chef 12 forked
the user bits, so those commands won't work. You can use the
chef-server-ctl commands on the Chef server to create users, though the
behavior feels a little off currently (mostly around assigning/removing
orgs and setting admin true/false).

Good luck!

--
Michael F. Weinberg | Director of Operations
http://heavywaterops.com | @heavywaterops

On Thu, Mar 5, 2015 at 4:30 PM, Michael Lindsay mlindsay@metrodigi.com
wrote:

Hi,

Never tried to create a user using knife when I was on 11. Now on 12,
seems like it's what's being encouraged.

When I try: knife user create cumberbatch -u cumberbatch -p fuzbucket -f
.ssh/cumberbatch-chef.pem -a

I get: Response: Field 'username' missing

I've even tried adding "username" to the json that is presented when
issuing the command. Doing something wrong?

TIA,

  • Michael

--
Barthélemy Vessemont - bvessemont@gmail.com
Ingénieur en informatique diplômé de l'UTC (Compiègne)

On Friday, March 6, 2015 at 4:51 AM, Barthélemy Vessemont wrote:

It is planned to provide another remote tools or upgrade knife to makes knife user working again ?

This should work and if it can’t be made to work then we should deprecate/remove it. Can you file a bug?

Daniel DeLeo