-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENT-5581: Update messaging around the "container mode" #3294
Conversation
m-horky
commented
Jul 3, 2023
- Card ID: ENT-5581
60a6bf1
to
6478f02
Compare
Coverage (computed on Fedora latest) •
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this changes is not necessary. It will only confuse users.
The thing is that, after #3270 and #3292, the detection logic for the "container mode" does not depend on running in a container. In fact, the only way the "mode" will be triggered is the presence of secrets (certificates, config) in certain locations, and nothing else. Hence, I'd argue the opposite: I'd find misleading the message "disabled when running in a container" when subscription-manager would run in a container with no secrets provided; strictly speaking, you don't even need to be in a container to trigger that mode, you can theoretically trigger it even on a VM or baremetal system by placing the entitlement certificates in the places for it. |
You are correct that you can theoretically mimic this situation on any system, but it is unlikely that users and customers will do that. Why would they do that? I would not change this message, because there could be some theoretical edge case. I think that changing this message would be only confusing for existing users. |
The point of changing the message is avoiding the confusion actually:
I find this inconsistent, because it is not clear why the first container does not cause |
It is fair, but IMHO proposed message could be still confusing... What about extending message like this:
We would be messaging that user tries to use subscription-manager inside UBI container and how was container detected.
|
I'd still remove the "container mode", that is the whole point of the changes here. There is not much left of "container" here.
As I said, being in a container does not have any influence in how |
* Card ID: ENT-5581 The two messages that would be printed in containers were not consistent and slightly contradictory (is operating x is disabled). This change unifies them and ensures that the tool name is always 'subscription-manager'. It also updates the CLI message which now better describes the action necessary to manage the subscriptions via the host system.
6478f02
to
4dfcbc4
Compare