  A class of models with self-generated disorder and controlled frustration is
studied. Between the trivial case, where frustration is not present at all, and
the limit case, where frustration is present over every length scale, a region
with local frustration is found where glassy dynamics appears. We suggest that
in this region, the mean field model might undergo a p-spin like transition,
and increasing the range of frustration, a crossover from a 1-step replica
symmetry breaking to a continuous one might be observed.
