Comments (2)
Ahh, I wish I would have looked at the issues sooner - would have saved me some frustration. I removed the /organizations from my knife.rb
and added the --orgs
option, and it worked fine.
Even just updating the README with this info would be helpful.
from knife-tidy.
Here is additional output using -VV
.
INFO: Using configuration from /Users/matt/secrets/knife.rb
Writing to /Users/matt/reports directory
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as chef_admin
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://chef.xyz.com/organizations
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: chef_admin
DEBUG: X-OPS-TIMESTAMP: 2018-02-07T21:35:59Z
...
DEBUG: X-OPS-AUTHORIZATION-6: xxxxxxxFaWCMxgHiiJEQIA9pTMGkgOUZaQk+k09pHA==
DEBUG: HOST: chef.xyz.com:443
DEBUG: X-REMOTE-REQUEST-ID: 43b9afdd-452b-41d5-a07f-fb094920751f
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 403 Forbidden
...
Looks like the Response: missing read permission
error occurs when the /organizations
endpoint is hit. According to https://docs.chef.io/api_chef_server.html#organizations /organizations
is only available to the pivotal user.
It'd be great to find another way to gather the list of organizations (to non pivotal users) or return a different error message when the pivotal user isn't used.
from knife-tidy.
Related Issues (20)
- notifications fail for chef orgs containing an underscore
- specifying backup directory with tab completion doesn't complete HOT 1
- the backup-path should default to current working directory HOT 3
- Installs, doesn't run HOT 5
- Exception: NoMethodError: undefined method `captures' for nil:NilClass
- backup path can be empty and clean can still proceed
- Have knife-tidy shipped as part of the standard gems in chef-server-core HOT 4
- Enhancement: add the ability to point knife-tidy at multiple chef-servers to see what's used
- generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json HOT 2
- Dependabot can't parse your Gemfile
- knife tidy backup clean throws an error with chef-dk/ws that includes chef >= 15.0.293 HOT 1
- Failing spec tests
- knife-tidy-2.0.9/lib/chef/tidy_acls.rb:205:in `[]': no implicit conversion of Symbol into Integer (TypeError)
- crashes on FFI_Yajl::ParseError
- Dependabot needs permission to see chefstyle HOT 1
- ERROR: Errno::ENAMETOOLONG: File name too long @ rb_sysopen
- knife tidy backup clean --gen-gsub fails due to missing file
- Sort the clients in the clients group object
- Tidy removing needed/required/used cookbook versions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-tidy.