Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1155637 - [hosted-engine][iscsi] [dirty storage] [ ERROR ] Failed to execute stage 'Misc configuration': Wrong Master domain or its version:
[hosted-engine][iscsi] [dirty storage] [ ERROR ] Failed to execute stage 'Mis...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity urgent
: ovirt-3.6.0-rc
: 3.6.0
Assigned To: Simone Tiraboschi
Elad
: ZStream
: 1158822 (view as bug list)
Depends On: 1215623 1220824
Blocks: 1150419 1199905
  Show dependency treegraph
 
Reported: 2014-10-22 10:02 EDT by Jiri Belka
Modified: 2016-03-09 14:06 EST (History)
11 users (show)

See Also:
Fixed In Version: ovirt-hosted-engine-setup-1.2.1-5.el7ev
Doc Type: Bug Fix
Doc Text:
Additional VDSM flags have been added to improve handling of pre-existing storage domains in hosted engine deployments.
Story Points: ---
Clone Of:
: 1199905 (view as bug list)
Environment:
Last Closed: 2016-03-09 14:06:05 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Integration
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
/var/log (146.14 KB, application/x-xz)
2014-10-22 10:02 EDT, Jiri Belka
no flags Details
metadata lv data (9.54 MB, application/x-xz)
2014-10-23 05:36 EDT, Jiri Belka
no flags Details
logs (223.42 KB, application/x-gzip)
2014-12-25 05:15 EST, Elad
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 35351 master MERGED packaging: setup: better handling of preexisting storage domain Never
oVirt gerrit 35388 ovirt-hosted-engine-setup-1.2 MERGED packaging: setup: better handling of preexisting storage domain Never
oVirt gerrit 36811 master MERGED packaging: setup: better handling of dirty storage Never
Red Hat Product Errata RHEA-2016:0375 normal SHIPPED_LIVE ovirt-hosted-engine-setup bug fix and enhancement update 2016-03-09 18:48:34 EST

  None (edit)
Description Jiri Belka 2014-10-22 10:02:28 EDT
Created attachment 949403 [details]
/var/log

Description of problem:

hosted-engine --deploy # with iscsi storage for the VM.
...
          Please specify the storage you would like to use (iscsi, nfs3, nfs4)[nfs3]: iscsi
          Please specify the iSCSI portal IP address: 10.34.63.202
          Please specify the iSCSI portal port [3260]: 
          Please specify the iSCSI portal user: 
          Please specify the target name (iqn.2011-01.brq.str-01:pstehlik, iqn.2012-06.brq.str-01:brq-setup, iqn.2012-10.brq.str-01:cmestreg, iqn.2012-10.brq.str-01:kjachim, iqn
.2012-10.brq.str-01:lbednar, iqn.2012-10.brq.str-01:mbetak, iqn.2013-12.brq.str-01:ha-tests, iqn.2013-12.brq.str-01:jbelka, iqn.2013-12.brq.str-01:mpavlik) [iqn.2011-01.brq.str-
01:pstehlik]: iqn.2013-12.brq.str-01:jbelka 
          The following luns have been found on the requested target:
                 1 - sdb - 18432MB
                 2 - sdc - 18432MB
                 3 - sdd - 30720MB
          Please specify the lun id (1, 2, 3) [1]: 3
          The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? No
[ INFO  ] Installing on first host
          Please provide storage domain name. [hosted_storage]:
...
        --== CONFIGURATION PREVIEW ==--
         
          Engine FQDN                        : jb-hostedengine.rhev.lab.eng.brq.redhat.com
          Bridge name                        : rhevm
          SSH daemon port                    : 22
          Firewall manager                   : iptables
          Gateway address                    : 10.34.63.254
          Host name for web application      : hosted_engine_1
          iSCSI Target Name                  : iqn.2013-12.brq.str-01:jbelka
          iSCSI Portal port                  : 3260
          Host ID                            : 1
          iSCSI LUN ID                       : 3
          Image size GB                      : 25
          iSCSI Portal IP Address            : 10.34.63.202
          iSCSI Portal user                  : 
          Console type                       : vnc
          Memory size MB                     : 4096
          MAC address                        : 00:16:3e:34:d7:a1
          Boot type                          : pxe
          Number of CPUs                     : 2
          CPU Type                           : model_SandyBridge
...
[ INFO  ] Connecting Storage Pool
[ ERROR ] Failed to execute stage 'Misc configuration': Wrong Master domain or its version: 'SD=e133f938-1bce-4777-b3da-e9f951a377f8, pool=00000002-0002-0002-0002-0000000001f1'
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
[ INFO  ] Answer file '/etc/ovirt-hosted-engine/answers.conf' has been updated
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination

Version-Release number of selected component (if applicable):
vdsm-4.16.7-1.el6ev.x86_64
vdsm-python-4.16.7-1.el6ev.noarch
ovirt-hosted-engine-ha-1.2.4-1.el6ev.noarch
vdsm-python-zombiereaper-4.16.7-1.el6ev.noarch
ovirt-host-deploy-1.3.0-1.el6ev.noarch
vdsm-xmlrpc-4.16.7-1.el6ev.noarch
vdsm-yajsonrpc-4.16.7-1.el6ev.noarch
ovirt-hosted-engine-setup-1.2.1-1.el6ev.noarch
vdsm-cli-4.16.7-1.el6ev.noarch
vdsm-jsonrpc-4.16.7-1.el6ev.noarch

