Re: [Spacewalk-list] New install, no repos will sync

2014-02-06 Thread Jonathan Green
Hello there: We have a new install of Spacewalk 2.0 on Centos 6.5, and have followed the documentation carefully. When we setup a channel with some repositories, and execute the following, it fails: Spacewalk-repo-sync -channel channel_name 'Repo URL : http://url/repomd.xml ERROR:

Re: [Spacewalk-list] New install, no repos will sync

2014-02-06 Thread Stuart Green
Hi, So you put something like http://centos.serverspace.co.uk/centos/6/os/x86_64/ in the Repository URL? http://centos.serverspace.co.uk/centos/6/os/x86_64/ would be correct http://centos.serverspace.co.uk/centos/6/os/x86_64/repodata/ would be wrong

Re: [Spacewalk-list] New install, no repos will sync

2014-02-06 Thread Stuart Green
No Problem Jonathan, and you should be fine doing that, I've got some repo's like MongoDB that don't have GPG entries and it sync's fine. Thank you very much, Stuart. Now it's syncing! Also curious though, re channel settings, are the GPG settings mandatory, or can we leave them blank?

[Spacewalk-list] timestamps and the spacecmd API

2014-02-06 Thread Andy Ingham
Hello all! I need to compare the completed_date from the listSystemEvents method (published at http://www.spacewalkproject.org/documentation/api/1.9/handlers/SystemHandle r.html#listSystems ) to the current time (when my python script runs). The 'completed_date' is returned from the API in

[Spacewalk-list] spacewalk-repo-sync

2014-02-06 Thread Jeff Horn - NOAA Affiliate
I just installed a new server with spacewalk 2.0. I created a new channel for CentOS 6.5 base packages. I called the channel centos6.5-base-i686. I then ran the command spacewalk-repo-sync —channel=centos6.5-base-i686 —url=http://mirror.centos.org/centos/6.5/os/i386/ The sync appears to be

Re: [Spacewalk-list] timestamps and the spacecmd API

2014-02-06 Thread Boyd, Robert
Andy, Have you looked at the datetime data objects ? They allow for direct comparison and arithmetic operations. https://wiki.python.org/moin/WorkingWithTime http://docs.python.org/2/library/datetime.html Cheers, Robert -Original Message- From: spacewalk-list-boun...@redhat.com

Re: [Spacewalk-list] timestamps and the spacecmd API

2014-02-06 Thread Boyd, Robert
Perhaps more to the point also look at this: http://stackoverflow.com/questions/969285/how-do-i-translate-a-iso-8601-datetime-string-into-a-python-datetime-object?lq=1 -Original Message- From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of

Re: [Spacewalk-list] spacewalk-repo-sync

2014-02-06 Thread Jon Miller
jeff.h...@noaa.gov writes: I just installed a new server with spacewalk 2.0. I created a new channel for CentOS 6.5 base packages. I called the channel centos6.5-base-i686. I then ran the command spacewalk-repo-sync —channel=centos6.5-base-i686

Re: [Spacewalk-list] spacewalk-repo-sync

2014-02-06 Thread Matthew Madey
It doesn't link the packages to the channel until the very end of the sync,once completed you should see them in your channel. On Feb 6, 2014 12:36 PM, Jeff Horn - NOAA Affiliate jeff.h...@noaa.gov wrote: I just installed a new server with spacewalk 2.0. I created a new channel for CentOS

Re: [Spacewalk-list] timestamps and the spacecmd API

2014-02-06 Thread Andy Ingham
Jon and Robert -- Thanks for your responses! I was aware of those modules and have been going around in circles with them for longer than I'd like to admit. I guess I was hoping that someone far better at python than me would have the few lines of code already written that work with comparing

[Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Mathew Snyder
Is it possible to assign a gpg key to a clone channel that has been created using spacewalk-clone-by-date? The command itself has no capacity to assign one. Can it be done with the API after cloning? -Mathew When you do things right, people won't be sure you've done anything at all. - God;

Re: [Spacewalk-list] spacewalk-repo-sync

2014-02-06 Thread Jeff Horn - NOAA Affiliate
That would be a nice tidbit to add to the docs. I kept stopping, checking and restarting the sync process because they were not showing up where I expected. I’ll wait for a while for this to finish. jeff On Feb 6, 2014, at 2:08 PM, Matthew Madey mattma...@gmail.com wrote: It doesn't link

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Matthew Madey
The setDetails method should be the right API call to do what you want: client.channel.software.setDetails(SESSION_KEY, CHAN_ID, OPTION1, OPTION2, etc, etc) Method: setDetailshttp://www.spacewalkproject.org/documentation/api/2.0/handlers/ChannelSoftwareHandler.html#top Description: Allows to

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Mathew Snyder
Excellent! Good to see that. Related follow-up question: Is there documentation that better illustrates the creation and placement of a GPG key? I've read the section of the Satellite doc, but I'm left with questions that aren't answered there. -Mathew When you do things right, people won't be

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Matthew Madey
The Channel Management guide covers the generation of the keys.

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Paul Robert Marino
You can also do it via the web GUI in channel managment-- Sent from my HP Pre3On Feb 6, 2014 17:07, Mathew Snyder mathew.sny...@gmail.com wrote: Excellent! Good to see that.Related follow-up question:Is there documentation that better illustrates the creation and placement of a GPG key? Ive read

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Mathew Snyder
Yes, that part I'm aware of. But the cloning of channels in our environment uses the spacewalk-clone-by-date command. The API call will allow this to continue and have the key set after the fact. -Mathew When you do things right, people won't be sure you've done anything at all. - God; Futurama

Re: [Spacewalk-list] spacewalk-repo-sync

2014-02-06 Thread Paul Robert Marino
That is due to a change in the behavior in the command I believe the change happened between 1.7 and 1.8 if I remember correctly.The old behavior was to do it as they were downloaded but it was a lot slower than doing the update to the channel as a bulk operation. In addition if you accidentally

Re: [Spacewalk-list] Assigning a gpg key to a clone channel

2014-02-06 Thread Mathew Snyder
What initial clone? We clone the official channel. On Feb 6, 2014 4:36 PM, Paul Robert Marino prmari...@gmail.com wrote: Well the initial clone don't you do a full clone instead of a clone by date? -- Sent from my HP Pre3 -- On Feb 6, 2014 19:01, Mathew Snyder