Bug 1539703
Summary: | By rebuilding twice with the same "forbidden" image one can circumvent scheduler rebuild restrictions | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Artom Lifshitz <alifshit> | |
Component: | openstack-nova | Assignee: | Artom Lifshitz <alifshit> | |
Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 12.0 (Pike) | CC: | alifshit, berrange, dasmith, eglynn, jamsmith, kchamart, lyarwood, mbooth, mriedem, sbauza, sferdjao, sgordon, slinaber, srevivo, vromanso | |
Target Milestone: | z3 | Keywords: | Triaged, ZStream | |
Target Release: | 12.0 (Pike) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openstack-nova-16.1.4-2.el7ost | Doc Type: | Bug Fix | |
Doc Text: |
This update prevents an unintended bypass of the schedule filters that could occur after the scheduler refused a rebuild request sent by nova.
If a user rebuilds an instance with a new image, the change from old image to new image causes nova to send the rebuild request to the scheduler to make sure it is allowed according to the scheduler filters.
Prior to this update, if the scheduler refused the request, the instance's image reference was not rolled back to the original image. This caused an inconsistency between the original image actually in use by the instance, and the new image reference saved in the database. As a result, a second rebuild request with the same new image would bypass the scheduler and be allowed, because the image in the rebuild request was the same as the instance's image in the database, even though the real image in use by the instance was the old original image. This bypass of scheduler filters was considered a security flaw.
As of this update, when a rebuild request is refused by the scheduler,the image reference is rolled back to the original. If another rebuild request is made with the same new image, it is correctly identified as being different from the instance's current image and the request is send to the scheduler.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1540368 (view as bug list) | Environment: | ||
Last Closed: | 2018-08-20 12:55:29 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1540368, 1540369 |
Description
Artom Lifshitz
2018-01-29 13:39:39 UTC
Here is the fix: https://review.openstack.org/#/c/538961/ There is a patch with a recreate functional test underneath that in the series. Looks like the stable backport merged. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2332 |