Skip to content

Unknown variable: 'chrony::ptpport' compilation error only when requested environment doesn't exist and falling back to default #250

@barney-garrett

Description

@barney-garrett

We have a stranage behaviour that we are only noticing when the agent is run against an environment that no longer exists on the server and the run falls back to the default environment (in our case called production)

# puppet agent -t --environment rubbish
Info: Refreshing CA certificate
Info: CA certificate is unmodified, using existing CA certificate
Info: Refreshing CRL
Info: CRL is unmodified, using existing CRL
Info: Using environment 'rubbish'
Notice: Environment 'rubbish' not found on server, skipping initial pluginsync.
Info: Loading facts
Notice: Requesting catalog from ccs01:8140 (198.61.86.77)
Notice: Catalog compiled by ccs01
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown variable: 'chrony::ptpport'. (file: /etc/puppetlabs/code/environments/production/external-modules/chrony/templates/chrony.conf.epp, line: 102, column: 7) on node testserver01
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

however running directly against the production environment succeeds. Any ideas on what is going on ?

Attaching a log extract from the server.

puppetserver.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions