'Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication
and durability settings. It does not refresh tables, types, etc. contained in the keyspace.
See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior'

def refresh_keyspace_metadata(self, keyspace, max_schema_agreement_wait=None):

    if (not self.control_connection.refresh_schema(target_type=SchemaTargetType.KEYSPACE, keyspace=keyspace, schema_agreement_wait=max_schema_agreement_wait, force=True)):
        raise DriverException('Keyspace    metadata    was    not    refreshed.    See    log    for    details.')
