Modify

Ticket #1054 (closed defect: worksforme)

Opened 11 years ago

Last modified 11 years ago

Man page for remove configuration elements (-r) option incorrect

Reported by: https://www.google.com/accounts/o8/id?id=AItOawlIm5EgGLqOqGEr7NnQwG0NBPWGKgiWMEo Owned by: desai
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

The man page for bcfg2 states the following:

Cause bcfg2 to remove extra configuration elements it detects. Mode is one of all, Services,  or Packages. All removes all entries. Likewise, Services and Packages remove only the extra configuration elements of the respective type.

This indicates that the Services and Packages command line params should be capitalized, however bcfg2 does not recognize these options:

Got unknown argument Packages for -r

The man page should be fixed to indicate that Services and Packages are lowercase.

Attachments

Change History

comment:1 Changed 11 years ago by solj

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.2.0 Release

This is working for me in rc1. The relevant code is at https://github.com/solj/bcfg2/blob/master/src/sbin/bcfg2#L113-118.

# bcfg2 -vqr Packages
Running probe current-kernel
Probe current-kernel has result:
2.6.32-34-server
Running probe groups
Probe groups has result:
group:deb
group:linux
group:lucid
group:ubuntu
group:amd64
Loaded tool drivers:
 APT      Action   DebInit  POSIX    Upstart  VCS     

Phase: initial
Correct entries:        422
Incorrect entries:      1
Total managed entries:  423
Unmanaged entries:      1

Installing file /etc/ssh/ssh_known_hosts
The Following Bundles have been modified:
 ssh 

Removing packages:
linux-image-2.6.32-33-server
(Reading database ... 24096 files and directories currently installed.)
Removing linux-image-2.6.32-33-server ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-34-server
Found initrd image: /boot/initrd.img-2.6.32-34-server
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old 
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old 
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.32-33-server ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-34-server
Found initrd image: /boot/initrd.img-2.6.32-34-server
done

Phase: final
Correct entries:        423
Incorrect entries:      0
Total managed entries:  423
Unmanaged entries:      0

All entries correct.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.