vitrage/devstack
Ghanshyam Mann 52c7cc2352 Multiple fixes: grenade job fix and python 3.8 drop
1. Enable the vitrage services on grenade target node

Grenade job need services to be enabled on base as well
as target node. Vitrage upgrade/setting file do enable the
vitrage services for target node[1] but those are only for
the case where grenade install the devstack[2]. Our CI
have devstack installed ready foer grenade(
GRENADE_USE_EXTERNAL_DEVSTACK=True) and because of that
vitrage grenade target node see vitrage services are not enabled[3]

To fix that we need to enable all the required services
on job definition.

2. grenade has enabled the GLOBAL_VENV by default and vitrage
grenade job needs to install and run everything from venv. This
fixes the vitrage bin directory locaiton otherwise it will fail
with below error
- https://zuul.opendev.org/t/openstack/build/cc87495cade64928a414ba26a4e53af1/log/controller/logs/grenade.sh_log.txt#12870

3. This drop the python 3.8 support. Removing the python 3.10
tox job from pipeline as that is running from generic template.

[1] cf07494171/devstack/upgrade/settings (L10)
[2] cf07494171/devstack/upgrade/settings (L10)
[3] https://zuul.opendev.org/t/openstack/build/639acc47689d433a92bcb692c9fd1028/log/controller/logs/grenade.sh_log.txt#12498

Change-Id: If3693de2ed582b467856b0163a92a7e8fd2d138d
2024-11-12 22:53:38 -08:00
..
upgrade Multiple fixes: grenade job fix and python 3.8 drop 2024-11-12 22:53:38 -08:00
apache-vitrage.template Adjust Vitrage api to support Prometheus datasource 2018-07-31 08:32:12 +00:00
override-defaults Get rid of warning caused by [service_credentials] region_name 2022-08-09 11:30:57 +00:00
plugin.sh Install pymemcache in devstack when needed 2024-01-15 12:30:21 +01:00
README.rst Replace git.openstack.org with opendev.org 2019-11-19 16:01:28 +08:00
settings Use SERVICE_PROTOCOL variable in the devstack plugin 2020-03-31 22:56:14 +03:00

Enabling Vitrage in DevStack

  1. Download DevStack:
git clone https://opendev.org/openstack-dev/devstack.git
cd devstack
  1. Add this repo as an external repository in local.conf file:
[[local|localrc]]
enable_plugin vitrage https://opendev.org/openstack/vitrage
  1. Add this to add notification from nova to vitrage
[[post-config|$NOVA_CONF]]
[DEFAULT]
notification_topics = notifications,vitrage_notifications
notification_driver = messagingv2

[notifications]
versioned_notifications_topics = versioned_notifications,vitrage_notifications
notification_driver = messagingv2
notification_format = both
  1. Add this to add notification from neutron to vitrage (make sure neutron is enabled in devstack)
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
notification_topics = notifications,vitrage_notifications
notification_driver = messagingv2
  1. Add this to add notification from cinder to vitrage
[[post-config|$CINDER_CONF]]
[DEFAULT]
notification_topics = notifications,vitrage_notifications
notification_driver = messagingv2
  1. Add this to add notification from heat to vitrage and change default policy
[[post-config|$HEAT_CONF]]
[DEFAULT]
notification_topics = notifications,vitrage_notifications
notification_driver = messagingv2
policy_file = /etc/heat/policy.yaml
  1. Add this to add notification from aodh to vitrage
[[post-config|$AODH_CONF]]
[oslo_messaging_notifications]
driver = messagingv2
topics = notifications,vitrage_notifications
  1. Run ./stack.sh