Robottelo: HostGroupTestCase::test_positive_create_with_multiple_entities_ids

Created on 24 May 2018  路  11Comments  路  Source: SatelliteQE/robottelo

            env['id'], hostgroup['puppet-environment']['environment_id'])
>       self.assertEqual(proxy['id'], hostgroup['puppet-master-proxy-id'])
E       KeyError: 'puppet-master-proxy-id'

tests/foreman/cli/test_hostgroup.py:557: KeyError
6.4 CLI

Most helpful comment

I confirm the change was intentional. Before the fix output for fields like "Medium" or "Partition Table" contained copy of the whole hostgroup json object returned from the API. It's correct that references print only basic info like Id, Name or Title.

All 11 comments

@ntkathole this can be caused by a regression look at bug https://bugzilla.redhat.com/show_bug.cgi?id=1313056

@ntkathole same for test_positive_create_with_multiple_entities_name

@ldjebran, nah, the info is there, it is just structured differently.
submitting a PR

This is not yet fixed for HostGroupTestCase::test_positive_create_with_multiple_entities_ids

Still not looks it fixed yet , as test is getting stuck with another issue now:

tests/foreman/cli/test_hostgroup.py::HostGroupTestCase::test_positive_create_with_multiple_entities_ids FAILED [100%]

================================================================================= FAILURES ==================================================================================
_____________________________________________________ HostGroupTestCase.test_positive_create_with_multiple_entities_ids _____________________________________________________

self =

@run_only_on('sat')
@tier2
@upgrade
def test_positive_create_with_multiple_entities_ids(self):
    """Check if hostgroup with multiple options ids can be created

    :id: 6277613b-0ece-4dee-b9d8-504f8299ac38

    :expectedresults: Hostgroup should be created and has all defined
        entities assigned

    :BZ: 1395254, 1313056

    :CaseLevel: Integration
    """
    # Common entities
    loc = make_location()
    org = make_org()
    env = make_environment({
        'location-ids': loc['id'],
        'organization-ids': org['id'],
    })
    lce = make_lifecycle_environment({'organization-id': org['id']})
    proxy = Proxy.list({
        'search': 'url = https://{0}:9090'.format(settings.server.hostname)
    })[0]
    # Content View should be promoted to be used with LC Env
    cv = make_content_view({'organization-id': org['id']})
    ContentView.publish({'id': cv['id']})
    cv = ContentView.info({'id': cv['id']})
    ContentView.version_promote({
        'id': cv['versions'][0]['id'],
        'to-lifecycle-environment-id': lce['id'],
    })
    # Network
    domain = make_domain({
        'location-ids': loc['id'],
        'organization-ids': org['id'],
    })
    subnet = make_subnet({
        'domain-ids': domain['id'],
        'organization-ids': org['id'],
    })
    # Operating System
    arch = make_architecture()
    ptable = make_partition_table({
        'location-ids': loc['id'],
        'organization-ids': org['id'],
    })
    os = make_os({
        'architecture-ids': arch['id'],
        'partition-table-ids': ptable['id'],
    })
    media = make_medium({
        'operatingsystem-ids': os['id'],
        'location-ids': loc['id'],
        'organization-ids': org['id'],
    })
    make_hostgroup_params = {
        'location-ids': loc['id'],
        'environment-id': env['id'],
        'lifecycle-environment-id': lce['id'],
        'puppet-proxy-id': proxy['id'],
        'puppet-ca-proxy-id': proxy['id'],
        'content-source-id': proxy['id'],
        'content-view-id': cv['id'],
        'domain-id': domain['id'],
        'subnet-id': subnet['id'],
        'organization-ids': org['id'],
        'architecture-id': arch['id'],
        'partition-table-id': ptable['id'],
        'medium-id': media['id'],
        'operatingsystem-id': os['id'],
    }
    hostgroup = make_hostgroup(make_hostgroup_params)
    self.assertEqual(cv['id'], hostgroup['content-view']['id'])
    self.assertEqual(lce['id'], hostgroup['lifecycle-environment']['id'])
    self.assertEqual(proxy['id'], hostgroup['content-source']['id'])
    # get the json output format
    hostgroup = HostGroup.info(
        {'id': hostgroup['id']}, output_format='json')
    self.assertIn(org['id'], hostgroup['organizations'][0]['id'])
    self.assertIn(loc['id'], hostgroup['locations'][0]['id'])
    self.assertEqual(
      env['id'], hostgroup['puppet-environment']['environment_id'])

E KeyError: 'environment_id'

tests/foreman/cli/test_hostgroup.py:571: KeyError
--------------------------------------------------------------------------- Captured stdout setup ---------------------------------------------------------------------------
2018-11-29 16:18:29 - robottelo - INFO - Started setUpClass: tests.foreman.cli.test_hostgroup/HostGroupTestCase
2018-11-29 16:18:34 - robottelo.ssh - DEBUG - Instantiated Paramiko client 0x7fbc033200b8
2018-11-29 16:18:34 - robottelo.ssh - INFO - Connected to
2018-11-29 16:18:34 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv organization create --name="G8orcc"'
2018-11-29 16:18:47 - robottelo.ssh - INFO - <<< stdout

@vijay8451 Thanks for checking. The change is introduced by bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1646733#c4. @JacobCallahan can you please make sure the hostgroup info is showing all field as before. I see only name and id of entities and other fields such as title,description,etc. are missing.

@ntkathole this was a minimal hostgroup, so those fields may not have been included. Once i get my next environment setup, i can create a more fully populated hostgroup and see what happens.

@ntkathole update: So most things are just referenced with the name and id. I believe this change was intentional. The linked bug fixed nesting, so we will likely have to update our tests to account for the new structure. I will check with Devs to make sure this is what was intended. If you have an example of the old output, that would be helpful.

-bash-4.2# hammer --output json -v -u admin -p changeme  hostgroup info --id 2
{
  "Id": 2,
  "Name": "RHEL 7 Server 64-bit HG",
  "Title": "RHEL 7 Server 64-bit HG",
  "Puppet Environment": {
    "Name": "production",
    "Id": 1
  },
  "Puppet CA Proxy": {
    "Name": "sat.domain.com",
    "Id": 1
  },
  "Puppet Master Proxy": {
    "Name": "sat.domain.com",
    "Id": 1
  },
  "Network": {
    "Subnet ipv4": {
      "Name": "foreman",
      "Id": 2
    },
    "Domain": {
      "Name": "domain.com",
      "Id": 1
    }
  },
  "Operating system": {
    "Architecture": {
      "Name": "x86_64",
      "Id": 1
    },
    "Operating System": {
      "Name": "RedHat 7.5",
      "Id": 3
    },
    "Partition Table": {
      "Name": "Kickstart default",
      "Id": 94
    },
    "PXE Loader": "PXELinux BIOS"
  },
  "Puppetclasses": [
    {
      "Name": "access_insights_client",
      "Id": 1
    },
    {
      "Name": "foreman_scap_client",
      "Id": 2
    }
  ],
  "Parameters": [
    {
      "priority": 60,
      "created_at": "2018-12-01 23:35:05 UTC",
      "updated_at": "2018-12-01 23:35:05 UTC",
      "id": 4,
      "name": "kt_activation_keys",
      "value": "ak-rhel-7"
    }
  ],
  "Locations": [
    {
      "Name": "Default Location",
      "Id": 2
    }
  ],
  "Organizations": [
    {
      "Name": "Default Organization",
      "Id": 1
    }
  ],
  "OpenSCAP Proxy": null,
  "Content View": {
    "ID": 2,
    "Name": "RHEL 7 CV"
  },
  "Lifecycle Environment": {
    "ID": 2,
    "Name": "DEV"
  },
  "Content Source": {
    "ID": 1,
    "Name": "sat.domain.com"
  },
  "Kickstart Repository": {
    "ID": 18,
    "Name": "Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.5"
  }
}

@JacobCallahan Here is the previous output example :+1:

2018-10-02 20:45:53 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=json hostgroup info --id="10"'
2018-10-02 20:45:58 - robottelo.ssh - INFO - <<< stdout
{
  "Id": 10,
  "Name": "l9iPNj",
  "Title": "l9iPNj",
  "Puppet Environment": {
    "content_source_id": 1,
    "content_source_name": "satellite.example.com",
    "content_view_id": 204,
    "content_view_name": "HNMbJDwYho",
    "lifecycle_environment_id": 190,
    "lifecycle_environment_name": "kSOYj7",
    "kickstart_repository_id": null,
    "kickstart_repository_name": null,
    "subnet_id": 9,
    "subnet_name": "d8lFzZGA",
    "operatingsystem_id": 35,
    "operatingsystem_name": "evIsDp 10.6",
    "domain_id": 32,
    "domain_name": "kfifhojtfh",
    "environment_id": 55,
    "environment_name": "a7Q4it",
    "compute_profile_id": null,
    "compute_profile_name": null,
    "ancestry": null,
    "parent_id": null,
    "parent_name": null,
    "ptable_id": 296,
    "ptable_name": "vR8KmhENNE",
    "medium_id": 41,
    "medium_name": "k6JtOb",
    "pxe_loader": null,
    "subnet6_id": null,
    "subnet6_name": null,
    "architecture_id": 23,
    "architecture_name": "3OmY1P01mY",
    "realm_id": null,
    "realm_name": null,
    "created_at": "2018-10-03 00:44:12 UTC",
    "updated_at": "2018-10-03 00:44:12 UTC",
    "id": 10,
    "name": "l9iPNj",
    "title": "l9iPNj",
    "description": null,
    "puppet_proxy_id": 1,
    "puppet_proxy_name": "satellite.example.com",
    "puppet_ca_proxy_id": 1,
    "puppet_ca_proxy_name": "satellite.example.com",
    "openscap_proxy_id": null,
    "openscap_proxy_name": null,
    "puppet_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "puppet_ca_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "openscap_proxy": null,
    "parameters": [

    ],
    "template_combinations": [

    ],
    "puppetclasses": [

    ],
    "config_groups": [

    ],
    "all_puppetclasses": [

    ],
    "locations": [
      {
        "id": 171,
        "name": "PmlXxcrkV9",
        "title": "PmlXxcrkV9",
        "description": null
      }
    ],
    "organizations": [
      {
        "id": 172,
        "name": "ij5dPS",
        "title": "ij5dPS",
        "description": null
      }
    ]
  },
  "Puppet CA Proxy": {
    "content_source_id": 1,
    "content_source_name": "satellite.example.com",
    "content_view_id": 204,
    "content_view_name": "HNMbJDwYho",
    "lifecycle_environment_id": 190,
    "lifecycle_environment_name": "kSOYj7",
    "kickstart_repository_id": null,
    "kickstart_repository_name": null,
    "subnet_id": 9,
    "subnet_name": "d8lFzZGA",
    "operatingsystem_id": 35,
    "operatingsystem_name": "evIsDp 10.6",
    "domain_id": 32,
    "domain_name": "kfifhojtfh",
    "environment_id": 55,
    "environment_name": "a7Q4it",
    "compute_profile_id": null,
    "compute_profile_name": null,
    "ancestry": null,
    "parent_id": null,
    "parent_name": null,
    "ptable_id": 296,
    "ptable_name": "vR8KmhENNE",
    "medium_id": 41,
    "medium_name": "k6JtOb",
    "pxe_loader": null,
    "subnet6_id": null,
    "subnet6_name": null,
    "architecture_id": 23,
    "architecture_name": "3OmY1P01mY",
    "realm_id": null,
    "realm_name": null,
    "created_at": "2018-10-03 00:44:12 UTC",
    "updated_at": "2018-10-03 00:44:12 UTC",
    "id": 10,
    "name": "l9iPNj",
    "title": "l9iPNj",
    "description": null,
    "puppet_proxy_id": 1,
    "puppet_proxy_name": "satellite.example.com",
    "puppet_ca_proxy_id": 1,
    "puppet_ca_proxy_name": "satellite.example.com",
    "openscap_proxy_id": null,
    "openscap_proxy_name": null,
    "puppet_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "puppet_ca_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "openscap_proxy": null,
    "parameters": [

    ],
    "template_combinations": [

    ],
    "puppetclasses": [

    ],
    "config_groups": [

    ],
    "all_puppetclasses": [

    ],
    "locations": [
      {
        "id": 171,
        "name": "PmlXxcrkV9",
        "title": "PmlXxcrkV9",
        "description": null
      }
    ],
    "organizations": [
      {
        "id": 172,
        "name": "ij5dPS",
        "title": "ij5dPS",
        "description": null
      }
    ]
  },
  "Puppet Master Proxy": {
    "content_source_id": 1,
    "content_source_name": "satellite.example.com",
    "content_view_id": 204,
    "content_view_name": "HNMbJDwYho",
    "lifecycle_environment_id": 190,
    "lifecycle_environment_name": "kSOYj7",
    "kickstart_repository_id": null,
    "kickstart_repository_name": null,
    "subnet_id": 9,
    "subnet_name": "d8lFzZGA",
    "operatingsystem_id": 35,
    "operatingsystem_name": "evIsDp 10.6",
    "domain_id": 32,
    "domain_name": "kfifhojtfh",
    "environment_id": 55,
    "environment_name": "a7Q4it",
    "compute_profile_id": null,
    "compute_profile_name": null,
    "ancestry": null,
    "parent_id": null,
    "parent_name": null,
    "ptable_id": 296,
    "ptable_name": "vR8KmhENNE",
    "medium_id": 41,
    "medium_name": "k6JtOb",
    "pxe_loader": null,
    "subnet6_id": null,
    "subnet6_name": null,
    "architecture_id": 23,
    "architecture_name": "3OmY1P01mY",
    "realm_id": null,
    "realm_name": null,
    "created_at": "2018-10-03 00:44:12 UTC",
    "updated_at": "2018-10-03 00:44:12 UTC",
    "id": 10,
    "name": "l9iPNj",
    "title": "l9iPNj",
    "description": null,
    "puppet_proxy_id": 1,
    "puppet_proxy_name": "satellite.example.com",
    "puppet_ca_proxy_id": 1,
    "puppet_ca_proxy_name": "satellite.example.com",
    "openscap_proxy_id": null,
    "openscap_proxy_name": null,
    "puppet_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "puppet_ca_proxy": {
      "name": "satellite.example.com",
      "id": 1,
      "url": "https://satellite.example.com:9090"
    },
    "openscap_proxy": null,
    "parameters": [

    ],
    "template_combinations": [

    ],
    "puppetclasses": [

    ],
    "config_groups": [

    ],
    "all_puppetclasses": [

    ],
    "locations": [
      {
        "id": 171,
        "name": "PmlXxcrkV9",
        "title": "PmlXxcrkV9",
        "description": null
      }
    ],
    "organizations": [
      {
        "id": 172,
        "name": "ij5dPS",
        "title": "ij5dPS",
        "description": null
      }
    ]
  },
  "Network": {
    "Subnet ipv4": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    },
    "Domain": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    }
  },
  "Operating system": {
    "Architecture": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    },
    "Operating System": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    },
    "Medium": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    },
    "Partition Table": {
      "content_source_id": 1,
      "content_source_name": "satellite.example.com",
      "content_view_id": 204,
      "content_view_name": "HNMbJDwYho",
      "lifecycle_environment_id": 190,
      "lifecycle_environment_name": "kSOYj7",
      "kickstart_repository_id": null,
      "kickstart_repository_name": null,
      "subnet_id": 9,
      "subnet_name": "d8lFzZGA",
      "operatingsystem_id": 35,
      "operatingsystem_name": "evIsDp 10.6",
      "domain_id": 32,
      "domain_name": "kfifhojtfh",
      "environment_id": 55,
      "environment_name": "a7Q4it",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "ancestry": null,
      "parent_id": null,
      "parent_name": null,
      "ptable_id": 296,
      "ptable_name": "vR8KmhENNE",
      "medium_id": 41,
      "medium_name": "k6JtOb",
      "pxe_loader": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "architecture_id": 23,
      "architecture_name": "3OmY1P01mY",
      "realm_id": null,
      "realm_name": null,
      "created_at": "2018-10-03 00:44:12 UTC",
      "updated_at": "2018-10-03 00:44:12 UTC",
      "id": 10,
      "name": "l9iPNj",
      "title": "l9iPNj",
      "description": null,
      "puppet_proxy_id": 1,
      "puppet_proxy_name": "satellite.example.com",
      "puppet_ca_proxy_id": 1,
      "puppet_ca_proxy_name": "satellite.example.com",
      "openscap_proxy_id": null,
      "openscap_proxy_name": null,
      "puppet_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "puppet_ca_proxy": {
        "name": "satellite.example.com",
        "id": 1,
        "url": "https://satellite.example.com:9090"
      },
      "openscap_proxy": null,
      "parameters": [

      ],
      "template_combinations": [

      ],
      "puppetclasses": [

      ],
      "config_groups": [

      ],
      "all_puppetclasses": [

      ],
      "locations": [
        {
          "id": 171,
          "name": "PmlXxcrkV9",
          "title": "PmlXxcrkV9",
          "description": null
        }
      ],
      "organizations": [
        {
          "id": 172,
          "name": "ij5dPS",
          "title": "ij5dPS",
          "description": null
        }
      ]
    }
  },
  "Puppetclasses": [

  ],
  "Parameters": [

  ],
  "Locations": [
    {
      "id": 171,
      "name": "PmlXxcrkV9",
      "title": "PmlXxcrkV9",
      "description": null
    }
  ],
  "Organizations": [
    {
      "id": 172,
      "name": "ij5dPS",
      "title": "ij5dPS",
      "description": null
    }
  ],
  "OpenSCAP Proxy": null,
  "Content View": {
    "ID": 204,
    "Name": "HNMbJDwYho"
  },
  "Lifecycle Environment": {
    "ID": 190,
    "Name": "kSOYj7"
  },
  "Content Source": {
    "ID": 1,
    "Name": "satellite.example.com"
  },
  "Kickstart Repository": {
    "ID": null,
    "Name": null
  }
}

I confirm the change was intentional. Before the fix output for fields like "Medium" or "Partition Table" contained copy of the whole hostgroup json object returned from the API. It's correct that references print only basic info like Id, Name or Title.

@tstrachota thank you for the clarification!
@ntkathole @ldjebran it looks like this is the expected behavior. The automation will need to be updated to adjust for this change.

Was this page helpful?
0 / 5 - 0 ratings