PDA

View Full Version : Unable to install packages to client with custom channel



rahulchincholkar
09-Jan-2014, 07:20
Hello,

I have added my custom channel with custom repository which is at ftp location. I synced the custom repository and in web console for suse manager, I found that all packages syced properly.
Then I changed the subscription for a system and added the custom channel to that system.
Now, Whenever I tries to search/install a package using zypper I am getting the following error:

# zypper se sitar
Refreshing service 'spacewalk'.
Adding repository 'Custom My channel' [done]
Adding repository 'SLES11-Extras for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP2-Core for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP2-SUSE-Manager-Tools x86_64 SP3' [done]
Adding repository 'SLES11-SP2-Updates for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP3-Pool for x86_64' [done]
Adding repository 'SLES11-SP3-Updates for x86_64' [done]
Retrieving repository 'Custom My channel' metadata [\]
File '/repodata/repomd.xml' not found on medium 'https://susemanager.tester.com/XMLRPC/GET-REQ/custom-sles?head_requests=no'

Abort, retry, ignore? [a/r/i/?] (a):

Here 'Custom My channel' is the custom channel.

What will be the issue?

malcolmlewis
09-Jan-2014, 14:03
On Thu 09 Jan 2014 06:24:02 AM CST, rahulchincholkar wrote:


Hello,

I have added my custom channel with custom repository which is at ftp
location. I synced the custom repository and in web console for suse
manager, I found that all packages syced properly.
Then I changed the subscription for a system and added the custom
channel to that system.
Now, Whenever I tries to search/install a package using zypper I am
getting the following error:

# zypper se sitar
Refreshing service 'spacewalk'.
Adding repository 'Custom My channel' [done]
Adding repository 'SLES11-Extras for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP2-Core for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP2-SUSE-Manager-Tools x86_64 SP3' [done]
Adding repository 'SLES11-SP2-Updates for x86_64 SLES-SP3' [done]
Adding repository 'SLES11-SP3-Pool for x86_64' [done]
Adding repository 'SLES11-SP3-Updates for x86_64' [done]
Retrieving repository 'Custom My channel' metadata [\]
File '/repodata/repomd.xml' not found on medium
'https://susemanager.tester.com/XMLRPC/GET-REQ/custom-sles?head_requests=no'

Abort, retry, ignore? [a/r/i/?] (a):

Here 'Custom My channel' is the custom channel.

What will be the issue?




Hi
If you run the command;


zypper lr

Your custom repository has the spacewalk prefix, eg;


spacewalk:Custom My channel


So is the custom repository a set of rpms, or is it an actual
repository made with something like createrepo or via YaST create add
on product?

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

rahulchincholkar
10-Jan-2014, 06:20
Hi
If you run the command;


zypper lr

Your custom repository has the spacewalk prefix, eg;


spacewalk:Custom My channel


So is the custom repository a set of rpms, or is it an actual
repository made with something like createrepo or via YaST create add
on product?

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

Yes, my custom repository has the spacewalk prefix.
Custom repository is a actual repository created by createrepo.

malcolmlewis
11-Jan-2014, 05:42
On Fri 10 Jan 2014 05:24:01 AM CST, rahulchincholkar wrote:


malcolmlewis;18481 Wrote:
> Hi
> If you run the command;
> >
Code:
--------------------
> >
> zypper lr
>
--------------------
> >
> Your custom repository has the spacewalk prefix, eg;
> >
Code:
--------------------
> >
> spacewalk:Custom My channel
>
--------------------
> >
>
> So is the custom repository a set of rpms, or is it an actual
> repository made with something like createrepo or via YaST create add
> on product?
>

Yes, my custom repository has the spacewalk prefix.
Custom repository is a actual repository created by createrepo.




Hi
So was it a SUSE system you used createrepo with to create you custom
repo? If you sync manually on the SUSE Manager system, all ok?


spacewalk-repo-sync -c <your repo name>


--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

rahulchincholkar
11-Jan-2014, 13:29
Hi
So was it a SUSE system you used createrepo with to create you custom
repo? If you sync manually on the SUSE Manager system, all ok?


spacewalk-repo-sync -c <your repo name>


--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!


Hi,

Yes, the custom repo is created using createrepo on a SUSE system. The manual sync is woking fine.
Here is the output for manual sync,
code


# spacewalk-repo-sync -c customchannel
Repo URL: ftp://10.0.20.60/customrepo/
Packages in repo: 2
Packages already synced: 0
Packages to sync: 2
1/2 : siga-12.101-17.1-0.noarch
2/2 : sitar-1.0.7-277.27-0.noarch
Repo ftp://10.0.17.1/customrepo/ has 0 patches.
Sync completed.
Total time: 0:00:01


But Client system doesn't find the packages.
Thanks

malcolmlewis
11-Jan-2014, 15:11
On Sat 11 Jan 2014 12:34:01 PM CST, rahulchincholkar wrote:


malcolmlewis;18536 Wrote:
> Hi
> So was it a SUSE system you used createrepo with to create you custom
> repo? If you sync manually on the SUSE Manager system, all ok?
> >
Code:
--------------------
> >
> spacewalk-repo-sync -c <your repo name>
>
--------------------
> >
>
> --
> Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
> openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
> If you find this post helpful and are logged into the web interface,
> please show your appreciation and click on the star below... Thanks!


Hi,

Yes, the custom repo is created using createrepo on a SUSE system. The
manual sync is woking fine.
Here is the output for manual sync,
code

Code:
--------------------

# spacewalk-repo-sync -c customchannel
Repo URL: ftp://10.0.20.60/customrepo/
Packages in repo: 2
Packages already synced: 0
Packages to sync: 2
1/2 : siga-12.101-17.1-0.noarch
2/2 : sitar-1.0.7-277.27-0.noarch
Repo ftp://10.0.17.1/customrepo/ has 0 patches.
Sync completed.
Total time: 0:00:01

--------------------


But Client system doesn't find the packages.
Thanks




Hi
Strange, can you try forcing a refresh on the client machine;


zypper ref -f


--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

rahulchincholkar
13-Jan-2014, 06:00
Hi
Strange, can you try forcing a refresh on the client machine;


zypper ref -f


--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!


Hi Malcolm,

I tried the force refresh the metadata on client machine, It didn't help me.


#zypper ref -f
Forcing raw metadata refresh
Retrieving repository 'Custom My channel' metadata [\]
File '/repodata/repomd.xml' not found on medium 'https://susemanager.tester.com/XMLRPC/GET-REQ/customchannel?head_requests=no'

Abort, retry, ignore? [a/r/i/?] (a):

rahulchincholkar
14-Jan-2014, 07:41
Hi Malcolm,
I got the solution, When I edited the "Repository Checksum Type" from "none" to any of the "sha1/sha256/sha384/sha512" in the Channel Details, the repository repomd.xml is created at the /var/cache/rhn/repodata/custom-channel/repodata.xml.

Thanks!