Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make user management messages more informative #7035
Conversation
jamesbeedy
commented
Feb 25, 2017
|
@reedobrien this is great! +1 |
|
So it sounds like your patch just makes the errors nicer, which is good.
But is it true that once you've created a user and then deleted it, that
name can no longer ever be used again? That doesn't seem like a good
interaction.
John
=:->
…
|
|
(It doesn't have to happen with this patch, but it does seem like something
we should address.)
John
=:->
…
|
|
@jameinel |
|
a) We at least need a proper way to actually resurrect/restore that user.
b) How is that going to work with any long-lived controller after a couple
of years. Certainly someone is going to end up with a name collision
eventually.
I'm especially thinking about very large controllers that are intended to
interact with very many users.
…
|
anastasiamac
approved these changes
Feb 27, 2017
As far improving messages is concerned, the proposal improves them :D
We'd need to address remove/resurrect users as a separate follow-up
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
reedobrien commentedFeb 25, 2017
Description of change
Why is this change needed?
This reworks the error messages when adding and removing users. It
essentially returns "user unavailable" rather than "not found" when
deleting and "is permanently deleted" rather than "user exists".
It also changes a bunch of gocheck asserts into checks where is made no
sense to fail the suite on the first error.
QA steps
How do we verify that the change works?
juju bootstrap lxd lp/1630728Documentation changes
Does it affect current user workflow? CLI? API?
It changes some output but not input.
Bug reference
Does this change fix a bug? Please add a link to it.
Refs: https://bugs.launchpad.net/juju/+bug/1630728