Feature #14013
Add 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.
Related issues
Associated revisions
History
#1
Updated by Dominic Cleal over 6 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.
#2
Updated by Stefan Hölzle over 6 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 ?
#3
Updated by Dominic Cleal over 6 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.
#4
Updated by Stefan Hölzle over 6 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 :)
#5
Updated by Dominic Cleal over 6 years ago
- Related to Feature #4524: The logged in user should be the default one in create new hosts added
#6
Updated by Dominic Cleal over 6 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
#7
Updated by Amir Fefer about 6 years ago
- Assignee set to Amir Fefer
#8
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3556 added
#9
Updated by Daniel Lobato Garcia almost 6 years ago
- Target version set to 1.7.1
#10
Updated by Daniel Lobato Garcia almost 6 years ago
- Target version changed from 1.7.1 to 1.6.2
#11
Updated by Daniel Lobato Garcia over 5 years ago
- Target version changed from 1.6.2 to 1.5.2
#12
Updated by Amir Fefer over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 535d232934a572d83092a98822712d193f316a78.
#13
Updated by Dominic Cleal over 5 years ago
- Category changed from E-Mail to Host creation
- Legacy Backlogs Release (now unused) set to 209
Fixes #14013 - add a setting for default owner of new hosts