Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (127 - 129 of 894)

Ticket Owner Reporter Resolution Summary
#364 desai naapuri fixed Installation fails (syntax error in Plugin.py)
Description

Installation fails (svn2701)

Compiling /usr/lib/python2.4/site-packages/Bcfg2/Server/Plugin.py ...
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugin.py", line 94
    def __init__(self, name, fam)
                                 ^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (40)
pycentral pkginstall: error byte-compiling files (40)

The obvious fix seems to be:

===================================================================
--- src/lib/Server/Plugin.py    (revision 2701)
+++ src/lib/Server/Plugin.py    (working copy)
@@ -91,7 +91,7 @@
     __child__ = FileBacked
     patterns = re.compile('.*')

-    def __init__(self, name, fam)
+    def __init__(self, name, fam):
         object.__init__(self)
         self.name = name
         self.fam = fam
#365 desai naapuri fixed Client says "AssertionError: All strings must be Unicode or ASCII"
Description

Despite this error, things seem to work. (Version: svn2701.)

# bcfg2 -q -d -v -n -r all
{'profile': False, 'kevlar': False, 'interactive': False, 'dryrun': True, 'verbose': True, 'paranoid': False, 'drivers': False, 'cache': False, 'remove': 'all', 'server': 'https://x.x.x.x:6789', 'quick': True, 'bundle': False, 'file': False, 'debug': True, 'build': False, 'password': 'xxxx', 'setup': '/etc/bcfg2.conf', 'help': False}
GetProbes completed successfully
GetConfig completed successfully
Reading package lists... Done
Building dependency tree... Done
Reading package lists... Done
Building dependency tree... Done
Loaded tool drivers:
 APT          DebInit      POSIX        PostInstall
Unexpected failure of verification method for entry type ConfigFile
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/__init__.py", line 101, in Inventory
    self.states[entry] = func(entry, self.buildModlist(entry, struct))
  File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/POSIX.py", line 209, in VerifyConfigFile
    entry.set('qtext', udiff + "\nInstall ConfigFile %s: (y/N) " % \
  File "etree.pyx", line 720, in etree._Element.set
  File "apihelpers.pxi", line 160, in etree._setAttributeValue
  File "apihelpers.pxi", line 497, in etree._utf8
AssertionError: All strings must be Unicode or ASCII
ConfigFile /etc/hosts permissions wrong: are 0640 should be 0644

Phase: initial
Correct entries:        524
Incorrect entries:      6
Total managed entries:  530
Unmanaged entries:      3

In dryrun mode: suppressing entry installation for:
...
#367 desai naapuri fixed Unprecise questions in interactive mode
Description
  1. In interactive mode, the client asks whether to upgrade packages. However, the proposed version might be older than the installed one.
Upgrade Package netbase (4.28 -> 4.27)? (y/N)

I'm not sure whether we can always have a credible way to check which package is newer, so maybe the best (or at least easiest) fix is to change the text to something like "Upgrade/downgrade Package".

  1. With ConfigFile? entries, the client asks this question for any kind of anomaly:
Would you like to install ConfigFile: /etc/hosts? (y/N):

This question should better indicate what is going to happen if one says "y" here. It might mean installing a whole new file or changing file contents and/or permissions/ownership. (Yes, the client might have printed lines such as "ConfigFile? /etc/hosts permissions wrong: are 0640 should be 0644" but they are not necessarily adjacent to the question.) How many different question texts are needed?

Note: See TracQuery for help on using queries.