Skip to content

Commit

Permalink
Deprecate API extensions policies
Browse files Browse the repository at this point in the history
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-
        - '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)
        - 'os_compute_api:os-flavor-rxtx'
        - 'os_compute_api:os-flavor-access' (only from /flavors APIs)
        - 'os_compute_api:image-size'

Implement blueprint api-extensions-policy-removal

Depends-On: I6aed4909b0e7efe9c95d1f7398db613eca05e5ce

Change-Id: Ie05f4e84519f8a00ffb66ea5ee920d5c7722a66b
  • Loading branch information
gmannos committed Dec 7, 2017
1 parent 9f46043 commit f2d18c2
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 10 deletions.
10 changes: 9 additions & 1 deletion nova/policies/config_drive.py
Expand Up @@ -35,7 +35,15 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/extended_availability_zone.py
Expand Up @@ -35,7 +35,15 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/extended_status.py
Expand Up @@ -42,7 +42,15 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/extended_volumes.py
Expand Up @@ -36,7 +36,15 @@
'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'),
]


Expand Down
15 changes: 14 additions & 1 deletion nova/policies/flavor_access.py
Expand Up @@ -75,7 +75,20 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/flavor_rxtx.py
Expand Up @@ -44,7 +44,15 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/image_size.py
Expand Up @@ -35,7 +35,15 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/keypairs.py
Expand Up @@ -76,7 +76,15 @@
'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'),
]


Expand Down
14 changes: 13 additions & 1 deletion nova/policies/security_groups.py
Expand Up @@ -81,7 +81,19 @@
'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'),
]


Expand Down
10 changes: 9 additions & 1 deletion nova/policies/server_usage.py
Expand Up @@ -42,7 +42,15 @@
'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'),
]


Expand Down
@@ -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'

0 comments on commit f2d18c2

Please sign in to comment.