Custom Query (894 matches)
Results (37 - 39 of 894)
Ticket | Owner | Reporter | Resolution | Summary |
---|---|---|---|---|
#854 | desai | https://www.google.com/accounts/o8/id?id=AItOawmSAqcanZjC_zUMz6-24nRYFLJWSQtV0vw | worksforme | BCFG2 fails to start on boot |
Description |
bcfg2-server (1.0.1-1~ppa1~jaunty1) fails to start upon boot of Ubuntu Jaunty 32bit and 64 servers running on Amazon Web Services. bcfg2-server starts fine from hand after server boots. syslog says: Feb 25 04:57:53 ip-10-212-98-49 bcfg2-server[b17f19280c7c73dd470bff90c9d838062855f1da] (SVN r1348): Failed to instantiate fam driver default Traceback (most recent call last): File "/var/lib/python-support/python2.6/Bcfg2/Server/Core.py", line 47, in init self.fam = Bcfg2.Server.FileMonitor?.available[filemonitor]() File "/var/lib/python-support/python2.6/Bcfg2/Server/FileMonitor.py", line 96, in init self.fm = _fam.open() IOError: _fam: unable to open connection Feb 25 04:57:53 ip-10-212-98-49 bcfg2-server[b17f19280c7c73dd470bff90c9d838062855f1da] (SVN r1348): ('failed to instantiate fam driver (used default)',) Feb 25 04:57:53 ip-10-212-98-49 bcfg2-server[b17f19280c7c73dd470bff90c9d838062855f1da] (SVN r1348): exiting |
|||
#862 | desai | Martin <[email protected]…> | worksforme | bcfg2-repo-validate -v complains about missing Bundles |
Description |
bcfg2-repo-validate -v complains about referenced, but missing Bundles if the Bundles are *.genshi Templates. bcfg2 version is 1.0.1 |
|||
#866 | solj | https://www.google.com/accounts/o8/id?id=AItOawlo86Mt9tqt2k06humTEpjOdekfWJoTv4M | worksforme | bcfg2-server SSHbase fails to generate key pairs |
Description |
When a client connects to the bcfg2 server, the server fails to generate new SSL certificate pairs for a client that does not already have valid certs in the SSHbase directory. logging from /var/log/messages: Mar 22 11:02:02 rhel bcfg2-server[19580]: Unexpected failure in BindStructure: ConfigFile /etc/ssh/ssh_host_rsa_key Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 179, in BindStructure self.Bind(entry, metadata) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 212, in Bind return glist[0].Entries[entry.tag][entry.get('name')](entry, metadata) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/SSHbase.py", line 179, in build_hk self.GenerateHostKeys(client) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/SSHbase.py", line 215, in GenerateHostKeys open(fileloc, 'w').write(open(temploc).read()) IOError: [Errno 2] No such file or directory: '/tmp/tmpdfu5E0/ssh_host_dsa_key.H_rhel' Mar 22 11:02:02 rhel bcfg2-server[19580]: Unexpected failure in BindStructure: ConfigFile /etc/ssh/ssh_host_rsa_key.pub Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 179, in BindStructure self.Bind(entry, metadata) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 212, in Bind return glist[0].Entries[entry.tag][entry.get('name')](entry, metadata) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/SSHbase.py", line 179, in build_hk self.GenerateHostKeys(client) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/SSHbase.py", line 215, in GenerateHostKeys open(fileloc, 'w').write(open(temploc).read()) IOError: [Errno 2] No such file or directory: '/tmp/tmpz6Mnzl/ssh_host_dsa_key.H_rhel' Mar 22 11:02:02 rhel bcfg2-server[19580]: Generated config for rhel in 0.520s Mar 22 11:02:03 rhel bcfg2-server[19580]: Client rhel reported state dirty From what I can tell, there is an os.system call (line #214 of Bcfg2/Server/Plugins/SSHbase.py) that is supposed to fire off ssh-keygen to generate the keys in a temporary directory. It seems that this call isn't generating the keys correctly. Adding in some debug os.listdir(tempdir) calls before and after the os.system call, shows that there are no files before and after the os.system call. Running the command manually generates valid key pairs. Has anyone else seen this problem? [[email protected] SSHbase]# uname -a Linux rhel 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux [[email protected] SSHbase]# rpm -q bcfg2-server bcfg2-server-1.0.1-1 [[email protected] SSHbase]# rpm -q bcfg2 bcfg2-1.0.1-1 [[email protected] SSHbase]# pwd /var/lib/bcfg2/SSHbase [[email protected] SSHbase]# ls -l total 4 -rw-r----- 1 root root 0 Mar 22 11:02 ssh_host_dsa_key.H_rhel [[email protected] SSHbase]# which ssh-keygen /usr/bin/ssh-keygen directory) [[email protected] SSHbase]# file /usr/bin/ssh-keygen /usr/bin/ssh-keygen: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped [[email protected] SSHbase]# ls -l /tmp/tmpz6Mnzl /tmp/tmpz6Mnzl: total 0 [[email protected] SSHbase]# ssh-keygen -q -f /tmp/tmpz6Mnzl/ssh_host_rsa_key.H_rhel -N "" -t rsa -C [email protected] < /dev/null [[email protected] SSHbase]# ls -l /tmp/tmpz6Mnzl/ /tmp/tmpz6Mnzl: total 16 -rw------- 1 root root 1675 Mar 22 11:13 ssh_host_rsa_key.H_rhel -rw------- 1 root root 391 Mar 22 11:13 ssh_host_rsa_key.H_rhel.pub |