yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75218
[Bug 1797237] [NEW] Superfluous "Create attachment failed for volume" error in nova-api logs
Public bug reported:
The nova-api logs an error when trying to attach an in-use volume to a
server:
http://logs.openstack.org/91/607391/1/check/tempest-full-
py3/b5b4c63/controller/logs/screen-n-api.txt.gz?level=TRACE#_Oct_04_20_25_02_115652
Oct 04 20:25:02.115652 ubuntu-xenial-rax-ord-0002619241
devstack@n-api.service[12723]: ERROR nova.volume.cinder [None req-
45be0f9a-8af9-4886-9ef8-d09895704e36 tempest-
AttachVolumeNegativeTest-1174814842 tempest-
AttachVolumeNegativeTest-1174814842] [instance:
9b06c833-dd88-4dd0-a601-bf3dac884cb0] Create attachment failed for
volume c87044fa-7299-4559-a605-0e5d92e4e50b. Error: Invalid volume:
Volume c87044fa-7299-4559-a605-0e5d92e4e50b status must be available or
downloading (HTTP 400) (Request-ID: req-c7739c6e-b110-4b0e-a0ee-
62f3e530205e) Code: 400: cinderclient.exceptions.BadRequest: Invalid
volume: Volume c87044fa-7299-4559-a605-0e5d92e4e50b status must be
available or downloading (HTTP 400) (Request-ID: req-c7739c6e-b110-4b0e-
a0ee-62f3e530205e)
This is normal and handled by the compute API which results in a 400
response to the user:
Oct 04 20:25:02.123693 ubuntu-xenial-rax-ord-0002619241
devstack@n-api.service[12723]: INFO nova.api.openstack.wsgi [None req-
45be0f9a-8af9-4886-9ef8-d09895704e36 tempest-
AttachVolumeNegativeTest-1174814842 tempest-
AttachVolumeNegativeTest-1174814842] HTTP exception thrown: Invalid
input received: Invalid volume: Volume
c87044fa-7299-4559-a605-0e5d92e4e50b status must be available or
downloading (HTTP 400) (Request-ID: req-c7739c6e-b110-4b0e-a0ee-
62f3e530205e)
We shouldn't log an error for that since it doesn't require operator
intervention.
** Affects: nova
Importance: Medium
Assignee: Matt Riedemann (mriedem)
Status: In Progress
** Affects: nova/queens
Importance: Medium
Status: Triaged
** Affects: nova/rocky
Importance: Medium
Status: Triaged
** Tags: api logging
** Also affects: nova/queens
Importance: Undecided
Status: New
** Also affects: nova/rocky
Importance: Undecided
Status: New
** Changed in: nova/queens
Status: New => Triaged
** Changed in: nova/rocky
Status: New => Triaged
** Changed in: nova/queens
Importance: Undecided => Medium
** Changed in: nova/rocky
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1797237
Title:
Superfluous "Create attachment failed for volume" error in nova-api
logs
Status in OpenStack Compute (nova):
In Progress
Status in OpenStack Compute (nova) queens series:
Triaged
Status in OpenStack Compute (nova) rocky series:
Triaged
Bug description:
The nova-api logs an error when trying to attach an in-use volume to a
server:
http://logs.openstack.org/91/607391/1/check/tempest-full-
py3/b5b4c63/controller/logs/screen-n-api.txt.gz?level=TRACE#_Oct_04_20_25_02_115652
Oct 04 20:25:02.115652 ubuntu-xenial-rax-ord-0002619241
devstack@n-api.service[12723]: ERROR nova.volume.cinder [None req-
45be0f9a-8af9-4886-9ef8-d09895704e36 tempest-
AttachVolumeNegativeTest-1174814842 tempest-
AttachVolumeNegativeTest-1174814842] [instance:
9b06c833-dd88-4dd0-a601-bf3dac884cb0] Create attachment failed for
volume c87044fa-7299-4559-a605-0e5d92e4e50b. Error: Invalid volume:
Volume c87044fa-7299-4559-a605-0e5d92e4e50b status must be available
or downloading (HTTP 400) (Request-ID: req-c7739c6e-b110-4b0e-a0ee-
62f3e530205e) Code: 400: cinderclient.exceptions.BadRequest: Invalid
volume: Volume c87044fa-7299-4559-a605-0e5d92e4e50b status must be
available or downloading (HTTP 400) (Request-ID: req-c7739c6e-b110
-4b0e-a0ee-62f3e530205e)
This is normal and handled by the compute API which results in a 400
response to the user:
Oct 04 20:25:02.123693 ubuntu-xenial-rax-ord-0002619241
devstack@n-api.service[12723]: INFO nova.api.openstack.wsgi [None req-
45be0f9a-8af9-4886-9ef8-d09895704e36 tempest-
AttachVolumeNegativeTest-1174814842 tempest-
AttachVolumeNegativeTest-1174814842] HTTP exception thrown: Invalid
input received: Invalid volume: Volume
c87044fa-7299-4559-a605-0e5d92e4e50b status must be available or
downloading (HTTP 400) (Request-ID: req-c7739c6e-b110-4b0e-a0ee-
62f3e530205e)
We shouldn't log an error for that since it doesn't require operator
intervention.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1797237/+subscriptions
Follow ups