Error importing repomd.xml

Bug #1468129 reported by Andrey Kirilochkin on 2015-06-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Fuel Python (Deprecated)
7.0.x
High
Fuel Python (Deprecated)
8.0.x
High
Fuel Python (Deprecated)

Bug Description

Our customer has no internet access on Bare-metal lab, only proxy.
After some changes(6.1 rc3) behavior of fuel-master was changed,
now it is trying to update yourself using internet(external repos).

[root@fuel nailgun]# cat /etc/yum.repos.d/mos6.1*
[mos6.1-security]
name=mos6.1-security
baseurl=http://mirror.fuel-infra.org/mos/centos-6/mos6.1/security/
gpgcheck=0
skip_if_unavailable=1
[mos6.1-updates]
name=mos6.1-updates
baseurl=http://mirror.fuel-infra.org/mos/centos-6/mos6.1/updates/
gpgcheck=0
skip_if_unavailable=1

We are trying to install fuel plugin in customer environment.

[root@fuel ~]# fuel plugins --install gamma-lcp-ui-1.3-1.3.12-1.noarch.rpm
DEPRECATION WARNING: /etc/fuel/client/config.yaml exists and will be used as the source for settings. This behavior is deprecated. Please specify the path to your custom settings file in the FUELCLIENT_CUSTOM_SETTINGS environment variable.
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
mos6.1-security | 5.1 kB 00:00
http://mirror.fuel-infra.org/mos/centos-6/mos6.1/security/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for mos6.1-security: Damaged repomd.xml file
Trying other mirror.
mos6.1-updates | 5.1 kB 00:00
http://mirror.fuel-infra.org/mos/centos-6/mos6.1/updates/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for mos6.1-updates: Damaged repomd.xml file
Trying other mirror.
nailgun | 3.9 kB 00:00 ...
nailgun/primary_db | 1.2 MB 00:00 ...
Setting up Install Process
Examining gamma-lcp-ui-1.3-1.3.12-1.noarch.rpm: gamma-lcp-ui-1.3-1.3.12-1.noarch
Marking gamma-lcp-ui-1.3-1.3.12-1.noarch.rpm to be installed

After these warnings plugin installed, but we do not have possibility to upgrade/delete packages using FUEL-CLI,
 we have to remove rpm's using rpm and clean package artifacts by-hand.

This behavior breaks update mechanism and some tests.

Changed in fuel:
milestone: none → 7.0
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
status: New → Confirmed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → MOS Sustaining (mos-sustaining)
assignee: MOS Sustaining (mos-sustaining) → Fuel Python Team (fuel-python)
assignee: Fuel Python Team (fuel-python) → Vladimir Sharshov (vsharshov)
Changed in fuel:
assignee: Vladimir Sharshov (vsharshov) → Fuel Python Team (fuel-python)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Timur Nurlygayanov (tnurlygayanov)

Hi Andrey,

if you use proxy for Internet access you need to configure this proxy for yum tool. To do this, you need to edit file /etc/yum.conf and add the following strings to this file (proxy address, port and credentials will depends on your environment):

# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty

More details:
https://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html

But, of course, we have a bug - if we successfully installed plugin we need to support uninstallation and updates for this plugin and dependencies.

We need to add logic which will check the Internet connectivity and use external mirrors only if we have the Internet access.
Confirmed and assigned to Fuel-Python team.

Changed in fuel:
assignee: Timur Nurlygayanov (tnurlygayanov) → Fuel Python Team (fuel-python)
Igor Marnat (imarnat) wrote :

Timur, please check if this bug can be reproduced on 7.0 ISO

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Timur Nurlygayanov (tnurlygayanov)
Nastya Urlapova (aurlapova) wrote :

@Timur, any updates are there?

yes, this bug is actual for the latest MOS releases too. We need to implement logic to use proxy for requirements download.

Changed in fuel:
assignee: Timur Nurlygayanov (tnurlygayanov) → Fuel Python Team (fuel-python)
Ihor Kalnytskyi (ikalnytskyi) wrote :

Guys, guys.. What do you mean here? I have no idea what's wrong here.

I think it's obvious that without Internet the yum's warning is ok.

And for the last words -

   """After these warnings plugin installed, but we do not have possibility to upgrade/delete packages using FUEL-CLI,
 we have to remove rpm's using rpm and clean package artifacts by-hand."""

AFAIK, it's by design. Users MUST update their plugins using "yum" workflow, not fuel cli.

Move it to Incomplete until I figure out what's wrong.

Dmitry Pyzhov (dpyzhov) wrote :

I've checked with bug reporter and we agreed to close the bug.

Dmitry Pyzhov (dpyzhov) on 2015-10-22
tags: added: area-python
Dmitry Pyzhov (dpyzhov) on 2015-11-30
Changed in fuel:
milestone: 7.0 → 8.0
tags: added: wontfix-noimpact
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers