Bug 772460 - [ovirt] [tools] engine-manage-domains is not working: wrong path to engine-manage-domains.conf
Summary: [ovirt] [tools] engine-manage-domains is not working: wrong path to engine-ma...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-config
Version: unspecified
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Barak
QA Contact:
URL:
Whiteboard: infra
: 773596 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-08 13:54 UTC by yeylon@redhat.com
Modified: 2016-04-18 06:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-19 00:41:21 UTC
oVirt Team: ---


Attachments (Terms of Use)

Description yeylon@redhat.com 2012-01-08 13:54:55 UTC
Description of problem:

1. after clean installation Configuration file is missing

[root@yeylon-fedora16 ~]# engine-manage-domains
Error: Configuration file /etc/engine/engine-manage-domains/engine-manage-domains.conf is either empty or does not exist


2. trying to tun the command with (old RHEVM3.0) parameters fails with the same error as above

[root@yeylon-fedora16 ~]# engine-manage-domains  -action=add -domain=qa.lab.tlv.redhat.com  -user=vdcadmin -password=XXXXXXXX
Error: Configuration file /etc/engine/engine-manage-domains/engine-manage-domains.conf is either empty or does not exist

3. help/usage is missing


rhevm-manage-domains: add/edit/delete/validate/list domains
USAGE:
        rhevm-manage-domains -action=ACTION [-domain=DOMAIN -user=USER -passwordFile=PASSWORD_FILE -interactive -configFile=PATH] -report
Where:
        ACTION             action to perform (add/edit/delete/validate/list). See details below.
        DOMAIN                  (mandatory for add, edit and delete) the domain you wish to perform the action on.
        USER                     (optional for edit, mandatory for add) the domain user.
        PASSWORD_FILE                    (optional for edit, mandatory for add) a file containing the password in the first line.
        interactive        alternative for using -passwordFile - read the password interactively.
        PATH               (optional) use the given alternate configuration file.

        Available actions:
        add
        Examples:
                -action=add -domain=example.com -user=admin -passwordFile=/tmp/.pwd
                        Add a domain called example.com, using user admin and read the password from /tmp/.pwd.
                -action=edit -domain=example.com -passwordFile=/tmp/.new_password
                        Edit the domain example.com, using another password file.
                -action=delete -domain=example.com
                        Delete the domain example.com.
                -action=validate
                        Validate the current configuration (go over all the domains, try to authenticate to each domain using the configured user/password.).
                -report In combination with -action=validate will report all validation error, if occured.
                        Default behaviour is to exit when a validation error occurs.
                -action=list
                        Lists the current configuration.
                -h
                        Show this help.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ofer Schreiber 2012-01-08 14:07:34 UTC
the path to the conf file should be /etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf

and not /etc/engine/engine-manage-domains/engine-manage-domains.conf.

Comment 3 Idan Mansano 2012-01-09 12:48:39 UTC
I found wrong engine-manage-domains.conf paths in the following 2 files:
/backend/manager/conf/kerberos/engine-manage-domains
/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/kerberos/ManageDomains.java

Comment 4 Pavel Stehlik 2012-01-12 12:29:00 UTC
*** Bug 773596 has been marked as a duplicate of this bug. ***

Comment 7 Itamar Heim 2012-12-19 00:41:21 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


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