How to get the details of newly launched VM instance during scale-out with ResourceGroup

asked 2016-08-11 01:26:02 -0600

Mohanavelu gravatar image

updated 2016-08-11 03:44:01 -0600

Hi, I am new to Openstack. I am facing 2 issues. Issue 1: I have a use case where manual scale-out of VMs need to be supported. I have used ResourceGroup to achieve manual scale-out. I explain my workflow: 1. Scaleout, say , 2 VM 2. Get the IPs of these 2 VMs 3. Run ansible playbook to configure, start services on those 2 VMs.

I am facing issue in getting details(mainly IP address) of newly launched VM instances. The VM identifiers are dynamic suing %index%. So, I am not sure, what will be the identifiers of newly launched VMs.

Issue 2: The scale-in with ResourceGroup can be achieved with "count" - a scaling factor. So, Nova automatically picks up any 2 VMs for scale-in. Is it possible to scale-in with ResourceGroup by specifying particular VM identifer?

Could you please guide me how to resolve this issues.

Thanks & Regards,

Mohan

edit retag flag offensive close merge delete