Project

General

Profile

Bug #12694

CentOS 7 quick start fails with RuntimeError: NoSectionError: No section: 'ceph'

Added by Loïc Dachary over 8 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Following instructions from http://ceph.com/docs/master/start/quick-start-preflight/#red-hat-package-manager-rpm and installing ceph on the same machine as ceph-deploy:

[try][DEBUG ]  * extras: it.centos.contactlab.it
[try][DEBUG ]  * updates: it.centos.contactlab.it
[try][DEBUG ] Package yum-plugin-priorities-1.1.31-29.el7.noarch already installed and latest version
[try][DEBUG ] Nothing to do
[try][DEBUG ] Configure Yum priorities to include obsoletes
[try][WARNIN] check_obsoletes has been enabled for Yum priorities plugin
[try][INFO  ] Running command: rpmkeys --import https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/release.asc
[try][INFO  ] Running command: rpm -Uvh --replacepkgs http://ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm
[try][DEBUG ] Retrieving http://ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm
[try][DEBUG ] Preparing...                          ########################################
[try][DEBUG ] Updating / installing...
[try][DEBUG ] ceph-release-1-1.el7                  ########################################
[try][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority
[ceph_deploy][ERROR ] RuntimeError: NoSectionError: No section: 'ceph'

The workaround is to
sudo mv /etc/yum.repos.d/ceph.repo /etc/yum.repos.d/ceph-deploy.repo

In addition vim is not installed by default. It would be better to have

sudo vi /etc/yum.repos.d/ceph-deploy.repo

History

#1 Updated by Paul Kenyon almost 8 years ago

I can confirm the documentation is still out of date (as of 2016-05-10) and that Loic's workaround does indeed fix the issue.

#2 Updated by Tone ZHANG almost 8 years ago

Thanks a lot for the workaround, I confirm it is valide.

#3 Updated by Daniel Da Cunha about 5 years ago

I can confirm the documentation is still out of date (as of 2019-01-06) and that Loic's workaround does indeed fix the issue.

#4 Updated by Khodayar Doustar about 5 years ago

I confirm it happened to me when trying to install rgw:
error was:

[ceph_deploy][ERROR ] RuntimeError: NoSectionError: No section: 'ceph-source'

workaround:

sudo mv /etc/yum.repos.d/ceph.repo.rpmsave /etc/yum.repos.d/ceph.repo

Also available in: Atom PDF