Merge "Deprecate overcloud image prepare"

This commit is contained in:
Zuul 2019-09-19 19:09:36 +00:00 committed by Gerrit Code Review
commit 284b7116ae
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
deprecations:
- |
`openstack overcloud container image prepare` has been
deprecated and replaced by `openstack tripleo container image prepare`
- |
`openstack overcloud container image tag discover` has been
deprecated and replaced by `openstack tripleo container image prepare`

View File

@ -405,6 +405,9 @@ class PrepareImageFiles(command.Command):
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.warning("[DEPRECATED] This command has been deprecated and "
"replaced by the 'openstack tripleo container image "
"prepare' command.")
roles_data = utils.fetch_roles_file(parsed_args.roles_file) or set()
@ -501,6 +504,9 @@ class DiscoverImageTag(command.Command):
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.warning("[DEPRECATED] This command has been deprecated and "
"replaced by the 'openstack tripleo container image "
"prepare' command.")
uploader = image_uploader.ImageUploadManager([])
print(uploader.discover_image_tag(