fuel-mirror apply creates incorrect configuration for new environments

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

Bug Description

Description: Fuel-mirror creates an incorrect default configuration for new fuel environments when using fuel-mirror to first create a local repo and then use fuel-mirror apply --default.

Verion found: Nightly build of 2015-12-04

Steps to reproduce:
1. Create a local mirror with fuel-mirror create -I /usr/share/fuel-mirror/ubuntu.yaml -G ubuntu mos
2. Use the local mirror as default for all new environments: fuel-mirror apply --default -I /usr/share/fuel-mirror/ubuntu.yaml -G mos ubuntu
3. Create a new environment
4. Go to Global settings of new environment and checkout the repo config

Current result
Fuel-mirror configures repos using the following url: http://10.100.0.2:8080/ubuntu this url is not accessible

Expected result:
Fuel-mirror should configure repos with the accessible url: http://10.100.0.2:8080/mirrors/ubuntu

Extended version info:
VERSION:
  feature_groups:
    - experimental
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "117"
  build_id: "117"
  fuel-nailgun_sha: "86cebc1d92c7cc9ca25b00f5590954a7c4f880a0"
  python-fuelclient_sha: "91474bd8c526f4f536ab13368feb4a5c1b84d185"
  fuel-agent_sha: "660c6514caa8f5fcd482f1cc4008a6028243e009"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "b60624ee2c5f1d6d805619b6c27965a973508da1"
  fuel-library_sha: "032c707ec800f11044b32733dd4d395e06c209d0"
  fuel-ostf_sha: "65de07b5dce50349e7bc414f364505483c34e2b1"
  fuel-mirror_sha: "bfe7af26b7e6fdd46a16480481cc757f67958177"
  fuelmenu_sha: "fcb15df4fd1a790b17dd78cf675c11c279040941"
  shotgun_sha: "a0bd06508067935f2ae9be2523ed0d1717b995ce"

Changed in fuel:
milestone: none → 8.0
assignee: nobody → Bulat Gaifullin (bgaifullin)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-mirror (master)

Fix proposed to branch: master
Review: https://review.openstack.org/254183

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-mirror (master)

Reviewed: https://review.openstack.org/254183
Committed: https://git.openstack.org/cgit/openstack/fuel-mirror/commit/?id=c66309976db831a4081e5e0064028d7c67014b2f
Submitter: Jenkins
Branch: master

commit c66309976db831a4081e5e0064028d7c67014b2f
Author: Bulat Gaifullin <email address hidden>
Date: Mon Dec 7 16:25:44 2015 +0300

    Fixed building base_repo_url from ip-address of fuel-server

    Added parameter FUEL_SERVER_IP to base_url option value as template argument

    Change-Id: I712f5e2722c40f903392392f02963c8a057b756b
    Closes-Bug: #1523233

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-python feature-createmirror
tags: added: fuel-createmirror
removed: feature-createmirror
tags: added: on-verification
Revision history for this message
Sergey Novikov (snovikov) wrote :

Verified on MOS RC#1

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.