Hi Arsène Gschwind, it's really strange that you see "Add" on a LUN that already has been added to the database. to verify the steps you did make at first, 1- Storage -> Storage Domains 2- New Domain - [ select iSCSI ] 3- click on "+" on the iscsi target, then you see the "Add" button is available 4- after clicking add and ok, then this error will be shown in the logs is that right?
can you also attach vdsm log? On Tue, Jul 14, 2020 at 1:15 PM Arsène Gschwind <[email protected]> wrote: > Hello all, > > I've checked all my multipath configuration and everything seems korrekt. > Is there a way to correct this, may be in the DB? > > I really need some help, thanks a lot. > Arsène > > On Tue, 2020-07-14 at 00:29 +0000, Arsène Gschwind wrote: > > HI, > > I'm having a strange behavior with a SD. When trying to manage the SD I > see they "Add" button for the LUN which should already be the one use for > that SD. > In the Logs I see the following: > > 2020-07-13 17:48:07,292+02 ERROR > [org.ovirt.engine.core.dal.dbbroker.BatchProcedureExecutionConnectionCallback] > (EE-ManagedThreadFactory-engine-Thread-95) [51091853] Can't execute batch: > Batch entry 0 select * from public.insertluns(CAST ('repl_HanaLogs_osd_01' > AS varchar),CAST ('DPUtaW-Q5zp-aZos-HriP-5Z0v-hiWO-w7rmwG' AS varchar),CAST > ('4TCXZ7-R1l1-xkdU-u0vx-S3n4-JWcE-qksPd1' AS varchar),CAST > ('SHUAWEI_XSG1_2102350RMG10HC0000200035' AS varchar),CAST (7 AS int4),CAST > ('HUAWEI' AS varchar),CAST ('XSG1' AS varchar),CAST (2548 AS int4),CAST > (268435456 AS int8)) as result was aborted: ERROR: duplicate key value > violates unique constraint "pk_luns" > Detail: Key (lun_id)=(repl_HanaLogs_osd_01) already exists. > Where: SQL statement "INSERT INTO LUNs ( > LUN_id, > physical_volume_id, > volume_group_id, > serial, > lun_mapping, > vendor_id, > product_id, > device_size, > discard_max_size > ) > VALUES ( > v_LUN_id, > v_physical_volume_id, > v_volume_group_id, > v_serial, > v_lun_mapping, > v_vendor_id, > v_product_id, > v_device_size, > v_discard_max_size > )" > PL/pgSQL function insertluns(character varying,character varying,character > varying,character varying,integer,character varying,character > varying,integer,bigint) line 3 at SQL statement Call getNextException to > see other errors in the batch. > 2020-07-13 17:48:07,292+02 ERROR > [org.ovirt.engine.core.dal.dbbroker.BatchProcedureExecutionConnectionCallback] > (EE-ManagedThreadFactory-engine-Thread-95) [51091853] Can't execute batch. > Next exception is: ERROR: duplicate key value violates unique constraint > "pk_luns" > Detail: Key (lun_id)=(repl_HanaLogs_osd_01) already exists. > Where: SQL statement "INSERT INTO LUNs ( > LUN_id, > physical_volume_id, > volume_group_id, > serial, > lun_mapping, > vendor_id, > product_id, > device_size, > discard_max_size > ) > VALUES ( > v_LUN_id, > v_physical_volume_id, > v_volume_group_id, > v_serial, > v_lun_mapping, > v_vendor_id, > v_product_id, > v_device_size, > v_discard_max_size > )" > PL/pgSQL function insertluns(character varying,character varying,character > varying,character varying,integer,character varying,character > varying,integer,bigint) line 3 at SQL statement > 2020-07-13 17:48:07,293+02 > INFO [org.ovirt.engine.core.utils.transaction.TransactionSupport] > (EE-ManagedThreadFactory-engine-Thread-95) [51091853] transaction rolled > back > 2020-07-13 17:48:07,293+02 ERROR > [org.ovirt.engine.core.bll.storage.domain.SyncLunsInfoForBlockStorageDomainCommand] > (EE-ManagedThreadFactory-engine-Thread-95) [51091853] Command > 'org.ovirt.engine.core.bll.storage.domain.SyncLunsInfoForBlockStorageDomainCommand' > failed: ConnectionCallback; ]; ERROR: duplicate key value violates unique > constraint "pk_luns" > Detail: Key (lun_id)=(repl_HanaLogs_osd_01) already exists. > Where: SQL statement "INSERT INTO LUNs ( > LUN_id, > physical_volume_id, > volume_group_id, > serial, > lun_mapping, > vendor_id, > product_id, > device_size, > discard_max_size > ) > VALUES ( > v_LUN_id, > v_physical_volume_id, > v_volume_group_id, > v_serial, > v_lun_mapping, > v_vendor_id, > v_product_id, > v_device_size, > v_discard_max_size > )" > > It looks like the engine will add a LUN to an SD and it already exist... > Any Idea how to resolve that problem? > > Thanks a lot > > > -- > > > Arsène Gschwind <[email protected]> > Universitaet Basel > > _______________________________________________ > > Users mailing list -- > > [email protected] > > > To unsubscribe send an email to > > [email protected] > > > Privacy Statement: > > https://www.ovirt.org/privacy-policy.html > > > oVirt Code of Conduct: > > https://www.ovirt.org/community/about/community-guidelines/ > > > List Archives: > > https://lists.ovirt.org/archives/list/[email protected]/message/2YE7ZX53W4WDLHJW34P5CQTGTHW4RJGY/ > > > -- > > Arsène Gschwind <[email protected]> > Universitaet Basel > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/[email protected]/message/4UNSPGYZPYRQDZNF4GMFROK4GIDYPHS7/ > -- Ahmad Khiet Red Hat <https://www.redhat.com/> [email protected] M: +972-54-6225629 <https://red.ht/sig>
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/PQYOUQZ3HNWQ3LF5WCWPAQMYYI4WZKB3/

