Project

General

Profile

Actions

Bug #16060

closed

Validation/template host build issue for non-admin users with search filters

Added by Simon Wydooghe about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I've setup an account limited to build certain hostgroups. This account has permission to build hosts, but fails to do so. This is the error when hitting Build:

Host

Failed to validate id-00000018784.classroom.bednet.be: Host::Base#domain_id= delegated to primary_interface.domain_id=, but primary_interface is nil: #<Host::Managed id: 154, name: "id-00000018784.classroom.bednet.be", last_compile: "2016-08-11 08:11:22", last_report: "2016-08-11 08:11:18", updated_at: "2016-08-11 08:11:31", created_at: "2016-08-10 12:33:47", root_pass: "deleted", architecture_id: 1, operatingsystem_id: 2, environment_id: 1, ptable_id: 62, medium_id: 12, build: false, comment: "Auto-discovered and provisioned via rule 'classroo...", disk: nil, installed_at: "2016-08-10 13:13:29", model_id: 15, hostgroup_id: 7, owner_id: 2, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: "id-00000018784.classroom.bednet.be", image_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, grub_pass: "deleted", global_status: 2, lookup_value_matcher: "fqdn=id-00000018784.classroom.bednet.be", discovery_rule_id: 2>

Templates

Failure parsing Preseed default finish: The snippet 'preseed_networking_setup' threw an error: undefined method 'dhcp_boot_mode?' for NilClass::Jail (NilClass).

However, this host builds just fine when I build using my admin account.

I've attached the permissions for the account. Maybe I forgot a permission somehow? If so, it's not immediately obvious to me :) Let me know if you need further information.


Files

Actions

Also available in: Atom PDF