STEPS TO REPRODUCE:
1. create a user ( if doesn't exists)
ubuntu@shweta-test:~$ trove user-list b3e56616-fec8-4ff3-a31a-0260e80c5744
+-------+------+-----------+
| name | host | databases |
+-------+------+-----------+
| user1 | % | |
+-------+------+-----------+
2. Create database
ubuntu@shweta-test:~$ trove database-list b3e56616-fec8-4ff3-a31a-0260e80c5744
+--------------------+
| name |
+--------------------+
| database1 |
| performance_schema |
| test |
+--------------------+
3. Run user-revoke-access API using correct user and database. But user shouldn't have access on database.
ubuntu@shweta-test:~$ trove user-revoke-access b3e56616-fec8-4ff3-a31a-0260e80c5744 user1 database1
ERROR: Database database1 cannot be found on the instance
4. Incorrect error message is shown "Database database1 cannot be found on the instance" even when database exists on the instance.
Fix proposed to branch: master /review. openstack. org/86258
Review: https:/