Re: [Spacewalk-list] how to backupspacewalk

2011-04-18 Thread Miroslav Suchy

Dne 14.4.2011 21:51, rob morrien napsal(a):

Mirek,

sorry for the delay, but i have the collected info for you which you can
try on a test system


below backup working

bash-3.2$ sestatus
SELinux status: enabled
SELinuxfs mount:/selinux
Current mode:   permissive
Mode from config file:  permissive
Policy version: 21
Policy from config file:targeted


bash-3.2$ ./backup.sh
Doing online backup of the database.
Backup of the database succeeded.
Log file is at /usr/lib/oracle/xe/oxe_backup_current.log.
Press ENTER key to exit


backup not working

if selinux  is changed from permissive to enforcing

bash-3.2$ sestatus
SELinux status: enabled
SELinuxfs mount:/selinux
Current mode:   enforcing
Mode from config file:  enforcing
Policy version: 21
Policy from config file:targeted

bash-3.2$ ./backup.sh
 ERROR =
  Backup of the database failed
 ERROR =
flash recovery area is not enabled.
Log file is at /usr/lib/oracle/xe/oxe_backup_current.log.
Press ENTER key to exit

backup is not running when selinux is enforcing


This is one part, but it will not help us to as much as ...


Can you send us output of:
grep denied  /var/log/audit.log


... as, and I will repeat myself, the output of:
grep denied  /var/log/audit.log


Mirek

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuring Proxy

2011-04-18 Thread Miroslav Suchy

Dne 15.4.2011 19:30, Wojtak, Greg napsal(a):

Yes, on the server.  IIRC, I had to set up the spacewalk-client-repo AND
the spacewalk-repo, register the proxy server as a client (with
provisioning entitlement), then I was able to successfully configure my



Spacewalk-repo should be enough.

I think that the fact, that you have to be registered to Spacewalk 
Server is obvious. It seems, that is it not obvious.

I will add it to:
https://fedorahosted.org/spacewalk/wiki/HowToInstallProxy



Mirek

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuring Proxy

2011-04-18 Thread Miroslav Suchy

Dne 15.4.2011 11:36, Assaf Flatto napsal(a):

But if the server is RH6 and some of my clients are RH5 , how can i associate 
the channels for those to the server ?

Also , where do I need to define when setting the proxy the server that that 
proxy is querying or is done in the background and he is using it's already 
defined RHN channels ?


It does not matter which OS is running Spacewalk Server or Spacewalk 
Proxy. And you do not need to setup anything.


If I make it *very simply* (and leave out the security) it work very 
similar as regular proxy. You request package, the proxy will retrieve 
its  checksum from Spacewalk Server, and proxy will look into its 
storage whether file with this checksum is already stored in memory or 
disk and if so, it is sent back. If not - it is retrieved from Spacewalk 
Server.


Spacewalk Proxy really does not care about channels or your version of OS.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Newbie question: SpaceWalk RHEL4/5 and RHN

2011-04-18 Thread Miroslav Suchy

Dne 15.4.2011 20:45, Musayev, Ilya napsal(a):

Hi All,

Apology if this a repeat of what may have been asked, I’m spacewalk
newbie and would like to know if we can use spacewalk with redhat hosts
and RHN.


No, you can not.


My understanding from speaking to redhat folks is that spacewalk is for
fedora and centos distros. While centos is a replica of rhel, I wonder
why cant rhel be used. Also, can I directly subscribe to RHN via
spacewalk or do I need to download and import channels by some other means.


We make it as advantage of RHN Satellite.

If you want to use Spacewalk with RHN, you can download packages and 
then upload it to Spacewalk manually (or search archives as some people 
write scripts for that). But if you want to use satellite-sync you can 
do that only with license of RHN Satellite.


Miroslav Suchy

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Newbie question: SpaceWalk RHEL4/5 and RHN

2011-04-18 Thread Assaf Flatto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

