Comments (9)
Hm, no, it's weirder than that... my own personal address ([email protected]) also breaks it, but [email protected] does not. Other variations of email addresses fail or succeed in a pattern I can't quite explain.
from chef-server.
This is a critical bug for our project, rendering our chef-based tool undeployable for the typical user emails we see.
from chef-server.
@rpattcorner @jstrange Apologies that you haven't gotten a response on this yet. I'll be looking at this today and let you know what I find. If you have time, I'd love if someone with a reproduction case of this could send me ([email protected]) the contents of the /var/log/opscode/oc_erchef/ directory after the failure.
from chef-server.
@rpattcorner @jstange A quick follow up. In the cases you found, are you certain their are no other users with the given email address in the system. The email address must be unique as well as the username. Unfortunately, it appears the error message returned does not give you an indication that it is actually the email address that is conflicting:
vagrant@private-chef:~$ sudo chef-server-ctl user-create foo John Q Public "[email protected]" some_password
-----BEGIN RSA PRIVATE KEY-----
[...SNIP...]
vagrant@private-chef:~$ sudo chef-server-ctl user-create foobar John Q Public "[email protected]" some_password
ERROR: Conflict
Response: User 'foobar' already exists
Note that I don't have a user foobar in the system, but because the email address conflicts, I get the "Conflict" error message.
from chef-server.
That explanation sounds like what I've been seeing. Definitely warrants a better error message...
What's the reasoning behind enforcing uniqueness with email addresses? It seems like a standard use case to have an admin identity that might conceivably be the same person as a regular user, strictly for management tasks. Also multiple users for the same person across orgs, though there are probably better ways to accomplish the latter.
from chef-server.
@jstange The uniqueness constraint for email addresses was originally put in place for Hosted Chef where password reset (and perhaps other items) are tied to email addresses:
https://www.chef.io/account/password_resets/new
The same user account can be associated with multiple organizations, so normal users typically don't need more than one account; however, there are other use cases where it would be nice to use the same address for multiple accounts.
I'll open a new bug for the error message and then close this one out.
from chef-server.
Roger that. We can work around for now by aiming our generic admin user at a local machine address or something. Thanks!
from chef-server.
Closing in favor of: #59
from chef-server.
you may created the org-username my mistake, but every problem has some solution.
sudo -s
chef-server-ctl org-delete learndevops # learndevops is my org-name you may have different
from chef-server.
Related Issues (20)
- Installing chef-manage via chef-server-ctl is not working HOT 1
- chef-server-ctl user-create with prompt for password is broken HOT 1
- Upgrade to rails 7 and ruby 3+ in oc-id HOT 2
- OCID: profile email update is throwing error
- New nodes aren't indexed but are known to Chef-Server (Version 14) HOT 7
- Update the version of Chef server in Automate HOT 1
- Unable to upload/delete cookbook with Chef Admin account
- Chef Automate 2022-01 failing chef-server-ctl test HOT 1
- Chef Client Range Search Unexpected Results HOT 4
- API Endpoints to update client certs not accessible PUT HOT 1
- Cookbook parsing fails on restore knife ec backup/restore. HOT 1
- embedded knife commands show warnings HOT 1
- Incorrect metadata in a cookbook causes all client runs on nodes in that org to fail, irrespective of them using the cookbook in question. HOT 1
- Update External Opensearch documentation with the user permissions required for Chef to work correctly with Opensearch. HOT 1
- chef-server-ctl test in failing in FIPS enabled Amazon Linux 2 system. HOT 1
- Chef server install fails at "add internal user to opensearch security plugin" on local proxmox host but not AWS HOT 2
- Unable to `chef-server-ctl reconfigure` a new 15.3.2 install on Ubuntu 22.04 HOT 8
- Cookbook with invalid dependencies causes ALL Chef client runs to begin failing (even on nodes that do not use the cookbook in question) HOT 4
- New OpenSSL requirements in RHEL 9 in fips mode [RHSA-2023:3722-01], cannot connect to Chef Server anymore with no EMS support
- Chef search results are limited to 10,000 records when using external OpenSearch 1.3.x regardless of max_result_window
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 chef-server.