Description of problem: Adding a new Flavor in Compute > Clouds > Flavors succeeds, but a manual provider refresh has to be invoked for CloudForms to see the newly added flavor. Version-Release number of selected component (if applicable): 5.9.0.11 How reproducible: Always Steps to Reproduce: 1. Navigate to Compute > Clouds > Flavors 2. Select Configuration -> Add a new Flavor 3. Fill out the form and click Add Actual results: The flavor is added, but is not seen in CloudForms Expected results: The flavor is added and is seen by CloudForms without a manual refresh. Additional info: Found when testing with OpenStack, but may also happen with other Cloud Providers.
Marek: this is missing event handler (+targeted refresh at best). We take these as RFE usually?
It looks to me, that we don't receive flavor-related events from OpenStack. Tested on my lab machine with OSP12, see http://paste.openstack.org/show/627710/ Could we confirm if these events (e.g. compute.flavor.create) are emitted by OpenStack compute?
Even if we are getting the event, we are not parsing any target out of it. So we should extend the parser to be able to parse targets from all known events (with specs) https://github.com/Ladas/manageiq-providers-openstack/blob/be452942cdb28da4434b53f603ea3aec2ca83035/app/models/manageiq/providers/openstack/cloud_manager/event_target_parser.rb#L23
I can't seem to find an event definition for flavors, and my overcloud doesn't emit any events for them either (which is usually how I find them when I can't find an event definition in documentation elsewhere). Ladislav, do you know if there is a definition for flavor events somewhere that I can use to update the parser?
I have no knowledge of the flavor events. Without events, there is periodical full refresh that will discover it. Other way could be that we will queue a flavor targeted refresh after we create it in CloudForms
Openstack does not appear to emit notifications for flavor events, so there's nothing we can do on the Cloudforms side. Closing.