Disable preloading openstack extensions during VM stop

12 views
Skip to first unread message

ricky...@rigor.com

unread,
Oct 31, 2017, 11:34:29 AM10/31/17
to Packer
Would it be possible to remove the enumeration of openstack extensions when stopping a VM?

Some hosting providers don't support the API endpoint that allows you to enumerate the available extensions-- I'm working with one of those providers.

It seems that openstack extensions are only required to stop the intermediate VM and for finding flavor ref based on flavor name. In my case, the provider supports stopping the VM through the API, despite not allowing you to discover that you can stop the VM. Instead of attempting to discover the extension and aborting if that extension isn't supported, attempt a best-effort to stop the VM and inform the user or otherwise handle this through the existing "failed to stop the VM" flow?

TBH, I hate that this problem exists and dislike the solution, but since there is already error handling around stopping the server, I don't think the impact will be that great. Also, I suspect that it's a very (very) small population of openstack servers that won't support stopping a server via API. I can prepare a very simple PR if you all don't burn me at the stake for the suggestion.

Reference links:

Rickard von Essen

unread,
Oct 31, 2017, 12:22:29 PM10/31/17
to packe...@googlegroups.com
It was some time since I worked with OS but I think they actually deprecated extentions in favor of micro versions. Maybe the hole dependency on extensions can be removed.

It would be great to get some up-to-date facts on the current situation. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/887a7ac9-31f5-4a44-8d1a-7f2f91d3c70f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages