Project

General

Profile

Actions

Bug #14872

closed

Updating hostgroup causes classes associated with hostgroup to dissapear

Added by Josh Baird over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Host groups
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

hammerlog.txt hammerlog.txt 6.67 KB Josh Baird, 05/02/2016 11:10 AM
hammer.log hammer.log 8.33 KB Evan Powell, 12/14/2016 10:56 PM
Actions #1

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

Actions #2

Updated by Josh Baird over 8 years ago

Log attached.

Actions #3

Updated by Evan Powell about 8 years ago

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
    }
Actions #4

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

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

Updated by Tomáš Strachota over 7 years ago

  • Target version set to 1.13.0
Actions #7

Updated by Anonymous over 7 years ago

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

Also available in: Atom PDF