tools/openstack_ubuntu install fails on Ubuntu 12.04

Bug #1175817 reported by Clint Byrum
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Invalid
Undecided
Unassigned

Bug Description

Running with bash -x I get this:

+ keystone-manage db_sync
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 28, in <module>
    cli.main(argv=sys.argv, config_files=config_files)
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 148, in main
    return run(cmd, (args[:1] + args[2:]))
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 134, in run
    return CMDS[cmd](argv=args).run()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 36, in run
    return self.main()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 55, in main
    driver = utils.import_object(getattr(CONF, k).driver)
  File "/usr/lib/python2.7/dist-packages/keystone/common/utils.py", line 60, in import_object
    __import__(import_str)
TypeError: __import__() argument 1 must be string, not None

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This is due to secure permissions on /etc/keystone , presumably something that has been done as a security fix. Running keystone-manage via sudo solves that issue.

Revision history for this message
Steven Hardy (shardy) wrote :

So this is not actually a heat bug?

Jaume Devesa (devvesa)
Changed in heat:
assignee: nobody → Jaume Devesa (devvesa)
Revision history for this message
Jaume Devesa (devvesa) wrote :

It seems the OS configuration files: [/etc/nova/* , /etc/glance/* and /etc/keystone/*], not only the /etc/keystone one, have very restrictive access (standard user can not even read them) and hence, some statements in the 'openstack_ubuntu' script that don't use the 'sudo' keyword raise permission errors.

I'll try to fix it.

Revision history for this message
Jaume Devesa (devvesa) wrote :

I've read last heat meeting (http://eavesdrop.openstack.org/meetings/heat/2013/heat.2013-05-22-20.00.log.html)

I don't know if I have to go on with this bug :) I understand you are going to delete this script

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Feel free to "fix" this by submitting a delete change

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

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

Changed in heat:
status: New → In Progress
Jaume Devesa (devvesa)
Changed in heat:
assignee: Jaume Devesa (devvesa) → nobody
Revision history for this message
Jeff Peeler (jpeeler-z) wrote :

This bug is no longer applicable as the script has been deleted in commit f4a9c0fcc6adaa6b579d1cfbc68c4cee9c35fc6d, due to https://bugs.launchpad.net/heat/+bug/1182428.

Changed in heat:
status: In Progress → Invalid
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.