fuel-createmirror: Creation of MOS mirror FAILED

Bug #1491416 reported by Maksym Strukov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
High
Bulat Gaifullin

Bug Description

Repro:
1. Install Fuel master node
2. Create a cluster
3. On master node, in /opt/fuel-createmirror-7.0/config/, set DEBUG="yes" in the files mos-ubuntu.cfg, mos-ubuntu-updatesonly.cfg and ubuntu.cfg
4. On master node, run fuel-createmirror without additional options

Actual:
There are several errors. But in final "Done" with "FATAL" on next line. Cluster settings changed.

Expected:
If errors are really FATAL:
1. Message about that
2. Don't change cluster settings
3. Show it in non-Debug mode

From the log /var/log/mirror-sync/ubuntu-update.log
'''
...
середа, 2 вересня 2015 09:45:19 +0000 * INFO: Fetching dist 'mos7.0-updates' lists
середа, 2 вересня 2015 09:45:19 +0000 * DEBUG: Fetching Release files
середа, 2 вересня 2015 09:45:20 +0000 Fetching '/dists/mos7.0-updates/InRelease' to '/var/www/nailgun/mos-ubuntu/dists/mos7.0-updates/' with params ''...rsync: link_stat "/mos-repos/ubuntu/7.0/di$
середа, 2 вересня 2015 09:45:20 +0000 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [receiver=3.0.6]
середа, 2 вересня 2015 09:45:20 +0000 FAIL!
середа, 2 вересня 2015 09:45:21 +0000 Fetching '/dists/mos7.0-updates/Release' to '/var/www/nailgun/mos-ubuntu/dists/mos7.0-updates/' with params ''...rsync: change_dir "/mos-repos/ubuntu/7.0/dis$
середа, 2 вересня 2015 09:45:21 +0000 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [receiver=3.0.6]
середа, 2 вересня 2015 09:45:21 +0000 FAIL!
середа, 2 вересня 2015 09:45:25 +0000 Fetching '/dists/mos7.0-updates/Release.gpg' to '/var/www/nailgun/mos-ubuntu/dists/mos7.0-updates/' with params ''...OK
середа, 2 вересня 2015 09:45:25 +0000 * FATAL: Unable to find release file for dist mos7.0-updates
'''

From the output:
'''
~
 * INFO: Generating metadata for partial mirror
 * INFO: Applying fix for upstream dpkg-scanpackages
patching file /usr/bin/dpkg-scanpackages
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file /usr/bin/dpkg-scanpackages.rej
 * INFO: Done
 * FATAL: Creation of MOS mirror FAILED, check logs at /var/log/mirror-sync
 * INFO: Ubuntu partial mirror was created at: /var/www/nailgun/ubuntu-part
 * INFO: Attempting to add created repositories to Nailgun...
 * INFO: environment id=1 updated successfully, no manual actions is required
 * INFO: Created repositories were set as defaults for new environments
'''

Env:
{"build_id": "262", "build_number": "262", "release_versions": {"2015.1.0-7.0": {"VERSION": {"build_id": "262", "build_number": "262", "api": "1.0", "fuel-library_sha": "1556601b9b7503285714d7d1e02cc0807b1c68f0", "nailgun_sha": "b564ae20116297750bf6402b3a017e219bf4b468", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "9643fa07f1290071511066804f962f62fe27b512", "astute_sha": "e63709d16bd4c1949bef820ac336c9393c040d25", "fuel-ostf_sha": "582a81ccaa1e439a3aec4b8b8f6994735de840f4", "release": "7.0", "fuelmain_sha": "4dc6799370da4cddf06c04e4ecb7646102298535"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "1556601b9b7503285714d7d1e02cc0807b1c68f0", "nailgun_sha": "b564ae20116297750bf6402b3a017e219bf4b468", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "9643fa07f1290071511066804f962f62fe27b512", "astute_sha": "e63709d16bd4c1949bef820ac336c9393c040d25", "fuel-ostf_sha": "582a81ccaa1e439a3aec4b8b8f6994735de840f4", "release": "7.0", "fuelmain_sha": "4dc6799370da4cddf06c04e4ecb7646102298535"}

Revision history for this message
Maksym Strukov (unbelll) wrote :
description: updated
Maksym Strukov (unbelll)
description: updated
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 7.0
importance: Medium → High
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Why fuel-python?

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Fuel build team (fuel-build)
Roman Vyalov (r0mikiam)
Changed in fuel:
status: New → Triaged
Revision history for this message
Roman Vyalov (r0mikiam) wrote :

Reassign to fuel-python team based on wiki page "Package Ownership in MOS"

Changed in fuel:
assignee: Fuel build team (fuel-build) → Fuel Python Team (fuel-python)
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Target milestone bumped to 8.0, this script requires to much work to try to fix it in 7.0.

Changed in fuel:
milestone: 7.0 → 8.0
Dmitry Pyzhov (dpyzhov)
tags: added: fuel-createmirror
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Bulat Gaifullin (bgaifullin)
tags: added: covered-by-bp
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Changed in fuel:
status: Triaged → Confirmed
status: Confirmed → Triaged
Revision history for this message
Alexey Shtokolov (ashtokolov) wrote :

Fuel-createmirror was deprecated and replaced by fuel-mirror in 8.0

Changed in fuel:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.