novajoin/ipa.py
def delete_host(self, hostname, metadata=None):
        """Delete a host from IPA and remove all related DNS entries."""
        LOG.debug('In IPADeleteInstance')

        if not self._ipa_client_configured():
            LOG.debug('IPA is not configured')
            return

        if metadata is None:
            metadata = {}

        # TODO(rcrit): lookup instance in nova to get metadata to see if
        # the host was enrolled. For now assume yes.

        params = [hostname]
        kw = {
            'updatedns': True,
        }
        try:
            self._call_ipa('host_del', *params, **kw)
        except errors.NotFound:
            pass
Delete a host from IPA and remove all related DNS entries.
Delete a host from IPA and remove all related DNS entries.
Delete a host from IPA and remove all related DNS entries .
def delete_host(self, hostname, metadata=None):
        LOG.debug('In IPADeleteInstance')
        if not self._ipa_client_configured():
            LOG.debug('IPA is not configured')
            return
        if metadata is None:
            metadata = {}
        params = [hostname]
        kw = {
            'updatedns': True,
        }
        try:
            self._call_ipa('host_del', *params, **kw)
        except errors.NotFound:
            pass
def delete_host ( self , hostname , metadata = None ) : LOG . debug ( 'In IPADeleteInstance' ) if not self . _ipa_client_configured ( ) : LOG . debug ( 'IPA is not configured' ) return if metadata is None : metadata = { } params = [ hostname ] kw = { 'updatedns' : True , } try : self . _call_ipa ( 'host_del' , * params , ** kw ) except errors . NotFound : pass
Delete a host from IPA and remove all related DNS entries.
Delete a host from IPA and remove all related DNS entries .
"""Delete a host from IPA and remove all related DNS entries.""" # TODO(rcrit): lookup instance in nova to get metadata to see if # the host was enrolled. For now assume yes.
self
hostname
metadata