fuel-createmirror --dry-run prints not all commands required for manual execution

Bug #1469236 reported by Maksym Strukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Python (Deprecated)
6.1.x
Won't Fix
Medium
Fuel Python (Deprecated)
7.0.x
Won't Fix
Medium
Bulat Gaifullin

Bug Description

Env:
6.1-525

{"build_id": "2015-06-19_13-02-31", "build_number": "525", "release_versions": {"2014.2.2-6.1": {"VERSION": {"build_id": "2015-06-19_13-02-31", "build_number": "525", "api": "1.0", "fuel-library_sha": "2e7a08ad9792c700ebf08ce87f4867df36aa9fab", "nailgun_sha": "dbd54158812033dd8cfd7e60c3f6650f18013a37", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "4fc55db0265bbf39c369df398b9dc7d6469ba13b", "astute_sha": "1ea8017fe8889413706d543a5b9f557f5414beae", "fuel-ostf_sha": "8fefcf7c4649370f00847cc309c24f0b62de718d", "release": "6.1", "fuelmain_sha": "a3998372183468f56019c8ce21aa8bb81fee0c2f"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "2e7a08ad9792c700ebf08ce87f4867df36aa9fab", "nailgun_sha": "dbd54158812033dd8cfd7e60c3f6650f18013a37", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "4fc55db0265bbf39c369df398b9dc7d6469ba13b", "astute_sha": "1ea8017fe8889413706d543a5b9f557f5414beae", "fuel-ostf_sha": "8fefcf7c4649370f00847cc309c24f0b62de718d", "release": "6.1", "fuelmain_sha": "a3998372183468f56019c8ce21aa8bb81fee0c2f"}

Steps:
1. Install Fuel
2. Create env: ubuntu, 1 controller, 1 compute, neutron vlan
3. Run fuel-createmirror --dry-run
4. Execute commands from output:

EXEC mkdir -p /var/www/nailgun
EXEC mkdir -p /var/log/mirror-sync
EXEC /opt/fuel-createmirror-6.1/deb-mirror /opt/fuel-createmirror-6.1/config/mos-ubuntu-updatesonly.cfg
EXEC /opt/fuel-createmirror-6.1/deb-mirror /opt/fuel-createmirror-6.1/config/ubuntu.cfg
EXEC env http_proxy= fuel-package-updates -d ubuntu -r 2014.2.2-6.1 --no-download --make-default --apply -s 10.109.5.2 -p admin -b http://10.109.5.2:8080/mos-ubuntu -e 1
EXEC env http_proxy= fuel-package-updates -d ubuntu-baseos -r 2014.2.2-6.1 --no-download --make-default --apply -s 10.109.5.2 -p admin -b http://10.109.5.2:8080/ubuntu-part -e 1 --clear-upstream-repos

5. Run deploy

Expected result:
Commands executed suceessfully, repositories created, environment reps changed
Deploy successfull

Actual:

[root@nailgun ~]# /opt/fuel-createmirror-6.1/deb-mirror /opt/fuel-createmirror-6.1/config/mos-ubuntu-updatesonly.cfg
/opt/fuel-createmirror-6.1/config/fuel.cfg: line 22: /util/parse_yaml.py: No such file or directory
time="2015-06-26T13:00:51Z" level="fatal" msg="write /dev/stdout: broken pipe"
/opt/fuel-createmirror-6.1/config/fuel.cfg: line 23: /util/parse_yaml.py: No such file or directory
time="2015-06-26T13:00:51Z" level="fatal" msg="write /dev/stdout: broken pipe"
 * INFO: Started /opt/fuel-createmirror-6.1/deb-mirror /opt/fuel-createmirror-6.1/config/mos-ubuntu-updatesonly.cfg
 * INFO: Upstream mirror mirror.fuel-infra.org supports rsync protocol
 * INFO: Fetching dist 'mos-updates' lists
 * FATAL: Unable to find release file for dist mos-updates

Deploy failed.

Seems --dry-run printed not all required commands. For example:
> export BINROOT=$(dirname `readlink -f "$0"`)
>
> . $BINROOT/config/common.cfg
> . $BINROOT/config/fuel.cfg

Listing: http://paste.openstack.org/show/321377/

Revision history for this message
Maksym Strukov (unbelll) wrote :
tags: added: module-fuel-createmirror
Changed in fuel:
assignee: Vitaly Parakhin (vparakhin) → Fuel Python Team (fuel-python)
Dmitry Pyzhov (dpyzhov)
tags: added: fuel-createmirror
removed: module-fuel-createmirror
Dmitry Pyzhov (dpyzhov)
tags: added: covered-by-bp
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix for 7.0-updates and 6.1-updates because of Medium importance

Dmitry Pyzhov (dpyzhov)
tags: added: area-python
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: Confirmed → 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.