Deprecate overcloud image prepare

We have replaced this function with the `openstack tripleo container
image prepare` command which is more flexible.

Change-Id: Ib4403d5040d2965575a87adbc2e2ca59aa286467
This commit is contained in:
Alex Schultz 2019-09-16 10:23:51 -06:00 committed by Emilien Macchi
parent 3d1a850302
commit 33130b75a8
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(