But can I run Spacewalk on a RH server with an RHN subscription , or do I have 
to run Satellite ? 

I prefer to use Spacewalk as i do not wish to work with the Oracle DB , but use 
the Postgressql Backend .

 


On 18 Apr 2011, at 07:45, Miroslav Suchy wrote:

 Dne 15.4.2011 20:45, Musayev, Ilya napsal(a):
 Hi All,
 
 Apology if this a repeat of what may have been asked, I’m spacewalk
 newbie and would like to know if we can use spacewalk with redhat hosts
 and RHN.
 
 No, you can not.
 
 My understanding from speaking to redhat folks is that spacewalk is for
 fedora and centos distros. While centos is a replica of rhel, I wonder
 why cant rhel be used. Also, can I directly subscribe to RHN via
 spacewalk or do I need to download and import channels by some other means.
 
 We make it as advantage of RHN Satellite.
 
 If you want to use Spacewalk with RHN, you can download packages and then 
 upload it to Spacewalk manually (or search archives as some people write 
 scripts for that). But if you want to use satellite-sync you can do that only 
 with license of RHN Satellite.
 
 Miroslav Suchy
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list


-BEGIN PGP SIGNATURE-
Version: PGP Desktop 10.1.0 (Build 860)
Charset: windows-1252

wsBVAwUBTawRhWK6JZrjLX7GAQhh1Af/dtqkh+JJTI7MBrnY1R9rWNtyy9Qn4bfS
q+2BScEBH4Nu5FMCupSFWdzVKBhHzVKot+ttUT+PcRrrcIHrH3cMuwKX7jd8T5bO
xGOTGoEtgMHtIQ1H2JchkZpJL64en+hfSR4jG8c6A0agfqyMZBkAHbUbJiPN2LmW
hJcN5QGoIwrLl5eJdFodqkjkbtFVzewyFHYSI9Ow/H5Ng480uahMaFPLHS/RpFqb
YCD3OWGeL98OEh/jWUzLEZUV9rRvyiMfGLhmFm0lS7bzjB0BIR/8JwNU1SKqih7Q
cqUZWzDoIQlqTB+WkBrTlsCg6mVsWbXJb9Jtm5SGOIMUsD6wsKny8Q==
=e1fx
-END PGP SIGNATURE-

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Newbie question: SpaceWalk RHEL4/5 and RHN

2011-04-18 Thread Assaf Flatto
The Oracle way is not an  option , as I was told from my boss .

and for the number are looking at approx 50 servers for the initial step.



