Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230602 - version bump app-admin/bcfg2-0.9.6_pre2
Summary: version bump app-admin/bcfg2-0.9.6_pre2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 03:18 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2008-09-08 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
_pre2 ebuild with lxml dep and bcfg2-admin notice (bcfg2-0.9.6_pre2.ebuild,1.42 KB, text/plain)
2008-08-14 12:59 UTC, Luca Lesinigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-03 03:18:49 UTC
@amd64 team: Thanks for your time! =) Please close bug after you are done.
Comment 1 Chad A. Simmons 2008-07-14 14:54:16 UTC
server functionality doesnt appear to work on ~amd64 investigating

cciechad@chadgentoo ~ $ sudo /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
Traceback (most recent call last):
  File "/usr/sbin/bcfg2-server", line 6, in <module>
    import Bcfg2.Server.Plugins.Metadata
  File "usr/lib64/python2.5/site-packages/Bcfg2/Server/Plugins/Metadata.py", line 4, in <module>
ImportError: No module named lxml.etree
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-14 15:10:28 UTC
(In reply to comment #1)
> server functionality doesnt appear to work on ~amd64 investigating
> 
> cciechad@chadgentoo ~ $ sudo /usr/sbin/bcfg2-server -- -D
> /var/run/bcfg2-server.pid
> Traceback (most recent call last):
>   File "/usr/sbin/bcfg2-server", line 6, in <module>
>     import Bcfg2.Server.Plugins.Metadata
>   File "usr/lib64/python2.5/site-packages/Bcfg2/Server/Plugins/Metadata.py",
> line 4, in <module>
> ImportError: No module named lxml.etree
> 

That is odd, Michael (CC'd on this bug) runs this app on amd64 and I assume he tested it well enough before submitting it to me. Looks like a missing dep on dev-python/lxml?
Comment 3 Chad A. Simmons 2008-07-14 15:14:07 UTC
Adding the missing dep gets the server to start but I still cannot connect with the client localy.

chadgentoo / # bcfg2 -q -v -n
no server x509 fingerprint; no server verification performed!
Unknown failure
Traceback (most recent call last):
  File "usr/lib64/python2.5/site-packages/Bcfg2/Proxy.py", line 27, in __call__
    return _Method.__call__(self, *args)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.5/xmlrpclib.py", line 1340, in _parse_response
    return u.close()
  File "/usr/lib64/python2.5/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Fault: <Fault 6: 'Client metadata resolution error for 127.0.0.1'>
Failed to download probes from bcfg2
Server Failure
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-14 15:25:55 UTC
(In reply to comment #3)
> Adding the missing dep gets the server to start but I still cannot connect with
> the client localy.
> 
> chadgentoo / # bcfg2 -q -v -n
> no server x509 fingerprint; no server verification performed!
> Unknown failure
> Traceback (most recent call last):
>   File "usr/lib64/python2.5/site-packages/Bcfg2/Proxy.py", line 27, in __call__
>     return _Method.__call__(self, *args)
>   File "/usr/lib64/python2.5/xmlrpclib.py", line 1147, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib64/python2.5/xmlrpclib.py", line 1437, in __request
>     verbose=self.__verbose
>   File "/usr/lib64/python2.5/xmlrpclib.py", line 1201, in request
>     return self._parse_response(h.getfile(), sock)
>   File "/usr/lib64/python2.5/xmlrpclib.py", line 1340, in _parse_response
>     return u.close()
>   File "/usr/lib64/python2.5/xmlrpclib.py", line 787, in close
>     raise Fault(**self._stack[0])
> Fault: <Fault 6: 'Client metadata resolution error for 127.0.0.1'>
> Failed to download probes from bcfg2
> Server Failure
> 

We will have to wait until Michael chimes in.
Comment 5 Chad A. Simmons 2008-07-16 18:42:45 UTC
Small critique on the ebuild.

1. The user needs to run bcfg2-admin init

Shouldn't we add this to pkg_config or an einfo to make it easier for users?
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-16 18:56:04 UTC
(In reply to comment #5)
> Small critique on the ebuild.
> 
> 1. The user needs to run bcfg2-admin init
> 
> Shouldn't we add this to pkg_config or an einfo to make it easier for users?
> 

Not able to commit ATM, but..

 pkg_postinst () {
        depscan.sh
+       einfo "If this is a new installation, you probably need to run \"bcfg2-admin"
+       einfo "init\""
 }

...should do it.
Comment 7 Michael Jinks 2008-07-23 00:33:49 UTC
(In reply to comment #4)
> We will have to wait until Michael chimes in.

Apologies for the slow response; traveling all last week and still getting caught up.

Usually, client metadata resolution failures happen because the server can't associate the client's address with any entry in Metadata/clients.xml, or else it can't get from there to the proper toolset via Metadata/groups.xml or one of its includes.

Chad, what do you have in your configuration repository for 127.0.0.1?
Comment 8 Luca Lesinigo 2008-08-14 12:25:28 UTC
FYI, pre2 is out
Comment 9 Luca Lesinigo 2008-08-14 12:59:19 UTC
Created attachment 162891 [details]
_pre2 ebuild with lxml dep and bcfg2-admin notice

Here is an ebuild for 0.9.6_pre2.

I added ~amd64, runtime dep on dev-python/lxml, and a reminder to run "bcfg2-admin init" if USE=server

I'm currently learning my way through bcfg2 (first time user) but on my gentoo/hardened amd64 the server starts and the "bcfg2 -q -v -n" local test runs ok.
Comment 10 Chad A. Simmons 2008-09-08 18:09:21 UTC
Fixed my repo and this appears to be working OK. Lets go ahead and keyword this ~amd64. Sorry for the delay.
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-09-08 18:22:00 UTC
~amd64 kw added, removing amd64@g.o and taking care of the version bump in comment #9. Thanks Chad
Comment 12 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-09-08 18:32:20 UTC
(In reply to comment #9)
> Created an attachment (id=162891) [edit]
> _pre2 ebuild with lxml dep and bcfg2-admin notice
> 
> Here is an ebuild for 0.9.6_pre2.
> 
> I added ~amd64, runtime dep on dev-python/lxml, and a reminder to run
> "bcfg2-admin init" if USE=server
> 
> I'm currently learning my way through bcfg2 (first time user) but on my
> gentoo/hardened amd64 the server starts and the "bcfg2 -q -v -n" local test
> runs ok.
> 

Thanks, looks fine. added and removed old version. (Please do a new bug next time).