Feature #14013

Add setting for the default owner of new hosts

Added by Stefan Hölzle over 1 year ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Amir Fefer
Category:Host creation
Target version:Team Daniel - iteration 3
Difficulty: Bugzilla link:
Found in release:1.10.2 Pull request:https://github.com/theforeman/foreman/pull/3556
Story points-
Velocity based estimate-
Release1.15.0Release relationshipAuto

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

Related to Foreman - Feature #4524: The logged in user should be the default one in create ne... Closed 03/03/2014

Associated revisions

Revision 535d2329
Added by Amir Fefer 4 months ago

Fixes #14013 - add a setting for default owner of new hosts

History

#1 Updated by Dominic Cleal over 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year ago

  • Assigned To set to Amir Fefer

#8 Updated by The Foreman Bot about 1 year 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 12 months ago

  • Target version set to Team Daniel - iteration 1

#10 Updated by Daniel Lobato Garcia 11 months ago

  • Target version changed from Team Daniel - iteration 1 to Team Daniel - iteration 2

#11 Updated by Daniel Lobato Garcia 9 months ago

  • Target version changed from Team Daniel - iteration 2 to Team Daniel - iteration 3

#12 Updated by Amir Fefer 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#13 Updated by Dominic Cleal 4 months ago

  • Category changed from E-Mail to Host creation
  • Release set to 1.15.0

Also available in: Atom PDF