Comment 3 for bug 1869075

Revision history for this message
Ryan Harper (raharper) wrote : Re: subiquity/curtin block probe error with zfcp disks

We create the vg on /dev/sda2

Running command ['vgcreate', '--force', '--zero=y', '--yes', 'ubuntu-vg', '/dev/sda2'] with allowed return codes [0] (capture=True)
 Running command ['pvscan'] with allowed return codes [0] (capture=True)
 Running command ['vgscan', '--mknodes'] with allowed return codes [0] (capture=True)
 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_volgroup: lvm_volgroup-0
 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lvm_partition-0

Running command ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatures=y', '--size', '4294967296.0B'] with allowed return codes [0] (capture=False)
   WARNING: Not using device /dev/sdb2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU.
   WARNING: Not using device /dev/sdc2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU.
   WARNING: Not using device /dev/sdd2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU.
   WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous.
   WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous.
   WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous.
   Cannot update volume group ubuntu-vg with duplicate PV devices.
 An error occured handling 'lvm_partition-0': ProcessExecutionError - Unexpected error while running command.
 Command: ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatures=y', '--size', '4294967296'

And then lvm looks at other *disks* on the system (and sees duplicates due to multipath).

It looks like curtin will need to dynamically enable lvm filters to ignore these:

--config 'devices{ filter = filter = [ "a|/dev/sda2$|" ] }'