Skip to content

peadm:convert fails with puppetlabs/node_manager v1.0.1 #469

@bastelfreak

Description

@bastelfreak

Describe the Bug

I've a PE 2019.12.8 installation. With puppetlabs/node_manager v1.0.1 the peadm:convert doesn't work on a simple/empty PE installation. Used pe.conf:

{
  "puppet_enterprise::profile::master::r10k_remote": "https://github.com/bastelfreak/testcontrolrepo.git",
  "puppet_enterprise::profile::master::code_manager_auto_configure": true,
  "console_admin_password": "***",
  "puppet_enterprise::puppet_master_host": "%{trusted.certname}"
}

This fails with:

{
  "level": "err",
  "message": "node_manager failed with error type 'missing-referents': The group being edited or created makes reference to the following missing classes:\n\"puppet_enterprise\" class in the \"production\" environment\n\nSee the details key for complete information on where every missing reference originated.",
  "source": "Puppet",
  "tags": [
    "err"
  ],
  "time": "2024-07-30T16:02:45.302802570+00:00",
  "file": null,
  "line": null
},

It works with node_manager v0.8.0. I can also reproduce the issue by running the convert successfully with v0.8.0, then delete a node group that's managed by PEADM, for example PE Primary B. Then running the convert again it fails with above error.

Expected Behavior

It's supposed to pass with node_manager v1.0.1 because that's listed in metadata.json.

Steps to Reproduce

  • Install PE 2019.8.12 or 2021.7.8 or 2023.7.0
  • install latest peadm & node_manager
  • run peadm::convert

Environment

  • AlmaLinux 8

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions