NetApp NFS driver won't resolve hostnames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Bob Callaway |
Bug Description
If you use host names in your NFS shares configuration file for the NetApp NFS driver in the format of:
hostname:/share
Cinder scheduler will report the following error when attempting to create a volume (cinder create 1):
2014-01-09 19:44:12.064 WARNING cinder.
2014-01-09 19:44:12.064 WARNING cinder.
2014-01-09 19:44:12.065 ERROR cinder.
valid host was found.
2014-01-09 19:44:12.066 DEBUG cinder.
If an ip address is used instead:
1.2.3.4:/share
The volume create works correctly
Changed in cinder: | |
assignee: | nobody → Bob Callaway (bob-callaway) |
Changed in cinder: | |
assignee: | Bob Callaway (bob-callaway) → John Griffith (john-griffith) |
Changed in cinder: | |
assignee: | John Griffith (john-griffith) → Bob Callaway (bob-callaway) |
Changed in cinder: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-2 → 2014.1 |
New information. My original issue was bad DNS settings, once that was fixed the true issue arose when attempting to create a snapshot with hostnames in the nfs shares file. The following is thrown in the c-vol log:
2014-01-10 11:02:58.063 DEBUG cinder. volume. manager [req-3a3a9d0b- 4b39-4315- aef7-1864acdf0e 08 bbfe41bc184f437 8948211506fe3f7 80 83f2105d92f64cb e96853ca6ffd2a0 d8] 32fc-4980- 896c-c70b4b4d19 68: creating from (pid=5060) create_snapshot /opt/stack/ cinder/ cinder/ volume/ manager. py:444 openstack. common. rpc.amqp [req-3a3a9d0b- 4b39-4315- aef7-1864acdf0e 08 bbfe41bc184f437 8948211506fe3f7 80 83f2105d92f64cb e96853ca6ffd2a0 d8] openstack. common. rpc.amqp Traceback (most recent call last): openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ openstack/ common/ rpc/amqp. py", line 441, in _process_data openstack. common. rpc.amqp **args) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ openstack/ common/ rpc/dispatcher. py", line 148, in dispatch openstack. common. rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ utils.py" , line 818, in wrapper openstack. common. rpc.amqp return func(self, *args, **kwargs) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ manager. py", line 459, in create_snapshot openstack. common. rpc.amqp {'status': 'error'}) openstack. common. rpc.amqp File "/usr/lib/ python2. 7/contextlib. py", line 24, in __exit__ openstack. common. rpc.amqp self.gen.next() openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ manager. py", line 450, in create_snapshot openstack. common. rpc.amqp model_update = self.driver. create_ snapshot( snapshot_ ref) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ drivers/ netapp/ nfs.py" , line 112, in create_snapshot openstack. common. rpc.amqp snapshot[ 'volume_ id']) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ drivers/ netapp/ nfs.py" , line 782, in _clone_volume openstack. common. rpc.amqp (vserver, exp_volume) = self._get_ vserver_ and_exp_ vol(volume_ id, share) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ drivers/ netapp/ nfs.py" , line 790, in _get_vserver_ and_exp_ vol openstack. common. rpc.amqp ifs = self._get_ if_info_ by_ip(host_ ip) openstack. common. rpc.amqp File "/opt/stack/ cinder/ cinder/ volume/ drivers/ netapp/ nfs.py" , ...
snapshot f6a145e1-
2014-01-10 11:02:58.150 ERROR cinder.
Exception during message handling
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.
2014-01-10 11:02:58.150 TRACE cinder.