[Spacewalk-list] channel.software.syncRepo doesn't pass down sync-kickstars option to sync-kickstars

Luca Menegus lucam at dbmsrl.com
Fri Mar 20 18:02:54 UTC 2015


Hi Tomas,
 thank you very much. I'm waiting for nightly package to be available, then I let you.

Regards,
 Luca

----- Original Message -----
> From: "Tomas Lestach" <tlestach at redhat.com>
> To: spacewalk-list at redhat.com
> Sent: Thursday, March 19, 2015 4:29:10 PM
> Subject: Re: [Spacewalk-list] channel.software.syncRepo doesn't pass down sync-kickstars option to sync-kickstars
> 
> Hello Luca,
> 
> I didn't hit your bug. However, I changed the code to pass reposync arguments
> as a list, not as one long string, that should address your issue.
> 
> Regards,
> --
> Tomas Lestach
> Red Hat Satellite Engineering, Red Hat
> 
> [1]
> https://github.com/spacewalkproject/spacewalk/commit/29c8ce9584873031b7a93c0f5ac9c23fe3cb8912
> 
> 
> ----- Original Message -----
> > From: "Luca Menegus" <lucam at dbmsrl.com>
> > To: spacewalk-list at redhat.com
> > Sent: Monday, March 16, 2015 1:47:20 PM
> > Subject: Re: [Spacewalk-list] channel.software.syncRepo doesn't pass down
> > sync-kickstars option to sync-kickstars
> > 
> > 
> > Thanks Tomas, still it's not working:
> > 
> > Now the problem seems to be that taskomaticd wrongly encodes
> > parameters when calling /usr/bin/spacewalk-repo-sync:
> > 
> > >From /var/log/rhn/reposync/centos66-x86_64-os.log:
> > 
> > Sync started: Mon Mar 16 13:18:08 2015
> > ['/usr/bin/spacewalk-repo-sync', '--channel', 'centos66-x86_64-os',
> > '--type', 'yum', ' --sync-kickstart']
> > Repo URL:
> > http://mrepo.intra.dbmsrl.com/cobbler/ks_mirror/CentOS66-x86_64/
> > Packages in repo:              6518
> > No new packages to sync.
> > Repo http://mrepo.intra.dbmsrl.com/cobbler/ks_mirror/CentOS66-x86_64/
> > has comps file comps.xml.
> > Repo http://mrepo.intra.dbmsrl.com/cobbler/ks_mirror/CentOS66-x86_64/
> > has 0 errata.
> > Not importing kickstart because self.sync_kickstart is False ##<<
> > this is from printf I added to confirm the problem
> > Sync completed.
> > Total time: 0:01:41
> > 
> > 
> > Please notice the space added before --sync-kickstart.
> > 
> > I _think_
> > ./java/code/src/com/redhat/rhn/taskomatic/task/RepoSyncTask.java
> > could be fixed to treat params as an array.
> > 
> > 
> > 
> > Regards,
> >  Luca
> > 
> > 
> > 
> > ----- Original Message -----
> > > From: "Tomas Lestach" <tlestach at redhat.com>
> > > To: spacewalk-list at redhat.com
> > > Sent: Monday, March 16, 2015 1:21:58 PM
> > > Subject: Re: [Spacewalk-list] channel.software.syncRepo doesn't
> > > pass down sync-kickstars option to sync-kickstars
> > > 
> > > Thanks for letting us know. I've fixed the typo [1].
> > > 
> > > Regards,
> > > --
> > > Tomas Lestach
> > > Red Hat Satellite Engineering, Red Hat
> > > 
> > > [1]
> > > https://github.com/spacewalkproject/spacewalk/commit/400f6fa444977a820d1eea91d900f39513ecc83a
> > > 
> > > 
> > > ----- Original Message -----
> > > > From: "Luca Menegus" <lucam at dbmsrl.com>
> > > > To: spacewalk-list at redhat.com
> > > > Sent: Monday, March 16, 2015 11:02:51 AM
> > > > Subject: Re: [Spacewalk-list] channel.software.syncRepo doesn't
> > > > pass down
> > > > sync-kickstars option to sync-kickstars
> > > > 
> > > > It worked! Thank you very much Tomas.
> > > > 
> > > > BTW: I (blindly) copied the wrong spelling from api doc [1].
> > > > 
> > > > regards,
> > > >  Luca
> > > > 
> > > > [1]
> > > > http://www.spacewalkproject.org/documentation/api/2.2/handlers/ChannelSoftwareHandler.html#syncRepo
> > > > 
> > > > ----- Original Message -----
> > > > > From: "Tomas Lestach" <tlestach at redhat.com>
> > > > > To: spacewalk-list at redhat.com
> > > > > Sent: Monday, March 16, 2015 10:52:50 AM
> > > > > Subject: Re: [Spacewalk-list] channel.software.syncRepo doesn't
> > > > > pass down sync-kickstars option to sync-kickstars
> > > > > 
> > > > > Try to use: "sync-kickstart"
> > > > > 
> > > > > https://github.com/spacewalkproject/spacewalk/blob/master/java/code/src/com/redhat/rhn/taskomatic/task/RepoSyncTask.java#L50
> > > > > 
> > > > > Regards,
> > > > > --
> > > > > Tomas Lestach
> > > > > Red Hat Satellite Engineering, Red Hat
> > > > > 
> > > > > 
> > > > > ----- Original Message -----
> > > > > > From: "Luca Menegus" <lucam at dbmsrl.com>
> > > > > > To: spacewalk-list at redhat.com
> > > > > > Sent: Saturday, March 14, 2015 7:08:19 PM
> > > > > > Subject: [Spacewalk-list] channel.software.syncRepo doesn't
> > > > > > pass
> > > > > > down
> > > > > > sync-kickstars option to sync-kickstars
> > > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > >  while I call channel.software.syncRepo with
> > > > > >  sync-kickstars=true
> > > > > >  the
> > > > > >  option is not passed down to /usr/bin/spacewalk-repo-sync.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > /var/log/rhn/rhn_web_api.log:
> > > > > > 
> > > > > > [2015-03-14 18:51:58,053] INFO - REQUESTED FROM:
> > > > > > 192.168.122.1
> > > > > > CALL:
> > > > > > channel.software.syncRepo(lucam, centos66-x86_64-os,
> > > > > > {fail=true,
> > > > > > no-errata=true, sync-kickstars=true}) CALLER: (lucam) TIME:
> > > > > > 
> > > > > > 
> > > > > > ps eafxu:
> > > > > > 
> > > > > > root 27941 0.0 0.0 17820 732 ? Sl Mar13 0:18
> > > > > > /usr/bin/taskomaticd
> > > > > > /usr/share/rhn/config-defaults/rhn_taskomatic_daemon.conf
> > > > > > wrapper.pidfile=/var/run//taskomatic.pid wrapper.
> > > > > > root 27943 0.4 15.9 3529952 618896 ? Sl Mar13 6:53 \_ java
> > > > > > -Dibm.dst.compatibility=true -Xms256m -Xmx1024m
> > > > > > -Djava.library.path=/usr/lib:/usr/lib64:/usr/lib/oracle/11.2/client64/l
> > > > > > root 2469 34.2 1.3 363332 54256 ? S 18:53 0:10 \_
> > > > > > /usr/bin/python
> > > > > > -u
> > > > > > /usr/bin/spacewalk-repo-sync --channel centos66-x86_64-os
> > > > > > --type
> > > > > > yum
> > > > > > --no-errata --fail WRAPPER
> > > > > > 
> > > > > > 
> > > > > > cat /proc/2469/cmdline | tr -s \\0 \\n
> > > > > > 
> > > > > > /usr/bin/python
> > > > > > -u
> > > > > > /usr/bin/spacewalk-repo-sync
> > > > > > --channel
> > > > > > centos66-x86_64-os
> > > > > > --type
> > > > > > yum
> > > > > > --no-errata --fail
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Shell I open a bug?
> > > > > > 
> > > > > > I'm running spacewalk 2.3:
> > > > > > 
> > > > > > spacewalk-setup-2.3.13-1.el7.noarch
> > > > > > spacewalk-config-2.3.15-1.el7.noarch
> > > > > > spacewalk-java-2.3.165-1.el7.noarch
> > > > > > spacewalk-setup-postgresql-2.3.1-1.el7.noarch
> > > > > > spacewalk-admin-2.3.3-1.el7.noarch
> > > > > > spacewalk-backend-sql-postgresql-2.3.48-1.el7.noarch
> > > > > > spacewalk-setup-jabberd-2.3.1-1.el7.noarch
> > > > > > spacewalk-backend-sql-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-xmlrpc-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-config-files-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-applet-2.3.48-1.el7.noarch
> > > > > > spacewalk-base-minimal-config-2.3.48-1.el7.noarch
> > > > > > spacewalk-selinux-2.3.2-1.el7.noarch
> > > > > > spacewalk-base-2.3.48-1.el7.noarch
> > > > > > spacewalk-java-config-2.3.165-1.el7.noarch
> > > > > > spacewalk-jpp-workaround-2.3.2-1.el7.noarch
> > > > > > spacewalk-search-2.3.6-1.el7.noarch
> > > > > > spacewalk-certs-tools-2.3.1-1.el7.noarch
> > > > > > spacewalk-html-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-xml-export-libs-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-config-files-tool-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-package-push-server-2.3.48-1.el7.noarch
> > > > > > spacewalk-common-2.3.2-1.el7.noarch
> > > > > > spacewalk-pxt-2.3.48-1.el7.noarch
> > > > > > spacewalk-java-postgresql-2.3.165-1.el7.noarch
> > > > > > spacewalk-doc-indexes-2.3.2-1.el7.noarch
> > > > > > spacewalk-branding-2.3.22-1.el7.noarch
> > > > > > spacewalk-backend-config-files-common-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-iss-export-2.3.48-1.el7.noarch
> > > > > > spacewalk-schema-2.3.39-1.el7.noarch
> > > > > > spacewalk-taskomatic-2.3.165-1.el7.noarch
> > > > > > spacewalk-postgresql-2.3.2-1.el7.noarch
> > > > > > spacewalk-backend-libs-2.3.48-1.el7.noarch
> > > > > > spacewalk-java-lib-2.3.165-1.el7.noarch
> > > > > > spacewalk-backend-server-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-app-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-iss-2.3.48-1.el7.noarch
> > > > > > spacewalk-base-minimal-2.3.48-1.el7.noarch
> > > > > > spacewalk-backend-tools-2.3.48-1.el7.noarch
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Regards,
> > > > > >  Luca
> > > > > > 
> > > > > > _______________________________________________
> > > > > > Spacewalk-list mailing list
> > > > > > Spacewalk-list at redhat.com
> > > > > > https://www.redhat.com/mailman/listinfo/spacewalk-list
> > > > > > 
> > > > > 
> > > > > _______________________________________________
> > > > > Spacewalk-list mailing list
> > > > > Spacewalk-list at redhat.com
> > > > > https://www.redhat.com/mailman/listinfo/spacewalk-list
> > > > > 
> > > > 
> > > > _______________________________________________
> > > > Spacewalk-list mailing list
> > > > Spacewalk-list at redhat.com
> > > > https://www.redhat.com/mailman/listinfo/spacewalk-list
> > > > 
> > > 
> > > _______________________________________________
> > > Spacewalk-list mailing list
> > > Spacewalk-list at redhat.com
> > > https://www.redhat.com/mailman/listinfo/spacewalk-list
> > > 
> > 
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
> > 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 




More information about the Spacewalk-list mailing list