Description of problem:
When adding a new host to a dc which has a block domain,vdsm skips the creation of
/rhev/data-center/mnt/blockSD/<SD>/dom_md/* directories.
root@camel-vdsb> tree /rhev/data-center
.
├── 00000002-0002-0002-0002-000000000204
│ ├── 118a5452-8beb-49ed-a0ae-daae113e7d54 -> /rhev/data-center/mnt/10.35.160.108:_RHEV_ogofen_1/118a5452-8beb-49ed-a0ae-daae113e7d54
│ ├── c2d6cb5e-268a-4870-b428-f29f8fa48d89 -> /rhev/data-center/mnt/blockSD/c2d6cb5e-268a-4870-b428-f29f8fa48d89
│ ├── ecf81e7e-f8bb-42b5-ab7a-0285d9c5f523 -> /rhev/data-center/mnt/10.35.160.108:_RHEV_ogofen_3/ecf81e7e-f8bb-42b5-ab7a-0285d9c5f523
│ └── mastersd -> /rhev/data-center/mnt/10.35.160.108:_RHEV_ogofen_3/ecf81e7e-f8bb-42b5-ab7a-0285d9c5f523
└── mnt
├── 10.35.160.108:_RHEV_ogofen_1
│ ├── 118a5452-8beb-49ed-a0ae-daae113e7d54
│ │ ├── dom_md
│ │ │ ├── ids
│ │ │ ├── inbox
│ │ │ ├── leases
│ │ │ ├── metadata
│ │ │ └── outbox
│ │ ├── images
│ │ └── master
│ └── __DIRECT_IO_TEST__
├── 10.35.160.108:_RHEV_ogofen_3
│ ├── __DIRECT_IO_TEST__
│ └── ecf81e7e-f8bb-42b5-ab7a-0285d9c5f523
│ ├── dom_md
│ │ ├── ids
│ │ ├── inbox
│ │ ├── leases
│ │ ├── metadata
│ │ └── outbox
│ ├── images
│ └── master
│ ├── tasks
│ └── vms
└── blockSD
└── c2d6cb5e-268a-4870-b428-f29f8fa48d89
├── dom_md
└── images
where blockSD should be
└── blockSD
└── c2d6cb5e-268a-4870-b428-f29f8fa48d89
├── dom_md
│ ├── ids -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/ids
│ ├── inbox -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/inbox
│ ├── leases -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/leases
│ ├── master -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/master
│ ├── metadata -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/metadata
│ └── outbox -> /dev/c2d6cb5e-268a-4870-b428-f29f8fa48d89/outbox
└── images
Version-Release number of selected component (if applicable):
beta.1
How reproducible:
100%
Steps to Reproduce:
1.create a dc with 2 or more domains(one should be iscsi)
2.add new host to dc
Actual results:
dom_md dirs are not created
Expected results:
dom_md should be created
Additional info:
Comment 1Federico Simoncelli
2014-08-06 09:12:40 UTC
The directories and links are created in lazy mode for block domains (the first time they're required). Is there any real problem that you encountered?
I believe that this problem leads to SMP switch issues when the master domain is Block,but for now I don't have the proper steps to reproduce.
Comment 3Federico Simoncelli
2014-08-11 12:20:02 UTC
(In reply to Ori from comment #2)
> I believe that this problem leads to SMP switch issues when the master
> domain is Block,but for now I don't have the proper steps to reproduce.
This should be fairly easy to reproduce. Please attach the evidence of any real problem.