C-vol crashes when driver class is changed after some volumes exist on that backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Cinder-volume traces after calling invalid mount command:
sudo cinder-rootwrap /etc/cinder/
Trace:
2014-03-03 12:02:02.376 1561 DEBUG cinder.
2014-03-03 12:02:02.415 1561 DEBUG cinder.
2014-03-03 12:02:02.416 1561 ERROR cinder.service [req-4e984358-
2014-03-03 12:02:02.416 1561 TRACE cinder.service Traceback (most recent call last):
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service self._child_
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service launcher.
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service server.start()
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service self.manager.
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service self.driver.
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service self._ensure_
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service self._remotefsc
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service run_as_root=True, check_exit_code=0)
2014-03-03 12:02:02.416 1561 TRACE cinder.service File "/usr/lib/
2014-03-03 12:02:02.416 1561 TRACE cinder.service cmd=' '.join(cmd))
2014-03-03 12:02:02.416 1561 TRACE cinder.service ProcessExecutio
2014-03-03 12:02:02.416 1561 TRACE cinder.service Command: sudo cinder-rootwrap /etc/cinder/
2014-03-03 12:02:02.416 1561 TRACE cinder.service Exit code: 32
2014-03-03 12:02:02.416 1561 TRACE cinder.service Stdout: ''
2014-03-03 12:02:02.416 1561 TRACE cinder.service Stderr: 'mount.nfs: access denied by server while mounting 78.140.
content of cinder.conf:
[DEFAULT]
rabbit_host = srv
rabbit_port = 5672
rabbit_userid = guest
rabbit_password = pass
rootwrap_config = /etc/cinder/
api_paste_confg = /etc/cinder/
iscsi_helper = tgtadm
volume_
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/
volume_
nfs_mount_
debug=True
verbose=True
[database]
connection = mysql:/
content of /etc/cinder/
10.13.77.8:/storage
content of /etc/exports:
/storage *(rw,async)ii cinder-common 1:2013.
ii cinder-volume 1:2013.
ii python-cinder 1:2013.
10.13.77.8 - local IP of server where cinder-volume is running. Manually NFS share mounting without problems, cinder works fine with LVM backend.
Package information:
Ubuntu 12.04 + cloud archive.
ii cinder-common 1:2013.
ii cinder-volume 1:2013.
ii python-cinder 1:2013.
description: | updated |
Changed in cinder: | |
importance: | Undecided → Low |
summary: |
- Cinder trace on NFS volume driver + C-vol crashes when driver class is changed after some volumes exist on + that backend |
Changed in cinder: | |
status: | New → Triaged |
milestone: | none → next |
Changed in cinder: | |
assignee: | nobody → j_king (james-agentultra) |
status: | Triaged → In Progress |
Changed in cinder: | |
assignee: | j_king (james-agentultra) → nobody |
Changed in cinder: | |
status: | In Progress → Triaged |
milestone: | next → none |
Changed in cinder: | |
status: | Triaged → Won't Fix |
I believe this happens if you create a volume with the LVM iSCSI driver, then change cinder.conf to use the NFS driver and restart the volume service.
It tries to use the provider_location from the LVM driver's volume and results in this.