Set the volume access mode during volume attach

cinderclient supports an optional keyword argument named 'mode'
for volumes.attach(), which allows you to set the access mode of
a volume at attach time. The keyword argument is not passed in
by nova when it attaches a read-only volume, making the volume
access mode default to 'rw' instead of the desired 'ro'. This
patch finds the access mode of the volume and passes it to
cinderclient, so the correct access mode is used at attach
time.

Change-Id: Ib62f454292e60114f96debbad96c4a356dc32a21
Closes-Bug: #1307088
Fix a minor comments error

Seems a copy-paste error. This test case is test bigger than oversize
limitation.

Change-Id: Ie0ce557032b62a0d3a955a5b7ce8bbbe41fef7cd
Defer applying iptable changes when nova-network start

When restarting nova-network service, nova-network will initialize iptables and
remove old rules, then add floating ip iptable forward rules one by one.

If there are a lot of floating ips on one host, the process of adding floating
ip rules could last several minutes, which will cause those floating ips that
last added iptable rules disconnected for same time.

This patch defers applying nova-network iptable rule changes until
initialization is done instead of adding floating ip forward rules one by one.

Change-Id: I12651850b44790aef3817fedacae050bff57e364
Closes-bug: 1308390
remove unneeded call to network_api on detach_interface

When detaching an interface from an instance we call the network_api
which results in calling neutron and updating the info cache. We do not
actually need to do this as we can get the nw_info directly from the
instance's info cache which removes the call to neutron.

Closes-bug: 1294886

Change-Id: Ifbfff958146a4a01b2d9c656180ef4a95e154312
Merge "Defer applying iptable changes when nova-network start"
Merge "Fix a minor comments error"
Merge "remove unneeded call to network_api on detach_interface"
Merge "Set the volume access mode during volume attach"