Bug #14872
closedUpdating hostgroup causes classes associated with hostgroup to dissapear
Description
Working with this hostgroup:
Id: 52
Name: role-corp-dns-ext-auth
Title: role-corp-base/role-corp-dns-ext-auth
Puppet CA Proxy Id: 1
Puppet Master Proxy Id: 1
Puppetclasses:
profiles::bind
Parameters:
app => dns
Locations:
DC1
DC2
HI
MCH
Organizations:
CORP
EFOL
FHEG
Parent Id: 5
I use the following commands to update the hostgroup's puppet-ca-proxy-id and puppet-proxy-id:
jbaird@fmpr-d1-ap01:~$ hammer hostgroup update --id 52 --puppet-ca-proxy-id 6
Hostgroup updated
jbaird@fmpr-d1-ap01:~$ hammer hostgroup update --id 52 --puppet-proxy-id 7
Hostgroup updated
Following, you can see that the hostgroup no longer has 'profiles::bind' associated with it:
jbaird@fmpr-d1-ap01:~$ hammer hostgroup info --id 52
Id: 52
Name: role-corp-dns-ext-auth
Title: role-corp-base/role-corp-dns-ext-auth
Puppet CA Proxy Id: 6
Puppet Master Proxy Id:
Puppetclasses:
Parameters:
app => dns
Locations:
DC1
DC2
HI
MCH
Organizations:
CORP
EFOL
FHEG
Parent Id: 5
Files
Updated by Dominic Cleal over 8 years ago
- Category set to Foreman commands (obsolete)
If you get the chance, could you re-run the hammer update commands with -d and attach the log? e.g. hammer -d hostgroup update --id 52 --puppet-ca-proxy-id 6
Updated by Evan Powell about 8 years ago
- File hammer.log hammer.log added
This also happens when updating the partition table. My log with -d is attached. I've excerpted the good bit here:
[ INFO 2016-12-15 03:41:23 API] PUT /api/hostgroups/2 [DEBUG 2016-12-15 03:41:23 API] Params: { "hostgroup" => { "name" => "TestHostgroup", "ptable_id" => 12, "puppet_proxy_id" => nil, "puppet_ca_proxy_id" => nil, "puppetclass_ids" => nil }
Updated by Tomáš Strachota over 7 years ago
- Category changed from Foreman commands (obsolete) to Host groups
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
- Translation missing: en.field_release set to 246
Updated by The Foreman Bot over 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/303 added
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|0c792be23c800ad6047371eac0c8065216728dcf.