pegasus-db-admin does not handle jdbc sqlite url

XMLWordPrintable

      pegasus-db-admin create jdbc:sqlite:/nfs/ccg3/scratch/bamboo/031-montage-jdbcrc-sqlite/work/2015-03-31_155851/pegasus-3ir1.jdbcrc.sqlite.db

      Traceback (most recent call last):
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/default/bin/pegasus-db-admin", line 37, in <module>
      main()
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/db/admin/commands.py", line 216, in main
      DBAdminCommand().main()
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/command.py", line 104, in main
      cmd.main(args)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/command.py", line 23, in main
      self.run()
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/db/admin/commands.py", line 50, in run
      AdminDB(dburi=dburi, create=True)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/db/admin/admin_loader.py", line 69, in _init_
      self.db = connection.connect(dburi, create=create)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/python2.7/dist-packages/Pegasus/db/connection.py", line 39, in connect
      engine = create_engine(dburi, echo=echo, pool_recycle=True)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/pegasus/externals/python/sqlalchemy/engine/_init_.py", line 332, in create_engine
      return strategy.create(*args, **kwargs)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/pegasus/externals/python/sqlalchemy/engine/strategies.py", line 48, in create
      u = url.make_url(name_or_url)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/pegasus/externals/python/sqlalchemy/engine/url.py", line 154, in make_url
      return _parse_rfc1738_args(name_or_url)
      File "/nfs/asd2/vahi/montage/tutorial/pegasus/pegasus-4.5.0cvs/lib/pegasus/externals/python/sqlalchemy/engine/url.py", line 196, in _parse_rfc1738_args
      "Could not parse rfc1738 URL from string '%s'" % name)
      sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string 'jdbc:sqlite:/nfs/ccg3/scratch/bamboo/031-montage-jdbcrc-sqlite/work/2015-03-31_155851/pegasus-3ir1.jdbcrc.sqlite.db'

      Looks like the create function does not replace jdbc urls as check command does

            Assignee:
            Rafael Ferreira Da Silva (Inactive)
            Reporter:
            Karan Vahi
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: