Cannot kick-start non-MySQL due to validation-rules.json

Bug #1366939 reported by Mat Lowery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trove Integration
Fix Committed
High
Mat Lowery

Bug Description

For non-MySQL and non-Percona, redstack kick-start fails with:

2014-09-08 18:28:02.097 CRITICAL root [-] IOError: [Errno 2] No such file or directory: '/opt/stack/trove/trove/templates/mongodb/validation-rules.json'

2014-09-08 18:28:02.097 TRACE root Traceback (most recent call last):
2014-09-08 18:28:02.097 TRACE root File "/usr/local/bin/trove-manage", line 10, in <module>
2014-09-08 18:28:02.097 TRACE root sys.exit(main())
2014-09-08 18:28:02.097 TRACE root File "/opt/stack/trove/trove/cmd/manage.py", line 173, in main
2014-09-08 18:28:02.097 TRACE root Commands().execute()
2014-09-08 18:28:02.097 TRACE root File "/opt/stack/trove/trove/cmd/manage.py", line 57, in execute
2014-09-08 18:28:02.097 TRACE root exec_method(**kwargs)
2014-09-08 18:28:02.097 TRACE root File "/opt/stack/trove/trove/cmd/manage.py", line 90, in db_load_datastore_config_parameters
2014-09-08 18:28:02.097 TRACE root datastore_version_id, config_file_location)
2014-09-08 18:28:02.097 TRACE root File "/opt/stack/trove/trove/configuration/models.py", line 396, in load_datastore_configuration_parameters
2014-09-08 18:28:02.097 TRACE root with open(config_file) as f:
2014-09-08 18:28:02.097 TRACE root IOError: [Errno 2] No such file or directory: '/opt/stack/trove/trove/templates/mongodb/validation-rules.json'

I think it's this line:
http://git.io/UsViHg

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove-integration (master)

Fix proposed to branch: master
Review: https://review.openstack.org/119880

Changed in trove-integration:
assignee: nobody → Mat Lowery (mat-lowery)
status: New → In Progress
Changed in trove-integration:
importance: Undecided → High
milestone: none → juno-3
milestone: juno-3 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove-integration (master)

Reviewed: https://review.openstack.org/119880
Committed: https://git.openstack.org/cgit/openstack/trove-integration/commit/?id=194092eb2d84566992f0a979b5ee4251aff04fdb
Submitter: Jenkins
Branch: master

commit 194092eb2d84566992f0a979b5ee4251aff04fdb
Author: Mat Lowery <email address hidden>
Date: Mon Sep 8 14:12:12 2014 -0500

    Load cfg params conditionally

    Some datastores don't support config groups so this should be
    conditional.

    Also, tightened search by version name.

    Change-Id: I2b37ce2e30c2e23b8291cd65c883fd2caadabdad
    Closes-Bug: #1366939

Changed in trove-integration:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.