Fuel-mirror can't work w/o connection to fuel-master

Bug #1526023 reported by Max Mazur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Bulat Gaifullin

Bug Description

fuel-mirror tool is not able to create mirror w/o connection to fuel master.

Use case:
 - create mirror for environment if master down or unreachable (firewall or slow connection)

It is not possible to configure fuel version/OpenStack release via config options or env variables.

Tags: area-python
Changed in mos:
status: New → Confirmed
milestone: none → 8.0
assignee: nobody → Bulat Gaifullin (bgaifullin)
Changed in mos:
importance: Undecided → Medium
Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Where we have the commit with the fix?

Revision history for this message
Bulat Gaifullin (bulat.gaifullin) wrote :

Change-Id: I433be6135767ab70f81ab129c227595db9b750fc
Closes-Bug: #1526023

Revision history for this message
Bulat Gaifullin (bulat.gaifullin) wrote :
affects: mos → fuel
Changed in fuel:
milestone: 8.0 → none
milestone: none → 8.0
Maciej Relewicz (rlu)
tags: added: area-python
Changed in fuel:
assignee: Bulat Gaifullin (bgaifullin) → Alexandr Kostrikov (akostrikov-mirantis)
tags: added: on-verification
Changed in fuel:
assignee: Alexandr Kostrikov (akostrikov-mirantis) → Bulat Gaifullin (bgaifullin)
tags: removed: on-verification
tags: added: on-verification
Revision history for this message
Mikhail Samoylov (msamoylov) wrote :

Verified:
1. Install virtual machine with Cent OS 7
2. Add fuel-mirror repository

[root@localhost mikhail]# cat /etc/yum.repos.d/fuel.repo
[fuel]
name=fuel
baseurl=http://mirror.fuel-infra.org/mos-repos/centos/mos8.0-centos7-fuel/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.fuel-infra.org/mos-repos/centos/mos8.0-centos7-fuel/os/RPM-GPG-KEY-mos8.0

[root@localhost mikhail]# yum repolist
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 15264.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 38 M RSS (367 MB VSZ)
    Started: Wed Feb 17 21:00:02 2016 - 02:59 ago
    State : Sleeping, pid: 15264
Loading mirror speeds from cached hostfile
 * base: centos-mirror.rbc.ru
 * extras: centos-mirror.rbc.ru
 * updates: centos-mirror.rbc.ru
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,007
extras/7/x86_64 CentOS-7 - Extras 191
fuel fuel 538
updates/7/x86_64 CentOS-7 - Updates 825
repolist: 10,561

3. Install fuel-mirror
yum install fuel-mirror -y

4. Add mos version to /etc/fuel-mirror/config.yaml :
mos-version:8.0

5. fuel-mirror create -G ubuntu -P ubuntu

[root@localhost mikhail]# fuel-mirror create -G ubuntu -P ubuntu
The option 'mos_version' is not defined.Please specify the option 'fuel-server' or 'mos_version'.
The option 'openstack_version' is not defined.Please specify the option 'fuel-server' or 'openstack_version'.
loading packages from trusty-security.main ...
loaded: 3105 packages from trusty-security.main.
loading packages from trusty.restricted ...
loaded: 49 packages from trusty.restricted.
loading packages from trusty-updates.restricted ...
loaded: 69 packages from trusty-updates.restricted.
loading packages from trusty-updates.multiverse ...
loaded: 54 packages from trusty-updates.multiverse.
loading packages from trusty-updates.universe ...
loaded: 1931 packages from trusty-updates.universe.
loading packages from trusty-security.universe ...
loaded: 722 packages from trusty-security.universe.
loading packages from trusty-security.restricted ...
loaded: 60 packages from trusty-security.restricted.
loading packages from trusty-updates.main ...
loaded: 5020 packages from trusty-updates.main.
loading packages from trusty.main ...
loaded: 8566 packages from trusty.main.
loading packages from trusty-security.multiverse ...
loaded: 18 packages from trusty-security.multiverse.
loading packages from trusty.universe ...
loaded: 35524 packages from trusty.universe.
loading packages from trusty.multiverse ...
loaded: 741 packages from trusty.multiverse.

6. Check that step 5 finished without errors

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
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.