[common] Chef Infra Client 16.2 does not compile resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack + Chef |
Fix Released
|
Undecided
|
Lance Albertson |
Bug Description
Due to a breaking change in Chef Infra Client 16.2, resource names need to be defined with the "provides" method. From https:/
"
Previously you could set a custom name for a resource via resource_name and under the hood this would also magically set the provides for the resource. Magic is great when it works, but is confusing when it doesn’t. We’ve decided to remove some of this magic and instead rely on more explicit provides statements in resources. For cookbooks that support just Chef Infra Client 16 and later, you should change any resource_name calls to provides instead. If you need to support older releases of Chef Infra Client as well as 16+, you’ll want to include both resource_name and provides for full compatibility.
"
Therefore this "openstack-common" cookbook contains resources that are not compatible with Chef Infra Client >16.2. Possibly there are other OpenStack cookbooks with the same issue, I will review some and create a new related bug report.
Changed in openstack-chef: | |
assignee: | Henrique Santos (hsantos25) → Lance Albertson (lance-osuosl) |
Fix proposed to branch: master /review. opendev. org/740342
Review: https:/