Project

General

Profile

Bug #11064

if plugin is broken, we cannot upgrade it

Added by Nicolas CHARLES 3 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
0

Description

if dsc technique disapeared, like because of upgrade of rudder, plugin cannot be upgraded anymore

The package is already installed, I will upgrade it.
Traceback (most recent call last):
  File "/opt/rudder/bin/rudder-pkg", line 326, in <module>
    install_file(args['<package.rpkg>'])
  File "/opt/rudder/bin/rudder-pkg", line 241, in install_file
    install(metadata, package_file, exist)
  File "/opt/rudder/bin/rudder-pkg", line 216, in install
    remove_files(DB['plugins'][metadata['name']])
  File "/opt/rudder/bin/rudder-pkg", line 211, in remove_files
    os.remove(filename)
OSError: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/dsc/rudder-directives.ps1'

Associated revisions

Revision 5f52cd92
Added by Alexis MOUSSET 3 months ago

Fixes #11064: if plugin is broken, we cannot upgrade it

History

#1 Updated by Nicolas CHARLES 3 months ago

even removing it fail

/opt/rudder/bin/rudder-pkg remove rudder-plugin-dsc
Traceback (most recent call last):
  File "/opt/rudder/bin/rudder-pkg", line 330, in <module>
    remove(args['<package>'])
  File "/opt/rudder/bin/rudder-pkg", line 262, in remove
    remove_files(metadata)
  File "/opt/rudder/bin/rudder-pkg", line 211, in remove_files
    os.remove(filename)
OSError: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/dsc/policy.psm1'

#2 Updated by François ARMAND 3 months ago

  • Target version set to 4.2-0.2

#3 Updated by François ARMAND 3 months ago

  • Assignee set to Alexis MOUSSET

#4 Updated by Alexis MOUSSET 3 months ago

  • Project changed from Rudder Windows Agent to Rudder
  • Category changed from Packaging to Packaging
  • Target version deleted (4.2-0.2)

This is a bug in rudder-pkg, moving to rudder-packages.

#5 Updated by Alexis MOUSSET 3 months ago

  • Target version set to 4.1.6

#6 Updated by Alexis MOUSSET 3 months ago

  • Status changed from New to In progress

#7 Updated by Alexis MOUSSET 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1368

#8 Updated by Alexis MOUSSET 3 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.6 and 4.2.0~beta3 which were released today.

Also available in: Atom PDF