-
Type: Bug
-
Resolution: Fixed
-
Priority: Major
-
Affects Version/s: master
-
Component/s: CLI: pegasus-db-admin
-
None
-
Environment:
vahi@cartman:/lfs1/software/bamboo/data/xml-data/build-dir/PEGASUS-WT-RC031MON/test/core/031-montage-condor-io-jdbcrc$ pegasus-rc-client -vvv --conf ~bamboo/.jdbcrc-test.conf insert work/2015-03-25_095330/rc
2015.03.25 10:19:50.510 PDT: [ERROR] INFO:Pegasus.tools.properties:processing properties file /localhome/bamboo/.jdbcrc-test.conf...
2015.03.25 10:19:50.528 PDT: [ERROR] INFO:Pegasus.tools.properties:processing properties file /localhome/bamboo/.jdbcrc-test.conf...
2015.03.25 10:19:50.534 PDT: [ERROR] INFO:Pegasus.tools.properties:processing properties file /localhome/bamboo/.jdbcrc-test.conf...
2015.03.25 10:19:50.539 PDT: [ERROR] Traceback (most recent call last):
2015.03.25 10:19:50.545 PDT: [ERROR] File "/usr/bin/pegasus-db-admin", line 37, in <module>
2015.03.25 10:19:50.551 PDT: [ERROR] main()
2015.03.25 10:19:50.556 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/db/admin/commands.py", line 208, in main
2015.03.25 10:19:50.562 PDT: [ERROR] DBAdminCommand().main()
2015.03.25 10:19:50.568 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/command.py", line 104, in main
2015.03.25 10:19:50.573 PDT: [ERROR] cmd.main(args)
2015.03.25 10:19:50.579 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/command.py", line 23, in main
2015.03.25 10:19:50.584 PDT: [ERROR] self.run()
2015.03.25 10:19:50.589 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/db/admin/commands.py", line 149, in run
2015.03.25 10:19:50.595 PDT: [ERROR] adminDB = AdminDB(self.options.config_properties, self.options.db_type, dburi)
2015.03.25 10:19:50.600 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/db/admin/admin_loader.py", line 57, in _init_
2015.03.25 10:19:50.606 PDT: [ERROR] self.db = connection.connect(dburi, create=create)
2015.03.25 10:19:50.611 PDT: [ERROR] File "/usr/lib/python2.7/dist-packages/Pegasus/db/connection.py", line 35, in connect
2015.03.25 10:19:50.616 PDT: [ERROR] engine = create_engine(dburi, echo=echo, pool_recycle=True)
2015.03.25 10:19:50.622 PDT: [ERROR] File "/usr/lib/pegasus/externals/python/sqlalchemy/engine/_init_.py", line 332, in create_engine
2015.03.25 10:19:50.627 PDT: [ERROR] return strategy.create(*args, **kwargs)
2015.03.25 10:19:50.632 PDT: [ERROR] File "/usr/lib/pegasus/externals/python/sqlalchemy/engine/strategies.py", line 64, in create
2015.03.25 10:19:50.638 PDT: [ERROR] dbapi = dialect_cls.dbapi(**dbapi_args)
2015.03.25 10:19:50.643 PDT: [ERROR] File "/usr/lib/pegasus/externals/python/sqlalchemy/connectors/mysqldb.py", line 57, in dbapi
2015.03.25 10:19:50.649 PDT: [ERROR] return _import_('MySQLdb')
2015.03.25 10:19:50.654 PDT: [ERROR] ImportError: No module named MySQLdb
2015-03-25 10:19:50.661 ERROR [root] class java.lang.RuntimeException pegasus-db-admin failed with non zero exit status /usr/bin/pegasus-db-admin check -t jdbcrc -c /localhome/bamboo/.jdbcrc-test.conf
2015.03.25 10:19:50.663 PDT: [INFO] pegasus-rc-client planner.version 4.5.0cvs (0.981 seconds) - FINISHED
2015-03-25 10:19:50.663 WARN [root] non-zero exit-code 1