[katello] Adding ISOs to repository

Good morning.

I have been running katello for a while using yum repositories, and I have
used the functionality to add rpm packages to a repository.

Now my question is: Can I also add ISO files to a repo? I tried yesterday
with a new repository and it was not successful. Can this be done? Is there
any special configuration to use?

I am trying to included a couple of regularly used ISO images to katello so
they don't have to be scattered throughout the network.

Thanks,
IB

Hi Ignacio,

I don't think so because the type options for a repository are yum, puppet
and docker.

Regards,

Fernando

··· Em terça-feira, 9 de junho de 2015 08:19:18 UTC-4, Ignacio Bravo escreveu: > > Good morning. > > I have been running katello for a while using yum repositories, and I have > used the functionality to add rpm packages to a repository. > > Now my question is: Can I also add ISO files to a repo? I tried yesterday > with a new repository and it was not successful. Can this be done? Is there > any special configuration to use? > > I am trying to included a couple of regularly used ISO images to katello > so they don't have to be scattered throughout the network. > > Thanks, > IB > >

I was trying to replicate something similar to the isos directory that we can find in a regular repo, as the one from Centos for example:

http://mirror.centos.org/centos-7/7.1.1503/ <http://mirror.centos.org/centos-7/7.1.1503/>

It would have been nice to include it as well. If I can’t do it, as you mention, I guess I’ll need to make a feature request then.

IB

··· __ Ignacio Bravo LTG Federal, Inc www.ltgfederal.com Office: (703) 951-7760 Mobile: (571) 224-6046

On Jun 9, 2015, at 11:05 AM, ffrodrigues2011@gmail.com wrote:

Hi Ignacio,

I don’t think so because the type options for a repository are yum, puppet and docker.

Regards,

Fernando

Em terça-feira, 9 de junho de 2015 08:19:18 UTC-4, Ignacio Bravo escreveu:
Good morning.

I have been running katello for a while using yum repositories, and I have used the functionality to add rpm packages to a repository.

Now my question is: Can I also add ISO files to a repo? I tried yesterday with a new repository and it was not successful. Can this be done? Is there any special configuration to use?

I am trying to included a couple of regularly used ISO images to katello so they don’t have to be scattered throughout the network.

Thanks,
IB


You received this message because you are subscribed to a topic in the Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.

Satellite 6 has a file repository type that is available to sync ISOs from
your Red Hat Subscriptions. This doesn't appear to be possible to create
manually by hand inside of a product, however.

Perhaps that code can be exposed?

Matt

··· On Tue, Jun 9, 2015 at 11:30 AM, Ignacio Bravo wrote:

I was trying to replicate something similar to the isos directory that we
can find in a regular repo, as the one from Centos for example:

http://mirror.centos.org/centos-7/7.1.1503/

It would have been nice to include it as well. If I can’t do it, as you
mention, I guess I’ll need to make a feature request then.

IB

__
Ignacio Bravo
LTG Federal, Inc
www.ltgfederal.com
Office: (703) 951-7760
Mobile: (571) 224-6046

On Jun 9, 2015, at 11:05 AM, ffrodrigues2011@gmail.com wrote:

Hi Ignacio,

I don’t think so because the type options for a repository are yum, puppet
and docker.

Regards,

Fernando

Em terça-feira, 9 de junho de 2015 08:19:18 UTC-4, Ignacio Bravo escreveu:

Good morning.

I have been running katello for a while using yum repositories, and I
have used the functionality to add rpm packages to a repository.

Now my question is: Can I also add ISO files to a repo? I tried yesterday
with a new repository and it was not successful. Can this be done? Is there
any special configuration to use?

I am trying to included a couple of regularly used ISO images to katello
so they don’t have to be scattered throughout the network.

Thanks,
IB


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

You are right. A quick google search pointed me to version 2.2 of pulp, that supports the creation of ISO repositories:

https://pulp-rpm-user-guide.readthedocs.org/en/pulp-2.2/isos.html

Now we just need to find a way to expose it through the katello interface.

IB

··· > On Jun 9, 2015, at 3:32 PM, Matthew Hyclak wrote: > > Satellite 6 has a file repository type that is available to sync ISOs from your Red Hat Subscriptions. This doesn't appear to be possible to create manually by hand inside of a product, however. > > Perhaps that code can be exposed? > > Matt > >> On Tue, Jun 9, 2015 at 11:30 AM, Ignacio Bravo wrote: >> I was trying to replicate something similar to the isos directory that we can find in a regular repo, as the one from Centos for example: >> >> http://mirror.centos.org/centos-7/7.1.1503/ >> >> It would have been nice to include it as well. If I can’t do it, as you mention, I guess I’ll need to make a feature request then. >> >> IB >> >> __ >> Ignacio Bravo >> LTG Federal, Inc >> www.ltgfederal.com >> Office: (703) 951-7760 >> Mobile: (571) 224-6046 >> >>> On Jun 9, 2015, at 11:05 AM, ffrodrigues2011@gmail.com wrote: >>> >>> Hi Ignacio, >>> >>> I don't think so because the type options for a repository are yum, puppet and docker. >>> >>> Regards, >>> >>> Fernando >>> >>> >>> Em terça-feira, 9 de junho de 2015 08:19:18 UTC-4, Ignacio Bravo escreveu: >>>> >>>> Good morning. >>>> >>>> I have been running katello for a while using yum repositories, and I have used the functionality to add rpm packages to a repository. >>>> >>>> Now my question is: Can I also add ISO files to a repo? I tried yesterday with a new repository and it was not successful. Can this be done? Is there any special configuration to use? >>>> >>>> I am trying to included a couple of regularly used ISO images to katello so they don't have to be scattered throughout the network. >>>> >>>> Thanks, >>>> IB >>>> >>> >>> >>> -- >>> You received this message because you are subscribed to a topic in the Google Groups "Foreman users" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com. >>> To post to this group, send email to foreman-users@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to a topic in the Google Groups "Foreman users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.

