Storage node fails to unlock when installing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Daniel Badea |
Bug Description
Storage node fails to unlock when installing
Brief Description
-----------------
Applying puppet manifest fails on storage node when running ceph-disk prepare command with the following log messages:
2018-
2018-
2018-
2018-
...
2018-
2018-
...
2018-
...
Severity
--------
Major (2nd unlock is successful)
Steps to Reproduce
------------------
1. install setup with dedicated storage
2. unlock storage node
Expected Behavior
------------------
Storage node should be able to configure OSDs and unlock successfully.
Actual Behavior
----------------
Applying puppet manifest fails on Exec[ceph-
Lock & unlock storage node seems to fix the issue.
Reproducibility
---------------
Depends on status of nodes before install (probably if OSDs were wiped or not).
System Configuration
-------
Dedicated storage.
Branch/Pull Time/Commit
-------
master
Changed in starlingx: | |
assignee: | nobody → Daniel Badea (daniel.badea) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.2019.03 stx.distro.openstack |
tags: |
added: stx.config removed: stx.distro.openstack |
tags: |
added: stx.2019.05 removed: stx.2019.03 |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Reviewed: https:/ /review. openstack. org/614627 /git.openstack. org/cgit/ openstack/ stx-integ/ commit/ ?id=2936d5d5689 2ee98b7c5613714 f7e89545614123
Committed: https:/
Submitter: Zuul
Branch: master
commit 2936d5d56892ee9 8b7c5613714f7e8 9545614123
Author: Daniel Badea <email address hidden>
Date: Wed Oct 31 19:34:14 2018 +0000
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: ceph-disk prepare ${cluster_option}
${cluster_ uuid_option} ${uuid_option}
--fs- type xfs --zap-disk ${data} ${journal}"
command => "/usr/sbin/
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:
https:/ /github. com/openstack/ puppet- ceph/commit/ ff2b2e689846dd3 d980c7c706c591e 8cfb8f33a9
Added --verbose and --log-stdout options to log commands executed
by 'ceph-disk prepare' and identify where it fails.
Closes-Bug: 1800889 7d5a1e6579924d4 5b999efe98f
Change-Id: I6b71147706edb9
Signed-off-by: Daniel Badea <email address hidden>