#7499 Integration tests dns_location in regards of check NTP records failing
Closed: fixed 7 years ago Opened 7 years ago by gkaihoro.

    def test_remove_replica_with_ntp(self):
        """Test NTP dns records after removing the replica with NTP"""
        tasks.uninstall_replica(self.master, self.replicas[0])

        self.delete_update_system_records(rnames=(r[0] for r in
>                                         IPA_DEFAULT_NTP_SRV_REC))

/usr/lib/python3.6/site-packages/ipatests/test_integration/test_dns_locations.py:443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.6/site-packages/ipatests/test_integration/test_dns_locations.py:138: in delete_update_system_records
    '--del-all'])
/usr/lib/python3.6/site-packages/pytest_multihost/host.py:271: in run_command
    command.wait()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_multihost.transport.SSHCommand object at 0x7f04c4f8e160>
raiseonerr = True

    def wait(self, raiseonerr=DEFAULT):
        """Wait for the remote process to exit

            Raises an exception if the exit code is not 0, unless ``raiseonerr`` is
            true.

            When ``raiseonerr`` is not specified as argument, the ``raiseonerr``
            attribute is used.
            """
        if raiseonerr is DEFAULT:
            raiseonerr = self.raiseonerr

        if self._done:
            return self.returncode

        self._end_process()

        self._done = True

        if raiseonerr and self.returncode:
            self.log.error('Exit code: %s', self.returncode)
>           raise subprocess.CalledProcessError(self.returncode, self.argv)
E           subprocess.CalledProcessError: Command '['ipa', 'dnsrecord-del', 'dom-155.abc.idm.lab.eng.brq.redhat.com.', '_ntp._udp', '--del-all']' returned non-zero exit status 2.

/usr/lib/python3.6/site-packages/pytest_multihost/transport.py:215: CalledProcessError

Solution would be to deleted, since we migrated to chronyd and IPA server is not NTP server anymore.

Metadata Update from @gkaihoro:
- Issue tagged with: test-failure

7 years ago

master:

  • d4dd2b1 Fix for integration tests dns_locations

Metadata Update from @tdudlak:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 years ago

Log in to comment on this ticket.

Metadata