System crash: do I create my image and/or instance well?

Asked by pirlouit

 Hello community
I have a problem when launching a Windows instance. The system gets out of memory until the crash of the compute node.
My "personal" cloud runs Juno.
Following the Openstack installation guide for Ubuntu, I have setup a 4 nodes (controller, Network, Compute, Object Storage) environment. One physical laptop (8Gb of RAM, Intel Core i5-4210U which is Dual Core) runs 3 nodes, each on a virtual VirtualBox VM:
_Controller: Ram: 4 Gb, 1 CPUs
_Compute: Ram: 6 Gb, 4 CPU
_Network (Neutron): Ram: 512 Mb, 1 CPU
On a separate physical machine (an old HP Compaq dc5850 Small Form Factor Business PC), I run one VM for Swift storage.
Glance uses Swift as default repository to store the images.
Hypervisor uses QEMU.
Everything is working fine, when working with Cirros instances.

Now I wanted to run a Windows VM, taken from a VmWare environment. Then I have downloaded an OVA from this website:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/windows/
I took the VmWare version of "IE10 - Win7".
Then I have extracted the VMDK file (10Gig), created an image with glance (successfully, as it seems) and launched an instance. During the creation (Instance has the status "BUILD" at the beginning), I can see the memory usage of the physical machine (laptop) increasing, until the whole system get stuck. Then, after 30 minutes, the Compute VM crashes and I can recover my system.
Below are some commands output. I also attach an extract of the nova-compute.log, and a screen capture of the monitoring tools and top command result just before the system gets stuck. Any help would be very appreciated.