Some feedback on this:

I had to install pulp-rpm-admin-extensions to enable the functionality described in my prior email.

yum install pulp-rpm-admin-extensions

After that, I got an error on the creation of the repository:

[root@katello .pulp]# pulp-admin iso repo create --repo-id LTG_isos --serve-http true 
Warning: path should have mode 0700 because it may contain sensitive information: /root/.pulp/

The server indicated one or more values were incorrect. The server provided the
following error message:

   The configuration parameter &lt;feed&gt; is required when any of the following
other parameters are defined: max_speed, max_downloads, proxy_password,
proxy_port, proxy_host, proxy_username, remove_missing, ssl_ca_cert,
ssl_client_cert, ssl_client_key, validate.

More information can be found in the client log file ~/.pulp/admin.log.

Looking at the client log file, it complains about not having a <feed> basis.

2015-06-09 22:17:01,640 - ERROR - Exception occurred:
    	href:      /pulp/api/v2/repositories/
    	method:    POST
    	status:    400
    	error:     The configuration parameter &lt;feed&gt; is required when any of the following other parameters are defined: max_speed, max_downloads, proxy_password, proxy_port, proxy_host, proxy_username, remove_missing, ssl_ca_cert, ssl_client_cert, ssl_client_key, validate.
    	traceback: None
    	data:      {u&#39;args&#39;: [u&#39;The configuration parameter &lt;feed&gt; is required when any of the following other parameters are defined: max_speed, max_downloads, proxy_password, proxy_port, proxy_host, proxy_username, remove_missing, ssl_ca_cert, ssl_client_cert, ssl_client_key, validate.&#39;], u&#39;error&#39;: {u&#39;code&#39;: u&#39;PLP0000&#39;, u&#39;data&#39;: {}, u&#39;description&#39;: u&#39;The configuration parameter &lt;feed&gt; is required when any of the following other parameters are defined: max_speed, max_downloads, proxy_password, proxy_port, proxy_host, proxy_username, remove_missing, ssl_ca_cert, ssl_client_cert, ssl_client_key, validate.&#39;, u&#39;sub_errors&#39;: []}}

This should not be the case, as we are not be the case, as the code is specifically mentioned in this way in the Pulp documentation:

https://pulp-rpm-user-guide.readthedocs.org/en/pulp-2.2/isos.html <https://pulp-rpm-user-guide.readthedocs.org/en/pulp-2.2/isos.html> (Look into Uploading ISO to a repository)

Additionally, there was a bug reported in bugzilla about something similar, that was fixed in 2.3 and my version is 2.6

https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1019455 <https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1019455>

[root@katello .pulp]# rpm -qa | grep pulp-server
pulp-server-2.6.0-1.el6.noarch

Ideas?

··· __ Ignacio Bravo LTG Federal, Inc www.ltgfederal.com Office: (703) 951-7760 Mobile: (571) 224-6046

On Jun 9, 2015, at 3:32 PM, Matthew Hyclak hyclak@gmail.com wrote:

Satellite 6 has a file repository type that is available to sync ISOs from your Red Hat Subscriptions. This doesn’t appear to be possible to create manually by hand inside of a product, however.

Perhaps that code can be exposed?

Matt

On Tue, Jun 9, 2015 at 11:30 AM, Ignacio Bravo <ibravo@ltgfederal.com mailto:ibravo@ltgfederal.com> wrote:
I was trying to replicate something similar to the isos directory that we can find in a regular repo, as the one from Centos for example:

http://mirror.centos.org/centos-7/7.1.1503/ http://mirror.centos.org/centos-7/7.1.1503/

It would have been nice to include it as well. If I can’t do it, as you mention, I guess I’ll need to make a feature request then.

IB

__
Ignacio Bravo
LTG Federal, Inc
www.ltgfederal.com http://www.ltgfederal.com/
Office: (703) 951-7760 tel:(703)%20951-7760
Mobile: (571) 224-6046 tel:(571)%20224-6046

On Jun 9, 2015, at 11:05 AM, ffrodrigues2011@gmail.com mailto:ffrodrigues2011@gmail.com wrote:

Hi Ignacio,

I don’t think so because the type options for a repository are yum, puppet and docker.

Regards,

Fernando

Em terça-feira, 9 de junho de 2015 08:19:18 UTC-4, Ignacio Bravo escreveu:
Good morning.

I have been running katello for a while using yum repositories, and I have used the functionality to add rpm packages to a repository.

Now my question is: Can I also add ISO files to a repo? I tried yesterday with a new repository and it was not successful. Can this be done? Is there any special configuration to use?

I am trying to included a couple of regularly used ISO images to katello so they don’t have to be scattered throughout the network.

Thanks,
IB


You received this message because you are subscribed to a topic in the Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe https://groups.google.com/d/topic/foreman-users/bA43MxRcLEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.