Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
I think it is in the answer file
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf
OVESETUP_CONFIG/isoDomainExists=bool:True

You are correct about the iso domain not being available until the data center 
is up, and this requires a data domain. He had said in an earlier thread he 
does not see it in the UI at all.

I'm no expert, just speaking from my experiences with ovirt. 

Donny D

-Original Message-
From: Yedidyah Bar David [mailto:d...@redhat.com] 
Sent: Wednesday, January 14, 2015 1:44 PM
To: Donny Davis
Cc: Will K; users@ovirt.org
Subject: Re: [ovirt-users] Hosted-engine ISO domain

- Original Message -
 From: Donny Davis do...@cloudspin.me
 To: Will K yetanotherw...@yahoo.com
 Cc: users@ovirt.org
 Sent: Wednesday, January 14, 2015 8:33:41 PM
 Subject: Re: [ovirt-users] Hosted-engine ISO domain
 
 
 
 engine-setup --otopi-environment=OVESETUP_CONFIG/
 isoDomainExists=bool:False

Did you find this documented anywhere?

It's not supported. I can't tell you what exactly happens if you try it.

If you check the code, you see in constants.py:

@osetupattrs(
postinstallfile=True,
)
def ISO_DOMAIN_EXISTS(self):
return 'OVESETUP_CONFIG/isoDomainExists'

Note there is no 'answerfile=True' there. This means that while this key _can_ 
be supplied as you suggested, it's not written to the answer file and should 
basically be treated as internal data.

Re the original question - are you sure you do not see it anywhere in the web 
admin gui? On a first clean setup, it will not be available immediately. You 
will see it under the storage tab but will only be able to attach it after 
you create and attach a data domain. Did you follow [1] at least once?

[1] http://www.ovirt.org/Quick_Start_Guide

Best,
--
Didi


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
Makes sense to me, thanks for helping to clarify. 
Will, I hope we have been of some help

Donny D 

-Original Message-
From: Yedidyah Bar David [mailto:d...@redhat.com] 
Sent: Wednesday, January 14, 2015 2:21 PM
To: Donny Davis
Cc: Will K; users@ovirt.org
Subject: Re: [ovirt-users] Hosted-engine ISO domain

- Original Message -
 From: Donny Davis do...@cloudspin.me
 To: Yedidyah Bar David d...@redhat.com
 Cc: Will K yetanotherw...@yahoo.com, users@ovirt.org
 Sent: Wednesday, January 14, 2015 10:52:20 PM
 Subject: RE: [ovirt-users] Hosted-engine ISO domain
 
 I think it is in the answer file
 /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf
 OVESETUP_CONFIG/isoDomainExists=bool:True

/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf is not the answer 
file. The answer file is the file written to /var/lib and mentioned in the end 
of engine-setup, e.g.:

[ INFO  ] Generating answer file 
'/var/lib/ovirt-engine/setup/answers/20141124180159-setup.conf'

As I wrote, this file (called in the sources postinstall) should be treated 
as internal data. It's used to keep some state of engine-setup between runs.

Just the same way you are not expected normally to manually edit tables inside 
the db, you should not change this file, or copy parts of it to the answer 
file. Of course, sometimes it can be useful, and sometimes people here will 
suggest that, but generally speaking, if you had to do that, that's a bug.

BTW, editing generated answer files is also not recommended and not 
officially supported.

The expected way to use an answer file is:
1. Have a system A in some state S0
2. Run engine-setup interactively, answer its questions as needed, let it 
create an answer file Ans1.
3. System A is now in state S1.
4. Have some other system B in state S0, that you want to bring to state S1.
5. Run there engine-setup with --config-append=Ans1

Of course, editing answer files usually works, and in some cases you can 
achieve useful things this way that can't be done by mere interactive run. But 
whenever you do that, it's your own responsibility.
Test first on a test system, make sure it does exactly what you wanted/ 
expected, then use in production.

Just as an example for a simple and useful violation, if during testing you 
often run engine-setup on systems with little RAM, and want to get rid of the 
question if you want to continue with not enough RAM, you can create a file 
e.g. /etc/ovirt-engine-setup.conf.d/99-my-stuff.conf
with content:
[environment:default]
OVESETUP_SYSTEM/memCheckEnabled=bool:False

As I said, this is not recommended - use at your own risk, test and know what 
you are doing!

(the above should probably be in the wiki somewhere. Hopefully the mailing list 
archives are almost as good)

 
 You are correct about the iso domain not being available until the 
 data center is up, and this requires a data domain. He had said in an 
 earlier thread he does not see it in the UI at all.
 
 I'm no expert, just speaking from my experiences with ovirt.

