Browse Source

Dell EMC VMAX: Fixes driver dependency using ensure

VMAX cinder ISCSI driver requires python pywbem package.
The patch ensures the package to be installed

Closes Bug: #1731309

Change-Id: I9e09aa3ef572189ce875b96847e1d303fe8eb3b0
(cherry picked from commit 1eb43b2b97)
tags/10.4.0
rajinir 2 years ago
parent
commit
9dd8486c12
4 changed files with 13 additions and 0 deletions
  1. +5
    -0
      manifests/backend/dellemc_vmax_iscsi.pp
  2. +2
    -0
      manifests/params.pp
  3. +5
    -0
      releasenotes/notes/vmax-driver-d428e372280c44e6.yaml
  4. +1
    -0
      spec/defines/cinder_backend_dellemc_vmax_spec.rb

+ 5
- 0
manifests/backend/dellemc_vmax_iscsi.pp View File

@@ -53,6 +53,11 @@ define cinder::backend::dellemc_vmax_iscsi (
}
}

ensure_packages( 'pywbem', {
ensure => present,
name => $::cinder::param::pywbem_package_name,
tag => 'cinder-support-package'})

create_resources('cinder_config', $extra_options)

}

+ 2
- 0
manifests/params.pp View File

@@ -26,6 +26,7 @@ class cinder::params {
$lio_package_name = 'targetcli'
$lock_path = '/var/lock/cinder'
$cinder_wsgi_script_path = '/usr/lib/cgi-bin/cinder'
$pywbem_package_name = 'python-pywbem'

} elsif($::osfamily == 'RedHat') {

@@ -45,6 +46,7 @@ class cinder::params {
$lio_package_name = 'targetcli'
$lock_path = '/var/lib/cinder/tmp'
$cinder_wsgi_script_path = '/var/www/cgi-bin/cinder'
$pywbem_package_name = 'pywbem'

case $::operatingsystem {
'RedHat', 'CentOS', 'Scientific', 'OracleLinux': {

+ 5
- 0
releasenotes/notes/vmax-driver-d428e372280c44e6.yaml View File

@@ -0,0 +1,5 @@
---
fixes:
- Fixes `bug 1731309
<https://bugs.launchpad.net/puppet-cinder/+bug/1731309>`__
to ensure package dependency of pywben for VMAX driver.

+ 1
- 0
spec/defines/cinder_backend_dellemc_vmax_spec.rb View File

@@ -16,6 +16,7 @@ describe 'cinder::backend::dellemc_vmax_iscsi' do

describe 'dell emc vmax iscsi volume driver' do
it 'configure dell emc vmax iscsi volume driver' do
is_expected.to contain_package('pywbem').with(:ensure => :present)
is_expected.to contain_cinder_config('dellemc_vmax_iscsi/volume_driver').with_value('cinder.volume.drivers.emc.emc_vmax_iscsi.EMCVMAXISCSIDriver')
is_expected.to contain_cinder_config('dellemc_vmax_iscsi/cinder_emc_config_file').with_value('/etc/cinder/cinder_emc_config_CONF_GROUP_ISCSI.xml')
end

Loading…
Cancel
Save