Bug 1301105 - hosted_storage Domain does not get imported in case the Storage Domain is renamed
Summary: hosted_storage Domain does not get imported in case the Storage Domain is ren...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.0.1
: 4.0.1
Assignee: Jenny Tokar
QA Contact: Artyom
URL:
Whiteboard:
: 1294457 (view as bug list)
Depends On:
Blocks: RHEV_36_HTB
TreeView+ depends on / blocked
 
Reported: 2016-01-22 15:34 UTC by Martin Tessun
Modified: 2016-08-23 20:31 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-23 20:31:53 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1743 0 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0 GA Enhancement (ovirt-engine) 2016-09-02 21:54:01 UTC
oVirt gerrit 58422 0 master MERGED core: Use the hosted storage domain id instead of name when importing it 2020-07-31 14:50:19 UTC
oVirt gerrit 60255 0 ovirt-engine-4.0 MERGED core: Use the hosted storage domain id instead of name when importing it 2020-07-31 14:50:19 UTC
oVirt gerrit 60267 0 ovirt-engine-4.0.1 MERGED core: Use the hosted storage domain id instead of name when importing it 2020-07-31 14:50:17 UTC

Description Martin Tessun 2016-01-22 15:34:48 UTC
Description of problem:
If during hosted-engine --deploy a different name than hosted_storage is chosen for the Storage Domain Name, this SD does not get imported to RHEV-M.
Even after importing manually the Hosted Engine does not get imported to the Virtual Machines

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.3.1.4-1.el7ev.noarch
ovirt-hosted-engine-ha-1.3.3.6-1.el7ev.noarch

How reproducible:
always


Steps to Reproduce:
1. Create new hosted engine environment with hosted-engine --deploy
2. Chose a different name for hosted_storage, e.g. HE_storage
3. Create a Master Storage Domain in RHEV after the setup is complete

Actual results:
The HE_storage domain is not shown in Storage Tab.
Even after importing it manually the Hosted Engine is not imported and not shown in the Virtual Machines Tab.
Unfortunately even a VM Import is not available on that Storage Domain.

Expected results:
After the Datacenter is initialized the Storage Domain should get automatically activated and the Hosted Engine VM should get automatically imported.

Additional info:
Even if the name of the Storage Domain is not changed, you still need to activate it manually. But in this case the Hosted Engine VM is imported.

Comment 2 Roy Golan 2016-01-27 13:55:49 UTC
On 3.6.3 you can use engine-config -s HostedEngineStorageDomainName=SD_NAME and restart the engine. all should be imported. (you would need to destroy the current import domain and not wipe of course)

The long run fix should be to stop depending on the name and that could be done easily by the auto-import -

 - vm monitoring detects a vm from vdsm with name hostedEngine
 - looking at the disk list we can see the domain ID
 - auto import flow should be invoked with that domain ID (rather than a config key)
 - engine must 'label' that domain as a hosted engine domain - either by config value keeping the id or extra metadata on the domain column in db.
  Using a config value means we would have to set the config value during runtime, on detecting it from vm details.
  Using domain extra data on domain is unsupported. Don't know if storage are planning extra metadata on domains on storage_domain_static

This would solve Bug 1294457 as well.

Comment 3 Yaniv Kaul 2016-02-17 09:51:57 UTC
I'm pretty sure there might be a slightly different but similar issue if you rename the cluster.

Comment 4 Roy Golan 2016-04-13 10:43:01 UTC
If you still think it should be fixed quickly let me know. Meanwhile you can use the engine-config key to make the engine look for you renamed storage domain. See https://bugzilla.redhat.com/show_bug.cgi?id=1294457#c14

Comment 5 Martin Tessun 2016-04-14 09:16:42 UTC
Hi Roy,

I will test the workaround as soon as I find some time and if it works, I am fine for a short term fix.
I would create a KBase then as well describing the workaround in C#14.

Thanks,
Martin

Comment 6 Roy Golan 2016-04-17 08:06:06 UTC
Thanks, waiting for your feedback.

Comment 7 Martin Tessun 2016-05-23 15:10:24 UTC
Somehow my update got lost. So I provide it again:

As hosted-engine --deploy does no longer ask for the HE-StorageDomain Name, there can be no loonger any confusion.

So I tried to install a current RHEV 3.6 environment, and that did no longer even allow me to supply a name for the HE-SD.

As such I think this case can no longer be hit (besides by forcefully changing things in the SD itself before it gets imported).

As such I think this Bug can be closed.

Kind regards,
Martin

Comment 8 Roy Golan 2016-07-17 10:48:49 UTC
*** Bug 1294457 has been marked as a duplicate of this bug. ***

Comment 9 Artyom 2016-07-21 10:41:48 UTC
Verified on rhevm-4.0.1.1-0.1.el7ev.noarch

1) Deploy hosted-engine with answer file that include:
...
OVEHOSTED_STORAGE/storageDomainName=str:test_storage
...
2) Add master storage domain
3) Wait for HE auto import
PASS

Comment 11 errata-xmlrpc 2016-08-23 20:31:53 UTC
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-1743.html


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