[Spacewalk-list] package install/update/remove for debian systems

Mgr. Peter Hudec peter.hudec at cnc.sk
Fri Aug 31 09:43:41 UTC 2012


Hi Simon,

I found the problem and fixed it.

But fisrt .... There are @ way how to install package on system /even
debian/. Tje forst ist working the second not. Right do not know, what's
the diff, but this helps. It would be good to add this to repo.

INSERT
  INTO rhnArchTypeActions (arch_type_id, action_style, action_type_id)
       (SELECT ArchT.id, 'install', ActionT.id
          FROM rhnArchType ArchT, rhnActionType ActionT
         WHERE ArchT.label = 'deb'
           AND ActionT.label = 'packages.update');

INSERT
  INTO rhnArchTypeActions (arch_type_id, action_style, action_type_id)
       (SELECT ArchT.id, 'remove', ActionT.id
          FROM rhnArchType ArchT, rhnActionType ActionT
         WHERE ArchT.label = 'deb'
           AND ActionT.label = 'packages.remove');
INSERT
  INTO rhnArchTypeActions (arch_type_id, action_style, action_type_id)
       (SELECT ArchT.id, 'refresh_list', ActionT.id
          FROM rhnArchType ArchT, rhnActionType ActionT
         WHERE ArchT.label = 'deb'
           AND ActionT.label = 'packages.refresh_list');

INSERT
  INTO rhnArchTypeActions (arch_type_id, action_style, action_type_id)
       (SELECT ArchT.id, 'verify', ActionT.id
          FROM rhnArchType ArchT, rhnActionType ActionT
         WHERE ArchT.label = 'deb'
           AND ActionT.label = 'packages.verify');

	best regards
		Peter

On 08/31/2012 11:36 AM, Simon Lukasik wrote:
> On 08/30/2012 01:59 PM, Mgr. Peter Hudec wrote:
>> Hi all,
>>
>> we are using test installation of spcewalkfor debian basedsystem.
>> Today we found, theat we are not able toinstall/remove/upgrade package
>> from the repository/channel using the UI.
>>
>> I found that for the ArchType 'all-deb' with arch_type_id = 2 there is
>> no action associatedin the table rhnArchTypeActions, /see the RHN
>> Excpepion bellow/.
>> Does anyone has this feature working on debian systems? First time I was
>> testing the spacewalk I think it was working ;(
>>
> 
> Indeed, the most probably it was working.
> 
> The problem here is that the community can be divided into two
> mutually-exclusive groups of people. The first one is contributing to
> Spacewalk project. While the other one has Spacewalk setup in Debian
> environment.
> 
> The things would start to improve drastically if there was an intersection.
> 
>>
>> --- cut ---
>> [Thu Aug 30 09:17:27 2012] [error] Execution of
>> /var/www/html/network/software/packages/install_confirm.pxt failed at
>> Thu Aug 30 09:17:27 2012: RHN::Exception: No 'install' action label
>> found for package '7'\n  RHN::DB::Package
>> /usr/share/perl5/vendor_perl/RHN/DB/Package.pm 1255
>> RHN::Exception::throw\n  RHN::DB::Scheduler
>> /usr/share/perl5/vendor_perl/RHN/DB/Scheduler.pm 620
>> RHN::DB::Package::package_arch_type_action\n
>> Sniglets::ListView::SystemList
>> /usr/share/perl5/vendor_perl/Sniglets/ListView/SystemList.pm 1356
>> RHN::DB::Scheduler::schedule_package_install\n
>> Sniglets::ListView::SystemList
>> /usr/share/perl5/vendor_perl/Sniglets/ListView/SystemList.pm 918
>> Sniglets::ListView::SystemList::install_package\n
>> Sniglets::ListView::List
>> /usr/share/perl5/vendor_perl/Sniglets/ListView/List.pm 374
>> Sniglets::ListView::SystemList::in_set_cb\n  Sniglets::Lists
>> /usr/share/perl5/vendor_perl/Sniglets/Lists.pm 135
>> Sniglets::ListView::List::callback\n  PXT::ApacheHandler
>> /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 478
>> Sniglets::Lists::listview_cb\n  PXT::ApacheHandler
>> /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 103
>> PXT::ApacheHandler::pxt_parse_data\n  PXT::ApacheHandler
>> /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 103 (eval)\n  main -e
>> 0 PXT::ApacheHandler::handler\n  main -e 0 (eval)
>> [Thu Aug 30 09:17:27 2012] [error] Traceback sent to root at localhost at
>> /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm line 563.
>> --- cut ---
>>
>> 	best regards
>> 		Peter Hudec
>>
> 


-- 
Mgr. Peter Hudec
IT/Technical Specialist

CNC a.s.
Strojnícka 33
821 05 Bratislava

web: http://www.cnc.sk/
mail: peter.hudec at cnc.sk
mob: +421 905 997203




More information about the Spacewalk-list mailing list