Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, I know this is very unorthodox modification to do, but I really had to have this accomplished.

Added:

instance['name'] = instance['hostname']

just above :

args = {
  'Hostname': instance['name'],
  'Image': image_name,
  'Memory': self._get_memory_limit_bytes(instance)
}

at:

/usr/lib/python2.7/dist-packages/nova/virt/docker/driver.py

Well, I know this is very unorthodox modification to do, but I really had to have this accomplished.

Added:

instance['name'] = instance['hostname']

just above :

args = {
  'Hostname': instance['name'],
  'Image': image_name,
  'Memory': self._get_memory_limit_bytes(instance)
}

at:at "def spawn":

/usr/lib/python2.7/dist-packages/nova/virt/docker/driver.py

Well, I know this is very unorthodox modification to do, but I really had to have this accomplished.

Added:

instance['name'] = instance['hostname']

just above :

args = {
  'Hostname': instance['name'],
  'Image': image_name,
  'Memory': self._get_memory_limit_bytes(instance)
}

at "def spawn":

/usr/lib/python2.7/dist-packages/nova/virt/docker/driver.py

and restarted nova-compute.