On 18 Apr 2011, at 12:02, Kobus Bensch wrote:

 IMHO  the postgre support is very limited with Spacewalk and non-existent 
 with Satellite. I have opted for the Oracle db backend and found it to be a 
 lot more stable. Also from experience, i hard ever had to do anything with 
 the db once it is all up and running.
 
 Besides, how many hosts do you want to manage? 
 
 On 18/04/11 11:25, Assaf Flatto wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 But can I run Spacewalk on a RH server with an RHN subscription , or do I 
 have to run Satellite ? 
 
 I prefer to use Spacewalk as i do not wish to work with the Oracle DB , but 
 use the Postgressql Backend .
 
  
 
 
 On 18 Apr 2011, at 07:45, Miroslav Suchy wrote:
 
 Dne 15.4.2011 20:45, Musayev, Ilya napsal(a):
 Hi All,
 
 Apology if this a repeat of what may have been asked, I’m spacewalk
 newbie and would like to know if we can use spacewalk with redhat hosts
 and RHN.
 No, you can not.
 
 My understanding from speaking to redhat folks is that spacewalk is for
 fedora and centos distros. While centos is a replica of rhel, I wonder
 why cant rhel be used. Also, can I directly subscribe to RHN via
 spacewalk or do I need to download and import channels by some other means.
 We make it as advantage of RHN Satellite.
 
 If you want to use Spacewalk with RHN, you can download packages and then 
 upload it to Spacewalk manually (or search archives as some people write 
 scripts for that). But if you want to use satellite-sync you can do that 
 only with license of RHN Satellite.
 
 Miroslav Suchy
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 -BEGIN PGP SIGNATURE-
 Version: PGP Desktop 10.1.0 (Build 860)
 Charset: windows-1252
 
 wsBVAwUBTawRhWK6JZrjLX7GAQhh1Af/dtqkh+JJTI7MBrnY1R9rWNtyy9Qn4bfS
 q+2BScEBH4Nu5FMCupSFWdzVKBhHzVKot+ttUT+PcRrrcIHrH3cMuwKX7jd8T5bO
 xGOTGoEtgMHtIQ1H2JchkZpJL64en+hfSR4jG8c6A0agfqyMZBkAHbUbJiPN2LmW
 hJcN5QGoIwrLl5eJdFodqkjkbtFVzewyFHYSI9Ow/H5Ng480uahMaFPLHS/RpFqb
 YCD3OWGeL98OEh/jWUzLEZUV9rRvyiMfGLhmFm0lS7bzjB0BIR/8JwNU1SKqih7Q
 cqUZWzDoIQlqTB+WkBrTlsCg6mVsWbXJb9Jtm5SGOIMUsD6wsKny8Q==
 =e1fx
 -END PGP SIGNATURE-
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 
 -- 
 Kobus Bensch
 Linux Administrator
 kobus.ben...@lovefilm.com
 
 No.9 | 6 Portal Way | London | W3 6RU |
 T: +44 (0)20 8896 8014 | F: +44 (0)20 8896 8111
 lfi.gif
 
 
 LOVEFiLM UK Limited is a company registered in England and Wales. 
 Registered Number: 06528297. 
 Registered Office: No.9, 6 Portal Way, London W3 6RU, United Kingdom.
 This e-mail is confidential to the ordinary user of the e-mail address to 
 which it was 
 addressed. If you have received it in error, please delete it from your 
 system and notify 
 the sender immediately.
 
 This email message has been delivered safely and archived online by Mimecast.
 For more information please visit http://www.mimecast.co.uk
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list



PGP.sig
Description: PGP signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuring Proxy

2011-04-18 Thread Assaf Flatto
I have installed the client repo , but when i try to install the proxy packages 
i get his issue :

-- Processing Conflict: spacewalk-proxy-broker-1.3.11-1.el6.noarch conflicts 
rhns-satellite-tools
-- Finished Dependency Resolution
Error: spacewalk-proxy-broker conflicts with spacewalk-backend-tools
 You could try using --skip-broken to work around the problem



