Uploaded image for project: 'CoreOS OCP'
  1. CoreOS OCP
  2. COS-3816

[coreos/ignition] OpenStack empty config handling broken

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • CoreOS West - Sprint 281
    • 0

      [3733975817] Upstream Reporter: Yasmin de Souza
      Upstream issue status: Closed
      Upstream description:

        1. Problem

      After adding single-stack IPv6 support in PR #1909, the `fcos.ignition.misc.empty` kola test started failing. The test verifies that not injecting SSH keys into Ignition works on FCOS, which requires that when no config is provided, Ignition receives empty bytes (not an empty JSON object).

      When dual-stack IPv4/IPv6 support was added, the code was changed to validate fetched data by unmarshalling it (see [this change](https://github.com/coreos/ignition/pull/1909/files#diff-b02bc22ca8a3ca32ae4ff99c51bed0d80e3c78234301d235506215d177079902R210)). However, the code then marshals the unmarshalled `types.Config` struct back to JSON before returning it.

        1. Error Logs

      ```
      — FAIL: fcos.ignition.misc.empty (630.47s)
      04:03:30 harness.go:106: TIMEOUT[10m0s]: SSH unsuccessful within allotted timeframe for 2be6b652-338a-4e7e-882a-9c43e4104138.

      from the console log:
      ignition[677]: failed to fetch config: invalid config version (couldn't parse)
      ignition[677]: failed to acquire config: invalid config version (couldn't parse)
      ignition[677]: Ignition failed: invalid config version (couldn't parse)
      ```

              rh-ee-ydesouza Yasmin de Souza
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: