Project

General

Profile

Actions

Feature #14013

closed

Add setting for the default owner of new hosts

Added by Stefan Hölzle almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Feature #4524: The logged in user should be the default one in create new hostsClosedMartin Ducar03/03/2014Actions
Actions #1

Updated by Dominic Cleal almost 9 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.

Actions #2

Updated by Stefan Hölzle almost 9 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 ?
Actions #3

Updated by Dominic Cleal almost 9 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.

Actions #4

Updated by Stefan Hölzle almost 9 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 :)

Actions #5

Updated by Dominic Cleal almost 9 years ago

  • Related to Feature #4524: The logged in user should be the default one in create new hosts added
Actions #6

Updated by Dominic Cleal almost 9 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
Actions #7

Updated by Amir Fefer over 8 years ago

  • Assignee set to Amir Fefer
Actions #8

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
Actions #9

Updated by Daniel Lobato Garcia over 8 years ago

  • Target version set to 1.7.1
Actions #10

Updated by Daniel Lobato Garcia over 8 years ago

  • Target version changed from 1.7.1 to 1.6.2
Actions #11

Updated by Daniel Lobato Garcia about 8 years ago

  • Target version changed from 1.6.2 to 1.5.2
Actions #12

Updated by Amir Fefer almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • Category changed from E-Mail to Host creation
  • Translation missing: en.field_release set to 209
Actions

Also available in: Atom PDF