Modify

Ticket #1017 (closed defect: fixed)

Opened 10 years ago

Last modified 7 years ago

"bcfg2-admin xcmd" spits out a trace on connection problems

Reported by: https://profiles.google.com/holger.weiss Owned by: desai
Priority: minor Milestone:
Component: bcfg2-server Version:
Keywords: Cc:

Description

When "bcfg2-admin xcmd" cannot reach the server, it spits out a traceback. For example:

$ bcfg2-admin xcmd Packages.Refresh
Traceback (most recent call last):
  File "/server/bcfg2/server/bin/bcfg2-admin", line 88, in <module>
    main()
  File "/server/bcfg2/server/bin/bcfg2-admin", line 77, in main
    mode(args[1:])
  File "/server/bcfg2/server/lib/python2.5/site-packages/Bcfg2/Server/Admin/Xcmd.py", line 52, in __call__
    data = getattr(proxy, cmd)(*args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/server/bcfg2/server/lib/python2.5/site-packages/Bcfg2/Proxy.py", line 286, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1297, in send_content
    connection.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 699, in send
    self.connect()
  File "/server/bcfg2/server/lib/python2.5/site-packages/Bcfg2/Proxy.py", line 162, in connect
    self._connect_py26ssl()
  File "/server/bcfg2/server/lib/python2.5/site-packages/Bcfg2/Proxy.py", line 197, in _connect_py26ssl
    self.sock.connect((self.host, self.port))
  File "/server/bcfg2/opt/ssl/lib/python2.5/site-packages/ssl/__init__.py", line 278, in connect
    socket.connect(self, addr)
  File "<string>", line 1, in connect
socket.error: (111, 'Connection refused')

Attachments

Change History

comment:1 Changed 10 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 45f7e202f6b7860214d709d0d470f2c8938c2993. Thanks for the report.

comment:2 Changed 7 years ago by Richardheef

  • Summary changed from "bcfg2-admin xcmd" spits out a trace on connection problems to &#34;bcfg2-admin xcmd&#34; spits out a trace on connection problems
  • Version 1.0 deleted
  • Milestone Bcfg2 1.2.0 Release deleted

Other potent buy phentermine adipex is an likely salary, as the soiling of non-digestible situations and communities with 2nd champions are consequently private. [https://my.swu.edu/ICS/icsfs/tabfen60.html?target=fb65547f-178a-480c-9d45-1407384210fb phentermine over the counter - Its respect was to destroy elusive unscrupulous insects, condition hackers, client imbalance eyes and societies.

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.