Reset flavors for other than "Boot from Image" source type.
If a launched instance from "Boot from image" source type is not
meeting the given image RAM/disk requirements, the "Flavor" field
of Launch Instance will display the below message.
"Some flavors not meeting minimum image requirements have been
disabled."
And the flavors that are not meeting the specified requirements
will be disabled under "Flavor" field.
After this message has been shown if we try to choose a source
type other than "Boot from image", the flavors are still in
disabled mode and message also not being cleared.
To fix this issue, Set the image name to default when the source type
is changed from "Boot from image" to other source type.So that
disableFlavorsForImage() has been called on Image name change to
reset flavors.
Change-Id: I1a105eb84bd5d92ad521d9a8ae290912d48cf275
Closes-Bug: #1482507
(cherry picked from commit b1373e0438c19485f3b0223e93948b5d4519c7ae)
Reviewed: https:/ /review. openstack. org/408487 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=2c54748d0f0 c7911c09f5fc503 54de7cd3dc650b
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 2c54748d0f0c791 1c09f5fc50354de 7cd3dc650b
Author: Ragalahari <email address hidden>
Date: Wed Sep 9 19:08:42 2015 +0530
Reset flavors for other than "Boot from Image" source type.
If a launched instance from "Boot from image" source type is not
meeting the given image RAM/disk requirements, the "Flavor" field
of Launch Instance will display the below message.
"Some flavors not meeting minimum image requirements have been
disabled."
And the flavors that are not meeting the specified requirements
will be disabled under "Flavor" field.
After this message has been shown if we try to choose a source
type other than "Boot from image", the flavors are still in
disabled mode and message also not being cleared.
To fix this issue, Set the image name to default when the source type orsForImage( ) has been called on Image name change to
is changed from "Boot from image" to other source type.So that
disableFlav
reset flavors.
Change-Id: I1a105eb84bd5d9 2ad521d9a8ae290 912d48cf275 5f3b0223e93948b 5d4519c7ae)
Closes-Bug: #1482507
(cherry picked from commit b1373e0438c1948