On Tue, Sep 24, 2019 at 6:38 PM TomK <tomkcpr@mdevsys.com> wrote:
Hey Sahina,

Thanks very much.

I've taken a quick glance and it does mention I need a third host which
I don't have.

However, since I wrote, I removed everything.  Had to force remove hosts
however the gluster setup and data in it stayed (Or so I'm thinking).

I'll read the article more thoroughly however is there a specific
procedure for adding existing oVirt gluster volumes back into a cluster?

One additional question.  Is the sequence below correct?

1) Create Data Center
2) Create Cluster within the DC

When you create the cluster - there's an Import cluster option, if I remember correctly. This should discover the peers and volumes and add it to the engine 

3) Create a Domain within the Cluster
4) Add hosts to DC
5) Import Gluster Volume

4 & 5 not required if you change step 2 to import.
You are running into errors below because the engine sees the addition of new hosts as gluster peer probing to a new cluster



Some issues.  I create a DC, add a Cluster then add the Host to it. Then
I try to add another the second node but it says It's already in a
cluster.  There is no other cluster and the second host is not listed
anywhere.

So I try to remove the first host to restart from the beginning.  It
says I can't remove the only host now till it's in maintenance.
Maintenance is grayed out.  I wait a bit guessing there's background
processes running and can finally remove to readd.

When I try to redo the operation and get to the step of adding another
host, I get:

"Error while executing action: Server mdskvm-p02.nix.mds.xyz is already
part of another cluster."

But I can clearly see it's not there via another oVirt UI window.

oVirt:
ovirt-engine-4.2.1.7-1.el7.centos.noarch

Hosts:
root@mdskvm-p01: ovirt-host-4.2.3-1.el7.x86_64
root@mdskvm-p02: ovirt-host-4.2.3-1.el7.x86_64

System prevents me from removing and restarting the process again with a:

Failed Deleting Gluster Volume mdsgv01

Logs show:

2019-09-24 09:07:26,765-04 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
(default task-54) [7186786c-6e3f-4c48-858e-4e404e68d130] START,
GlusterServersListVDSCommand(HostName = mdskvm-p01.nix.mds.xyz,
VdsIdVDSCommandParametersBase:{hostId='0c3943d4-b95a-41f4-bb9c-30731128e057'}),
log id: 50f2b07d
2019-09-24 09:07:26,948-04 INFO
[org.ovirt.engine.core.vdsbroker.gluster.DeleteGlusterVolumeVDSCommand]
(EE-ManagedThreadFactory-engine-Thread-348908)
[7c0605a8-afe1-49a1-ad8f-299ca40a805d] FINISH,
DeleteGlusterVolumeVDSCommand, log id: 1e8800f1
2019-09-24 09:07:26,954-04 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(EE-ManagedThreadFactory-engine-Thread-348908)
[7c0605a8-afe1-49a1-ad8f-299ca40a805d] EVENT_ID:
GLUSTER_VOLUME_DELETE_FAILED(4,011), Could not delete Gluster Volume
mdsgv01 on cluster NIX-DC.
2019-09-24 09:07:26,960-04 INFO
[org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand]
(EE-ManagedThreadFactory-engine-Thread-348908)
[7c0605a8-afe1-49a1-ad8f-299ca40a805d] Lock freed to object
'EngineLock:{exclusiveLocks='[f8686ba2-2e9b-499b-9d2f-050e3425ec9e=GLUSTER]',
sharedLocks=''}'
2019-09-24 09:07:26,963-04 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand]
(DefaultQuartzScheduler6) [51432e7f] START,
GlusterVolumesListVDSCommand(HostName = mdskvm-p01.nix.mds.xyz,
GlusterVolumesListVDSParameters:{hostId='0c3943d4-b95a-41f4-bb9c-30731128e057'}),
log id: 34d8d3d9
2019-09-24 09:07:27,386-04 WARN
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListReturn]
(DefaultQuartzScheduler6) [51432e7f] Could not add brick
'mdskvm-p02.nix.mds.xyz:/mnt/p02-d01/glusterv02' to volume
'f5b57076-dbd4-4d77-ae13-c1f3ee3adbe0' - server uuid
'ad7d956a-a121-422e-8c5c-56765bdf6a62' not found in cluster
'f8686ba2-2e9b-499b-9d2f-050e3425ec9e'



Cheers,
TK

On 9/24/2019 5:17 AM, Sahina Bose wrote:
>
>
> On Mon, Sep 23, 2019 at 6:34 AM TomK <tomkcpr@mdevsys.com
> <mailto:tomkcpr@mdevsys.com>> wrote:
>
>     Or in other words, how do I remove all resources, clusters,
>     datacenters,
>     hosts and readd them under different names?
>
>
> Does this answer your question -
> https://access.redhat.com/documentation/en-us/red_hat_hyperconverged_infrastructure_for_virtualization/1.5/html-single/maintaining_red_hat_hyperconverged_infrastructure_for_virtualization/index#replacing_gluster_host_diff_fqdn
>
>
>     Cheers,
>     TK
>
>
>     On 9/22/2019 6:48 PM, TomK wrote:
>      > Hey All,
>      >
>      > Would like to change the hostname of hosts within a gluster volume
>      > that's been added to oVirt.
>      >
>      > I also need to readd the bricks to the gluster volume under the new
>      > hostname.  What's the recommended approach to do so when all this is
>      > added to oVirt?
>      >
>
>
>     --
>     Thx,
>     TK.
>     _______________________________________________
>     Users mailing list -- users@ovirt.org <mailto:users@ovirt.org>
>     To unsubscribe send an email to users-leave@ovirt.org
>     <mailto:users-leave@ovirt.org>
>     Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>     oVirt Code of Conduct:
>     https://www.ovirt.org/community/about/community-guidelines/
>     List Archives:
>     https://lists.ovirt.org/archives/list/users@ovirt.org/message/3GROTSXKJX4UGKXZAV33AA4UFDUNSJBT/
>
>
> _______________________________________________
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-leave@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/L4VQBZCDGGRCTZ55CXYYQN2TMWD47DOP/
>


--
Thx,
TK.