LXC & Cinder: AttributeError: 'NoneType' object has no attribute 'rpartition'

Bug #1880429 reported by Radosław Piliszek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

When using LXC with volumes from Cinder, nova-compute logs [1] every minute.

Also, the instance cannot be started after having been stopped and fails on [2] (same error, different stack).

Tested using master (Victoria) on Ubuntu 18.04 (bionic) using devstack.

Note this only happens with LXC *and* Cinder.
Cinder uses the lvm backend.

[1] http://paste.openstack.org/show/793940/
[2] http://paste.openstack.org/show/793941/

Tags: lxc volumes
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Another issue is it does not make instance appear in ERROR state - it appears just as if the instance shut itself down.

description: updated
tags: added: lxc volumes
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

As far as I know there is no LXC CI jobs so I would not be surprised if nova's LXC support is degraded over time. Could you paste your devstack / nova config so I can try to reproduce the issue?

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

Putting this incomplete now. Please set it back to New once the requested config is provided.

Changed in nova:
status: New → Incomplete
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

I did not want to make it too hard for myself so it's very barebones really:

[[local|localrc]]

ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

LIBVIRT_TYPE=lxc

Changed in nova:
status: Incomplete → New
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

I was actually looking at reviving the job, I talked with Sean Mooney some time ago about that. I even have https://review.opendev.org/676024 bookmarked. Currently I run the Ubuntu Bionic Cloud LXC image which gets me farthest in the process (if done cinder-less that is). I still could not get to the console (except for the logs) nor ssh but the instance does get alive, gets ip address and is later pingable. SSH seems to be getting set up but does not respond yet.

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

I don't think openstack server stop works at all without even cinder involved. [1] It seems that stop puts the server to SHUTOFF state but the container running happily on the host according to ps. After the instance is started up again with opentack server start as second container is started and both containers starts running in parallel.

[1] http://paste.openstack.org/show/793987/

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

After openstack server delete only the second container is deleted the first is left on the host. :/

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

Also now I can reproduce the original problem you reported. I get the same stacktrace when a server is booted with additional cinder volumes. So marking this bug as Confirmed.

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Thanks, Balazs, for confirming. Indeed the LXC support needs some love...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.