Ask Your Question

VMTrooper's profile - activity

2016-05-09 17:44:26 -0500 received badge  Famous Question (source)
2016-02-28 18:21:03 -0500 received badge  Popular Question (source)
2016-02-28 18:21:03 -0500 received badge  Notable Question (source)
2016-02-09 13:41:11 -0500 received badge  Supporter (source)
2016-02-09 13:40:56 -0500 commented answer Heat ResourceGroup Server IP Address Outputs

Thank you, hcc!

A new "problem that I I have noticed is that my user needs to be an admin if the following line is specified in the software_config_server.yaml file:

user_data_format: SOFTWARE_CONFIG

Is there any way to get around this requirement short of modifying policy.json?

2016-02-09 13:37:57 -0500 received badge  Scholar (source)
2016-02-06 06:34:20 -0500 asked a question Heat ResourceGroup Server IP Address Outputs

Hello Folks,

I am attempting to create a group of servers and collect a list of their respective IP addresses as an output.

Steve Baker previously shared a great sample of this very thing, but I am having an issue with my ResourceGroup outputs being empty.

I pared down Steve's code to just the bits I need at this paste link: http://paste.openstack.org/show/486050/

When I try to use the heat output-show command, I get the following response:

$ heat output-show resourcegroup-test server_ips

Error: The Referenced Attribute (0 outputs) is incorrect.

Has anyone else seen similar messages when trying to access ResourceGroup output? I'm on Kilo (2015.1.1)

Thanks!

Sample Code included below in case the URL is not allowed:

# software_config_server.yaml
heat_template_version: 2014-10-16

resources:
  server:
    type: OS::Nova::Server
    properties:
      image: ubuntu-14.04-server-amd64
      flavor: m1.small
      key_name: demo-keypair
      user_data_format: SOFTWARE_CONFIG
      networks:
        - network: demo-network
outputs:
  server_id:
    value: {get_resource: server}
  server_ip:
    value: {get_attr: [server, networks, demo-network, 0]}

# software_config_servers.yaml
heat_template_version: 2014-10-16

parameters:
  server_count:
    type: number
    default: 2

resources:
  servers:
    type: OS::Heat::ResourceGroup
    properties:
      count: {get_param: server_count}
      resource_def:
        type: software_config_server.yaml

outputs:
  servers:
    value: {get_attr: [servers, outputs, server_id]}
  server_ips:
    value: {get_attr: [servers, outputs, server_ip]}
2014-06-13 22:45:19 -0500 answered a question VMWare hypervisor as compute node?

The Nova implementation requires vCenter to communicate with the vSphere hosts. You will need to have a VM running the Nova Compute service for each cluster that you want to control with OpenStack.

The networking piece is more tricky. If you want to use Neutron, you have to use VMware's NSX product. Otherwise, you will need to use Nova Network with the standard VMware vSwitches.

2013-08-05 13:08:37 -0500 commented answer Why do I get "No portal found" error while attaching cinder volume to VM?

Great write-up, Brian!