Bug 1950734

Summary: nmstate preuninstall scriptlet fails
Product: [Fedora] Fedora Reporter: David Juran <djuran>
Component: nmstateAssignee: Fernando F. Mancera <ferferna>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 33CC: danken, ferferna, fge, opensource
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-0.3.7-2.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-04 22:22:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Juran 2021-04-18 08:36:18 UTC
Description of problem:
nmstate preuninstall scriptlet fails, causing updates or uninstall attempts to fail


Version-Release number of selected component (if applicable):
nmstate-0.3.7-1.fc33.noarch

$ sudo dnf erase nmstate-0.3.7-1.fc33.noarch

Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1 
  Running scriptlet: nmstate-0.3.7-1.fc33.noarch                                                                                                                                                                                          1/4 
/var/tmp/rpm-tmp.PM4ySc: line 1: fg: no job control
error: %preun(nmstate-0.3.7-1.fc33.noarch) scriptlet failed, exit status 1

Error in PREUN scriptlet in rpm package nmstate
  Erasing          : python3-libnmstate-0.3.7-1.fc33.noarch                                                                                                                                                                               2/4 
error: nmstate-0.3.7-1.fc33.noarch: erase failed

Comment 1 Fernando F. Mancera 2021-04-19 08:11:49 UTC
Thanks for reporting this. I am looking into it.

Comment 2 Fernando F. Mancera 2021-04-19 13:14:37 UTC
Hello!

I've created the following PR on upstream fixing it. https://github.com/nmstate/nmstate/pull/1567 and the following build for fedora 33. https://koji.fedoraproject.org/koji/taskinfo?taskID=66257127 

I am going to rebuild it for f34 and rawhide too as they are affected by this.

Comment 3 Fernando F. Mancera 2021-04-26 09:26:28 UTC
In order to remove the current broken package, please use:  `dnf remove --setopt=tsflags=noscripts nmstate`. Thanks!

Comment 4 Ben Cotton 2021-11-04 14:38:03 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2021-11-04 15:36:02 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.