giagiannis's profile - activity

2018-04-13 18:43:05 -0600 received badge  Popular Question (source)
2018-04-13 18:43:05 -0600 received badge  Famous Question (source)
2018-04-13 18:43:05 -0600 received badge  Notable Question (source)
2016-05-19 04:01:45 -0600 answered a question str_replace with get_attr in Openstack Icehouse

After some research, it turns out that the problem is not related to the usage of the get_attr function inside the str_replace function! The problem is that the tag

get_attr: [ instance2, networks, private-net ]

returns a list of IP addresses rather than a string. The problem was solved by appending the index 0 in the get_attr function

    get_attr: [ instance2, networks, private-net, 0]

and the (single) IP address that is returned is now considered a string and the above example works!

2016-05-18 11:06:13 -0600 asked a question str_replace with get_attr in Openstack Icehouse

Hi everyone,

I have the following HOT template

heat_template_version: 2013-05-23
description: Simple HOT template with dependencies
resources:
  instance1:
    type: OS::Nova::Server
    depends_on: instance2
    properties:
      key_name: default
      image: 80a652ae-5b08-48c8-b069-b4c02c1b24fe
      flavor: singles.1
      user_data_format: RAW
      user_data: 
        str_replace:
          template: |
            #!/bin/bash
            echo "$FOO" > /tmp/message
            exit 0
          params:
            $FOO: { get_attr: [ instance2, networks, private-net ] }
  instance2:
    type: OS::Nova::Server
    properties:
      key_name: default
      image: 80a652ae-5b08-48c8-b069-b4c02c1b24fe
      flavor: singles.1

outputs:
  instance_ip1:
    value: { get_attr: [instance1, networks, private-net] }

When I am trying to launch the stack, I get the following error:

Resource CREATE failed: StackValidationFailed: Property
error : instance1: user_data "str_replace" params must
be strings or numbers

and from http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#str-replace (here) I can conclude that in version 2013-05-23 str_replace does not support replacing between stringes and JSON objects. Is this correct? If this is the case, how can I dynamically inject the IP address of instance2 into the script executed at instance1?

I attach the heat version I am running:

ii  heat-api                             2014.1.5-0ubuntu1                     all          OpenStack orchestration service - ReST API
ii  heat-api-cfn                         2014.1.5-0ubuntu1                     all          OpenStack orchestration service - CFN API
ii  heat-common                          2014.1.5-0ubuntu1                     all          OpenStack orchestration service - common files
ii  heat-engine                          2014.1.5-0ubuntu1                     all          OpenStack orchestration service - engine
ii  python-heat                          2014.1.5-0ubuntu1                     all          OpenStack orchestration service - Python files
ii  python-heatclient                    0.2.8-0ubuntu1                        all          client library and CLI for OpenStack Heat

Thank you in advance.

2015-02-26 18:06:03 -0600 received badge  Famous Question (source)
2015-02-24 11:25:47 -0600 received badge  Notable Question (source)
2015-02-24 11:25:47 -0600 received badge  Famous Question (source)
2015-02-24 11:25:47 -0600 received badge  Popular Question (source)
2015-02-15 17:22:06 -0600 received badge  Notable Question (source)
2014-12-28 03:31:50 -0600 received badge  Notable Question (source)
2014-12-21 08:02:16 -0600 received badge  Popular Question (source)
2014-12-17 02:54:50 -0600 received badge  Popular Question (source)
2014-12-16 13:29:00 -0600 commented answer Cannot ping VMs from host

Thanks for your response, however my question is a little bit different. The host has a network bridge and it has an IP address from the private network. Say host A contains VM B and host C contains VM D. A,B,C,D have interfaces inside the same private network. A->D and C->B works, why A->B doesn't?

2014-12-16 12:51:31 -0600 asked a question Cannot ping VMs from host

Hello,

I am issues when I want to communicate from the host to a VM placed inside this host. However, I can ping VMs placed in ohter hosts of my cluster. I am running Openstack Icehouse and I am using nova-network for networking (multi-host).

Thanks in advance

2014-12-16 12:51:30 -0600 asked a question Cannot ping VM from host

I am running an Openstack Icehouse installation and I cannot ping any VM I create from the host this VM belongs to. However, I can ping VMs placed n other hosts. Is there a way I can enable traffic from the host to the VMs which are created to it?

Thanks in advance

I am using nova-network for networking and multi-host is enabled.

2014-12-16 12:34:08 -0600 received badge  Popular Question (source)
2014-11-01 02:26:38 -0600 received badge  Taxonomist
2014-09-05 01:12:33 -0600 marked best answer Possible to execute the controller node as a compute node?

Hi all,

is it possible to launch VMs to the controller node? I face some troubles with the network since nova-api-metada (needed by the compute nodes as suggested http://docs.openstack.org/trunk/install-guide/install/apt/content/nova-networking-compute-node.html (here)) package removes nova-api packages, thus I cannot have a running network functionality. Any ideas on this?