06e361e0aa18b78bbe830b01fc3cc6d9cc1efca2
Prepare Watcher to use openstacksdk. This patch introduces a new function in the clients module to create a openstacksdk connection either using a user token, an existing keystone session or a new keystone session. Additionally, it adds a method to the newly introduced wrapper classes to create nova server, hypervisors, flavors, etc from the objects returned by the openstacksdk compute proxy. This patch also deprecates the nova_client configuration options and adds keystoneauth configuration options into the nova conf group, since that is required by the openstacksdk to create a Connection. The nova group will be the preferred section to configure the connnection to nova, with the currently used watcher_clients_auth as fallback to avoid upgrade impact. In the future, once all services are accessed through the openstacksdk, the watcher_clients_auth section should be removed. Add a call to the configure_keystoneauth function in the the devstack plugin to populate the [nova] section with the keystoneauth parameters. Assisted-By: claude-code (claude-sonnet-4.5) Change-Id: I7e297419243f16548a54e332609bbcbd19c3d758 Signed-off-by: jgilaber <jgilaber@redhat.com>
Watcher
OpenStack Watcher provides a flexible and scalable resource optimization service for multi-tenant OpenStack-based clouds. Watcher provides a robust framework to realize a wide range of cloud optimization goals, including the reduction of data center operating costs, increased system performance via intelligent virtual machine migration, increased energy efficiency and more!
- Free software: Apache license
- Wiki: https://wiki.openstack.org/wiki/Watcher
- Source: https://opendev.org/openstack/watcher
- Bugs: https://bugs.launchpad.net/watcher
- Documentation: https://docs.openstack.org/watcher/latest/
- Release notes: https://docs.openstack.org/releasenotes/watcher/
- Design specifications: https://specs.openstack.org/openstack/watcher-specs/
Description
Languages
Python
99.7%
Shell
0.3%