Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-23045

Latest butane binary is not able to convert 4.14.0 ".bu" file to ".yaml"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.14
    • RHCOS
    • None
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Latest butane binary is having some issues, it is not able to convert .bu to .yaml.
      
      # butane 98-partition.bu -o 98-partition.yamlError translating config: No translator exists for variant openshift with version 4.14.0

      Version-Release number of selected component (if applicable):

      rhcos 4.14.x

      How reproducible:

      Download latest butane binary and try to convert the provided 98-partition.bu 

      Steps to Reproduce:

      1. Download the latest butane binary 
      "curl https://mirror.openshift.com/pub/openshift-v4/clients/butane/latest/butane --output butane"
      
      2. Convert the file as below :
      
      # cat 98-partition.bu
      variant: openshift
      version: 4.14.0
      metadata:
        labels:
          machineconfiguration.openshift.io/role: worker
        name: 98-var-partition-worker
      storage:
        disks:
        - device: /dev/disk/by-id/sda
          partitions:
          - label: var
            start_mib: 30000
            size_mib: 35000
        filesystems:
          - device: /dev/disk/by-partlabel/var
            path: /var
            format: xfs
            mount_options: [defaults, prjquota]
            with_mount_unit: true
      
      # butane 98-partition.bu -o 98-partition.yaml
      Error translating config: No translator exists for variant openshift with version 4.14.0 
      
      3. As per below document, it should work.
      "https://docs.openshift.com/container-platform/4.14/installing/install_config/installing-customizing.html#installation-special-config-butane-install_installing-customizing"

      Actual results:

      # butane 98-partition.bu -o 98-partition.yaml Error translating config: No translator exists for variant openshift with version 4.14.0 

      Expected results:

      It should be able to convert to .yaml file.

      Additional info:

      Below butane package is able to convert it.
      
      "butane-0.19.0-1.1.rhaos4.14.el8.x86_64.rpm" from below url.
      https://access.redhat.com/downloads/content/butane/0.19.0-1.1.rhaos4.14.el8/x86_64/fd431d51/package
      
      And install it on rhel-8 (not RHCOS) server as below:
      # rpm -Uvh butane-0.19.0-1.1.rhaos4.14.el8.x86_64.rpm
      
      Then run the command :
      # butane 98-partition.bu -o 98-partition.yaml

              hhei@redhat.com Huijing Hei
              rhn-support-cchouhan Chandan Chouhan
              Michael Nguyen Michael Nguyen
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: