Bug 906471 - device being mounted has hardcoded path when using xfs
Summary: device being mounted has hardcoded path when using xfs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: snapshot3
: 2.1
Assignee: Derek Higgins
QA Contact: Attila Fazekas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-31 17:04 UTC by Derek Higgins
Modified: 2013-06-11 15:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 15:28:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Derek Higgins 2013-01-31 17:04:20 UTC
Description of problem:
When using packstack to deploy swift with xfs storage the following error occurs

2013-01-30 18:34:06::ERROR::ospluginutils::135::root:: Error  during remote puppet apply of /var/tmp/packstack/20130130-1830/manifests/172.16.10.152_swift.pp
2013-01-30 18:34:06::ERROR::ospluginutils::136::root:: [0;33mwarning: Scope(Swift::Storage::Server[6002]): swift storage server account must specify account-server[0m
[0;33mwarning: Scope(Swift::Storage::Server[6001]): swift storage server container must specify container-server[0m
[0;33mwarning: Scope(Swift::Storage::Server[6000]): swift storage server object must specify object-server[0m
[0;36mnotice: /Stage[main]//Exec[setenforce 0]/returns: executed successfully[0m
[0;36mnotice: /Stage[main]//Swift::Storage::Loopback[device1]/Swift::Storage::Xfs[device1]/Swift::Storage::Mount[device1]/Exec[mount_device1]/returns: /dev/device1: No such file or directory[0m
[1;35merr: /Stage[main]//Swift::Storage::Loopback[device1]/Swift::Storage::Xfs[device1]/Swift::Storage::Mount[device1]/Exec[mount_device1]/returns: change from notrun to 0 failed: mount /srv/node/device1 returned 32 instead of one of [0] at /var/tmp/packstack/20130130-1830/modules/swift/manifests/storage/mount.pp:49[0m
[0;36mnotice: /Stage[main]//Swift::Storage::Loopback[device1]/Swift::Storage::Xfs[device1]/Swift::Storage::Mount[device1]/Exec[fix_mount_permissions_device1]: Dependency Exec[mount_device1] has failures: true[0m
[0;33mwarning: /Stage[main]//Swift::Storage::Loopback[device1]/Swift::Storage::Xfs[device1]/Swift::Storage::Mount[device1]/Exec[fix_mount_permissions_device1]: Skipping because of failed dependencies[0m
[0;36mnotice: Finished catalog run in 146.22 seconds[0m
 
2013-01-30 18:34:06::ERROR::run_setup::814::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 806, in main
    _main(confFile)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 593, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 569, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 57, in runAllSequences
    sequence.run()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_sequences.py", line 154, in run
    step.run()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_sequences.py", line 60, in run
    function()
  File "/usr/lib/python2.6/site-packages/packstack/plugins/puppet_950.py", line 123, in applyPuppetManifest
    waitforpuppet(currently_running)
  File "/usr/lib/python2.6/site-packages/packstack/plugins/puppet_950.py", line 111, in waitforpuppet
    validate_puppet_logfile(log)
  File "/usr/lib/python2.6/site-packages/packstack/modules/ospluginutils.py", line 137, in validate_puppet_logfile
    raise PackStackError(message)
PackStackError: Error during puppet run : err: /Stage[main]//Swift::Storage::Loopback[device1]/Swift::Storage::Xfs[device1]/Swift::Storage::Mount[device1]/Exec[mount_device1]/returns: change from notrun to 0 failed: mount /srv/node/device1 returned 32 instead of one of [0] at /var/tmp/packstack/20130130-1830/modules/swift/manifests/storage/mount.pp:49[0m

In answer file :
CONFIG_SWIFT_STORAGE_FSTYPE=xfs


Originally reported here
https://github.com/fedora-openstack/packstack/issues/51

Comment 1 Derek Higgins 2013-01-31 17:09:14 UTC
Fix submitted upstream
https://review.openstack.org/20915

Cherry picked this commit from upstream puppet module
https://github.com/puppetlabs/puppetlabs-swift/commit/b379804ca98549c74a64cc80c1ebc335d29f73e0


Note You need to log in before you can comment on or make changes to this bug.