Bug 1899612
| Summary: | [DDF] The default overcloud configuration does not work with auto scaling example | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Direct Docs Feedback <ddf-bot> |
| Component: | documentation | Assignee: | Joanne O'Flynn <joflynn> |
| Status: | CLOSED DEFERRED | QA Contact: | Leonid Natapov <lnatapov> |
| Severity: | high | Docs Contact: | Joanne O'Flynn <joflynn> |
| Priority: | high | ||
| Version: | 13.0 (Queens) | CC: | astillma, jamsmith, jbadiapa, lmadsen, schhabdi, tkajinam |
| Target Milestone: | ga | Keywords: | Triaged, ZStream |
| Target Release: | 17.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-10-11 20:27:47 UTC | Type: | --- |
| 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: | 2093375 | ||
| Bug Blocks: | 1889571 | ||
|
Description
Direct Docs Feedback
2020-11-19 16:51:23 UTC
*** Bug 1889571 has been marked as a duplicate of this bug. *** @mrunge @tkajinam I'm looking at this again while I'm doing documentation updates and functional testing of all the documented parted for this feature, and I'm a bit confused why `naive` InstanceDiscoveryMethod might be required here. If you look up the notes/documentation around that functionality, it seems to not be recommended with Gnocchi as the storage backend, but that's what we'd be using... Unfortunately Paul isn't around any more to ask why he came to the conclusion that `naive` was necessary. Do you happen to have any ideas? I have a mostly working environment, but right now that alarms that are generated by the Heat stack I'm creating always reads as insufficient data, which I'm guess is what Paul ran into as well (and it started working once he changed the InstanceDiscoveryMethod). Sourced here (https://docs.openstack.org/ceilometer/8.0.1/_modules/ceilometer/compute/discovery.html) is the following statements on the configuration methods: cfg.StrOpt('instance_discovery_method', default='libvirt_metadata', choices=['naive', 'workload_partitioning', 'libvirt_metadata'], help="Ceilometer offers many methods to discover the instance " "running on a compute node: \n" "* naive: poll nova to get all instances\n" "* workload_partitioning: poll nova to get instances of " "the compute\n" "* libvirt_metadata: get instances from libvirt metadata " " but without instance metadata (recommended for Gnocchi " " backend"), I'm wondering why libvirt_metadata is the recommended for Gnocchi. <another day of digging...> OK I can answer this question. The reason libvirt_metadata is recommended is that we want to avoid polling the Nova API for the instance metadata. Polling the Nova API adds a load to the API interface, which per launchpad bugs (ref: https://bugs.launchpad.net/charm-ceilometer-agent/+bug/1749954) refers to this note (ref: https://docs.openstack.org/releasenotes/ceilometer/ocata.html): > If you are using Gnocchi as backend it’s strongly recommended to switch [compute]/instance_discovery_method to libvirt_metadata. This will reduce the load on the Nova API especially if you have many compute nodes. The Nova API provides the server_group information for the instance, which is written to the Gnocchi database. This provides the server_group parameter stored when you view it via `openstack metric resource show --type instance <UUID_OF_OSP_INSTANCE>`. That server_group is used as part of the Heat autoscaling to associate the AutoScalingGroup in the heat stack. Because the libvirt API doesn't have the required OSP information to result in the Gnocchi resource having the server_group information, is that Nova should be sending notifications periodically (ref: https://bugs.launchpad.net/charm-ceilometer-agent/+bug/1749954/comments/4) but I'm not getting that server_group added to the Gnocchi resource entry. I did verify that the Nova configuration in my deployment uses the appropriate configuration (ref: https://bugs.launchpad.net/charm-ceilometer-agent/+bug/1749954/comments/7) but I haven't gotten far enough to debug why the resource isn't being updated. Either a bug in Gnocchi, the Nova configuration isn't tuned appropriately (the original launchpad issue noted that the sync period was an hour by default, so it was just taking a long time, and the fix was to tune Nova to send the notification / metadata update more frequently), the notification isn't being sent at all, or otherwise. So at this point, I can confirm that using `naive` (and probably `workload_partitioning`, but unverified currently) is working as intended, and autoscaling works as intended. With libvirt_metadata, I'm seeing the same issue as Paul found which is to be documented here. I think this issue is actually invalid though, and the documentation needs no updating from the perspective of the InstanceDiscoveryMethod. It should actually remain the same as the default libvirt_metadata, but something either needs to be fixed, or updated, or parameters added to make sure Nova sends the appropriate instance metadata via notification in a period that matches the granularity of the Ceilometer polling interval. (In reply to Leif Madsen from comment #10) <snip> > > So at this point, I can confirm that using `naive` (and probably > `workload_partitioning`, but unverified currently) is working as intended, > and autoscaling works as intended. With libvirt_metadata, I'm seeing the > same issue as Paul found which is to be documented here. > > I think this issue is actually invalid though, and the documentation needs > no updating from the perspective of the InstanceDiscoveryMethod. It should > actually remain the same as the default libvirt_metadata, but something > either needs to be fixed, or updated, or parameters added to make sure Nova > sends the appropriate instance metadata via notification in a period that > matches the granularity of the Ceilometer polling interval. I swapped back and things are working again... maybe I just ran into an intermittent problem in my lab environment? I will re-test this from a brand new deployment now that I have everything operational, and if it's not an issue, then I can actually do what I wanted initially and close this as NOTABUG <fingers_crossed>. I've done further testing on this today, and it appears that both libvirt_metadata and naive work fine. I did a full environment rebuild with libvirt_metdata (default) and tested my documented procedures on autoscaling set up (to be updated as part of work in https://bugzilla.redhat.com/show_bug.cgi?id=2093375). I am going to be closing this issue as NOTABUG. No documentation changes or updates are required once the autoscaling guide has been refactored. Closing as this is deferred to the work tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2093375 which is nearing completion. Significant effort has been done to test this within the autoscaling guide and there are no documentation changes required as things are working with the current defaults. There are some other outstanding issues to resolve, but they are not applicable to the changes outlined here. |