Ask Your Question

Murali G D's profile - activity

2016-06-19 23:38:49 -0500 answered a question how to enable keystone v2 on mitaka

Hi Peter

Thanks. Your suggestion worked for me.

Murali G D

2016-06-17 05:41:30 -0500 commented question how to enable keystone v2 on mitaka

Please help. Need same information how to enable v2 in Mitaka.

2015-11-22 11:41:42 -0500 asked a question Notifications support in OpenStack

Hi,

Would like to know if there is any proper way to subscribe and listen for notifications on to Open-Stack from a different application.

For example, our application is interested in events like Server, Network, Port CRUD Operations.

Regards, Murali G D

2015-07-17 15:57:20 -0500 received badge  Famous Question (source)
2015-07-08 10:04:17 -0500 received badge  Teacher (source)
2015-07-08 10:04:17 -0500 received badge  Self-Learner (source)
2015-07-03 17:59:13 -0500 received badge  Notable Question (source)
2015-07-03 17:59:13 -0500 received badge  Popular Question (source)
2015-06-28 13:01:49 -0500 received badge  Notable Question (source)
2015-06-28 13:01:49 -0500 received badge  Famous Question (source)
2015-06-28 13:01:49 -0500 received badge  Popular Question (source)
2015-06-19 00:23:19 -0500 asked a question HEAT/YAML mixing explicit entries and for_each construct.

Hi,

Please see following YAML Template

heat_template_version: 2015-04-30
description: Distributed Appliance
parameters:
  image:
    type: string
    description: Image used for servers
    default: 5d2ef44f-e2cb-4292-99cc-b282a0b5730f
  flavor:
    type: string
    description: flavor used by the servers
    default: DefaultFlavorTemplate
  user_data:
    type: string
    description: Server user_data
    default: HelloWorld
  mgmt_network:
    type: string
    description: Mgmt Network used by the server
    default: '67cbf03b-a8c9-4869-8a7c-ed0a52ee64a3'
  mgmt_fabric_network:
    type: string
    description: Fabric Mgmt Network used by the server
    default: '6f7f1f0e-dd98-4e24-aca3-824403feebdb'
  data_fabric_network:
    type: string
    description: Fabric Data Network used by the server
    default: '5d789666-7e58-40f4-bd35-885fc98f46f4'
  external_networks:
    type: string
    type: comma_delimited_list
    label: external networks
    default: 'fa0669c0-14b0-499a-bd53-735110ee40ca,3e393ce9-1526-4a1e-a654-efbd2779f438'

resources:
  server:
    type: OS::Nova::Server
    properties:
      flavor: {get_param: flavor}
      image: {get_param: image}
      user_data: {get_param: user_data}
      user_data_format: RAW

      networks: #Option1
       - network: {get_param: mgmt_network}
       - network: {get_param: mgmt_fabric_network}
       - network: {get_param: data_fabric_network}
       repeat:
        for_each:
         extnetwork%: {get_param: external_networks}
        template:
         network: extnetwork%

      networks: #Option2
       repeat:
        for_each:
         extnetwork%: {get_param: mgmt_network} {get_param: mgmt_fabric_network} {get_param: data_fabric_network} {get_param: external_networks}
        template:
         network: extnetwork%

      networks: #Option3
       repeat:
        for_each:
         extnetwork%: {list_join: [',' , [{get_param: mgmt_network} , {get_param: mgmt_fabric_network} , {get_param: data_fabric_network} , {get_param: external_networks} ]]}
        template:
         network: extnetwork%

outputs:
  server_ip:
    description: IP Address of the server.
    value: { get_attr: [server, first_address] }

Basically I want my Nova::Server to be connected to networks in order of - mgmt_network, mgmt_fabric_network, data_fabric_network and then a comma separated list of other external_networks as mentioned in parameters defaults. I am not able to achieve this. I have mentioned 3 options I tried under networks but none of them worked for me.

Please help.

OpenStack Version: Kilo. HEAT 0.3.0.

Regards, Murali G D

2015-06-18 23:57:17 -0500 answered a question Heat/Yaml: get_param not working for lists in for_each construct

In file : /usr/lib/python2.7/dist-packages/heat/engine/hot/functions.py In function: class Repeat(function.Function):

commented following check and I was able to use for_each with get_param as mentioned in my question.

#        for v in six.itervalues(for_each):
#            if not isinstance(v, list):
#                raise TypeError(_('The values of the "for_each" argument to '
#                                  '"%s" must be lists') % self.fn_name)

Regards, Murali G D

2015-06-17 19:35:57 -0500 commented question Heat/Yaml: get_param not working for lists in for_each construct

No Jet. With % in front to port variable we get heat parsing error. So I removed it based on other sample templates.

2015-06-17 05:59:53 -0500 asked a question Heat/Yaml: get_param not working for lists in for_each construct

Hi I am using following template to create security-group actually to understand repeat/for_each construct

heat_template_version: 2015-04-30

parameters:
  ports:
    label: ports
    type: comma_delimited_list
    default: "80,443,8080"

resources:
  security_group:
    type: OS::Neutron::SecurityGroup
    properties:
      name: web_server_security_group
      rules:
        repeat:
          for_each:
           "port%": { get_param: ports }
          template:
            protocol: tcp
            port_range_min: port%
            port_range_max: port%

But when I try to execute I get following error.

root@controller:~# heat stack-create -f templates/secgroup_v1.yaml secTest234
ERROR: The values of the "for_each" argument to "repeat" must be list

It looks get_param is not treating "ports" as list.

If I replace get_param line like below hard-coded port%: ['22','32'] Heat is creating security-group successfully. So suspect it around get_param.

Any clue ?

OpenStack Version: Kilo and Heat Version: 0.3.0

Regards Murali G D

2015-04-14 07:24:33 -0500 received badge  Nice Question (source)
2014-04-21 21:19:24 -0500 received badge  Famous Question (source)
2014-03-30 23:46:42 -0500 received badge  Notable Question (source)
2014-03-30 23:23:40 -0500 received badge  Popular Question (source)
2014-03-21 13:24:07 -0500 received badge  Student (source)
2014-03-19 22:38:31 -0500 commented answer Nova/Quantum Notifications in RabbitMQ

Hi tzaffir,

Were you able to receive notifications in your java code ? How does the notification subscription setup look like ?

2014-03-19 22:27:02 -0500 asked a question How to listen for OpenStack Notifications/Events ?

We are using Havana OpenStack version. Would like to write a listener ( in java ) which can subscribe for OpenStack Notifications /Events like events like Server(VM), Network,Subnet,Port – creation/deletion/update and Server(VM) power state changes.

I understand that OpenStack uses RabbitMQ internally for pub/sub. Can I have some reference to notification message format, event types etc.. and how I can subscribe to it these kind of events ?

If there is any example written in python also would help.