IBM Support

ZZ00396: YAML PARSER NEEDS TO BE UPDATED NOT TO REMOVE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Per the Openstack specification, the user_data field of a
    Heat template can contain script code.
    Allowable headers are "#!" for bash, "rem cmd" for batch, and
    "#ps1" or "#ps1_systnative" for Powershell, Powershell 64,
    respectively.
    
    If you create a stack for a Windows node with a header for a
    Powershell script in user_data, it will work (execute the
    script
    code) if you submit it from the command line, but not when you
    do so through the BPM GUI, because ICO removes comment lines,
    except the one for bash scripts.
    
    Therefore, need to o update Yaml parser to not remove "#ps1"
    or "#ps1_systnative" for  Powershell, Powershell
    64,respectively, as that comment line tells HEAT what execution
    context to use.
    
    ENVIRONMENT:  ICO 2.4.0.1 with VmWare hypervisor
    

Local fix

  • N/A
    

Problem summary

  • Per the Openstack specification, the user_data field of a
    Heat template can contain script code.
    Allowable headers are "#!" for bash, "rem cmd" for batch, and
    "#ps1" or "#ps1_systnative" for Powershell, Powershell 64,
    respectively.
    
    If you create a stack for a Windows node with a header for a
    Powershell script in user_data, it will work (execute the
    script
    code) if you submit it from the command line, but not when you
    do so through the BPM GUI, because ICO removes comment lines,
    except the one for bash scripts.
    
    Therefore, need to o update Yaml parser to not remove "#ps1"
    or "#ps1_systnative" for  Powershell, Powershell
    64,respectively, as that comment line tells HEAT what execution
    context to use.
    
    ENVIRONMENT:  ICO 2.4.0.1 with VmWare hypervisor
    

Problem conclusion

  • updated Yamlparser.js file in 70_SCOrchestrator_Heat_Support_Too
    lkit_2402_20150813.twx, to not remove "#ps1"
    or "#ps1_systnative" for Powershell or Powershell
    64 respectively, as that comment line tells HEAT what execution
    context to use.
    

Temporary fix

Comments

APAR Information

  • APAR number

    ZZ00396

  • Reported component name

    SMRTCLOUD ORCHS

  • Reported component ID

    5725H2800

  • Reported release

    240

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-07-28

  • Closed date

    2015-08-25

  • Last modified date

    2015-08-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    SMRTCLOUD ORCHS

  • Fixed component ID

    5725H2800

Applicable component levels

  • R240 PSY

       UP



Document information

More support for: IBM Cloud Orchestrator

Software version: 240

Reference #: ZZ00396

Modified date: 25 August 2015