keystone install is unnecessarily interactive

Bug #931236 reported by Martin Pool
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
keystone (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Split out from bug 930444: installing keystone onto a new precise machine runs interactive debconf about dbconfig-common; this seems undesirable and perhaps it can be avoided. Some of the upstream keystone documentation suggests it will start on sqlite3 by default, so perhaps Ubuntu should do that too.

Dave Walker (davewalker)
Changed in keystone (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in keystone (Ubuntu):
status: New → Confirmed
Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

And easy way to avoid interactive installation can be with:
# echo "dbconfig-common dbconfig-common/mysql/admin-pass password essex" | debconf-set-selections
# echo "keystone keystone/auth-token string 999888777666" | debconf-set-selections
# cat >> /etc/dbconfig-common/keystone.conf << EOF
dbc_dbadmin='root'
dbc_dbname='keystone'
dbc_dbpass='essex'
dbc_dbtype='mysql'
dbc_dbuser='keystone'
dbc_install='true'
dbc_upgrade='true'
EOF
# DEBIAN_FRONTEND=noninteractive apt-get install keystone

And to remove and purge the database:
# echo "keystone keystone/dbconfig-remove boolean true" | debconf-set-selections
# echo "dbconfig-common dbconfig-common/purge boolean true" | debconf-set-selections
# DEBIAN_FRONTEND=noninteractive apt-get remove keystone

Maybe, you will also need before everything:
# echo "dbconfig-common dbconfig-common/remember-admin-pass boolean true" | debconf-set-selections

Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

Another way round can be to remove "db_input low keystone/configure_db || true" from keystone.config and just preseed it if we want interactive installation. Maybe some tweaks should be need in postint script just to configure sqlite by default, but it could works.

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

Considering Glance and Nova use sqlite as default, it seems reasonable that Keystone should do the same. This would a) prevent interactive prompts and b) provide a consistent experience between Openstack components.

tags: added: rls-p-tracking
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package keystone - 2012.1~e4-0ubuntu1

---------------
keystone (2012.1~e4-0ubuntu1) precise; urgency=low

  [ Chuck Short ]
  * New upstream release.
  * debian/keystone.upstart: Update for ksl.
  * debian/control: Add python-keystoneclient as dependency.
  * debian/control: Fix typo.
  * debian/keystone.postinst: Update due to redux branch change.
  * debian/keystone.templates, debian/keystone.preinst, debian/kestone.postinst,
    debian/keystone.config, debian/README.Debian: Make keystone installation
    less interactive. (LP: #931236)
  * debian/keystone.postinst: Don't create users or run a database sync
    since its not working correctly.
  * debian/control: Dropped python-coverage and python-nosexcover.
  * debian/changelog: Fixed changelog.
  * debian/keystone.templates: Set it to false.
  * debian/control: Fix lintian warnings.
  * debian/patches/keystone-auth.patch: Backport auth token improvements,
    this can be dropped in the next snapshot.
  * debian/control: Add python-memcache as a build dependency.
  * debian/keystone-doc.docs: Fix keystone doc builds.
  * debian/rules: Temporarily disable doc install.
  * debian/control: Add python-ldap and python-lxml.

  [ Joseph Heck ]
  * debian/control: Dropped python-cli.

  [ Adam Gandelman ]
  * debian/control: Alphabetize python depends
  * debian/control: Add python-{eventlet, greenlet, passlib} to keystone
    depends
  * debian/control: Add python-lxml to python-keystone Depends
  * Drop 0001-Fix-keystone-all-failure-to-start.patch
  * debian/logging.conf: Temporarily use old logging.conf until upstream
    ships something usable
  * debain/patches/sql_connection.patch: Switch backends to use SQL backends
  * debian/keystone.preinst: Create directories
  * debian/keystone.postinst: Remove create_users stuff, add call to 'db_sync'
    on install

  [ Dave Walker ]
  * debian/patches/sql_connection.patch: Refreshed and reintroduced DEP-3
    headers.
  * debian/control: Added Vcs-Bzr field.

  [ Andrew Glen-Young ]
  * debian/keystone.preinst: Set the primary group to keystone. (LP: #941905)
 -- Chuck Short <email address hidden> Fri, 02 Mar 2012 09:55:24 -0500

Changed in keystone (Ubuntu):
status: Confirmed → Fix Released
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.