'fuel-createmirror' doesn't add created local mirrors to Nailgun

Bug #1476857 reported by Dennis Dmitriev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Vitaly Parakhin

Bug Description

When 'fuel-createmirror' run without addition parameters, it should 1) create local mirrors for Ubuntu repositories, 2) run 'fuel-package-updates' to update default repositories in Nailgun.

But 'fuel-package-updates' is not calling from 'fuel-createmirror'. Looks like it tries to find and update only newly created clusters (variable 'envs' in the log below), but not default repository list in Nailgun.

# Last executed commands in /opt/fuel-createmirror-6.1/fuel-createmirror (with set -x):
...
+ echo ' * INFO: Ubuntu partial mirror was created at: /var/www/nailgun/ubuntu-part'
 * INFO: Ubuntu partial mirror was created at: /var/www/nailgun/ubuntu-part
+ [[ true == \t\r\u\e ]]
+ add_repositories_to_nailgun 2 ubuntu-baseos ubuntu-part
+ echo ' * INFO: Attempting to add created repositories to Nailgun...'
 * INFO: Attempting to add created repositories to Nailgun...
+ local release_id=2
+ local 'clearupstream= --clear-upstream-repos '
+ local 'makedefault= --make-default '
+ local 'apply= --apply '
+ '[' 1 == 0 ']'
+ '[' '' == 1 ']'
+ '[' '' == 1 ']'
++ grep -w new
++ fuel --user=admin --password=admin env
++ awk -v release_id=2 '-F|' '$5 == release_id {print $1}'
+ envs=
+ '[' '' == 1 ']'
+ exit 0
[root@nailgun ~]#

api: '1.0'
astute_sha: b1f37a988e097175cbbd14338286017b46b584c3
auth_required: true
build_id: 2015-07-21_10-02-05
build_number: '63'
feature_groups:
- mirantis
fuel-agent_sha: 4e9fe5563e39e15c9c4451c38de8184d92e66ac6
fuel-library_sha: f39452a817a656d98e10b9ec69af17c8528588cc
fuel-ostf_sha: 1c447f2cf81bd26bdf056aceb7f695e9b97925d8
fuelmain_sha: c0bd3d3dc536e55db563de04d643a38e60e68e1d
nailgun_sha: 0826636dccd2bbfee06bb4f9bf7196b567beaa05
openstack_version: 2014.2.2-7.0
production: docker
python-fuelclient_sha: 57713c96a30831d33609e6e812f8d4eb6054d04e
release: '7.0'
release_versions:
  2014.2.2-7.0:
    VERSION:
      api: '1.0'
      astute_sha: b1f37a988e097175cbbd14338286017b46b584c3
      build_id: 2015-07-21_10-02-05
      build_number: '63'
      feature_groups:
      - mirantis
      fuel-agent_sha: 4e9fe5563e39e15c9c4451c38de8184d92e66ac6
      fuel-library_sha: f39452a817a656d98e10b9ec69af17c8528588cc
      fuel-ostf_sha: 1c447f2cf81bd26bdf056aceb7f695e9b97925d8
      fuelmain_sha: c0bd3d3dc536e55db563de04d643a38e60e68e1d
      nailgun_sha: 0826636dccd2bbfee06bb4f9bf7196b567beaa05
      openstack_version: 2014.2.2-7.0
      production: docker
      python-fuelclient_sha: 57713c96a30831d33609e6e812f8d4eb6054d04e
      release: '7.0'

Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Tool 'fuel-package-updates' has an another bug which also is related to the issue: http://paste.openstack.org/show/397627/

Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Fuel Python Team (fuel-python)
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Fuel-python will handle fuel-createmirror only after it be rewritten to python. Moving to OSCI team.

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Fuel OSCI Team (fuel-osci)
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Fuel build team (fuel-build)
status: New → Triaged
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel build team (fuel-build) → Vitaly Parakhin (vparakhin)
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/218219

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

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

commit bca7f2fec4836b73748f7a3af863fab748a0d072
Author: Vitaly Parakhin <email address hidden>
Date: Fri Aug 28 14:31:58 2015 +0300

    Correct "changing defaults for new envs" behavior

    By default, if no envs is created, script still should change default
    repo settings for new environments.

    Change-Id: I8d2782721c872f4549c01c9a62548200aed8b73a
    Closes-Bug: #1476857

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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