Project

General

Profile

Actions

Feature #8871

closed

modify ceph-deploy to only install repo file and not install packages

Added by Neil Levine almost 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

As a user, I want to update my repo files but not automatically install the packages.

Proposal: Add a switch to the install verb of ceph-deploy (--repo-only) which only installs a new repo file but does not automatically trigger an apt-get or yum upgrade

Actions #1

Updated by Neil Levine almost 10 years ago

  • Target version set to sprint11
Actions #2

Updated by Alfredo Deza over 9 years ago

  • Status changed from 12 to In Progress

There are a few things that happen usually when installing a remote repo file in ceph-deploy:

  • GPG file gets imported
  • aptitude gets updated (otherwise it doesn't "see" the new packages)

Are we OK with those things happening? I am guessing this would be OK (otherwise it would be too many configurable flags)

Actions #3

Updated by Alfredo Deza over 9 years ago

  • Status changed from In Progress to 12

Some progress, I made this a subcommand as it would look cleaner when specifying what repo should be installed from cephdeploy.conf. This is how
the output looks:

ceph-deploy install repo --release foo node2
[ceph_deploy.conf][DEBUG ] found configuration file at: /Users/alfredo/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.9): /Users/alfredo/.virtualenvs/ceph-deploy/bin/ceph-deploy install repo --release foo node2
[ceph_deploy.install][DEBUG ] Detecting platform for host node2 ...
[node2][DEBUG ] connected to host: node2
[node2][DEBUG ] detect platform information from remote host
[node2][DEBUG ] detect machine type
[ceph_deploy.install][INFO  ] Distro info: CentOS 6.4 Final
[ceph_deploy.install][INFO  ] will use repository from conf: foo
[node2][INFO  ] adding custom repository file
[node2][INFO  ] Running command: sudo yum clean all
[node2][DEBUG ] Loaded plugins: fastestmirror, priorities
[node2][DEBUG ] Cleaning repos: Ceph Ceph-noarch base calamari ceph-source ceph_deploy epel
[node2][DEBUG ]               : extras updates
[node2][DEBUG ] Cleaning up Everything
[node2][DEBUG ] Cleaning up list of fastest mirrors
[node2][INFO  ] Running command: sudo rpm --import https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc
[node2][DEBUG ] set the contents of repo file to /etc/yum.repos.d/

(ceph-deploy)papaya ~/tmp/foo ? ssh node2 cat /etc/yum.repos.d/foo.repo
[foo]
name=foo repo
baseurl=http://ceph.com/debian-emperor
enabled=1
gpgcheck=1
type=repo-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc%
Actions #4

Updated by Alfredo Deza over 9 years ago

  • Status changed from 12 to Fix Under Review
Actions #5

Updated by Alfredo Deza over 9 years ago

  • Status changed from Fix Under Review to Resolved

closed this in master with 68f6a6e

Actions

Also available in: Atom PDF