Skip to content

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

@sznicolas

Description

@sznicolas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions