#5385 ipa-migrate-winsync --log-file option doesn't work
Closed: Invalid None Opened 8 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1265260

Description of problem: ipa-migrate-winsync --log-file option doesn't work


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


How reproducible: Always.


Steps to Reproduce:
1. Establish Winsync agreement.
2. Now remove Winsync agreement by giving the --log-file option.

ipa-winsync-migrate -v --realm=TEST.IN --server=win01.test.in
--log-file=/tmp/test1.txt


Actual results:
root@ipa01 ipa]# ipa-winsync-migrate -v --realm=TEST.IN --server=win01.test.in
--log-file=/tmp/test1.txt
ipa.ipalib.plugins.trust.trust_show: DEBUG: raw: trust_show(u'TEST.IN',
version=u'2.156')
ipa.ipalib.plugins.trust.trust_show: DEBUG: trust_show(u'TEST.IN',
rights=False, all=False, raw=False, version=u'2.156')
ipa.ipapython.ipaldap.SchemaCache: DEBUG: retrieving schema for SchemaCache
url=ldapi://%2fvar%2frun%2fslapd-LABS01-TEST.socket
conn=<ldap.ldapobject.SimpleLDAPObject instance at 0x2d45ea8>
ipa.ipapython.ipaldap.SchemaCache: DEBUG: flushing
ldaps://ipa01.labs01.test:636 from SchemaCache
ipa.ipapython.ipaldap.SchemaCache: DEBUG: retrieving schema for SchemaCache
url=ldaps://ipa01.labs01.test:636 conn=<ldap.ldapobject.SimpleLDAPObject
instance at 0x4d6f4d0>


Expected results: When the --log-file file option is used the output should be
written to the log file mentioned which isn't happening in the above case.


Additional info:

This is working as expected. When using --log-file, the command option validation is not written to the log file (it would be a nuisance to have to open the log file to find out why the command failed). Since the command in the example is also invoked with the verbose flag, the debug output originated during the command option validation is produced to the console.

meeting notes:

  • deprecate the option, let people use pipes
  • only 2 comands have it documented

Metadata Update from @pvoborni:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 4.2.3

7 years ago

Login to comment on this ticket.

Metadata