package sahara-common 1:5.0.0-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1652490 reported by Richard Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sahara (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Tried to install sahara, and it failed.

ProblemType: Package
DistroRelease: Ubuntu 16.10
Package: sahara-common 1:5.0.0-1
ProcVersionSignature: Ubuntu 4.8.0-32.34-generic 4.8.11
Uname: Linux 4.8.0-32-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
Date: Sat Dec 24 22:47:19 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-12-14 (11 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.10ubuntu1
 apt 1.3.3
SourcePackage: sahara
Title: package sahara-common 1:5.0.0-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to yakkety on 2016-12-14 (10 days ago)

Revision history for this message
Richard Smith (brewsmithy) wrote :
Revision history for this message
Richard Smith (brewsmithy) wrote :
Download full text (5.3 KiB)

Setting up sahara-common (1:5.0.0-1) ...
PKG-Openstack now calling: dbc_go sahara-common configure
dbconfig-common: writing config to /etc/dbconfig-common/sahara-common.conf
creating database saharadb: already exists.
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 006 -> 007, convert clusters.status_description to LongText
Traceback (most recent call last):
  File "/usr/bin/sahara-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 109, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 49, in do_upgrade_downgrade
    do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 30, in do_alembic_command
    getattr(alembic_cmd, cmd)(config, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 174, in upgrade
    script.run_env()
  File "/usr/lib/python2.7/dist-packages/alembic/script/base.py", line 407, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/util/compat.py", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/alembic_migrations/env.py", line 95, in <module>
    run_migrations_online()
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/alembic_migrations/env.py", line 88, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "/usr/lib/python2.7/dist-packages/alembic/runtime/environment.py", line 797, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/usr/lib/python2.7/dist-packages/alembic/runtime/migration.py", line 312, in run_migrations
    step.migration_fn(**kw)
  File "/usr/lib/python2.7/dist-packages/sahara/db/migration/alembic_migrations/versions/007_increase_status_description_size.py", line 36, in upgrade
    existing_server_default=None)
  File "<string>", line 8, in alter_column
  File "<string>", line 3, in alter_column
  File "/usr/lib/python2.7/dist-packages/alembic/operations/ops.py", line 1414, in alter_column
    return operations.invoke(alt)
  File "/usr/lib/python2.7/dist-packages/alembic/operations/base.py", line 318, in invoke
    return fn(self, operation)
  File "/usr/lib/python2.7/dist-packages/alembic/operations/toimpl.py", line 53, in alter_column
    **operation.kw
  File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 160, in alter_column
    existing_nullable=existing_nullable,
  File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 118, in _exec
    return conn.execute(construct, *multiparams, **params)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute
    return meth(self, multiparams, params...

Read more...

Revision history for this message
Richard Smith (brewsmithy) wrote :

sudo apt-get remove sahara-common
The following packages will be REMOVED:
  sahara-api sahara-common sahara-engine
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 333 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 316227 files and directories currently installed.)
Removing sahara-api (1:5.0.0-1) ...
Removing sahara-engine (1:5.0.0-1) ...
Removing sahara-common (1:5.0.0-1) ...

tags: removed: need-duplicate-check
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I was able to recreate this as well. Note that to create this, debconf answers need to be chosen to allow the package to configure databases. I suspect most users don't hit this because they don't use the default databases or they use a config mgmt tool to deploy openstack.

I've also opened a bug against Debian to see if we can get a hand fixing this. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850283

Changed in sahara (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
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.