Skip to content

Commit

Permalink
Merge pull request #1625 from jschmid1/wip-post-upgrade-deploy
Browse files Browse the repository at this point in the history
Avoid running drivegroup based osd deployment post-upgrade
  • Loading branch information
Joshua Schmid authored Apr 25, 2019
2 parents 2b1b00d + 21cdcef commit 719fbdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions srv/salt/_modules/dg.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,14 @@ def c_v_commands(**kwargs):

def deploy(**kwargs):
""" Execute the generated ceph-volume commands """
# do not run this when there is still ceph:storage in the pillar
# this indicates that we are in a post-upgrade scenario and
# the drive assignment was not ported to drive-groups yet.
if __pillar__.get('ceph', {}).get('storage'):
return ("You seem to have configured old-style profiles."
"Will not deploy using Drive-Groups."
"Please consult <insert doc/man> for guidance"
"on how to migrate to Drive-Groups")
return __salt__['helper.run'](c_v_commands(**kwargs))


Expand Down

0 comments on commit 719fbdc

Please sign in to comment.