On 15 Apr 2011, at 18:30, Wojtak, Greg wrote:

 Yes, on the server.  IIRC, I had to set up the spacewalk-client-repo AND
 the spacewalk-repo, register the proxy server as a client (with
 provisioning entitlement), then I was able to successfully configure my
 proxy.
 
 I'm still not able to get OSA working properly through the proxy, though.
 
 On 2011-04-15 10:50 AM, Assaf Flatto assaf.fla...@goldmoney.com wrote:
 
 this is my server not a client.
 
 And it is running on Centos so it is not registered in the RHN.
 
 
 On 15 Apr 2011, at 15:14, Wojtak, Greg wrote:
 
 This confused me as well.  I think the procedure is to install the
 spacewalk-clent-repo rpm and associated tools and then register it to
 spacewalk with a Provisioning entitlement as you would any normal
 client.
 
 
 
 On 2011-04-15 6:00 AM, Assaf Flatto assaf.fla...@goldmoney.com
 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Also to add to my confusion when i try to run the script I am getting
 an
 error 
 
 ./configure-proxy.sh
 ERROR: RHN Proxy does not appear to be registered
 
 When looking at the RHN channels i do not see a proxy channel , but
 other
 wise the server is registered and listed on the RHN.
 
 Thanks
 
 Assaf
 
 
 On 15 Apr 2011, at 10:36, Assaf Flatto wrote:
 
 Old Signed: 15/04/2011 at 10:36:09
 
 Hello 
 
 I read the wiki about the proxy and also the RHN pdf about the proxy ,
 but still have some points that are not clear to me , so I was
 wondering
 if anyone can provide me with better clarification :
 As far as I understand it , when setting a Spacewalk server as a proxy
 iit will cache the rpm's and errata's and the clients will you LAN to
 retrieve the updates ,that the server acquired  via it's subscription
 to
 channels on the RHN network .
 
 But if the server is RH6 and some of my clients are RH5 , how can i
 associate the channels for those to the server ?
 
 Also , where do I need to define when setting the proxy the server
 that
 that proxy is querying or is done in the background and he is using
 it's
 already defined RHN channels ?
 
 Thanks
 
 Assaf 
 
 * Assaf Flatto assaf.fla...@goldmoney.com
 * 0xE32D7EC6(L)
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 
 -BEGIN PGP SIGNATURE-
 Version: PGP Desktop 10.1.0 (Build 860)
 Charset: us-ascii
 
 wsBVAwUBTagXNGK6JZrjLX7GAQj5ugf/XqzSbOlDPjBuWmhk3nAymoiREfC1gzo7
 BoS5gHoEmSKFlmrJIJqzrK97fOReULhXE1Pe89dPqJyRqHVUjB9iL3cAUi2bWTmm
 sc1/fVUHXgu7GyPVDiFHoA1m62uZDs3Tn8WcsyYhXX2m+S9w1R9tYgJhm9tonBV7
 TTc/5cCNSksrURLmkrYasEmukTNiRQpWd73390vV/QYmVU07QTF7z8phW6sjhUji
 XSmhcVbodq4KMuqGhI4iV9WsFSUVfQ3e/mbXJTO7CFuyaew1PhTmxYDVaRCKbfpP
 ovRSSvliUlD39k8xy9A/09UIGVidbSeMvdQXsSUCHwp38t3vWFgIKg==
 =oE8g
 -END PGP SIGNATURE-
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list



PGP.sig
Description: PGP signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] registering on the same host

2011-04-18 Thread Assaf Flatto
Hello 

I've reinstalled  my server on an RHEL6 platform and since i want the server to 
be the proxy to the RH network , i wished to register the host as a client on 
the server ( same host)

This is the error I got :


rhnreg_ks --serverUrl=https://host.foo.com/XMLRPC 
--activationkey=1-18ec022c1a02a7bccd8594c57013ff5b --force
An error has occurred:
class 'up2date_client.up2dateErrors.SSLCertificateVerifyFailedError'
See /var/log/up2date for more information
[root@host ~]#  less /var/log/up2date
[root@host ~]# tail -20  /var/log/up2date
  File /usr/share/rhn/up2date_client/rhnserver.py, line 64, in __call__
raise up2dateErrors.SSLCertificateVerifyFailedError()
class 'up2date_client.up2dateErrors.SSLCertificateVerifyFailedError': The SSL 
certificate /usr/share/rhn/RHNS-CA-CERT failed verification.

[Mon Apr 18 14:11:04 2011] up2date 
Traceback (most recent call last):
  File /usr/sbin/rhnreg_ks, line 213, in module
cli.run()
  File /usr/share/rhn/up2date_client/rhncli.py, line 74, in run
sys.exit(self.main() or 0)
  File /usr/sbin/rhnreg_ks, line 90, in main
rhnreg.getCaps()
  File /usr/share/rhn/up2date_client/rhnreg.py, line 231, in getCaps
s.capabilities.validate()
  File /usr/share/rhn/up2date_client/rhnserver.py, line 156, in 
__get_capabilities
self.registration.welcome_message()
  File /usr/share/rhn/up2date_client/rhnserver.py, line 64, in __call__
