Ask Your Question
0

Orchestration API InvalidRequestError when filtering on OS::Nova:Server

asked 2017-02-21 03:32:28 -0500

Tori gravatar image

updated 2017-02-21 04:23:52 -0500

Hi,

I am using HTTP API. When i try to apply the filter on resource type i get an error. If I filter on other options such as status or name the request works fine like so:

http://131.1.1.1:8004/v1/7aa5994885fb4a91a0b7976f019b59bc/stacks/pMY_stack_66971897-2863-42dd-9a08-82a0067f43ad/stackid11/resources?status=COMPLETE

http://131.1.1.1:8004/v1/7aa5994885fb4a91a0b7976f019b59bc/stacks/pMY_stack_66971897-2863-42dd-9a08-82a0067f43ad/stackid11/resources?name=my_interface1_port

However if i try to filter on resource type like so:

http://131.1.1.1:8004/v1/7aa5994885fb4a91a0b7976f019b59bc/stacks/pMY_stack_66971897-2863-42dd-9a08-82a0067f43ad/stackid11/resources?type=OS::Nova::Server

I get a Server 500 error:

 {
  "explanation": "The server has either erred or is incapable of performing the requested operation.",
  "code": 500,
  "error": {
    "message": "Remote error: InvalidRequestError Entity '<class 'heat.db.sqlalchemy.models.Resource'>' has no property 'type'\n[u'",
    "traceback": null,
    "type": "RemoteError"
  },
  "title": "Internal Server Error"
}

Any help much appreciated. Openstack version: Mitaka

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-02-21 08:09:26 -0500

zaneb gravatar image

I believe this is due to this bug. The fix is in the 6.1.0 release of stable/mitaka.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-21 03:32:28 -0500

Seen: 52 times

Last updated: Feb 21 '17