From 33130b75a8ca5e520bf5ccd714364cf37e9e9dc3 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Mon, 16 Sep 2019 10:23:51 -0600 Subject: [PATCH] Deprecate overcloud image prepare We have replaced this function with the `openstack tripleo container image prepare` command which is more flexible. Change-Id: Ib4403d5040d2965575a87adbc2e2ca59aa286467 --- ...cate-overcloud-container-prepare-45b61e76072b2736.yaml | 8 ++++++++ tripleoclient/v1/container_image.py | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/deprecate-overcloud-container-prepare-45b61e76072b2736.yaml diff --git a/releasenotes/notes/deprecate-overcloud-container-prepare-45b61e76072b2736.yaml b/releasenotes/notes/deprecate-overcloud-container-prepare-45b61e76072b2736.yaml new file mode 100644 index 000000000..06eaa519e --- /dev/null +++ b/releasenotes/notes/deprecate-overcloud-container-prepare-45b61e76072b2736.yaml @@ -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` diff --git a/tripleoclient/v1/container_image.py b/tripleoclient/v1/container_image.py index c791e9596..47d4ec1fa 100644 --- a/tripleoclient/v1/container_image.py +++ b/tripleoclient/v1/container_image.py @@ -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(