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:  Cannot retrieve repository metadata 
(repomd.xml) ... '

However, when using wget, repomd.xml does download successfully, so we don't 
believe this to be a network issue.

Yes, we have unchecked the 'disconnected' checkbox under admin options.

Also, we don't see anything obvious in the log files.

What else could we be missing?

Thank you.

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

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
http://centos.serverspace.co.uk/centos/6/os/x86_64/repodata/repomd.xml 
http://centos.serverspace.co.uk/centos/6/os/x86_64/repodata/repomd.xml


would be also wrong

HTH,
Stu

On 06/02/2014 16:55, Jonathan Green wrote:


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:  Cannot retrieve repository 
metadata (repomd.xml) ... '


However, when using wget, repomd.xml does download successfully, so we 
don't believe this to be a network issue.


Yes, we have unchecked the 'disconnected' checkbox under admin options.

Also, we don't see anything obvious in the log files.

What else could we be missing?

Thank you.



___
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

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?


Thank you.

*From:*spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] *On Behalf Of *Stuart Green

*Sent:* Thursday, February 06, 2014 9:06 AM
*To:* spacewalk-list@redhat.com
*Subject:* Re: [Spacewalk-list] New install, no repos will sync

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
http://centos.serverspace.co.uk/centos/6/os/x86_64/repodata/repomd.xml 
http://centos.serverspace.co.uk/centos/6/os/x86_64/repodata/repomd.xml


would be also wrong

HTH,
Stu

On 06/02/2014 16:55, Jonathan Green wrote:

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:  Cannot retrieve
repository metadata (repomd.xml) ... '

However, when using wget, repomd.xml does download successfully,
so we don't believe this to be a network issue.

Yes, we have unchecked the 'disconnected' checkbox under admin
options.

Also, we don't see anything obvious in the log files.

What else could we be missing?

Thank you.




___

Spacewalk-list mailing list

Spacewalk-list@redhat.com  mailto: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] 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 ISO8601 format, e.g.:
20131230T23:00:24

I'm grabbing the current timestamp via datetime.datetime.now(), which
returns a format like: 2014-02-06 13:05:47.583122



Has anyone got python code that compares two timestamps for use with the
spacewalk API?  (Ultimately, I want to create a conditional that says, if
the event completed less than X hours ago, do Y)

TIA!


Andy

Andy Ingham
IT Infrastructure
Fuqua School of Business
Duke University







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


[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 running, however when I list packages on the Spacewalk 
web page it displays all of the packages under “Packages in no channels” and 
not in the new channel I created.  Will it move the packages to the correct 
channel once the sync is complete or is there another step that I missed to 
actually sync the packages from centos to the channel I have created?  I want 
to set up many channels and sync each source url into those channels.

jeff


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


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 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Andy Ingham
Sent: Thursday, February 06, 2014 1:14 PM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] timestamps and the spacecmd API

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 ISO8601 format, e.g.:
20131230T23:00:24

I'm grabbing the current timestamp via datetime.datetime.now(), which returns a 
format like: 2014-02-06 13:05:47.583122



Has anyone got python code that compares two timestamps for use with the 
spacewalk API?  (Ultimately, I want to create a conditional that says, if the 
event completed less than X hours ago, do Y)

TIA!


Andy

Andy Ingham
IT Infrastructure
Fuqua School of Business
Duke University







___
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


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 Andy Ingham
Sent: Thursday, February 06, 2014 1:14 PM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] timestamps and the spacecmd API

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 ISO8601 format, e.g.:
20131230T23:00:24

I'm grabbing the current timestamp via datetime.datetime.now(), which returns a 
format like: 2014-02-06 13:05:47.583122



Has anyone got python code that compares two timestamps for use with the 
spacewalk API?  (Ultimately, I want to create a conditional that says, if the 
event completed less than X hours ago, do Y)

TIA!


Andy

Andy Ingham
IT Infrastructure
Fuqua School of Business
Duke University







