[Spacewalk-list] Status of Solaris support

Pierre Casenove pcasenove at gmail.com
Fri Jun 22 15:38:07 UTC 2012


Sorry to spam, I also found the following exception in apache error_log:
Exception Handler Information
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheRequest.py",
line 122, in call_function
    response = apply(func, params)
  File "registration.py", line 923, in update_packages
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_wrapper.py",
line 62, in add_package
    SolarisPatches.add_patch(self, self.server.get("id"), entry)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_solarispatches.py",
line 89, in add_patch
    self._patches[sysid].append(DBPatch(patch))
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_solarispatches.py",
line 55, in __init__
    self.id = get_package_id(patch)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_solarispatches.py",
line 39, in get_package_id
    handle.execute(name=p.n, epoch=p.e, ver=p.v, rel=p.r, arch=p.a)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/sql_base.py",
line 163, in execute
    return apply(self._execute_wrapper, (self._execute, ) + p, kw)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
line 282, in _execute_wrapper
    retval = apply(function, p, kw)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/sql_base.py",
line 217, in _execute
    return self._execute_(args, kwargs)
  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
line 295, in _execute_
    self._real_cursor.execute(self.sql, params)
IntegrityError: new row for relation "rhnpackageevr" violates check
constraint "vn_rhnpackageevr_epoch"
CONTEXT:  Error occurred on dblink connection named "unnamed": could
not execute command.
SQL statement "SELECT  dblink_exec('at_conn',  $1 , true)"
PL/pgSQL function "pg_dblink_exec" line 4 at PERFORM
SQL statement "SELECT  pg_dblink_exec( 'insert into rhnPackageEVR(id,
epoch, version, release, evr) values (' ||  $1  || ', ' ||
coalesce(quote_literal( $2 ), 'NULL') || ', ' ||
coalesce(quote_literal( $3 ), 'NULL') || ', ' ||
coalesce(quote_literal( $4 ), 'NULL') || ', ' ||
evr_t(coalesce(quote_literal( $2 ), 'NULL'), coalesce(quote_literal(
$3 ), 'NULL'), coalesce(quote_literal( $4 ), 'NULL')) || ')' )"
PL/pgSQL function "lookup_evr" line 14 at PERFORM


2012/6/22 Pierre Casenove <pcasenove at gmail.com>:
> Setting the channel architecture to "SPARC Solaris" instead of "SPARC"
> and it could rhnpush the mpm generated from solaris.
>
> but the other issues are still alive!
>
>
> 2012/6/22 Pierre Casenove <pcasenove at gmail.com>:
>> Hello list,
>> I wanted to test Solaris 10 Sparc client management from my spacewalk
>> 1.7 server... and it is not very successful!
>> 1) I've downloaded the packages and installed them without any
>> problem. One note on the README file: libgcc is in /usr/sfw/lib, which
>> has to be added to the ld library path
>> 2) I've created a channel with "SPARC" architecture.
>> 3) rhnreg_ks fails to register my client:
>> rhnreg_ks --serverUrl=http://Server/XMLRPC --activationkey=1-solaris-10
>> Doing checkNeedUpdate
>> Updating cache...
>> #####################################################################
>> [100%]
>> Updating cache...
>> #####################################################################
>> [100%]
>> Updating cache...
>> #####################################################################
>> [100%]
>>
>> Traceback (most recent call last):
>>  File "/opt/redhat/rhn/solaris/usr/sbin/rhn_check", line 317, in ?
>>    run_local_actions()
>>  File "/opt/redhat/rhn/solaris/usr/sbin/rhn_check", line 77, in
>> run_local_actions
>>    (status, message, data) = run_action(method, params)
>>  File "/opt/redhat/rhn/solaris/usr/sbin/rhn_check", line 137, in run_action
>>    (status, message, data) = rhn.actions.do_call(method, params)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions/__init__.py",
>> line 18, in do_call
>>    return apply(func, params)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions/solarispkgs.py",
>> line 189, in checkNeedUpdate
>>    return refresh_list()
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions/solarispkgs.py",
>> line 197, in refresh_list
>>    exitdata = iface.run(command)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/smart/interfaces/up2date/interface.py",
>> line 201, in run
>>    rhnPackages.refreshPackages(pkgs)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/client/rhnPackages.py",
>> line 48, in refreshPackages
>>    rhnReg.updatePackages(rhnAuth.getSystemId(), packageList)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/client/rhnReg.py",
>> line 386, in updatePackages
>>    rpcServer.doCall(s.registration.update_packages, systemId, packageList)
>>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/client/rpcServer.py",
>> line 189, in doCall
>>    raise rhnErrors.CommunicationError(e.errmsg)
>> rhn.client.rhnErrors.CommunicationError: Error communicating with
>> server. The message was:
>> Internal Server Error
>>
>> On server side, here are the logs:
>> 2012/06/22 15:04:49 -00:00 8676 10.120.193.1:
>> registration._normalize_packages('ERROR', 'architecture du package',
>> 'sparc-solaris-patch')
>> 2012/06/22 15:04:49 -00:00 8676 10.120.193.1:
>> registration.update_packages(1000010006, 'packages: 1645')
>>
>> 4) i've uploaded a patch (119254-84.zip) on my spacewalk server and
>> ran solaris2mpm:
>> # solaris2mpm 119254-84.zip
>> Opening archive, this may take a while
>> Error creating mpm for /root/workdir/solaris/tmp/119254-84.zip:
>> <rhnpush.archive.InvalidArchiveError instance at 0xda5e638>
>>
>> 5) I've ran solaris2mpm from my Solaris client... it worked!
>> # solaris2mpm 119254-84.zip
>> Opening archive, this may take a while
>> Writing patch-solaris-119254-84-1.sparc-solaris-patch.mpm
>>
>> I then tried to rhnpush this package... it failed :'(
>> rhnpush -c solaris-10-sparc patch-solaris-119254-84-1.sparc-solaris-patch.mpm
>> Red Hat Network username: administrator
>> Red Hat Network password:
>>
>> Error Message:
>>    Package arch sparc-solaris-patch incompatible with channel solaris-10-sparc
>> Error Class Code: 50
>> Error Class Info: Invalid information uploaded to the server
>>
>>
>> Any help on these issues?
>>
>> Thanks in advance
>>
>> pierre




More information about the Spacewalk-list mailing list