Ask Your Question

pirlouit32's profile - activity

2016-11-02 04:13:28 -0600 received badge  Famous Question (source)
2016-05-23 16:43:02 -0600 received badge  Notable Question (source)
2016-05-02 04:12:40 -0600 received badge  Popular Question (source)
2016-04-30 16:07:33 -0600 received badge  Enthusiast
2016-04-29 08:56:04 -0600 answered a question Juno Nova: Out of memory after instance creation

Thank you for your response. As you can see in my previous post, I have created a specific flavor (m1.tinyForWin) with 512 Mb RAM, 11 GB of disk and 1 VCPU. Correct me If am wrong but it is difficult to get a less than 10 GB image for Win 7.

2016-04-27 14:36:42 -0600 asked a question Juno Nova: Out of memory after instance creation

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...
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

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 ...
(more)
2016-02-15 03:15:43 -0600 received badge  Famous Question (source)
2016-02-12 03:56:19 -0600 answered a question glance + swift : cannot retrieve image (Juno)

Any clue, someone? Thanks.

2016-02-10 05:38:54 -0600 received badge  Student (source)
2016-02-09 11:01:11 -0600 commented question glance + swift : cannot retrieve image (Juno)

I have indeed restarted the glance-api service.The dir /var/lib/glance/images/ does not contains the images created since I have configured swift as storage for glance. Actually, in the above output, you can see the "swift list" command shows Glance have created (or tried to) the images in swift

2016-02-09 09:58:09 -0600 received badge  Notable Question (source)
2016-02-09 02:20:17 -0600 received badge  Popular Question (source)
2016-02-07 21:47:16 -0600 asked a question glance + swift : cannot retrieve image (Juno)

Hello

Following the Openstack installation guide for Ubuntu, I have setup a 4 nodes (controller, Network, Compute, Object Storage) environment. Now I have configured Swift as default repository for Glance to store images. Images are created fine, but I cannot launch any instances from these images. It looks like they cannot be retrieved from Swift, even if they appear to have been uploaded just fine.

Some logs below:

openstack@controller:/var/log$ cd ~
openstack@controller:~$ source admin-openrc.sh 
openstack@controller:~$ !1840
glance image-create --name "cirros-swift" --file ~/cirros.img --disk-format qcow2 --container-format bare --is-public True --progress
[=============================>] 100%
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 133eae9fb1c98f45894a4e60d8736619     |
| container_format | bare                                 |
| created_at       | 2016-01-31T21:33:03                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | ed2f6bb5-08d6-48c3-ae87-f7971578c936 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros-swift                         |
| owner            | 10450e8bc02f47cd9fe5fe4db1d6a469     |
| protected        | False                                |
| size             | 13200896                             |
| status           | active                               |
| updated_at       | 2016-01-31T21:33:04                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+
openstack@controller:~$ source glance-openrc.sh 
openstack@controller:~$ swift list glance
brr2.txt
ed2f6bb5-08d6-48c3-ae87-f7971578c936
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 |
| ed2f6bb5-08d6-48c3-ae87-f7971578c936 | cirros-swift        | qcow2       | bare             | 13200896 | active |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
openstack@controller:~$ source admin-openrc.sh 
openstack@controller:~$ glance image-download cirros-swift
Request returned failure status 404.
<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  Swift could not find object ed2f6bb5-08d6-48c3-ae87-f7971578c936.<br /><br />

 </body>
</html> (HTTP 404)
openstack@controller:~$ source glance-openrc.sh 
openstack@controller:~$ swift download glance ed2f6bb5-08d6-48c3-ae87-f7971578c936
Object 'glance/ed2f6bb5-08d6-48c3-ae87-f7971578c936' not found

openstack@controller:~$ swift stat glance dcbf8ed7-9d49-46db-991d-74007437495e
       Account: AUTH_87689a6b397240aa81000795c7cdb562
     Container: glance
        Object: dcbf8ed7-9d49-46db-991d-74007437495e
  Content Type: application/octet-stream
Content Length: 13200896
 Last Modified: Sun, 31 Jan 2016 19:50:22 GMT
          ETag: 133eae9fb1c98f45894a4e60d8736619
 Accept-Ranges: bytes
   X-Timestamp: 1454269821.55908
    X-Trans-Id: txb68b1fa3868e48f98c7b0-0056ae7187

I have found a similar issue, explained by a bug (silent auth failed while uploading the image), correctly in older versions of Glance. see: http://www.gossamer-threads.com/lists/openstack/dev/12854 (http://www.gossamer-threads.com/lists...)

openstack@controller:~$ !dpk
dpkg --list | grep glance
ii  glance                               1:2014.2.2-0ubuntu1~cloud0            all          OpenStack Image Registry and Delivery Service - Daemons
ii  glance-api                           1:2014.2.2-0ubuntu1~cloud0            all          OpenStack Image Registry and Delivery Service - API
ii  glance-common                        1:2014.2.2-0ubuntu1~cloud0            all          OpenStack Image Registry and Delivery Service - Common
ii  glance-registry                      1:2014.2.2-0ubuntu1~cloud0            all          OpenStack Image Registry and Delivery Service - Registry
ii  python-glance                        1:2014.2.2-0ubuntu1~cloud0            all          OpenStack Image Registry and Delivery Service - Python library
ii  python-glance-store                  0.1.8-1ubuntu2~cloud0                 all          OpenStack Image Service store library - Python 2.x
ii  python-glanceclient                  1:0.14.0-0ubuntu1~cloud0              all          Client library for Openstack glance server.

openstack@controller:~$ more glance-openrc.sh 
export OS_TENANT_NAME=service
export OS_USERNAME=glance
export OS_PASSWORD=glancekeypass
export OS_AUTH_URL=http://controller:5000/v2.0


openstack@controller:~$ sudo grep -i swift /etc/glance/glance-api.conf
default_store = swift 

stores = glance.store.swift.Store

swift_store_auth_version = 2

swift_store_auth_address = http://172.26.0.11:35357/v2.0/
swift_store_user = service:glance
swift_store_key = glancekeypass 
swift_store_container = glance
swift_store_create_container_on_put = True 
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

With filesystem as default storage for Glance, image and instance creation are working fine. Any help would ... (more)