___
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


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 
 —url=http://mirror.centos.org/centos/6.5/os/i386/

 The sync appears to be running, however when I list packages on the Spacewalk 
 web page it displays all of the packages under “Packages in no channels” and 
 not in the new channel I created.  Will it move the packages to the correct 
 channel once the sync is complete or is there another step that I missed to 
 actually sync the packages from centos to the channel I have created?  I want 
 to set up many channels and sync each source url into those channels.

I've used the spacewalk-repo-sync command as you have and the packages ended
up in the desired channel. I don't recall watching the packages that closely
during the sync, though. I guess you'll have to wait until that sync has
finished to confirm.

-- 
Jon Miller

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

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 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 running, however when I list packages on the
 Spacewalk web page it displays all of the packages under Packages in no
 channels and not in the new channel I created.  Will it move the packages
 to the correct channel once the sync is complete or is there another step
 that I missed to actually sync the packages from centos to the channel I
 have created?  I want to set up many channels and sync each source url into
 those channels.

 jeff


 ___
 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

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 the
completed_date value from the spacewalk API to some current timestamp.

There appear to be about 100 potential ways of doing this, but I've been
unable to fit the pieces together for a single one of them!  I'll blame
that on my newness to writing python.

If anyone has any code that is working in python against the spacewalk API
and able to evaluate how long ago an event completed, please let me know?

This has got to be easier than I've made it thus far.

Best wishes,
Andy




On 2/6/14 2:35 PM, Jon Miller joneb...@gmail.com wrote:

You can do both with the datetime[1] module in Python.

E.g. 
from datetime import datetime, timedelta
completed_date = datetime.strptime('20131230T23:00:24', '%Y%m%dT%H:%M:%S')
if completed_date  datetime.now() - timedelta(hours=-5):
print 'Need to do something'

The dateutil (python-dateutil RPM) module is also nice about parsing a
variety of string representations of date and times.

-- Jon Miller

[1]: http://docs.python.org/2/library/datetime.html

andy.ing...@duke.edu writes:

 Hello all!

 I need to compare the completed_date from the listSystemEvents method
 (published at 
 
http://www.spacewalkproject.org/documentation/api/1.9/handlers/SystemHandl
e
 r.html#listSystems ) to the current time (when my python script runs).

 The 'completed_date' is returned from the API in ISO8601 format, e.g.:
 20131230T23:00:24

 I'm grabbing the current timestamp via datetime.datetime.now(), which
 returns a format like: 2014-02-06 13:05:47.583122



 Has anyone got python code that compares two timestamps for use with the
 spacewalk API?  (Ultimately, I want to create a conditional that says,
if
 the event completed less than X hours ago, do Y)

 TIA!


 Andy

 Andy Ingham
 IT Infrastructure
 Fuqua School of Business
 Duke University







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

-- 
Jon Miller

___
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] 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; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

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 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 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 running, however when I list packages on the Spacewalk 
 web page it displays all of the packages under “Packages in no channels” and 
 not in the new channel I created.  Will it move the packages to the correct 
 channel once the sync is complete or is there another step that I missed to 
 actually sync the packages from centos to the channel I have created?  I want 
 to set up many channels and sync each source url into those channels.
 
 jeff
 
 
 ___
 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

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 modify channel attributes

Parameters:

   - string sessionKey
   - int channelDd - channel id
   - struct - channel_map
  - string checksum_label - new channel repository checksum label
  (optional)
  - string name - new channel name (optional)
  - string summary - new channel summary (optional)
  - string description - new channel description (optional)
  - string maintainer_name - new channel maintainer name (optional)
  - string maintainer_email - new channel email address (optional)
  - string maintainer_phone - new channel phone number (optional)
  - string gpg_key_url - new channel gpg key url (optional)
  - string gpg_key_id - new channel gpg key id (optional)
  - string gpg_key_fp - new channel gpg key fingerprint (optional)

Returns:

   - int - 1 on success, exception thrown otherwise.



