request_spec[instance_properties] mismatches

Bug #1268450 reported by hougangliu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Medium
Unassigned

Bug Description

When boot VM with '--num-instances', the param "request_spec['instance_properties']" that schedule_run_instance gets will be only the first instance's properties of request_spec.get('instance_uuids'), thus like request_spec['instance_properties']['instance_uuid'] , request_spec['instance_properties']['hostname'] and so on are all just the properties of the first VM.

Furthermore, if one of the VMs booting with '--num-instances' reschedules, request_spec['instance_properties'] is still for the first VM. Thus, using the data from request_spec['instance_properties'] is mistake, like instance_uuid = instance_properties.get('uuid') in filter_scheduler.py:def _populate_retry().

Tags: api
hougangliu (liuhoug)
information type: Private Security → Public
Matt Riedemann (mriedem)
tags: added: api
zhongshengping (chdzsp)
Changed in nova:
assignee: nobody → zhongshengping (chdzsp)
assignee: zhongshengping (chdzsp) → nobody
assignee: nobody → zhongshengping (chdzsp)
zhongshengping (chdzsp)
Changed in nova:
assignee: zhongshengping (chdzsp) → nobody
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Changed in nova:
assignee: nobody → Jay Lau (jay-lau-513)
importance: Low → Medium
milestone: none → juno-1
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/89757

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
John Garbutt (johngarbutt) wrote :

We use milestones only at the very end of the milestone to track bugs that should block the release of the milestone. Please use tags not milestones to track bugs, try things like: my_bug_topic_milestone_name

Changed in nova:
milestone: juno-1 → none
Revision history for this message
Sean Dague (sdague) wrote :

Patch is still active as of today

Revision history for this message
Andrew Laski (alaski) wrote :

I disagree that this is a bug. I think instance_properties should be stripped to only include information that is common between multiple instances. Even better would be to strip it down to only include what the scheduler is currently using. That appears to be 'launch_index', 'project_id', 'os_type', 'root_gb', 'ephemeral_gb', 'memory_mb', 'vcpus', 'vm_state', 'task_state'.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/89757
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Removing "In Progress" status and assignee as change is abandoned.

Changed in nova:
assignee: Jay Lau (jay-lau-513) → nobody
status: In Progress → Confirmed
Revision history for this message
Andrew Laski (alaski) wrote :

Anything that would vary between instances in a request like this is being removed from the request spec sent to the scheduler. The scheduler should not care about the specific instances being scheduled, only the requested resources that the instance needs from a compute.

Changed in nova:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.