support nfs-mounted & existing sandboxes
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) |
summary: |
- support nfs-mounted source trees + support nfs-mounted & existing sandboxes |
Changed in anvil: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in anvil: | |
importance: | High → Medium |
Here's the error I get:
[vagrant@ 127.0.0. 1:2222] out: Traceback (most recent call last): 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ stack", line 200, in main 127.0.0. 1:2222] out: started_ok = run(args) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ stack", line 164, in run 127.0.0. 1:2222] out: runner. run(persona_ inst, root_dir) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ progs/actions. py", line 153, in run 127.0.0. 1:2222] out: self._run(persona, root_dir, component_order, instances) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ progs/actions. py", line 210, in _run 127.0.0. 1:2222] out: instances, 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ progs/actions. py", line 114, in _run_phase 127.0.0. 1:2222] out: result = functor(instance) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ progs/actions. py", line 207, in <lambda> 127.0.0. 1:2222] out: lambda i: i.post_install(), 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ components/ horizon. py", line 147, in post_install 127.0.0. 1:2222] out: self._ensure_ db_access( ) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ components/ horizon. py", line 134, in _ensure_db_access 127.0.0. 1:2222] out: sh.chown_r(path, sh.getuid(user), sh.getgid(group)) 127.0.0. 1:2222] out: File "/vagrant/ Openstack- DevstackPy/ devstack/ shell.py" , line 256, in chown_r 127.0.0. 1:2222] out: os.chown(root, uid, gid) 127.0.0. 1:2222] out: OSError: [Errno 1] Operation not permitted: '/vagrant/ Install/ horizon/ app/openstack_ dashboard/ local'
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
[vagrant@
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 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"
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /home/vagrant/
Aborting.
Disconnecting from 127.0.0.1:2222... done.