Package: neutron-common
Version: 2:17.1.0-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts
Control: affects -1 + python3-neutron-fwaas

Hi,

during a test with piuparts I noticed python3-neutron-fwaas fails to
remove after the upgrade from buster to bullseye.

python3-neutron-fwaas does not exist in bullseye any longer, but does
not get removed during the upgrade. Removing the package after the
upgrade fails because it calls neutron-plugin-manage in a now
unsupported way. At least that's what I conclude from the log.

Adding a (unversioned) Breaks against the package should get it
removed before the incompatible neutron-plugin-manage script gets
unpacked.

>From the attached log (scroll to the bottom...):

  Removing python3-neutron-fwaas (1:13.0.1-7) ...
  2021-03-13 21:36:47,852 - stevedore.extension - ERROR - Could not load 
'firewall': cannot import name 'rpc' from 'neutron.common' 
(/usr/lib/python3/dist-packages/neutron/common/__init__.py)
  2021-03-13 21:36:47,869 - stevedore.extension - ERROR - Could not load 
'firewall_v2': cannot import name '_model_query' from 'neutron.db' 
(/usr/lib/python3/dist-packages/neutron/db/__init__.py)
  2021-03-13 21:36:47,870 - stevedore.extension - ERROR - Could not load 
'neutron.services.firewall.fwaas_plugin.FirewallPlugin': cannot import name 
'rpc' from 'neutron.common' 
(/usr/lib/python3/dist-packages/neutron/common/__init__.py)
  2021-03-13 21:36:47,883 - stevedore.extension - ERROR - Could not load 
'fwaas': cannot import name 'rpc' from 'neutron.common' 
(/usr/lib/python3/dist-packages/neutron/common/__init__.py)
  2021-03-13 21:36:47,886 - stevedore.extension - ERROR - Could not load 
'fwaas_v2': cannot import name 'rpc' from 'neutron.common' 
(/usr/lib/python3/dist-packages/neutron/common/__init__.py)
  2021-03-13 21:36:47,915 - neutron-plugin-manage - ERROR - Could not load 
'neutron.fwaas': cannot import name 'rpc' from 'neutron.common' 
(/usr/lib/python3/dist-packages/neutron/common/__init__.py)
  usage: neutron-plugin-manage disable
         [-h]
         [--service-plugin 
{auto_allocate,conntrack_helper,dummy,flavors,log,loki,metering,network_ip_availability,network_segment_range,ovn-router,placement,port_forwarding,qos,revisions,router,segments,tag,timestamp,trunk}]
         [--l3-extension 
{conntrack_helper,fip_qos,gateway_ip_qos,port_forwarding,snat_log,fwaas_v2_log}]
         {enable,disable}
         ...
  neutron-plugin-manage disable: error: argument --service-plugin: invalid 
choice: 'firewall_v2' (choose from 'auto_allocate', 'conntrack_helper', 
'dummy', 'flavors', 'log', 'loki', 'metering', 'network_ip_availability', 
'network_segment_range', 'ovn-router', 'placement', 'port_forwarding', 'qos', 
'revisions', 'router', 'segments', 'tag', 'timestamp', 'trunk')
  dpkg: error processing package python3-neutron-fwaas (--remove):
   installed python3-neutron-fwaas package pre-removal script subprocess 
returned error exit status 2
  dpkg: too many errors, stopping
  Errors were encountered while processing:
   python3-neutron-fwaas


cheers,

Andreas

Attachment: python3-neutron-fwaas_None.log.gz
Description: application/gzip

Reply via email to