raise up2dateErrors.SSLCertificateVerifyFailedError()
class 'up2date_client.up2dateErrors.SSLCertificateVerifyFailedError': The SSL 
certificate /usr/share/rhn/RHNS-CA-CERT failed verification.


It seems this was a known issue in older versions that was resolved with a 
rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm , but I was unable to find any place 
to download this rpm .

when I tried to find out what provides the SSL certification , i got this 
result 

yum provides /usr/share/rhn/RHNS-CA-CERT 

Loaded plugins: refresh-packagekit, rhnplugin
rhn-client-tools-1.0.0-38.el6.noarch : Support programs and libraries for Red 
Hat Network or Spacewalk
Repo: InstallMedia
Matched from:
Filename: /usr/share/rhn/RHNS-CA-CERT

rhn-client-tools-1.0.0-39.el6.noarch : Support programs and libraries for Red 
Hat Network or Spacewalk
Repo: rhel-x86_64-server-6
Matched from:
Filename: /usr/share/rhn/RHNS-CA-CERT

rhn-client-tools-1.4.16-1.el6.noarch : Support programs and libraries for Red 
Hat Network or Spacewalk
Repo: spacewalk
Matched from:
Filename: /usr/share/rhn/RHNS-CA-CERT

rhn-client-tools-1.3.12-1.el6.noarch : Support programs and libraries for Red 
Hat Network or Spacewalk
Repo: spacewalk-client
Matched from:
Filename: /usr/share/rhn/RHNS-CA-CERT

rhn-client-tools-1.4.16-1.el6.noarch : Support programs and libraries for Red 
Hat Network or Spacewalk
Repo: installed
Matched from:
Other   : Provides-match: /usr/share/rhn/RHNS-CA-CERT

I am not sure which of those is the correct one to use , so I have no idea how 
to proceed from this point .

Any one can help ?

Thanks

Assaf

PGP.sig
Description: PGP signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Reposync Error with Fedora 14 Updates Errata

2011-04-18 Thread Trevor T Kates
List:

Spacewalk Ver: 1.4-RC
OS Ver: CentOS 5.6

The following error is generated when attempting to sync to a Fedora 14 updates 
repo
which has errata. There are currently no erratum attached to the channel on my 
server
configured to sync to the Fedora 14 updates repo. Let me know if there is more 
info I
need to provide on this problem.

Thanks.

___
Trevor T. Kates

Traceback (most recent call last):
  File /usr/bin/spacewalk-repo-sync, line 69, in ?
sys.exit(abs(main() or 0))
  File /usr/bin/spacewalk-repo-sync, line 63, in main
sync.main()
  File 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py, line 
110, in main
self.import_updates(plugin, url)
  File 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py, line 
145, in import_updates
self.upload_updates(notices)
  File 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py, line 
159, in upload_updates
notice = self.fix_notice(notice)
  File 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py, line 
453, in fix_notice
notice['version'] = new_version / 100
TypeError: object does not support item assignment

CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuring Proxy

2011-04-18 Thread Tom Brown
 I have installed the client repo , but when i try to install the proxy 
 packages i get his issue :

 -- Processing Conflict: spacewalk-proxy-broker-1.3.11-1.el6.noarch conflicts 
 rhns-satellite-tools
 -- Finished Dependency Resolution
 Error: spacewalk-proxy-broker conflicts with spacewalk-backend-tools
  You could try using --skip-broken to work around the problem

and your proxy box is a RHEL6 yes ??

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


[Spacewalk-list] Channels getting mixed software packages

2011-04-18 Thread Tarun Reddy
So I've searched for this but can't find anything... I have two channels
listed in my spacewalk 1.3 instance, Centos 5 x86_64 and Redhat 6 x86_64
(testing).

At some point, I get packages that are listed in both parent channels
(specifically el6 packages listed in Centos 5) which messes everything up.
Has anyone seen this?

Tarun
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Oracle 11g issues

