When a MongoDB process is controlled by Cloud Manager or Ops Manager Automation, some actions that can be performed by the user in the shell will be reverted by Automation if they are in conflict with the configuration entered into Cloud/Ops Manager.
Examples:
- Changing the replica set configuration
- Adding, editing or removing a custom role
- Adding/removing a shard
- Using setParameter to change the sslMode or clusterAuthMode
To enhance the user experience and prevent confusion, it would be helpful if the mongo shell could contain a message along the lines of: "Note - this process is controlled by Cloud Manager, GroupID XYZ. Please login to cloud.mongodb.com to make configuration changes."
Presumably:
- This message would be stored inside an internal MongoDB structure somewhere
- The Automation Agents would call a command to record this message
- The mongo shell would look for messages of this type and display it
Please note that startupWarnings would not be an ideal solution. There are many systems (including Cloud Manager itself) which assume that startupWarnings have a negative connotation. This is informational, not a warning.
To be consistent, this message would need to appear for both mongod and mongos processes.
Additionally, it would be nice to also include this sort of message in the header of the log files.
- is depended on by
-
SERVER-25066 Surface automation state in the shell prompt
- Closed