How reproducible:
100 %

Steps to Reproduce:
1. hosted-engine --deploy # use iscsi
2.
3.

Actual results:
failes on some domain issue

Expected results:
should work

Additional info:
Comment 1 Jiri Belka 2014-10-23 05:32:39 EDT
(existing) 'metadata' lv is doesn't have filesystem, strings against raw lv and output is in attachment.

[root@dell-r210ii-04 ~]# multipath -ll /dev/dm-4
1jbelka03 dm-4 RH-str01,VIRTUAL-DISK
size=30G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 7:0:0:3 sdd 8:48 active ready running

[root@dell-r210ii-04 ~]# pvs /dev/mapper/1jbelka03
  PV                    VG                                   Fmt  Attr PSize  PFree 
  /dev/mapper/1jbelka03 e133f938-1bce-4777-b3da-e9f951a377f8 lvm2 a--  29.62g 25.50g

[root@dell-r210ii-04 ~]# lvs e133f938-1bce-4777-b3da-e9f951a377f8
  LV                                   VG                                   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  33a2ea30-7e68-4c24-9920-c478772cbc2b e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 128.00m                                                    
  63374fb6-94be-4d40-be5a-5c91b451be72 e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 128.00m                                                    
  ids                                  e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 128.00m                                                    
  inbox                                e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 128.00m                                                    
  leases                               e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a-----   2.00g                                                    
  master                               e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a-----   1.00g                                                    
  metadata                             e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 512.00m                                                    
  outbox                               e133f938-1bce-4777-b3da-e9f951a377f8 -wi-a----- 128.00m

[root@dell-r210ii-04 ~]# blkid | grep e133
/dev/mapper/e133f938--1bce--4777--b3da--e9f951a377f8-master: UUID="ae3d2f7c-e199-4dc9-9fe3-8459f445d35c" SEC_TYPE="ext2" TYPE="ext3"
Comment 2 Jiri Belka 2014-10-23 05:36:22 EDT
Created attachment 949768 [details]
metadata lv data
Comment 3 Jiri Belka 2014-10-23 05:49:02 EDT
i'll try with clean iscsi lun but later, now verificationthon :)
Comment 4 Sandro Bonazzola 2014-10-23 07:15:00 EDT
Which kind of storage domain was in lun 3 before running hosted-engine --deploy?

 Please specify the lun id (1, 2, 3) [1]: 3
 The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]? No
Comment 5 Jiri Belka 2014-10-23 08:31:24 EDT
data domain
Comment 6 Doron Fediuck 2014-10-28 09:19:17 EDT
This has nothing to do with bug 1149634, removing dependency.
Next time please verify with the relevant team before creating such dependency.

This issue is a result of a dirty environment. It should not effect
any proper upgrade or clean install.
Comment 7 Sandro Bonazzola 2014-10-30 06:25:11 EDT
*** Bug 1158822 has been marked as a duplicate of this bug. ***
Comment 8 Sandro Bonazzola 2014-11-20 02:44:33 EST
Re-targeting to 3.5.0 after discussion about current implementation with storage team.
Comment 10 Elad 2014-12-25 05:12:58 EST
Used a LUN that have a storage domain which was master domain in a different setup.
Deployment still fails with the same error:


RuntimeError: Wrong Master domain or its version: 'SD=ae05**FILTERED**daa-e6**FILTERED**f-42e8-8fd9-b67f338c5365, pool=00000002-0002-0002-0002-00000000037b'
20**FILTERED**4-**FILTERED**2-25 **FILTERED**2:02:2**FILTERED** ERROR otopi.context context._executeMethod:**FILTERED**6**FILTERED** Failed to execute stage 'Misc configuration': Wrong Master domain or its version
: 'SD=ae05**FILTERED**daa-e6**FILTERED**f-42e8-8fd9-b67f338c5365, pool=00000002-0002-0002-0002-00000000037b'

Checked using rhev 3.5 vt13.5 
ovirt-hosted-engine-setup-1.2.1-8.el6ev.noarch
vdsm-4.16.8.1-4.el6ev.x86_64
sanlock-2.8-1.el6.x86_64
selinux-policy-3.7.19-260.el6_6.1.noarch

Re-openning
Comment 11 Elad 2014-12-25 05:15:31 EST
Created attachment 972966 [details]
logs
Comment 13 Sandro Bonazzola 2015-02-18 09:19:37 EST
Simone, this BZ is in post but I see all referenced patches have been merged.
Can you sync this BZ status?
Comment 15 Elad 2015-05-19 07:38:03 EDT
Cannot be tested due to https://bugzilla.redhat.com/show_bug.cgi?id=1215623
Comment 16 Elad 2015-06-17 05:51:54 EDT
Deployment over a dirty LUN that contained a data domain in it works as expected.

Verified using 3.6.0-1

vdsm-4.17.0-912.git25a063d.el7.noarch
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150518075146.gitdd9741f.el7.noarch
Comment 18 errata-xmlrpc 2016-03-09 14:06:05 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0375.html

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