Bug #28171
closedhammer cli unable create compute resource image
Description
hammer cli unable create compute resource image.
Steps:
# hammer compute-resource image create --name CentOS_FT --location-id 2 --organization-id 1 --compute-resource-id 10 --uuid 'OpenLogic:CentOS:7.5:latest' --username 'azureroot' --user-data no --operatingsystem-id 1 Could not create the image: Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Traceback:
12:38:33 rails.1 | 2019-10-31T12:38:33 [D|app|5d96c145] Backtrace for 'Action failed' error (NoMethodError): undefined method `images' for #<Location:0x00007f6ca0e8d6b8> 12:38:33 rails.1 | | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activemodel-5.2.1/lib/active_model/attribute_methods.rb:430:in `method_missing' 12:38:33 rails.1 | | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/audited-4.9.0/lib/audited/auditor.rb:99:in `method_missing'
Updated by Vijay Singh about 5 years ago
- Related to Feature #27405: CLI support for AzureRM Compute Resource added
Updated by Aditi Puntambekar about 5 years ago
Using the following command, I'm able to create an Image.hammer compute-resource image create --name 'img1' --operatingsystem-id 1 --architecture-id 1 --uuid "OpenLogic:CentOS:7.5:latest" --compute-resource-id 1 --username "azureuser"
Please once verify if it is working at your side or you are facing the same error.
Updated by Vijay Singh about 5 years ago
Vijay Singh wrote:
hammer cli unable create compute resource image.
Steps:
[...]
Traceback:
[...]
Aditi Puntambekar wrote:
Using the following command, I'm able to create an Image.
hammer compute-resource image create --name 'img1' --operatingsystem-id 1 --architecture-id 1 --uuid "OpenLogic:CentOS:7.5:latest" --compute-resource-id 1 --username "azureuser"
Please once verify if it is working at your side or you are facing the same error.
Issue is coming when use the '--location-id 2 --organization-id 1' , Could you please check once more with it and share your thoughts ?
Updated by Aditi Puntambekar about 5 years ago
That is because we do not assign the location or organization for images. This is true even for the UI where we do not have the location and organization tab to select them for an image. And about the options for --loc-id or --org-id that we could see in --help for image create, we could raise this concern separately in hammer.
Makes sense?
Updated by Vijay Singh about 5 years ago
Aditi Puntambekar wrote:
That is because we do not assign the location or organization for images. This is true even for the UI where we do not have the location and organization tab to select them for an image. And about the options for --loc-id or --org-id that we could see in --help for image create, we could raise this concern separately in hammer.
Makes sense?
I am fine either handle on this issue or new one ...
Updated by Aditi Puntambekar about 5 years ago
- Status changed from New to Closed
Closing this issue as per above discussion.