Hey, didn't intend to be offensive - thanks for trying to help!
That's much appreciated. Hope now things are clearer.

Best,
--
Didi

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Yedidyah Bar David
- Original Message -
 From: Donny Davis do...@cloudspin.me
 To: Will K yetanotherw...@yahoo.com
 Cc: users@ovirt.org
 Sent: Wednesday, January 14, 2015 8:33:41 PM
 Subject: Re: [ovirt-users] Hosted-engine ISO domain
 
 
 
 engine-setup --otopi-environment=OVESETUP_CONFIG/
 isoDomainExists=bool:False

Did you find this documented anywhere?

It's not supported. I can't tell you what exactly happens if you try it.

If you check the code, you see in constants.py:

@osetupattrs(
postinstallfile=True,
)
def ISO_DOMAIN_EXISTS(self):
return 'OVESETUP_CONFIG/isoDomainExists'

Note there is no 'answerfile=True' there. This means that while this
key _can_ be supplied as you suggested, it's not written to the answer
file and should basically be treated as internal data.

Re the original question - are you sure you do not see it anywhere in
the web admin gui? On a first clean setup, it will not be available
immediately. You will see it under the storage tab but will only be
able to attach it after you create and attach a data domain. Did you
follow [1] at least once?

[1] http://www.ovirt.org/Quick_Start_Guide

Best,
-- 
Didi

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Yedidyah Bar David
- Original Message -
 From: Donny Davis do...@cloudspin.me
 To: Yedidyah Bar David d...@redhat.com
 Cc: Will K yetanotherw...@yahoo.com, users@ovirt.org
 Sent: Wednesday, January 14, 2015 10:52:20 PM
 Subject: RE: [ovirt-users] Hosted-engine ISO domain
 
 I think it is in the answer file
 /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf
 OVESETUP_CONFIG/isoDomainExists=bool:True

/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf is not
the answer file. The answer file is the file written to
/var/lib and mentioned in the end of engine-setup, e.g.:

[ INFO  ] Generating answer file 
'/var/lib/ovirt-engine/setup/answers/20141124180159-setup.conf'

As I wrote, this file (called in the sources postinstall)
should be treated as internal data. It's used to keep some
state of engine-setup between runs.

Just the same way you are not expected normally to manually
edit tables inside the db, you should not change this file,
or copy parts of it to the answer file. Of course, sometimes
it can be useful, and sometimes people here will suggest that,
but generally speaking, if you had to do that, that's a bug.

BTW, editing generated answer files is also not recommended and not
officially supported.

The expected way to use an answer file is:
1. Have a system A in some state S0
2. Run engine-setup interactively, answer its questions as needed,
let it create an answer file Ans1.
3. System A is now in state S1.
4. Have some other system B in state S0, that you want to bring to state S1.
5. Run there engine-setup with --config-append=Ans1

Of course, editing answer files usually works, and in some cases
you can achieve useful things this way that can't be done by mere
interactive run. But whenever you do that, it's your own responsibility.
Test first on a test system, make sure it does exactly what you wanted/
expected, then use in production.

Just as an example for a simple and useful violation, if during testing
you often run engine-setup on systems with little RAM, and want to get
rid of the question if you want to continue with not enough RAM, you
can create a file e.g. /etc/ovirt-engine-setup.conf.d/99-my-stuff.conf
with content:
[environment:default]
OVESETUP_SYSTEM/memCheckEnabled=bool:False

As I said, this is not recommended - use at your own risk, test and
know what you are doing!

(the above should probably be in the wiki somewhere. Hopefully the
mailing list archives are almost as good)

 
 You are correct about the iso domain not being available until the data
 center is up, and this requires a data domain. He had said in an earlier
 thread he does not see it in the UI at all.
 
 I'm no expert, just speaking from my experiences with ovirt.

Hey, didn't intend to be offensive - thanks for trying to help!
That's much appreciated. Hope now things are clearer.

Best,
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Will K
all advices and tips are welcome. There's always a learning curve. :)
Once the engine was setup on VM ovirt1, I let hosted-engine to wait out till 
it told me to shutdown the VM.  After a while, VM was restarted.
I see the first node, the VM ovirt1 in the GUI. There was no storage domain.  I 
added another GlusterFS domain I have on the node.  At this point, I still 
don't see or can't find the ISO_Domain over NFS.
So, I'm still at the same spot.  `ovirt-iso-updater` still says there's no ISO 
storage domains.
Will

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Will K
I think I have the issue resolved.  Another guy screwed up the iptable.It looks 
good now.  I have it attached to the data center and activated it.Thanks Donny 
and Yedidyah.W
 

  
   ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
Didn’t see that coming…LOL

 

I’m really glad to hear you got it worked out though Will.

 

Enjoy oVirt, it’s a really great system, and if you have any more problems 
please email the users and someone should be able to help. 

 

Donny D

cloudspin.me

From: Will K [mailto:yetanotherw...@yahoo.com] 
Sent: Wednesday, January 14, 2015 4:26 PM
To: Donny Davis; 'Yedidyah Bar David'
Cc: users@ovirt.org
Subject: Re: [ovirt-users] Hosted-engine ISO domain

 

I think I have the issue resolved.  Another guy screwed up the iptable.

It looks good now.  I have it attached to the data center and activated it.

Thanks Donny and Yedidyah.

W



 

 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
Have you tried to add the ISO domain in the GUI?

 

From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of 
Will K
Sent: Wednesday, January 14, 2015 10:50 AM
To: users@ovirt.org
Subject: [ovirt-users] Hosted-engine ISO domain

 

Hi all,

 

Got a 'successful' setup of 3.5 with hosted-engine on Centos 6.6.  During 
engine-setup, info was provide to create ISO_DOMAIN from /export/ISO.  After 
the VM was restarted, I see it is exported, but I don't see the ISO domain in 
the GUI or ovirt-iso-uploader list.  Would you please give me pointer on how to 
import/activate the ISO domain?

 

[root@ovirt1 ~]# exportfs
/export/ISO world
[root@ovirt1 ~]# ovirt-iso-uploader list
Please provide the REST API password for the admin@internal oVirt Engine user 
(CTRL+D to abort):
ERROR: There are no ISO storage domains.

thanks

Will

 

 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Will K

The domain is not listed not in the GUI. I'm not sure I should add or 
import.  
When I try to add a New Domain with a random name, use host node1 and 
export path ovirt1.domainname:/export/ISO, It says 
    Create operation failed. Storage connection is already used by the 
following storage domain: ISO_DOMAIN
If I try to Import, I would get Import operationfailed. Domain 
ISO_DOMAIN already exists in the system.
Will
 

 On Wednesday, January 14, 2015 12:51 PM, Donny Davis do...@cloudspin.me 