On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder mathew.sny...@gmail.comwrote:

 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; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me

 ___
 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

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 sure you've done anything at
all. - God; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me


On Thu, Feb 6, 2014 at 11:26 AM, Matthew Madey mattma...@gmail.com wrote:

 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 modify channel attributes

 Parameters:

- string sessionKey
- int channelDd - channel id
- struct - channel_map
   - string checksum_label - new channel repository checksum label
   (optional)
   - string name - new channel name (optional)
   - string summary - new channel summary (optional)
   - string description - new channel description (optional)
   - string maintainer_name - new channel maintainer name (optional)
   - string maintainer_email - new channel email address (optional)
   - string maintainer_phone - new channel phone number (optional)
   - string gpg_key_url - new channel gpg key url (optional)
   - string gpg_key_id - new channel gpg key id (optional)
   - string gpg_key_fp - new channel gpg key fingerprint (optional)

 Returns:

- int - 1 on success, exception thrown otherwise.



 On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder mathew.sny...@gmail.comwrote:

 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; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me

 ___
 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

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.

Channel_Management_Guide-Digital_Signatures_for_RHNX_Packages-Generating_a_GnuPG_Keypairhttps://access.redhat.com/site/documentation/en-US/Red_Hat_Network_Satellite/5.4/html/Channel_Management_Guide/sect-Channel_Management_Guide-Building_Custom_Packages-Digital_Signatures_for_RHNX_Packages.html#sect-Channel_Management_Guide-Digital_Signatures_for_RHNX_Packages-Generating_a_GnuPG_Keypair

I typically just place keys in /var/www/html/pub in a tar file that gets
downloaded (wget) by my clients as part of registration and runs an import
before registering. You could also use RHN bootstrap to include the keys in
your bootstrap script, but I haven't done this so far

Client_Configuration_Guide/index.html#chap-Client_Configuration_Guide-Using_RHNBThttps://access.redhat.com/site/documentation/en-US/Red_Hat_Network_Satellite/5.4/html-single/Client_Configuration_Guide/index.html#chap-Client_Configuration_Guide-Using_RHNBT




On Thu, Feb 6, 2014 at 4:02 PM, Mathew Snyder mathew.sny...@gmail.comwrote:

 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 sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Feb 6, 2014 at 11:26 AM, Matthew Madey mattma...@gmail.comwrote:

 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 modify channel attributes

 Parameters:

- string sessionKey
- int channelDd - channel id
- struct - channel_map
   - string checksum_label - new channel repository checksum label
   (optional)
   - string name - new channel name (optional)
   - string summary - new channel summary (optional)
   - string description - new channel description (optional)
   - string maintainer_name - new channel maintainer name (optional)
   - string maintainer_email - new channel email address (optional)
   - string maintainer_phone - new channel phone number (optional)
   - string gpg_key_url - new channel gpg key url (optional)
   - string gpg_key_id - new channel gpg key id (optional)
   - string gpg_key_fp - new channel gpg key fingerprint (optional)

 Returns:

- int - 1 on success, exception thrown otherwise.



 On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder mathew.sny...@gmail.comwrote:

 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; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me

 ___
 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

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

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 the section of the Satellite doc, but Im left with questions that arent answered there.

-MathewWhen you do things right, people wont be sure youve done anything at all. - God; FuturamaWell get along much better once you accept that youre wrong and neither am I. - Me


On Thu, Feb 6, 2014 at 11:26 AM, Matthew Madey mattma...@gmail.com wrote:

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: setDetailsDescription:


Allows to modify channel attributesParameters:
string sessionKeyint channelDd - channel idstruct - channel_mapstring checksum_label - new channel repository checksum label (optional)


string name - new channel name (optional)string summary - new channel summary (optional)string description - new channel description (optional)string maintainer_name - new channel maintainer name (optional)


string maintainer_email - new channel email address (optional)string maintainer_phone - new channel phone number (optional)string gpg_key_url - new channel gpg key url (optional)


