Enable libvirt-guests
The feature can be easily tested in CI. Depends-on: https://review.opendev.org/c/openstack/puppet-nova/+/901605 Change-Id: Ib47a11415d04df47dc3085a93475a5293ba7de5e
This commit is contained in:
parent
b286d250b6
commit
e861ca14b1
22
copy_logs.sh
22
copy_logs.sh
@ -67,6 +67,12 @@ cp ${WORKSPACE}/puppet*.log $LOG_DIR
|
|||||||
|
|
||||||
# Archive the project config & logs
|
# Archive the project config & logs
|
||||||
mkdir $LOG_DIR/etc/
|
mkdir $LOG_DIR/etc/
|
||||||
|
if uses_debs; then
|
||||||
|
mkdir -p $LOG_DIR/etc/default
|
||||||
|
elif is_fedora; then
|
||||||
|
mkdir -p $LOG_DIR/etc/sysconfig
|
||||||
|
fi
|
||||||
|
|
||||||
for p in $PROJECTS; do
|
for p in $PROJECTS; do
|
||||||
if [ -d /etc/$p ]; then
|
if [ -d /etc/$p ]; then
|
||||||
sudo cp -r /etc/$p $LOG_DIR/etc/
|
sudo cp -r /etc/$p $LOG_DIR/etc/
|
||||||
@ -97,7 +103,6 @@ fi
|
|||||||
|
|
||||||
# network interfaces
|
# network interfaces
|
||||||
if [ -d /etc/sysconfig/network-scripts ]; then
|
if [ -d /etc/sysconfig/network-scripts ]; then
|
||||||
mkdir -p $LOG_DIR/etc/sysconfig
|
|
||||||
sudo cp -r /etc/sysconfig/network-scripts $LOG_DIR/etc/sysconfig/
|
sudo cp -r /etc/sysconfig/network-scripts $LOG_DIR/etc/sysconfig/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -127,7 +132,7 @@ if uses_debs; then
|
|||||||
if [ -d /var/log/mysql ] ; then
|
if [ -d /var/log/mysql ] ; then
|
||||||
sudo cp -r /var/log/mysql $LOG_DIR/
|
sudo cp -r /var/log/mysql $LOG_DIR/
|
||||||
fi
|
fi
|
||||||
else
|
elif is_fedora; then
|
||||||
if [ -f /etc/my.cnf ] ; then
|
if [ -f /etc/my.cnf ] ; then
|
||||||
sudo cp /etc/my.cnf $LOG_DIR/etc/
|
sudo cp /etc/my.cnf $LOG_DIR/etc/
|
||||||
fi
|
fi
|
||||||
@ -194,6 +199,15 @@ fi
|
|||||||
if [ -d /etc/libvirt ]; then
|
if [ -d /etc/libvirt ]; then
|
||||||
sudo cp -r /etc/libvirt $LOG_DIR/etc/
|
sudo cp -r /etc/libvirt $LOG_DIR/etc/
|
||||||
fi
|
fi
|
||||||
|
if uses_debs ; then
|
||||||
|
if [ -f /etc/default/libvirt-guests ]; then
|
||||||
|
sudo cp -r /etc/default/libvirt-guests $LOG_DIR/etc/default
|
||||||
|
fi
|
||||||
|
elif is_fedora; then
|
||||||
|
if [ -f /etc/sysconfig/libvirt-guests ]; then
|
||||||
|
sudo cp -r /etc/sysconfig/libvirt-guests $LOG_DIR/etc/sysconfig
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# openvswitch
|
# openvswitch
|
||||||
if [ -d /etc/openvswitch ] ; then
|
if [ -d /etc/openvswitch ] ; then
|
||||||
@ -215,14 +229,12 @@ fi
|
|||||||
if uses_debs ; then
|
if uses_debs ; then
|
||||||
for f in ovn-central ovn-host ; do
|
for f in ovn-central ovn-host ; do
|
||||||
if [ -f /etc/default/$f ]; then
|
if [ -f /etc/default/$f ]; then
|
||||||
mkdir -p $LOG_DIR/etc/default
|
|
||||||
sudo cp /etc/default/$f $LOG_DIR/etc/default/
|
sudo cp /etc/default/$f $LOG_DIR/etc/default/
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
for f in ovn-northd ovn-controller ; do
|
for f in ovn-northd ovn-controller ; do
|
||||||
if [ -f /etc/sysconfig/$f ]; then
|
if [ -f /etc/sysconfig/$f ]; then
|
||||||
mkdir -p $LOG_DIR/etc/sysconfig
|
|
||||||
sudo cp /etc/sysconfig/$f $LOG_DIR/etc/sysconfig/
|
sudo cp /etc/sysconfig/$f $LOG_DIR/etc/sysconfig/
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -242,7 +254,7 @@ if uses_debs; then
|
|||||||
sudo cp ${apache_conf}/${d}/* $LOG_DIR${apache_conf}/${d}/
|
sudo cp ${apache_conf}/${d}/* $LOG_DIR${apache_conf}/${d}/
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
elif is_fedora; then
|
||||||
apache_conf=/etc/httpd
|
apache_conf=/etc/httpd
|
||||||
apache_logs=/var/log/httpd
|
apache_logs=/var/log/httpd
|
||||||
for d in conf conf.d conf.modules.d ; do
|
for d in conf conf.d conf.modules.d ; do
|
||||||
|
@ -57,8 +57,9 @@ class { 'openstack_integration::neutron':
|
|||||||
}
|
}
|
||||||
include openstack_integration::placement
|
include openstack_integration::placement
|
||||||
class { 'openstack_integration::nova':
|
class { 'openstack_integration::nova':
|
||||||
cinder_enabled => true,
|
cinder_enabled => true,
|
||||||
modular_libvirt => $modular_libvirt,
|
modular_libvirt => $modular_libvirt,
|
||||||
|
libvirt_guests_enabled => true,
|
||||||
}
|
}
|
||||||
class { 'openstack_integration::octavia':
|
class { 'openstack_integration::octavia':
|
||||||
provider_driver => 'ovn'
|
provider_driver => 'ovn'
|
||||||
|
@ -31,14 +31,19 @@
|
|||||||
# (optional) Boolean to configure or not cinder options.
|
# (optional) Boolean to configure or not cinder options.
|
||||||
# Defaults to false.
|
# Defaults to false.
|
||||||
#
|
#
|
||||||
|
# [*libvirt_guests_enabled*]
|
||||||
|
# (optional) Boolean to configure or not libvirt-guests
|
||||||
|
# Defaults to false.
|
||||||
|
#
|
||||||
class openstack_integration::nova (
|
class openstack_integration::nova (
|
||||||
$libvirt_rbd = false,
|
$libvirt_rbd = false,
|
||||||
$libvirt_virt_type = 'qemu',
|
$libvirt_virt_type = 'qemu',
|
||||||
$libvirt_cpu_mode = 'none',
|
$libvirt_cpu_mode = 'none',
|
||||||
$modular_libvirt = false,
|
$modular_libvirt = false,
|
||||||
$volume_encryption = false,
|
$volume_encryption = false,
|
||||||
$notification_topics = $facts['os_service_default'],
|
$notification_topics = $facts['os_service_default'],
|
||||||
$cinder_enabled = false,
|
$cinder_enabled = false,
|
||||||
|
$libvirt_guests_enabled = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include openstack_integration::config
|
include openstack_integration::config
|
||||||
@ -280,6 +285,12 @@ class openstack_integration::nova (
|
|||||||
auth_type => 'password',
|
auth_type => 'password',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if $libvirt_guests_enabled {
|
||||||
|
class { 'nova::compute::libvirt_guests':
|
||||||
|
enabled => true,
|
||||||
|
manage_service => true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Keystone_endpoint <||> -> Service['nova-compute']
|
Keystone_endpoint <||> -> Service['nova-compute']
|
||||||
Keystone_service <||> -> Service['nova-compute']
|
Keystone_service <||> -> Service['nova-compute']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user