support nfs-mounted & existing sandboxes

Bug #978117 reported by Doug Hellmann on 2012-04-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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)
Doug Hellmann (doug-hellmann) wrote :

Here's the error I get:

[vagrant@] out: Traceback (most recent call last):
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/stack", line 200, in main
[vagrant@] out: started_ok = run(args)
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/stack", line 164, in run
[vagrant@] out:, root_dir)
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/", line 153, in run
[vagrant@] out: self._run(persona, root_dir, component_order, instances)
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/", line 210, in _run
[vagrant@] out: instances,
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/", line 114, in _run_phase
[vagrant@] out: result = functor(instance)
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/", line 207, in <lambda>
[vagrant@] out: lambda i: i.post_install(),
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/components/", line 147, in post_install
[vagrant@] out: self._ensure_db_access()
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/components/", line 134, in _ensure_db_access
[vagrant@] out: sh.chown_r(path, sh.getuid(user), sh.getgid(group))
[vagrant@] out: File "/vagrant/Openstack-DevstackPy/devstack/", line 256, in chown_r
[vagrant@] out: os.chown(root, uid, gid)
[vagrant@] 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/ -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/ -a install --no-prompt-passwords"


Disconnecting from done.

summary: - support nfs-mounted source trees
+ support nfs-mounted & existing sandboxes
Joshua Harlow (harlowja) on 2012-08-29
Changed in anvil:
status: New → Confirmed
importance: Undecided → High
Joshua Harlow (harlowja) on 2013-06-22
Changed in anvil:
importance: High → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers