Cannot change notification settings for hosted engine in ovirt 4.0

I cannot seem to find any information on how to change the notification settings, in particular the email adresses to which to send notifications and the from address for the notifications. I have tried adding a file on the engine itself in /etc/ovirt-engine/notifier/notifier.conf.d/ and setting MAIL_FROM. I then restarted the ovirt-engine service, but notices are still using the old configuration. I even tried restarting the VM, but that did not have any effect. I have also tried editing /var/lib/ovirt-hosted-engine-ha/broker.conf however when I restart the ovirt-ha-broker service, the file is overwritten. I have found documentation about the shared configuration storage ( http://www.ovirt.org/develop/release-management/features/hosted-engine-confi...), however it is not clear to me where I would edit existing data in the shared storage. Do I just untar the files, edit, then "retar" to the shared storage? Do I need to set maintenance mode before editing? Should I shutdown the engine? After I edit the files, do I just restart the ovirt-ha-broker service or do I need to do something else? Any help in this matter would be greatly appreciated. Thanks! - George Chlipala

Hi George, unfortunately this was overlooked when the configuration file was moved to the shared storage. We are currently working on a solution (https://bugzilla.redhat.com/show_bug.cgi?id=1301681) There is a workaround if you are using the default configuration (smtp set to localhost). You can add a forwarding rule to the /etc/aliases file in the form "root: my@emails.com" and execute newaliases (to update the configuration). See for example https://ask.fedoraproject.org/en/question/10654/how-to-use-etcaliases-file-a... Unfortunately, we do not have any workaround for non-local SMTP or notification filtering settings. Regards -- Martin Sivak SLA / oVirt On Tue, Nov 15, 2016 at 5:43 PM, George Chlipala <gchlip2@uic.edu> wrote:
I cannot seem to find any information on how to change the notification settings, in particular the email adresses to which to send notifications and the from address for the notifications. I have tried adding a file on the engine itself in /etc/ovirt-engine/notifier/notifier.conf.d/ and setting MAIL_FROM. I then restarted the ovirt-engine service, but notices are still using the old configuration. I even tried restarting the VM, but that did not have any effect. I have also tried editing /var/lib/ovirt-hosted-engine-ha/broker.conf however when I restart the ovirt-ha-broker service, the file is overwritten.
I have found documentation about the shared configuration storage (http://www.ovirt.org/develop/release-management/features/hosted-engine-confi...), however it is not clear to me where I would edit existing data in the shared storage. Do I just untar the files, edit, then "retar" to the shared storage? Do I need to set maintenance mode before editing? Should I shutdown the engine? After I edit the files, do I just restart the ovirt-ha-broker service or do I need to do something else?
Any help in this matter would be greatly appreciated.
Thanks!
- George Chlipala
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, Nov 18, 2016 at 10:04 AM, Martin Sivak <msivak@redhat.com> wrote:
Hi George,
unfortunately this was overlooked when the configuration file was moved to the shared storage. We are currently working on a solution (https://bugzilla.redhat.com/show_bug.cgi?id=1301681)
There is a workaround if you are using the default configuration (smtp set to localhost). You can add a forwarding rule to the /etc/aliases file in the form "root: my@emails.com" and execute newaliases (to update the configuration).
See for example https://ask.fedoraproject.org/en/question/10654/how-to-use- etcaliases-file-and-forward-file-for-a-user-at-same-time-using-sendmail/
Unfortunately, we do not have any workaround for non-local SMTP or notification filtering settings.
We have a workaround described here: https://bugzilla.redhat.com/show_bug.cgi?id=1301681#c16 It will replace the configuration file on the shared storage as needed. Please ensure you have a valid backup of the configuration volume before touching it.
Regards
-- Martin Sivak SLA / oVirt
On Tue, Nov 15, 2016 at 5:43 PM, George Chlipala <gchlip2@uic.edu> wrote:
I cannot seem to find any information on how to change the notification settings, in particular the email adresses to which to send notifications and the from address for the notifications. I have tried adding a file on the engine itself in /etc/ovirt-engine/notifier/notifier.conf.d/ and setting MAIL_FROM. I then restarted the ovirt-engine service, but notices are still using the old configuration. I even tried restarting the VM, but that did not have any effect. I have also tried editing /var/lib/ovirt-hosted-engine-ha/broker.conf however when I restart the ovirt-ha-broker service, the file is overwritten.
I have found documentation about the shared configuration storage (http://www.ovirt.org/develop/release-management/features/ hosted-engine-configuration-on-shared-storage/), however it is not clear to me where I would edit existing data in the shared storage. Do I just untar the files, edit, then "retar" to the shared storage? Do I need to set maintenance mode before editing? Should I shutdown the engine? After I edit the files, do I just restart the ovirt-ha-broker service or do I need to do something else?
Any help in this matter would be greatly appreciated.
Thanks!
- George Chlipala
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Thanks for the information. George Chlipala, Ph.D. Senior Research Specialist Research Resources Center University of Illinois at Chicago phone: 312-413-1700 email: gchlip2@uic.edu On Fri, Nov 18, 2016 at 3:44 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Fri, Nov 18, 2016 at 10:04 AM, Martin Sivak <msivak@redhat.com> wrote:
Hi George,
unfortunately this was overlooked when the configuration file was moved to the shared storage. We are currently working on a solution (https://bugzilla.redhat.com/show_bug.cgi?id=1301681)
There is a workaround if you are using the default configuration (smtp set to localhost). You can add a forwarding rule to the /etc/aliases file in the form "root: my@emails.com" and execute newaliases (to update the configuration).
See for example https://ask.fedoraproject.org/en/question/10654/how-to-use-e tcaliases-file-and-forward-file-for-a-user-at-same-time-using-sendmail/
Unfortunately, we do not have any workaround for non-local SMTP or notification filtering settings.
We have a workaround described here: https://bugzilla.redhat.com/show_bug.cgi?id=1301681#c16
It will replace the configuration file on the shared storage as needed. Please ensure you have a valid backup of the configuration volume before touching it.
Regards
-- Martin Sivak SLA / oVirt
On Tue, Nov 15, 2016 at 5:43 PM, George Chlipala <gchlip2@uic.edu> wrote:
I cannot seem to find any information on how to change the notification settings, in particular the email adresses to which to send notifications and the from address for the notifications. I have tried adding a file on the engine itself in /etc/ovirt-engine/notifier/notifier.conf.d/ and setting MAIL_FROM. I then restarted the ovirt-engine service, but notices are still using the old configuration. I even tried restarting the VM, but that did not have any effect. I have also tried editing /var/lib/ovirt-hosted-engine-ha/broker.conf however when I restart the ovirt-ha-broker service, the file is overwritten.
I have found documentation about the shared configuration storage (http://www.ovirt.org/develop/release-management/features/ho sted-engine-configuration-on-shared-storage/), however it is not clear to me where I would edit existing data in the shared storage. Do I just untar the files, edit, then "retar" to the shared storage? Do I need to set maintenance mode before editing? Should I shutdown the engine? After I edit the files, do I just restart the ovirt-ha-broker service or do I need to do something else?
Any help in this matter would be greatly appreciated.
Thanks!
- George Chlipala
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
George Chlipala
-
Martin Sivak
-
Simone Tiraboschi