overcloud image upload doesn't honor --image-path
Bug #1647519 reported by
Sai Sindhur Malleni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Ben Nemec |
Bug Description
overcloud image upload only works assumes that user executes the command from ~/images directory eben when --image-path option is passed leading to errors such as "The given file overcloud-
self._check_
image)), however when we build images we do not use the parsed-
Changed in tripleo: | |
assignee: | nobody → Sai Sindhur Malleni (smalleni) |
status: | New → In Progress |
Changed in tripleo: | |
importance: | Undecided → Medium |
Changed in tripleo: | |
assignee: | Sai Sindhur Malleni (smalleni) → Ben Nemec (bnemec) |
Changed in tripleo: | |
assignee: | Ben Nemec (bnemec) → Sai Sindhur Malleni (smalleni) |
Changed in tripleo: | |
assignee: | Sai Sindhur Malleni (smalleni) → Ben Nemec (bnemec) |
Changed in tripleo: | |
milestone: | none → pike-1 |
tags: | added: ocata-backport-potential |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/407261 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=17b5d6cd429 9cdc14e43039e8f a906ccb36497fb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 17b5d6cd4299cdc 14e43039e8fa906 ccb36497fb
Author: Sai Sindhur Malleni <email address hidden>
Date: Tue Dec 6 12:10:51 2016 +1100
Make overcloud image upload honor --image-path
The openstack overcloud image upload command supports --image-path argument full.vmlinuz is not a
but the code assumes that the command is run from ~/images directory and fails
otherwise with errors such a "The given file overcloud-
regular file".
When the code checks if the image file exists we do not see this error as _check_ file_exists( os.path. join(parsed_ args.image_ path,
"self.
image))" uses the image_path from user passed arguments. However, when
building the file name for uploading the image, the --image-path is
neglected.
This commit adds code to make the image upload command work from
any directory as long as --image-path option is passed.
Closes-Bug: #1647519
Change-Id: I74a21d73da95e8 1c5270f7264c25e aee923ba9ba
Co-Authored-By: Ben Nemec <email address hidden>