![image description](http://img11.hostingpics.net/pics/405164IMG00311.jpg)

    openstack@compute:/var/log/nova$ sudo grep -i virt /etc/nova/nova-compute.conf
    compute_driver=libvirt.LibvirtDriver
    [libvirt]
    virt_type=qemu

    porouge@thin-ub:~/VirtualBox VMs/IE10 - Win7$ sudo head IE10\ -\ Win7-disk1.vmdk
    KDM
    Disk DescriptorFile
    version=1
    CID=9048cb38
    parentCID=ffffffff
    createType="monolithicSparse"

    glance image-create --name "win7-vmware" --disk-format vmdk --container-format bare --is-public=true --property vmware_disktype="sparse" --property vmware_adaptertype="buslogic" --property vmware_ostype="windows7Server64Guest" < win7-vmdk.vmdk

    openstack@controller:~$ source admin-openrc.sh
    openstack@controller:~$ glance image-list
    +--------------------------------------+---------------------+-------------+------------------+------------+--------+
    | ID | Name | Disk Format | Container Format | Size | Status |
    +--------------------------------------+---------------------+-------------+------------------+------------+--------+
    | 3642f82a-5201-48da-80ca-68ff2e1ab6af | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active |
    | 20ae0f44-0743-41fa-8d4b-075ff0df54b9 | win7-vmware | vmdk | bare | 9147252736 | active |
    +--------------------------------------+---------------------+-------------+------------------+------------+--------+
    openstack@controller:~$ glance image-show win7-vmware
    +-------------------------------+--------------------------------------+
    | Property | Value |
    +-------------------------------+--------------------------------------+
    | Property 'vmware_adaptertype' | buslogic |
    | Property 'vmware_disktype' | sparse |
    | Property 'vmware_ostype' | windows7Server64Guest |
    | checksum | 57515f5bead76e09b8f2de2f662ff08d |
    | container_format | bare |
    | created_at | 2016-03-29T19:03:19 |
    | deleted | False |
    | disk_format | vmdk |
    | id | 20ae0f44-0743-41fa-8d4b-075ff0df54b9 |
    | is_public | True |
    | min_disk | 0 |
    | min_ram | 0 |
    | name | win7-vmware |
    | owner | 87689a6b397240aa81000795c7cdb562 |
    | protected | False |
    | size | 9147252736 |
    | status | active |
    | updated_at | 2016-03-29T19:09:05 |
    +-------------------------------+--------------------------------------+
    openstack@controller:~$

    openstack@controller:~$ !1966
    nova boot --flavor m1.tinyForWin --image win7-vmware --nic net-id=ea446568-e8e8-4c48-aade-e5988186b584 --security-group default --key-name demo-key2 win7-swift-vmdk
    +--------------------------------------+------------------------------------------------------+
    | Property | Value |
    +--------------------------------------+------------------------------------------------------+
    | OS-DCF:diskConfig | MANUAL |
    | OS-EXT-AZ:availability_zone | nova |
    | OS-EXT-STS:power_state | 0 |
    | OS-EXT-STS:task_state | scheduling |
    | OS-EXT-STS:vm_state | building |
    | OS-SRV-USG:launched_at | - |
    | OS-SRV-USG:terminated_at | - |
    | accessIPv4 | |
    | accessIPv6 | |
    | adminPass | 9JhXZy6XkHe6 |
    | config_drive | |
    | created | 2016-04-27T17:32:09Z |
    | flavor | m1.tinyForWin (7e5ec9b2-112a-478f-bbc0-cc5d1ed98a08) |
    | hostId | |
    | id | dc79ccd3-6915-4679-a5bc-44dce9dc5543 |
    | image | win7-vmware (20ae0f44-0743-41fa-8d4b-075ff0df54b9) |
    | key_name | demo-key2 |
    | metadata | {} |
    | name | win7-swift-vmdk |
    | os-extended-volumes:volumes_attached | [] |
    | progress | 0 |
    | security_groups | default |
    | status | BUILD |
    | tenant_id | f6cfdc1857e44cb9a2f717f8fe32d47d |
    | updated | 2016-04-27T17:32:10Z |
    | user_id | af00028f6daf4516a29454c1f0533f56 |
    +--------------------------------------+------------------------------------------------------+

    openstack@controller:~$ nova list
    +--------------------------------------+-----------------+---------+------------+-------------+------------------------+
    | ID | Name | Status | Task State | Power State | Networks |
    +--------------------------------------+-----------------+---------+------------+-------------+------------------------+
    | 37c13070-5816-4039-8ea5-7f559225e844 | cirros-fs | SHUTOFF | - | Shutdown | demo-net=192.168.10.36 |
    | dc79ccd3-6915-4679-a5bc-44dce9dc5543 | win7-swift-vmdk | BUILD | spawning | NOSTATE | |
    +--------------------------------------+-----------------+---------+------------+-------------+------------------------+

    openstack@controller:~$ nova flavor-list
    +--------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
    | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
    +--------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
    | 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
    | 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
    | 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
    | 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
    | 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
    | 7e5ec9b2-112a-478f-bbc0-cc5d1ed98a08 | m1.tinyForWin | 512 | 11 | 0 | | 1 | 1.0 | True |
    +--------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+

    nova-compute.log

    2016-04-27 19:32:03.710 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:32:10.982 1912 AUDIT nova.compute.manager [req-36846242-d1da-4322-b4f2-dc76a34c3bfa None] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Starting instance...
    2016-04-27 19:32:11.104 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Attempting claim: memory 512 MB, disk 11 GB
    2016-04-27 19:32:11.105 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Total memory: 5948 MB, used: 1024.00 MB
    2016-04-27 19:32:11.105 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] memory limit: 8922.00 MB, free: 7898.00 MB
    2016-04-27 19:32:11.105 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Total disk: 19 GB, used: 1.00 GB
    2016-04-27 19:32:11.106 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] disk limit not specified, defaulting to unlimited
    2016-04-27 19:32:11.125 1912 AUDIT nova.compute.claims [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Claim successful
    2016-04-27 19:32:11.349 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:32:11.509 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:32:12.081 1912 INFO nova.virt.libvirt.driver [-] [instance: dc79ccd3-6915-4679-a5bc-44dce9dc5543] Creating image
    2016-04-27 19:32:12.645 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:33:04.577 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:33:04.776 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:33:04.777 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:33:04.777 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:33:04.777 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:33:04.842 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:33:04.842 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:33:20.503 1912 WARNING nova.compute.manager [-] While synchronizing instance power states, found 2 instances in the database and 1 instances on the hypervisor.
    2016-04-27 19:34:06.576 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:34:06.855 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:34:06.855 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:34:06.855 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:34:06.856 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:34:06.856 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:35:08.576 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:35:08.765 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:35:08.766 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:35:08.766 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:35:08.767 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:35:08.767 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:36:10.576 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:36:10.856 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:36:10.858 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:36:10.858 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:36:10.858 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:36:10.922 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:36:10.923 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:37:12.577 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:37:12.847 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:37:12.848 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:37:12.848 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:37:12.849 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:37:12.849 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:38:15.931 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:38:16.163 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:38:16.164 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:38:16.164 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:38:16.164 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:38:16.380 1912 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute', 'compute.home')
    2016-04-27 19:38:16.381 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:39:15.618 1912 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
    2016-04-27 19:39:16.052 1912 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 5948, total allocated virtual ram (MB): 1536
    2016-04-27 19:39:16.053 1912 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 7
    2016-04-27 19:39:16.053 1912 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 4, total allocated vcpus: 0
    2016-04-27 19:39:16.054 1912 AUDIT nova.compute.resource_tracker [-] PCI stats: []
    2016-04-27 19:39:16.054 1912 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute:compute.home
    2016-04-27 19:39:28.237 1912 ERROR nova.servicegroup.drivers.db [-] model server went away
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db Traceback (most recent call last):
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db File "/usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py", line 99, in _report_state
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db service.service_ref, state_catalog)
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db File "/usr/lib/python2.7/dist-packages/nova/conductor/api.py", line 180, in service_update
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db return self._manager.service_update(context, service, values)
    2016-04-27 19:39:28.237 1912 TRACE nova.servicegroup.drivers.db Fi2016-04-27 20:41:31.436 2054 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu nova Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.