wrote:
   

 #yiv4218441671 #yiv4218441671 -- _filtered #yiv4218441671 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv4218441671 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv4218441671 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv4218441671 
{font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv4218441671 
#yiv4218441671 p.yiv4218441671MsoNormal, #yiv4218441671 
li.yiv4218441671MsoNormal, #yiv4218441671 div.yiv4218441671MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4218441671 a:link, 
#yiv4218441671 span.yiv4218441671MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv4218441671 a:visited, #yiv4218441671 
span.yiv4218441671MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv4218441671 
span.yiv4218441671EmailStyle17 {color:#1F497D;}#yiv4218441671 
.yiv4218441671MsoChpDefault {font-size:10.0pt;} _filtered #yiv4218441671 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv4218441671 div.yiv4218441671WordSection1 
{}#yiv4218441671 Have you tried to add the ISO domain in the GUI?  From: 
users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of Will K
Sent: Wednesday, January 14, 2015 10:50 AM
To: users@ovirt.org
Subject: [ovirt-users] Hosted-engine ISO domain  Hi all,  Got a 'successful' 
setup of 3.5 with hosted-engine on Centos 6.6.  During engine-setup, info was 
provide to create ISO_DOMAIN from /export/ISO.  After the VM was restarted, I 
see it is exported, but I don't see the ISO domain in the GUI or 
ovirt-iso-uploader list.  Would you please give me pointer on how to 
import/activate the ISO domain?  [root@ovirt1 ~]# exportfs
/export/ISO world
[root@ovirt1 ~]# ovirt-iso-uploader list
Please provide the REST API password for the admin@internal oVirt Engine user 
(CTRL+D to abort):
ERROR: There are no ISO storage domains.thanksWill    

   ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
What does your setup say

cat /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf

 

From: Will K [mailto:yetanotherw...@yahoo.com] 
Sent: Wednesday, January 14, 2015 11:11 AM
To: Donny Davis; users@ovirt.org
Subject: Re: [ovirt-users] Hosted-engine ISO domain

 

 

The domain is not listed not in the GUI. I'm not sure I should add or 
import.  





When I try to add a New Domain with a random name, use host node1 and 
export path ovirt1.domainname:/export/ISO, It says 



Create operation failed. Storage connection is already used by the 
following storage domain: ISO_DOMAIN





If I try to Import, I would get 

Import operationfailed. Domain ISO_DOMAIN already exists in the system.

 

Will



 

On Wednesday, January 14, 2015 12:51 PM, Donny Davis do...@cloudspin.me wrote:

 

Have you tried to add the ISO domain in the GUI?

 

From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of 
Will K
Sent: Wednesday, January 14, 2015 10:50 AM
To: users@ovirt.org
Subject: [ovirt-users] Hosted-engine ISO domain

 

Hi all,

 

Got a 'successful' setup of 3.5 with hosted-engine on Centos 6.6.  During 
engine-setup, info was provide to create ISO_DOMAIN from /export/ISO.  After 
the VM was restarted, I see it is exported, but I don't see the ISO domain in 
the GUI or ovirt-iso-uploader list.  Would you please give me pointer on how to 
import/activate the ISO domain?

 

[root@ovirt1 ~]# exportfs
/export/ISO world
[root@ovirt1 ~]# ovirt-iso-uploader list
Please provide the REST API password for the admin@internal oVirt Engine user 
(CTRL+D to abort):
ERROR: There are no ISO storage domains.

thanks

Will

 

 

 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Will K
Hi Donny,

[environment:default]
OVESETUP_CORE/generatedByVersion=str:3.5.0.1
OVESETUP_CONFIG/firewallManager=none:None
OVESETUP_CONFIG/fqdn=str:ld4ovirt1.masked domainname
OVESETUP_ENGINE_CORE/enable=bool:True
OVESETUP_SYSTEM/nfsConfigEnabled_legacyInPostInstall=bool:False
OVESETUP_CONFIG/isoDomainMountPoint=str:/export/ISO
OVESETUP_CONFIG/isoDomainSdUuid=str:99e87801-e2d6-4c73-8980-aca4d3ff4a56
OVESETUP_CONFIG/isoDomainName=str:ISO_DOMAIN
OVESETUP_CONFIG/isoDomainStorageDir=str:/export/ISO/99e87801-e2d6-4c73-8980-aca4d3ff4a56/images/----
OVESETUP_CONFIG/isoDomainExists=bool:True
OVESETUP_APACHE/configured=bool:True
OVESETUP_CONFIG/websocketProxyConfig=bool:True


  I do have the isoDomainStorageDir.
[root@ld4ovirt1 images]# ls -l 
/export/ISO/99e87801-e2d6-4c73-8980-aca4d3ff4a56/images/
total 4
drwxr-xr-x 2 vdsm kvm 4096 Jan 14 17:16 ----
[root@ld4ovirt1 images]# cd ----
[root@ld4ovirt1 ----]# ls -l
total 0

   

   ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted-engine ISO domain

2015-01-14 Thread Donny Davis
engine-setup --otopi-environment=OVESETUP_CONFIG/ isoDomainExists=bool:False

service ovirt-engine restart

 

This should stop the engine from telling you it already exists, and you should 
be able to add it from the UI

 

I have launched the engine setup 10+ times in the last 6 months and I have not 
encountered this issue. If someone more knowledgeable than me wants to set in, 
feel free

 

Donny D

 

From: Will K [mailto:yetanotherw...@yahoo.com] 
Sent: Wednesday, January 14, 2015 11:28 AM
To: Donny Davis; users@ovirt.org
Subject: Re: [ovirt-users] Hosted-engine ISO domain

 

Hi Donny,

 

[environment:default]
OVESETUP_CORE/generatedByVersion=str:3.5.0.1
OVESETUP_CONFIG/firewallManager=none:None
OVESETUP_CONFIG/fqdn=str:ld4ovirt1.masked domainname
OVESETUP_ENGINE_CORE/enable=bool:True
OVESETUP_SYSTEM/nfsConfigEnabled_legacyInPostInstall=bool:False
OVESETUP_CONFIG/isoDomainMountPoint=str:/export/ISO
OVESETUP_CONFIG/isoDomainSdUuid=str:99e87801-e2d6-4c73-8980-aca4d3ff4a56
OVESETUP_CONFIG/isoDomainName=str:ISO_DOMAIN
OVESETUP_CONFIG/isoDomainStorageDir=str:/export/ISO/99e87801-e2d6-4c73-8980-aca4d3ff4a56/images/----
OVESETUP_CONFIG/isoDomainExists=bool:True
OVESETUP_APACHE/configured=bool:True
OVESETUP_CONFIG/websocketProxyConfig=bool:True

 

I do have the isoDomainStorageDir.

 

[root@ld4ovirt1 images]# ls -l 
/export/ISO/99e87801-e2d6-4c73-8980-aca4d3ff4a56/images/
total 4
drwxr-xr-x 2 vdsm kvm 4096 Jan 14 17:16 ----

[root@ld4ovirt1 images]# cd ----
[root@ld4ovirt1 ----]# ls -l
total 0

 

 

 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users