Merge "Deprecate API extensions policies"

This commit is contained in:
Zuul 2018-01-03 09:08:07 +00:00 committed by Gerrit Code Review
commit 7667e8e0cd
11 changed files with 125 additions and 10 deletions

View File

@ -35,7 +35,15 @@ config_drive_policies = [
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-config-drive" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -35,7 +35,15 @@ extended_availability_zone_policies = [
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-extended-availability-zone"'
' policy which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -42,7 +42,15 @@ This policy will control the visibility for a set of attributes:
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-extended-status" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -36,7 +36,15 @@ extended_volumes_policies = [
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-extended-volumes" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -75,7 +75,20 @@ to a flavor via an os-flavor-access API.
'method': 'PUT',
'path': '/flavors/{flavor_id}'
},
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-flavor-access" policy '
'for POST, PUT, GET /flavors which was added for extensions is '
'not needed any more. NOTE: This policy is deprecated only for '
'POST /flavors, PUT /flavors, GET /flavors/{flavor_id} & '
'GET /flavors/detail. This policy for other API operations is '
'still valid and not deprecated'
),
deprecated_since='17.0.0'),
]

View File

@ -44,7 +44,15 @@ flavor_rxtx_policies = [
'method': 'PUT',
'path': '/flavors/{flavor_id}'
},
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-flavor-rxtx" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -35,7 +35,15 @@ image_size_policies = [
'method': 'GET',
'path': '/images/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:image-size" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -76,7 +76,15 @@ keypairs_policies = [
'path': '/servers/detail',
'method': 'GET'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-keypairs" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -81,7 +81,19 @@ server representation""",
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-security-groups" policy '
'for POST, GET /servers which was added for extensions is not '
'needed any more. NOTE: This policy is deprecated only for '
'POST /servers, GET /servers/{server_id} & GET /servers/detail. '
'This policy for other API operations is still valid and not '
'deprecated'
),
deprecated_since='17.0.0'),
]

View File

@ -42,7 +42,15 @@ This check is performed only after the check
'method': 'GET',
'path': '/servers/detail'
}
]),
],
deprecated_for_removal=True,
deprecated_reason=(
'Nova API extension concept has been removed in Pike. Those '
'extensions have their own policies enforcement. As there is '
'no extensions now, "os_compute_api:os-server-usage" policy '
'which was added for extensions is not needed any more'
),
deprecated_since='17.0.0'),
]

View File

@ -0,0 +1,26 @@
---
deprecations:
- |
Nova API extension concept is removed in Pike. These extensions
have their own policies enforcement which are not needed any more.
All the below policies which were added mainly for extensions are
deprecated for removal-
- Show & List detail server
- 'os_compute_api:os-config-drive'
- 'os_compute_api:os-extended-availability-zone'
- 'os_compute_api:os-extended-status'
- 'os_compute_api:os-extended-volumes'
- 'os_compute_api:os-keypairs'
- 'os_compute_api:os-server-usage'
- 'os_compute_api:os-security-groups' (only from /servers APIs)
- Create, Update, Show & List detail flavor
- 'os_compute_api:os-flavor-rxtx'
- 'os_compute_api:os-flavor-access' (only from /flavors APIs)
- Show & List detail image
- 'os_compute_api:image-size'