It is not obvious how to find the provider image id for RHEV.
For RHEV it is the template id and it is only visible through the
RHEV REST API.
---
lib/aeolus_cli/command/config_parser.rb | 6 +++++-
man/aeolus-image-import.1 | 5 +++++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/lib/aeolus_cli/command/config_parser.rb
b/lib/aeolus_cli/command/config_parser.rb
index fdf9a09..500b23a 100644
--- a/lib/aeolus_cli/command/config_parser.rb
+++ b/lib/aeolus_cli/command/config_parser.rb
@@ -225,6 +225,10 @@ module Aeolus
opts.separator "aeolus-image import --account my-ec2 --id $ami_id
--description '<image><name>My Image</name></image>' #
import an AMI from the specified provider"
opts.separator "aeolus-image import --account my-ec2 --id $ami_id
--description <path_to_xml_file> # import an AMI from the specified provider"
opts.separator ""
+ opts.separator "RHEV:"
+ opts.separator "Enter the template id for the provider image id. The
template id can be found through the RHEV REST API."
+ opts.separator "For example: curl
https://rhevm.redhat.com:8443/api/templates --user user@rhevm_domain:password"
+ opts.separator ""
opts.separator "N.B. Aeolus Credentials should be defined in the
configuration file ~/.aeolus-cli"
end
end
@@ -313,4 +317,4 @@ module Aeolus
end
end
end
-end
\ No newline at end of file
+end
diff --git a/man/aeolus-image-import.1 b/man/aeolus-image-import.1
index c8d7742..32c9bf3 100644
--- a/man/aeolus-image-import.1
+++ b/man/aeolus-image-import.1
@@ -45,6 +45,11 @@ Import the AMI ami-1234567 from the provider account my-ec2 into aeolus
providin
\--account my-ec2
\--id ami-1234567
\--description /foo/bar/description.xml
+.SH RHEV
+.TP
+Enter the template id for the provider image id. The template id can be found through the
RHEV REST API.
+For example:
+ curl
https://rhevm.redhat.com:8443/api/templates --user user@rhevm_domain:password
.SH AUTHOR
Martyn Taylor (mtaylor(a)redhat.com), Jason Guiditta (jguiditta(a)redhat.com)
.SH SEE ALSO
--
1.7.6.5