2011-04-18 Thread Mark Watts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm currently trying to install Spacewalk 1.3 with Oracle 11g (Standard
Edition One).

I've followed these guides:

https://fedorahosted.org/spacewalk/wiki/HowToInstall
https://fedorahosted.org/spacewalk/wiki/OracleXeSetup
http://flakrat.blogspot.com/2010/04/migrate-red-hat-spacewalk-server-from.html

The latter guide being where I got my Oracle installation settings from.

I can install Oracle OK.
I can run spacewalk-setup --disconnected, and it will happily populate
the orcl database for me.

My problems begin when the installer tries to restart osa-dispatcher,
which fails to start with the following:


2011/04/19 01:09:51 +01:00 31538 0.0.0.0:
rhnSQL/driver_cx_Oracle.check_connection('ERROR', DATABASE CONNECTION
TO 'orcl' LOST, Exception information: 'NoneType' object has no
attribute 'cursor')
2011/04/19 01:09:51 +01:00 31538 0.0.0.0:
rhnSQL/driver_cx_Oracle.connect('Connecting to database', 'orcl')
2011/04/19 01:09:51 +01:00 31538 0.0.0.0:
rhnSQL/driver_cx_Oracle.connect('ERROR', 'Connection attempt failed',
12154, 'ORA-12154: TNS:could not resolve the connect identifier
specified\n')
2011/04/19 01:09:51 +01:00 31538 0.0.0.0: osad/jabber_lib.main('ERROR',
'Error caught:')
2011/04/19 01:09:51 +01:00 31538 0.0.0.0: osad/jabber_lib.main('ERROR',
'Traceback (most recent call last):\n  File
/usr/share/rhn/osad/jabber_lib.py, line 118, in main\n
self.setup_config(config)\n  File
/usr/share/rhn/osad/osa_dispatcher.py, line 80, in setup_config\n
rhnSQL.initDB()\n  File
/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/__init__.py,
line 121, in initDB\n__init__DB(backend, host, port, username,
password, database)\n  File
/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/__init__.py,
line 59, in __init__DB\n__DB.check_connection()\n  File
/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py,
line 489, in check_connection\nself.connect() # only allow one try\n
 File
/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py,
line 385, in connect\nraise apply(sql_base.SQLConnectError,
err_args)\nSQLConnectError: (12154, \'ORA-12154: TNS:could not resolve
the connect identifier specified\\n\', \'orcl\', \'Connection_Connect():
server attach\')\n')


I'm not really sure why its failing; my hostname (spacewalk.example.com)
is in /etc/hosts and I've also got a local DNS server which is
pretending to be authoritative for example.com.

Connecting on the commandline as my spacewalk user works just fine
though, so I'm stumped:

[root@spacewalk ~]# sqlplus spacewalk/spacewalk@orcl

SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 19 01:11:59 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

SQL


Can anyone offer any advice?

Regards,

Mark.

- -- 
Mark Watts, BSc RHCE
http://www.linux-corner.info/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNrNO3AAoJEA67+nBFe32mf3kH/iJwwb/nR5dDi+JV5/QHd6jn
UdNR6DljQedkJA4auHCFPj6tWZ+4AMVTnsYGeyNbFfD1gtbTgicmcvlZoMij94DW
zm4p0PslqpzGweH5H6Qlz4Nf4+ZGLKeoqS/xHTEWBrbIUE7gT7D/kdbSu6dja2O9
3DW+5wjVg52TQcbgfm7m3s3AuYLSDdSqft4U4U3T8QCtqLmzOAO2UitO76JhsPMK
wirkJL2YPgi0uRV9F9A/xeq0gvfVnsnp+Cgw+u2vunuCkBHnKSW+bw0mRUPF5CfD
6fngU1DoZfjqXgYkKvok7i/Hqi5/WGPFP9UEXNQt6QmmC8euWfW8IVkyCxZvAqU=
=Dscx
-END PGP SIGNATURE-

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list