'Autocreate an account
:param req: request leading to this autocreate
:param account: the unquoted account name'

def autocreate_account(self, req, account):

    (partition, nodes) = self.app.account_ring.get_nodes(account)
    path = ('/%s' % account)
    headers = {'X-Timestamp': Timestamp.now().internal, 'X-Trans-Id': self.trans_id, 'X-Openstack-Request-Id': self.trans_id, 'Connection': 'close'}
    headers.update(((k, v) for (k, v) in req.headers.items() if is_sys_meta('account', k)))
    resp = self.make_requests(Request.blank(('/v1' + path)), self.app.account_ring, partition, 'PUT', path, ([headers] * len(nodes)))
    if is_success(resp.status_int):
        self.app.logger.info(_('autocreate    account    %r'), path)
        clear_info_cache(self.app, req.environ, account)
    else:
        self.app.logger.warning(_('Could    not    autocreate    account    %r'), path)
