Missing [nova] section in cinder.conf "Extend an Attached Volume" doesn't work with Victoria onwards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Fix Committed
|
High
|
Samuel Walladge | ||
Ussuri |
Fix Committed
|
Undecided
|
Unassigned | ||
Victoria |
Fix Committed
|
Undecided
|
Unassigned | ||
Wallaby |
Fix Committed
|
Undecided
|
Unassigned | ||
Xena |
Fix Committed
|
Undecided
|
Unassigned | ||
Yoga |
Fix Committed
|
Undecided
|
Unassigned | ||
Zed |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When resizing a disk that is attached to an instance, cinder will send an event to nova which in turn prompts nova to notify the guest that the disk size has changed.
It's confirmed happening with Ceph RBD, Cinder-KVM, and some other iSCSI backends.
https:/
Steps to reproduce:
openstack volume create --type my-iscsi-
openstack server add volume test-server test-resize
openstack volume set --os-volume-
On Focal Victoria, this operation fails with the following error [note: these logs can be found on cinder instance at /var/log/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova [req-790733a1-
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova Traceback (most recent call last):
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova response = nova.server_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self._create(
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova resp, body = self.api.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self.request(url, 'POST', **kwargs)
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova resp, body = super(SessionCl
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova resp = super(LegacyJso
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self.session.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova auth_headers = self.get_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return auth.get_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova token = self.get_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self.get_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova self.auth_ref = self.get_
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self._plugin.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova resp = session.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova return self.request(url, 'POST', **kwargs)
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova File "/usr/lib/
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova raise exceptions.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova keystoneauth1.
2021-08-10 07:50:28.926 1105394 ERROR cinder.compute.nova
Adding a [nova] section in cinder.conf with the required service credentials fixes this issue, and the guests are properly notified of the resize event.
Changed in charm-cinder: | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
Changed in charm-cinder: | |
status: | Triaged → In Progress |
Changed in charm-cinder: | |
assignee: | nobody → Samuel Walladge (swalladge) |
summary: |
- Missing [nova] section in cinder.conf + Missing [nova] section in cinder.conf "Extend an Attached Volume" + doesn't work with Victoria onwards |
description: | updated |
So it looks like the [nova] section was added a while back, and the config keys that are used were removed from cinder in the train release[1]. The commit that adds the [nova] section [2].
Were going to have to add a [nova] section to the cinder.conf (as the bug reporter indicates) with the relevant details. This should be backported to the Train release.
1. https:/ /docs.openstack .org/releasenot es/puppet- cinder/ train.html# relnotes- 15-4-0- stable- train /review. opendev. org/c/openstack /cinder/ +/460640
2. https:/