-
-
Notifications
You must be signed in to change notification settings - Fork 778
Description
SUMMARY
While migrating from ST2 v2.9 to ST2 v3.0, we encountered the following problem: one MongoDB index name used by ST2, namely st2.action_execution_scheduling_queue_item_d_b.scheduled_start_timestamp (C.F. st2/st2common/st2common/models/db/execution_queue.py) is too long for AWS DocumentDB. It does work with an official MongoDB server.
AWS DocumentDB should be compatible/honor the official limits of MongoDB (here, 127 characters for fully qualified index names), but I contacted the AWS DocumentDB support which confirmed me that it was a known issue in DocumentDB and that they didn't have an estimated time of resolution for this problem. They suggested me to shorten the index name if I can, but I think it's currently not customizable (which is okay, this should not be needed).
I realize that this is not a StackStorm bug per se, however AWS DocumentDB is a big player and it might be interesting for you to shorten this index name so ST2 users/customers can use DocumentDB with ST2 V3+.
ISSUE TYPE
- Bug Report
STACKSTORM VERSION
st2 3.0.0, on Python 2.7.12
OS / ENVIRONMENT / INSTALL METHOD
N/A
STEPS TO REPRODUCE
- Install StackStorm V3.0+
- Configure an AWS DocumentDB as the MongoDB server
- Run a command that will try to create the DB, e.g.
st2ctl reload --register-all
EXPECTED RESULTS
st2ctl reload --register-all should successfully create the DB and work.
ACTUAL RESULTS
st2ctl reload --register-all exits with an error because it can't create the index name st2.action_execution_scheduling_queue_item_d_b.scheduled_start_timestamp.