Issue #1301


Error producing repo metadata

Added by over 7 years ago. Updated almost 4 years ago.

Start date:
Due date:
Estimated time:
3. High
Platform Release:
CentOS 6
Sprint Candidate:
Pulp 2


When applying to my pulp install on a centos 6 systen, I am unable to use the produced repo.

I run yum update and get the error TypeError: Parsing primary.xml error: XML declaration allowed only at start of the document.

Sets to repoduce:

Install pulp on rhel/centos 6.
Apply change request above.
Sync any yum repo via pulp
Create yum.repo.d/newfile.repo that points to created repo from pulp.
Run yum update.

Should get the error above.


primary2.xml (21.4 KB) primary2.xml, 10/12/2015 02:45 PM
Actions #1

Updated by mhrivnak over 7 years ago

Can you please attach the corresponding primary.xml file?

Actions #2

Updated by over 7 years ago

Seems like it happens with all repos on rhel6 so an example is where i was able to reproduce the issue

Actions #3

Updated by mhrivnak over 7 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes
Actions #4

Updated by over 7 years ago

Attaching the primary.xml file

Actions #5

Updated by over 7 years ago

well, not sure what happened but on fresh pulp rhel6 with mentioned fix applied i was not able to reproduce the error anymore.

Actions #6

Updated by over 7 years ago

What version of pulp did you install on rhel6? I'd like to give it a try and see if I still have the issues as this still doesn't help me patch my existing systems.

Actions #7

Updated by over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to
Actions #8

Updated by over 7 years ago

To try to get specific environment settings, I built a new VM using these steps:

Created VM in libvirt from the
Gave it 200G for storage space
Set the Language to the default of English
Set the Keyboard layout to the default of US
Pointed to install media
Used basic storage devices
Used default hostname and timezone
Updated the partition layout, gave /var most of the space (~140 G)
Chose minimal for software list
Built system
Once system boots up:
service iptables stop
chkconfig iptables off

Followed pulp install:

yum install -y wget
cd /etc/yum.repos.d/
rpm -Uvh
yum install mongodb-server
service mongod start
chkconfig mongod on
yum install qpid-cpp-server qpid-cpp-server-store
service qpidd start
chkconfig qpidd on
yum groupinstall pulp-server-qpid
sudo -u apache pulp-manage-db
service httpd start
chkconfig httpd on
chkconfig pulp_workers on
service pulp_workers start
chkconfig pulp_celerybeat on
service pulp_celerybeat start
chkconfig pulp_resource_manager on
service pulp_resource_manager start
yum groupinstall pulp-admin

Edit /etc/pulp/admin/admin.conf
host = localhost.localdomain
ssl_verify = false

pulp-adm rpm repo create --serve-http true --repo-id puppet --feed
pulp-admin rpm repo sync run

Add /etc/yum.repo.d/puppet.repo

yum update look at stack trace

Actions #9

Updated by over 7 years ago

After taking a much closer look at my manual applying of the patch, it looks like it was a case sensitivity issue with the encoding. I was typing UTF-8 instead of utf-8 for the encoding. I want to run this through on a few more test systems and make sure everything works.

Actions #10

Updated by over 7 years ago

  • Status changed from ASSIGNED to CLOSED - NOTABUG

After thorough testing everything looks good now, so that was all my issue was. Closing issue.

Actions #12

Updated by bmbouter almost 4 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF