Ask Your Question

asalkeld's profile - activity

2015-11-26 10:21:05 -0500 received badge  Nice Answer (source)
2015-09-24 17:34:16 -0500 answered a question heat standalone mode issues

Hi

I am use standalone everyday here are my settings:

$ env | grep OS
OS_NO_CLIENT_AUTH=True
OS_REGION_NAME=RegionOne
OS_PASSWORD=***-not-this-***
OS_AUTH_URL=http://10.0.0.39:5000/v2.0
OS_USERNAME=admin
OS_TENANT_NAME=demo
OS_VOLUME_API_VERSION=2
$ env | grep HEAT
HEAT_URL=http://10.0.0.75:8004/v1/e80f6867c5b74ad49a75964fff4f4686

Make sure to get the tenant_id correct for the tenant name that you are using. So for my tenant of "demo" it's tenant_id is "e80f6867c5b74ad49a75964fff4f4686" (which is part of the HEAT_URL).

Also you will have to figure out the public cloud's region that you want to work with.

So here is a debug session:

 heat --debug stack-list
 DEBUG (http) curl -g -i -X GET -H 'X-Auth-User: admin' -H 'User-Agent: python-heatclient' -H 'X-Auth-Key: ***-not-this-***' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-Auth-Url: http://10.0.0.39:5000/v2.0' http://10.0.0.75:8004/v1/e80f6867c5b74ad49a75964fff4f4686/stacks?
 INFO (connectionpool) Starting new HTTP connection (1): 10.0.0.75
 DEBUG (connectionpool) "GET /v1/e80f6867c5b74ad49a75964fff4f4686/stacks HTTP/1.1" 200 14
 DEBUG (http) 
 HTTP/1.1 200 OK
 date: Thu, 24 Sep 2015 22:19:07 GMT
 connection: keep-alive
 content-type: application/json; charset=UTF-8
 content-length: 14
 x-openstack-request-id: req-ca132cbc-24ae-4e08-afd2-ff3191318901

 {"stacks": []}

 +----+------------+--------------+---------------+--------------+
 | id | stack_name | stack_status | creation_time | updated_time |
 +----+------------+--------------+---------------+--------------+
 +----+------------+--------------+---------------+--------------+

One last thing is, what public cloud are you trying to talk to?

2015-09-18 10:43:59 -0500 received badge  Necromancer (source)
2015-08-17 18:54:02 -0500 answered a question set network adapter in HEAT template

We can only support what nova client exposes to us. See: https://github.com/openstack/python-n...

2015-08-17 18:46:28 -0500 answered a question Heat resource 'Updates cause replacement' question

Let's use this silly example:

 resources:
   resA:
    type: foo
    properties:
      x: 1
      y: 2
   resB:
    type: foo

For the example x is updateReplace and y is updatable.

  1. I change property x from "1" to "4" and stack-update, result: only resource A is deleted then re-created
  2. I change property y from "2" to "3" and stack-update, result: only resource B is updated

Note: these field settings come from the underlying services that don't allow certain fields to be updated and are only available on create.

2015-08-06 00:41:32 -0500 received badge  Necromancer (source)
2015-08-05 19:41:12 -0500 answered a question Error in Heat Template Composition

This is more to do with your python-heatclient version, I'd try making sure that is uptodate. (mine is 0.6.0)

2015-08-05 19:38:15 -0500 answered a question Using local environment variables in heat template

Remember that the template is used in the cloud (so there is no access to your env).

A different way to do this is:

heat stack-create -f template.yaml -P "os_auth_url=$OS_AUTH_URL;os_username=$OS_AUTH_URL"
2015-08-05 19:33:48 -0500 answered a question Heat Error: image 'NoneType' object has no attribute 'replace'

As @steve-baker said please go follow the bug instead: https://bugs.launchpad.net/heat/+bug/...

2015-08-05 19:30:29 -0500 answered a question How to flatten nested Heat templates?

Note:

heat help resource-list 
usage: heat resource-list [-n <DEPTH>] <NAME or ID>

Show list of resources belonging to a stack.

Positional arguments:
  <NAME or ID>          Name or ID of stack to show the resources for.

Optional arguments:
-n <DEPTH>, --nested-depth <DEPTH>
                    Depth of nested stacks from which to display
                    resources.

Try:

heat resource-list <stack name> -n 3
2015-08-05 19:27:07 -0500 answered a question How to make heat log include debug information?

In /etc/heat/heat.conf set:

debug=true

start heat engine and see if you get debug level messages like:

$ heat-engine

DEBUG heat.engine.service [] Starting listener for engine

etc...

2015-08-05 19:17:33 -0500 answered a question Not able to create the heat stack with resource type : OS::Neutron::ProviderNet

Please note what @larsks said and let us know if that solves your problem.

2015-08-05 19:13:22 -0500 answered a question heat userData is not executed

see: https://bugs.launchpad.net/heat/+bug/...

Tho' I see there is no progress on that issue.

2015-08-05 19:08:16 -0500 answered a question Heat Personality Limit

Hi

see: http://docs.openstack.org/openstack-o... ( the "injected-files" property)

You need to ask your admin to increase your quota.

-Angus

2015-08-05 19:01:39 -0500 answered a question the function 'schema_to_parameters_and_properties'

Hi

It would be good to know what exactly you are trying to achieve.

But the main problem here is there is no such thing as structured parameters, so we can't really support converting structured properties.

https://github.com/openstack/heat/blo... https://github.com/openstack/heat/blo...

-Angus

2015-07-06 18:15:25 -0500 answered a question Heat get_param Processing Array of Object

It might be that you version of heat does not support selecting within the get_param. Try using "Fn::Select" on the result and see how that goes.

http://docs.openstack.org/developer/h...

2015-02-12 20:14:31 -0500 answered a question Fn::FindInMap gives error in Heat HOT Template

HOT does not support the top level "Mappings" section.

To use Fn::Select with your data:

I'd remove the "Mappings" and just have:

mirror_map:
  fm00: 0
  port1: 1
 {Fn::Select: [{get_param: Mirror}, {get_param: mirror_map}]
2015-02-12 20:03:39 -0500 answered a question Accessing Heat-provisioned Cinder volumes

I'll also point you to some RHT docs;) https://access.redhat.com/documentati...

2015-02-12 19:53:55 -0500 answered a question heat multicloud
2015-02-12 19:40:59 -0500 answered a question Is ceilometer alarm notifier present in grizzly?

Hi

No, alarms are not available in the ceilometer grizzly API.

It was added in Havana.

-Angus

2015-01-26 14:46:38 -0500 received badge  Nice Answer (source)
2015-01-19 01:37:55 -0500 received badge  Necromancer (source)
2015-01-18 21:24:17 -0500 answered a question Heat Autoscaling: Adaptation actions on existing servers

Hi,

We have had requests for this, but no one has had the time to implement it unfortunately. https://blueprints.launchpad.net/heat...

(please feel free to add to that bp if it doesn't quite meet your needs)

-Angus

2015-01-18 21:14:35 -0500 answered a question heat autoscaling aws authentication failure

This may be due to a change in boto (to mirror a change in AWS).

https://bugs.launchpad.net/heat/+bug/...

2015-01-18 21:07:34 -0500 answered a question How to retrieve updated topology after an autoscaling has been done?
2015-01-07 19:37:07 -0500 answered a question Keyring support for heat

Hi Prabu

That does sound like a nice feature: https://github.com/openstack/python-n...

I've made a bug for it: https://bugs.launchpad.net/python-hea...

-Angus

2015-01-07 19:28:11 -0500 answered a question Access a container from a nova server inside heat

Hi Einav

You could let Heat do this for by using SoftwareConfiguration resources.

Try this template: https://github.com/openstack/heat-tem...

Note if you change line 80 to POLL_TEMP_URL Heat will use swift temp urls, to provide tempory non-authenticated access from the guest to data like this.

-Angus

2015-01-07 19:09:23 -0500 answered a question Should I update a server via the template or directly?

Hi Adam

I'd suggest using Heat update for this, if you don't you are basically not going to want to use heat again as any further update will have a chance of removing what you added manually. Basically your template and reality are getting out of sync.

"Doesn't this have the possibility of becoming quite unruly as my server has more things/talks to more things?"

I honestly don't see how using heat (or not) changes this? Do you mean that the template is getting more complex? - your infrastructure is getting more complex and the template is designed to describe that for you. Pick up the template and create it elsewhere and you have the same thing. Now if you are doing manual steps you lose that capablity.

-Angus

2014-12-21 19:44:37 -0500 received badge  Commentator
2014-12-21 19:44:37 -0500 commented answer Extract topology information from Heat Template

Hi, the main dependancies are derived by the "required_by" field: https://github.com/openstack/horizon/...

2014-11-23 21:50:17 -0500 answered a question In Heat stack, define an alarm just for stack instance?

Yes, the alarm is only for resources within the stack.

2014-11-23 21:41:21 -0500 commented question Accessing Heat-provisioned Cinder volumes

That seems like what I remember as the expected behaviour (but not very nice IMO).

2014-11-23 21:36:32 -0500 answered a question BadRequest: object of type 'NoneType' has no len() (HTTP 400)

Hi

It's been a while since you asked, sorry we are trying to keep up.

Did you get to the bottom of it? This looks like a bug, so feel free to raise it here: https://bugs.launchpad.net/heat/ and add as much info (logs, templates, parameters) as you can.

-Angus

2014-11-23 21:32:03 -0500 answered a question Heat Provider template, how to reference networks defined in parent stack

Hi

It's been a while since you asked - :( sorry. Have you come right?

There are some new examples here: https://github.com/openstack/heat-tem...

-Angus

2014-11-23 21:22:31 -0500 commented answer Extract topology information from Heat Template

This is only using 2 methods to get the data:

  1. heat stack-get https://github.com/openstack/python-h...
  2. heat resource-list : https://github.com/openstack/python-h...
2014-11-19 18:41:15 -0500 answered a question How to debug execution of user_data section in a Heat template
2014-11-17 18:48:54 -0500 commented answer Can you use autoscaling in combination with shelving and unshelving instances?

I'd suggest just building custom images for the time being.

2014-11-17 16:40:13 -0500 answered a question %index% in resource group not returning index number

Hi

That seems strange as we have tests that prove that this works: https://github.com/openstack/heat/blo...

What version of heat do you have? Here is the commit that added that feature: https://github.com/openstack/heat/com...

-Angus

2014-11-17 16:20:19 -0500 answered a question error:u'u\' "str_replace syntax should be str_replace

Have a look at the docs for str_replace: http://docs.openstack.org/developer/h...

simple example

str_replace:
    template: http://host/MyApplication
    params:
      host: 192.168.1.1

you were missing the "params" section.

2014-11-17 16:14:44 -0500 answered a question Extract topology information from Heat Template

Just have a look at the horizon code: https://github.com/openstack/horizon/...

2014-11-17 16:02:57 -0500 answered a question Can you use autoscaling in combination with shelving and unshelving instances?

Hi

Not at the moment. We have thought about solutions like that (pause/resume), but have not had enough time to implement them.

-Angus

2014-10-16 18:17:22 -0500 answered a question If multiple resources are created in a nested template how do you reference the attributes of those resources.

Hi

Yeah, you can't do that yet. The way get it is to add an outputs section to your nested stack. As an example: https://github.com/openstack/heat-tem... to reference the network in that nested stack {get_attr: [my_vm, instance_networks]}

-Angus

2014-10-10 13:19:12 -0500 received badge  Enlightened (source)
2014-10-10 13:19:12 -0500 received badge  Good Answer (source)
2014-10-07 02:48:55 -0500 answered a question Docker with Heat On Juno

Have you installed docker and python-docker?

See: https://github.com/openstack/heat/blo...

2014-09-29 01:58:14 -0500 answered a question what happens if Heat engine goes down while a stack is being provisioned

Yeah, right now it will not continue. But we are working on this in the next cycle, so hopefully this should work well in the next couple of months.

2014-09-29 01:56:47 -0500 answered a question Error while creating heat stack

So it's a non-blocking call so to track it's progress you can try:

heat resource-list mystack

heat event-list mystack

2014-09-29 01:47:21 -0500 answered a question integration of heat with nagios or some other monitoring system

Hi

You need an equivalent of https://github.com/openstack/heat/blo...

So you need to be able to hook up nagios to Heat using a custom resource plugin. The new nagios alarm plugin needs to be able to logically do the same as the ceilometer one. One issue you are going to have is nagios not being tenant aware. Although depending on how you use OpenStack you may or may not care.

-Angus

2014-09-29 01:29:31 -0500 answered a question ERROR: Template not in valid format: while parsing a block mapping