Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-751

chef-solo-automator merging can remove some coopr metadata from task json

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 0.9.9, Code Name: Ursa Major
    • Fix Version/s: 0.9.10 Code Name: Mensa
    • Component/s: plugins
    • Labels:
      None
    • Rank:
      1|hzypun:

      Description

      It appears that the task.json for any bundled START/STOP task is missing all the coopr metadata normally found in { "coopr"

      { ... }

      }. This is because now that service-level config is being deep merged into the cluster config, the service-level config is overwriting the top-level "coopr" element in the following non-deep merge which is done last:

          # we also need to merge cluster config top-level
          servicedata.merge!(clusterdata)
      

      previously, clusterdata would never contain a 'coopr' element, but it does for any service with coopr-service-manager, Potential fix is to make this last merge a deep merge

        Attachments

          Activity

            People

            • Assignee:
              derek Derek Wood
              Reporter:
              derek Derek Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: