Currently, OpenStack::exportCreditentials exports the tenant id as a string. So when OpenStack::importCredientials calls setTenant with the output of exportCreditentials it fails to set the tenant correctly.
Change: if (is_int($tenant)) { to if (is_numeric($tenant)) {
(or fix exportCreds..)