Feature #14013
closedAdd setting for the default owner of new hosts
Description
If I add a user to my foreman, the new user doesn't get "Puppet error state" mails although the option is enabled.
More information:- I installed an earlier version from source (I think it was 1.8.?) using bundler and updated from time to time to a newer version using bundler. The currently used version is Foreman version 1.10.2.
- This problem was also present in 1.9.3.
- A user that I added in an earlier version is getting the subscribed mails, even if I disable and re-enable the "Puppet error state" mail subscription in the user's settings
- I checked the foreman database table user_mail_notifications and found the new user is listed in there. However no mail is sent.
- I enabled debug loglevel and searched the logs, but no suspicious errors/warnings.
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Feedback
The user (or a group that they are in) must be the registered owner of a host, check under the last tab of the host edit page.
Updated by Stefan Hölzle over 8 years ago
Ok, if I change the owner the mails are sent. Thanks !
I have same questions:- Is there a way to define a default for new hosts ?
- How is the owner of a host determined initially (I did not create hosts manually, they were all added automatically) ?
- Is there a intended way of changing the owner of all hosts ?
Updated by Dominic Cleal over 8 years ago
Stefan Hölzle wrote:
- Is there a way to define a default for new hosts ?
- How is the owner of a host determined initially (I did not create hosts manually, they were all added automatically) ?
No, I don't think you can define a default in any way. If a user adds a host through the web UI/API then the owner will be set to them, but for hosts picked up through Puppet etc, it'll probably be unset. If a user edits the host later it might be set to them.
You may want to watch ticket #9470 which will add a way to receive all Puppet error reports.
- Is there a intended way of changing the owner of all hosts ?
Foreman 1.11 adds a change owner option to the bulk actions menu on the host list (after ticking the boxes) via ticket #1584.
Updated by Stefan Hölzle over 8 years ago
I think the possibility to set a default is sensible, possibly an option settable in the Foreman settings.
Apart from that, my issue is solved :)
Updated by Dominic Cleal over 8 years ago
- Related to Feature #4524: The logged in user should be the default one in create new hosts added
Updated by Dominic Cleal over 8 years ago
- Tracker changed from Bug to Feature
- Subject changed from Foreman not sending "Puppet error state" mails to Add setting for the default owner of new hosts
- Status changed from Feedback to New
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3556 added
Updated by Daniel Lobato Garcia over 8 years ago
- Target version changed from 1.7.1 to 1.6.2
Updated by Daniel Lobato Garcia about 8 years ago
- Target version changed from 1.6.2 to 1.5.2
Updated by Amir Fefer over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 535d232934a572d83092a98822712d193f316a78.
Updated by Dominic Cleal over 7 years ago
- Category changed from E-Mail to Host creation
- Translation missing: en.field_release set to 209