It had something to do with `set_fqdn` being called too early when certain fields were unspecified and then the object was cleaned. I'll test if it's still a problem and see if there are other ways of fixing it.