Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to set the optional logname attribute in the aix_filesystem #78

Open
sznicolas opened this issue Oct 21, 2017 · 0 comments
Open

Comments

@sznicolas
Copy link

sznicolas commented Oct 21, 2017

Cookbook version

1.2.1

Chef-client version

13.2.20

Platform Details

AIX 7200-01-01-1642

Scenario:

Run this recipe :

fssize = 5 * 1024

aix_logical_volume 'testchef_lv' do
  group 'data_vg'
  size  fssize
  action :create
end

aix_filesystem 'testchef' do
  logical 'testchef_lv'
  size  "#{fssize}M"
  name "/testchef"
  action [:create, :mount]
end

Steps to Reproduce:

Expected Result:

The filesystem is created and mounted.

Actual Result:

aixnode Compiling Cookbooks...
aixnode Converging 2 resources
aixnode Recipe: initialize::draft_fs_aix
aixnode   * aix_logical_volume[testchef_lv] action create
aixnode     - Create logical volume 'testchef_lv' on volume groupe 'data_vg'
aixnode   * aix_filesystem[/testchef] action create
aixnode [2017-10-10T14:13:22+02:00] FATAL: system error:logform: getattr failed: No such file or directory
aixnode  (up to date)
aixnode [2017-10-10T14:13:22+02:00] WARN: Skipping final node save because override_runlist was given
aixnode
aixnode Running handlers:
aixnode Running handlers complete
aixnode Chef Client finished, 1/2 resources updated in 08 seconds

Workaround :

Edit libraries/storage_objects.rb line 340 :

$>diff /tmp/storage_objects.rb libraries/storage_objects.rb
340c340
<       out = @system.run('crfs -v jfs2 -d %s -m %s -A yes' % [lvname, @name])
---
>       out = @system.run('crfs -v jfs2 -d %s -m %s -a logname="INLINE" -A yes' % [lvname, @name])

aixnode Compiling Cookbooks...
aixnode Converging 2 resources
aixnode Recipe: initialize::draft_fs_aix
aixnode   * aix_logical_volume[testchef_lv] action create
aixnode     - Create logical volume 'testchef_lv' on volume groupe 'data_vg'
aixnode   * aix_filesystem[/testchef] action create
aixnode     - Create file system '/testchef' on logical volume 'testchef_lv'
aixnode   * aix_filesystem[/testchef] action mount
aixnode     - File system '/testchef' mounted
aixnode [2017-10-10T15:11:24+02:00] WARN: Skipping final node save because override_runlist was given
aixnode
aixnode Running handlers:
aixnode Running handlers complete
aixnode Chef Client finished, 3/3 resources updated in 08 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant