Project

General

Profile

Actions

Bug #29505

closed

Using Stdlib data types breaks Variant

Added by Samuli Seppänen about 5 years ago. Updated about 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

In Kafo 4.1.0 enabling puppetlabs/stdlib data types (e.g. Stdlib::IP::Address::V4) seems to break the Variant data type, right after the scenario selection:

[FATAL 2020-04-08T16:55:55 fatal] Unable to continue because of: data type not recognized Variant[

This happens consistently in our puppetmaster-installer. If I get rid of the stdlib data types the installer starts working again.

Disabling the three Variant-type parameters in our own Puppet manifests does not help, apparently because Kafo fails due to Variant[ in some dependency Puppet module.

Any ideas if this is a bug or a feature, or if we're missing some config?

Software versions:

  • kafo (4.1.0)
  • kafo_parsers (1.1.0)
  • kafo_wizards (0.0.1)
  • Puppet 6.14.0 from puppetlabs debian package

Related issues 1 (0 open1 closed)

Related to Kafo - Bug #21398: Struct handling brokenClosedActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden about 5 years ago

I actually think this is a duplicate of #21398 and that the newline is the culprit.

Actions #2

Updated by Samuli Seppänen about 5 years ago

Ah, I see. The data types stdlib is using has those multi-line variants even though we don't:

stdlib/types/ip/address/v4.pp:type Stdlib::IP::Address::V4 = Variant[
stdlib/types/ip/address/v6/nosubnet.pp:type Stdlib::IP::Address::V6::Nosubnet = Variant[
stdlib/types/ip/address/v6.pp:type Stdlib::IP::Address::V6 = Variant[
stdlib/types/ip/address/nosubnet.pp:type Stdlib::IP::Address::Nosubnet = Variant[
stdlib/types/ip/address.pp:type Stdlib::IP::Address = Variant[
stdlib/types/objectstore.pp:type Stdlib::ObjectStore = Variant[
stdlib/types/filesource.pp:type Stdlib::Filesource = Variant[

Feel free to close this as a duplicate.

Actions #3

Updated by Ewoud Kohl van Wijngaarden about 5 years ago

  • Status changed from New to Duplicate
Actions #4

Updated by Ewoud Kohl van Wijngaarden about 5 years ago

  • Related to Bug #21398: Struct handling broken added
Actions

Also available in: Atom PDF