support nfs-mounted & existing sandboxes

Bug #978117 reported by Doug Hellmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
anvil
Confirmed
Medium
Doug Hellmann

Bug Description

I am having a problem running with an NFS-mounted installation target directory. I get an error when the horizon installer tries to chown a file to root, because of the way vagrant sets up the NFS mount. This issue is related to another problem I have in which I want to reuse an existing git repository (so I can rebuild a VM containing OpenStack or install from my branch that I have checked out already, instead of cloning a new repository).

It seems like both issues can be solved by adding a new command line option to stack to let the developer separate the "installation" directory from the "source code" directory. The default location for source code could still be within the installation directory.

Changed in devstackpy:
assignee: nobody → Doug Hellmann (doug-hellmann)
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Here's the error I get:

[vagrant@127.0.0.1:2222] out: Traceback (most recent call last):
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/stack", line 200, in main
[vagrant@127.0.0.1:2222] out: started_ok = run(args)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/stack", line 164, in run
[vagrant@127.0.0.1:2222] out: runner.run(persona_inst, root_dir)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 153, in run
[vagrant@127.0.0.1:2222] out: self._run(persona, root_dir, component_order, instances)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 210, in _run
[vagrant@127.0.0.1:2222] out: instances,
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 114, in _run_phase
[vagrant@127.0.0.1:2222] out: result = functor(instance)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 207, in <lambda>
[vagrant@127.0.0.1:2222] out: lambda i: i.post_install(),
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/components/horizon.py", line 147, in post_install
[vagrant@127.0.0.1:2222] out: self._ensure_db_access()
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/components/horizon.py", line 134, in _ensure_db_access
[vagrant@127.0.0.1:2222] out: sh.chown_r(path, sh.getuid(user), sh.getgid(group))
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/shell.py", line 256, in chown_r
[vagrant@127.0.0.1:2222] out: os.chown(root, uid, gid)
[vagrant@127.0.0.1:2222] out: OSError: [Errno 1] Operation not permitted: '/vagrant/Install/horizon/app/openstack_dashboard/local'

Fatal error: sudo() received nonzero return code 1 while executing!

Requested: /vagrant/Openstack-DevstackPy/stack -d /vagrant/Install -v --persona /vagrant/Openstack-DevstackPy/conf/personas/devstack-quantum.sh.yaml -a install --no-prompt-passwords
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /home/vagrant/openstack-config && /vagrant/Openstack-DevstackPy/stack -d /vagrant/Install -v --persona /vagrant/Openstack-DevstackPy/conf/personas/devstack-quantum.sh.yaml -a install --no-prompt-passwords"

Aborting.

Disconnecting from 127.0.0.1:2222... done.

summary: - support nfs-mounted source trees
+ support nfs-mounted & existing sandboxes
Joshua Harlow (harlowja)
Changed in anvil:
status: New → Confirmed
importance: Undecided → High
Joshua Harlow (harlowja)
Changed in anvil:
importance: High → 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.