Failed to set repositories as defaults for new environments

Asked by JohnsonYi on 2016-01-13

Hi all,

I was trying to update the fuel repository with fuel-createmirror, and failed with error msgs as below:
[root@fuel-70 www]# fuel-createmirror
 * INFO: Verifying connection to the Fuel backend
 * INFO: Fuel backend connection OK
 * INFO: Started /opt/fuel-createmirror-7.0/deb-mirror /opt/fuel-createmirror-7.0/config/mos-ubuntu-updatesonly.cfg
 * INFO: Upstream mirror mirror.fuel-infra.org supports rsync protocol
 * INFO: Fetching dist 'mos7.0-updates' lists
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'restricted' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'restricted' i18n
 * INFO: Fetching dist 'mos7.0-security' lists
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'restricted' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'restricted' i18n
 * INFO: Fetching dist 'mos7.0-holdback' lists
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'restricted' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'restricted' i18n
 * INFO: Parsing package and sources files:
 * INFO: /var/www/nailgun/mos-ubuntu/dists/mos7.0-updates/main/binary-amd64/Packages /var/www/nailgun/mos-ubuntu/dists/mos7.0-updates/restricted/binary-amd64/Packages /var/www/nailgun/mos-ubuntu/dists/mos7.0-security/main/binary-amd64/Packages /var/www/nailgun/mos-ubuntu/dists/mos7.0-security/restricted/binary-amd64/Packages /var/www/nailgun/mos-ubuntu/dists/mos7.0-holdback/main/binary-amd64/Packages /var/www/nailgun/mos-ubuntu/dists/mos7.0-holdback/restricted/binary-amd64/Packages
 * INFO:
 * INFO: Downloading pool files
 * INFO: Primary sync successfully completed
 * INFO: Cleaning up pool files
 * INFO: Doublechecking that required pool files exists
 * INFO: Done
 * INFO: Started /opt/fuel-createmirror-7.0/deb-mirror /opt/fuel-createmirror-7.0/config/ubuntu.cfg
 * INFO: Upstream mirror mirrors.tuna.tsinghua.edu.cn supports rsync protocol
 * INFO: Fetching dist 'trusty' lists
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'multiverse' binary package lists
 * INFO: Fetching component 'universe' binary package lists
 * INFO: Fetching component 'main/debian-installer' binary package lists
 * INFO: Fetching component 'multiverse/debian-installer' binary package lists
 * INFO: Fetching component 'universe/debian-installer' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'multiverse' i18n
 * INFO: Fetching section 'universe' i18n
 * INFO: Fetching dist 'trusty-updates' lists
 * INFO: InRelease file will expire before the next update, removing it...
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'multiverse' binary package lists
 * INFO: Fetching component 'universe' binary package lists
 * INFO: Fetching component 'main/debian-installer' binary package lists
 * INFO: Fetching component 'multiverse/debian-installer' binary package lists
 * INFO: Fetching component 'universe/debian-installer' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'multiverse' i18n
 * INFO: Fetching section 'universe' i18n
 * INFO: Fetching dist 'trusty-security' lists
 * INFO: InRelease file will expire before the next update, removing it...
 * INFO: Fetching component 'main' binary package lists
 * INFO: Fetching component 'multiverse' binary package lists
 * INFO: Fetching component 'universe' binary package lists
 * INFO: Fetching component 'main/debian-installer' binary package lists
 * INFO: Fetching component 'multiverse/debian-installer' binary package lists
 * INFO: Fetching component 'universe/debian-installer' binary package lists
 * INFO: Fetching section 'main' i18n
 * INFO: Fetching section 'multiverse' i18n
 * INFO: Fetching section 'universe' i18n
 * INFO: Fetching indices
 * INFO: Parsing package and sources files:
 * INFO: /var/www/nailgun/ubuntu-full/dists/trusty/main/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty/multiverse/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty/universe/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty/main/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty/multiverse/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty/universe/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/main/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/multiverse/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/universe/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/main/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/multiverse/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-updates/universe/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/main/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/multiverse/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/universe/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/main/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/multiverse/debian-installer/binary-amd64/Packages.gz /var/www/nailgun/ubuntu-full/dists/trusty-security/universe/debian-installer/binary-amd64/Packages.gz
 * INFO:
 * INFO: Resolving dependencies for partial mirror
 * INFO: Downloading pool files
 * INFO: Primary sync successfully completed
 * INFO: Cleaning up pool files
 * INFO: Doublechecking that required pool files exists
 * INFO: Generating partial mirror
 * INFO: Generating metadata for partial mirror
 * INFO: Applying fix for upstream dpkg-scanpackages
 * INFO: Done
 * INFO: MOS mirror was created at: /var/www/nailgun/mos-ubuntu
 * INFO: Attempting to add created repositories to Nailgun...
 * WARN: Failed to set repositories as defaults for new environments
 * INFO: Ubuntu partial mirror was created at: /var/www/nailgun/ubuntu-part
 * INFO: Attempting to add created repositories to Nailgun...
 * WARN: Failed to set repositories as defaults for new environments

F.Y.I
How to fix this issue? Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Fuel for OpenStack Edit question
Assignee:
No assignee Edit question
Solved by:
JohnsonYi
Solved:
2016-02-01
Last query:
2016-02-01
Last reply:
2016-01-18
Denis Klepikov (dklepikov) said : #1

Hello, JohnsonYi.

It look like you reach the bug:
https://bugs.launchpad.net/fuel/+bug/1528498/

Please try workaround from comment 8 :

https://bugs.launchpad.net/fuel/+bug/1528498/comments/8

Best,
Denis K
Mirantis Team

JohnsonYi (yichengli) said : #2

Hi Denis,

I tried the bug fix you commented, it didn't work, and I submit a new bug https://bugs.launchpad.net/fuel/+bug/1533462 , and it was confirmed by Mirantis. Thanks.

Best
Johnson Yi