master ignitions fails in Openshift on Openstack UPI install fails with Traceback (most recent call last): File "<string>", line 3, in <module> KeyError: 'storage'

Solution In Progress - Updated -

Issue

  • While applying this script:
python -c "import base64, json, sys;
    python -c "import base64, json, sys;
ignition = json.load(sys.stdin);
ignition = json.load(sys.stdin);
files = ignition['storage'].get('files', []);
storage = ignition.get('storage', {});
files.append({'path': '/etc/hostname', 'mode': 420, 'contents': {'source': 'data:text/plain;charset=utf-8;base64,' + base64.standard_b64encode(b'$MASTER_HOSTNAME').decode().strip()}});
files = storage.get('files', []);
ignition['storage']['files'] = files;
files.append({'path': '/etc/hostname', 'mode': 420, 'contents': {'source': 'data:text/plain;charset=utf-8;base64,' + base64.standard_b64encode(b'$MASTER_HOSTNAME').decode().strip(), 'verification': {}}, 'filesystem': 'root'});
storage['files'] = files;
ignition['storage'] = storage
json.dump(ignition, sys.stdout)" <master.ign
  • Python fails with:
Traceback (most recent call last):
  File "<string>", line 3, in <module>
KeyError: 'storage' 
  • The 'storage' property does not seem to be present any more in the master ignition file.

Environment

  • Red Hat OpenShift Container Platform 4.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content