Ask Your Question

imtiaz.chowdhury's profile - activity

2014-04-24 17:39:41 -0500 received badge  Teacher (source)
2014-04-23 02:09:41 -0500 received badge  Famous Question (source)
2014-04-23 01:56:33 -0500 answered a question resource plugin

A resource plugin must be Python module which provides implementation of certain functions. Please see From the documentation ( https://wiki.openstack.org/wiki/Heat/Plugins (https://wiki.openstack.org/wiki/Heat/...) ) for more information. If you checkout Heat source code from Git Hub then you can see some sample Heat Plugin implementation under heat/contrib directory.

2014-04-23 01:47:53 -0500 commented question resource plugin

Resource plugin must be a Python class that implement certain methods. Does that answer your question?

2014-02-17 21:31:45 -0500 answered a question Multiple possible networks found, use a Network ID to be more specific

As the message indicates, you need to specify a network ID. Unfortunately, from the Heat documentation it is not obvious how to specify network ID in the CFN template. After looking at the Heat source code and some trial and errors, I was able to figure it out. Here's what you have to do:

  1. Add an "SubnetID" section in the template (see example below).

  2. Specify the subnetId as instance properties. You can get the subnetId either from Horizon dashboard or using neutron net-list command

My Heat template (only showing partial file):

{
  "AWSTemplateFormatVersion" : "2010-09-09",

  "Description" : "AWS CloudFormation Sample Template WordPress_Single_Instance: WordPress is web software you can use to create a beautiful website or blog. This template installs a single-instance WordPress deployment using a local MySQL database to store the data.",

      "Parameters" : {

        "KeyName" : {
          "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
          "Type" : "String"
        },
        "SubnetId" : {
          "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
          "Type" : "String"
        },

And Properties file, named aws-environ.yaml:

parameters:
  InstanceType: m1.medium 
  KeyName: imtiaz-key
  SubnetId: 06edc29e-0103-469a-ad34-08c6e7994016

To launch an instance, use:

heat stack-create -f /etc/heat/templates/Wordpress_Single_Instance.template -e /etc/heat/templates/aws-environ.yaml my-stack

2013-12-11 12:32:54 -0500 received badge  Notable Question (source)
2013-12-06 22:23:28 -0500 received badge  Popular Question (source)
2013-12-06 16:59:25 -0500 received badge  Editor (source)
2013-12-04 14:19:26 -0500 commented question Does file injection work with CentOS images in Grizzly ?

Just tried injecting file on a VM running on cirros image and it worked. So the problem only manifests itself when I use CentOS VMs. However, file injection used to work with the same version of CentOS in Folsom.

2013-12-04 14:06:49 -0500 commented question Does file injection work with CentOS images in Grizzly ?

There are no error message in the compute.log or libvirt log files.

2013-12-03 21:12:23 -0500 answered a question how to shrink the image requirements for disk

You can compress a qcow2 image using qemu-img utility. For example, qemu-img convert -c <input image="" location=""/> -O qcow2 <compressed image="">. This significantly reduces the image size. What I'm not sure is whether compressing the image helps reducing the snapshot size. </compressed>

2013-12-03 21:09:00 -0500 commented question Does file injection work with CentOS images in Grizzly ?

The VM gets created and I don't see any errors while running the command itself. However, upon logging into the VM, I don't see the file I tried to inject.

2013-12-03 17:52:59 -0500 asked a question Does file injection work with CentOS images in Grizzly ?

Does file injection during VM instance creation work in Grizzly and Havana? In Folsom release, I was able to inject files into the VMs with the nova boot command (e.g. nova boot --flavor 1 --image <> --file /etc/chef/validation.pem=./validation.pem <vm name=""> but this is no longer working for me from Grizzly release. </vm>

I am using CentOS 5.8 and 6.4 images. The VMs get created without any error messages and I can successfully connect to them. However, the injected files are not where they are expected to be.

The compute.log file only reflects the available resources:

2013-12-07 00:58:58.379 52137 INFO nova.compute.manager [-] Updating host status
2013-12-07 01:00:00.299 52137 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2013-12-07 01:00:01.146 52137 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 233206
2013-12-07 01:00:01.147 52137 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 60
2013-12-07 01:00:01.147 52137 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 18

The libvirtd.log file shows the following errors. However, these errors occurred few months ago and I don't see any new error messages.

2013-09-19 22:28:10.842+0000: 5716: error : virNWFilterSnoopLeaseFileRefresh:1903 : open("/var/run/libvirt/network/nwfilter.ltmp"): No such file or directory
2013-09-20 00:04:17.416+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 00:06:20.164+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 18:22:02.540+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 20:09:57.070+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-23 16:50:38.227+0000: 2665: info : libvirt version: 0.10.2, package: 18.el6_4.9 (CentOS BuildSystem <http://bugs.centos.org>, 2013-07-02-11:19:29, c6b8.bsys.dev.centos.org)
2013-12-03 12:49:36 -0500 commented question Howto install cloud-init into a CentOS image

How are you creating CentOS images? I am using Boxgrinder meta-appliance for creating CentOS images (qcow2 format). The VM images work fine with Openstack but as soon as I add the cloud-init package, I am unable to ssh to the VM although the VM is ping-able.