integ/config/puppet-modules/openstack
Daniel Badea 2936d5d568 ceph-disk prepare invalid data disk value
ceph-disk prepare data OSD parameter contains a new line causing
puppet manifest to fail:

1. $data = generate('/bin/bash','-c',"/bin/readlink -f ${name}")

   is expanded together with a new line in:

   exec { $ceph_prepare:
     command   => "/usr/sbin/ceph-disk prepare ${cluster_option}
                    ${cluster_uuid_option} ${uuid_option}
                    --fs-type xfs --zap-disk ${data} ${journal}"

   just before ${journal} is expanded. Puppet reports:

     sh: line 1: : command not found

   when trying to run '' (default journal value).

2. 'readlink' should be called when running ceph-disk prepare
   command, not when the puppet resource is defined. Let
   exec's shell call readlink instead of using puppet's
   generate() . See also:

     ff2b2e6898

Added --verbose and --log-stdout options to log commands executed
by 'ceph-disk prepare' and identify where it fails.

Closes-Bug: 1800889
Change-Id: I6b71147706edb97d5a1e6579924d45b999efe98f
Signed-off-by: Daniel Badea <daniel.badea@windriver.com>
2018-10-31 19:55:26 +00:00
..
puppet-ceilometer-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-ceph-2.2.0/centos ceph-disk prepare invalid data disk value 2018-10-31 19:55:26 +00:00
puppet-cinder-11.3.0/centos de-fuzz puppet-cinder patch 2018-10-09 23:02:50 +08:00
puppet-glance-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-gnocchi-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-heat-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-horizon-9.5.0/centos de-fuzz puppet-horizon patches 2018-09-27 20:48:22 +08:00
puppet-ironic-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-keystone-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-magnum-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-memcached-3.0.2/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-murano-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-neutron-11.3.0/centos de-fuzz puppet-neutron patch 2018-10-09 23:04:06 +08:00
puppet-nova-11.4.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-openstacklib-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-oslo-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-panko-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00
puppet-swift-11.3.0/centos Internal restructuring of stx-integ 2018-08-01 10:06:31 -04:00