string gpg_key_id - new channel gpg key id (optional)string gpg_key_fp - new channel gpg key fingerprint (optional)


Returns:int - 1 on success, exception thrown otherwise.
On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder mathew.sny...@gmail.com wrote:


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?




-MathewWhen you do things right, people wont be sure youve done anything at all. - God; FuturamaWell get along much better once you accept that youre wrong and neither am I. - Me






___
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

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

We'll get along much better once you accept that you're wrong and neither
am I. - Me


On Thu, Feb 6, 2014 at 1:44 PM, Paul Robert Marino prmari...@gmail.comwrote:

 You can also do it via the web GUI in channel managment



 -- Sent from my HP Pre3

 --
 On 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? 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 sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Feb 6, 2014 at 11:26 AM, Matthew Madey mattma...@gmail.comwrote:

 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 modify channel attributes

 Parameters:

- string sessionKey
- int channelDd - channel id
- struct - channel_map
   - string checksum_label - new channel repository checksum label
   (optional)
   - string name - new channel name (optional)
   - string summary - new channel summary (optional)
   - string description - new channel description (optional)
   - string maintainer_name - new channel maintainer name (optional)
   - string maintainer_email - new channel email address (optional)
   - string maintainer_phone - new channel phone number (optional)
   - string gpg_key_url - new channel gpg key url (optional)
   - string gpg_key_id - new channel gpg key id (optional)
   - string gpg_key_fp - new channel gpg key fingerprint (optional)

 Returns:

- int - 1 on success, exception thrown otherwise.



 On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder mathew.sny...@gmail.comwrote:

 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; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me

 ___
 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

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

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 sync the wrong repo to a channel and realize it before it completes than you can abort it without having to do a massive cleanup of the channel so its a good change all around.That said you aren't the first person to be confused so you are right there probably should be a note in the documentation.-- Sent from my HP Pre3On Feb 6, 2014 15:30, Jeff Horn - NOAA Affiliate jeff.h...@noaa.gov wrote: 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.jeffOn Feb 6, 2014, at 2:08 PM, Matthew Madey mattma...@gmail.com wrote: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 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="" href="http://mirror.centos.org/centos/6.5/os/i386/" target="_blank">http://mirror.centos.org/centos/6.5/os/i386/

The sync appears to be running, however when I list packages on the Spacewalk web page it displays all of the packages under “Packages in no channels” and not in the new channel I created. Will it move the packages to the correct channel once the sync is complete or is there another step that I missed to actually sync the packages from centos to the channel I have created? I want to set up many channels and sync each source url into those channels.


jeff


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

___Spacewalk-list mailing listSpacewalk-list@redhat.comhttps://www.redhat.com/mailman/listinfo/spacewalk-list___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

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 mathew.sny...@gmail.com wrote:

 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

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Feb 6, 2014 at 1:44 PM, Paul Robert Marino prmari...@gmail.comwrote:

 You can also do it via the web GUI in channel managment



 -- Sent from my HP Pre3

 --
 On 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? 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 sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Feb 6, 2014 at 11:26 AM, Matthew Madey mattma...@gmail.comwrote:

 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 modify channel attributes

 Parameters:

- string sessionKey
- int channelDd - channel id
- struct - channel_map
   - string checksum_label - new channel repository checksum label
   (optional)
   - string name - new channel name (optional)
   - string summary - new channel summary (optional)
   - string description - new channel description (optional)
   - string maintainer_name - new channel maintainer name
   (optional)
   - string maintainer_email - new channel email address (optional)
   - string maintainer_phone - new channel phone number (optional)
   - string gpg_key_url - new channel gpg key url (optional)
   - string gpg_key_id - new channel gpg key id (optional)
   - string gpg_key_fp - new channel gpg key fingerprint (optional)

 Returns:

- int - 1 on success, exception thrown otherwise.



 On Thu, Feb 6, 2014 at 2:20 PM, Mathew Snyder 
 mathew.sny...@gmail.comwrote:

 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; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me

 ___
 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



 ___
 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