openstack heat client returns "region_name" for stack commands

Bug #1646334 reported by Kev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-heatclient
Incomplete
Undecided
Unassigned

Bug Description

Expect heat plugin to work but only get strange text response "region_name".

# openstack stack list
region_name

# openstack stack file list test1
region_name

# openstack --os-region-name=region2 stack list
region_name

The base client works as expected

# openstack server list
+--------------------------------------+---------+--------+------------------------------------------+
| ID | Name | Status | Networks |

Version is
openstack 2.4.0

OS is alpine, specifically this: https://github.com/jmcvea/docker-openstack-client

Presumably there is a configuration problem but it is not the region name and the output is meaningless. Unfortunately I have no idea where to start troubleshooting this.

I am using a standard env configuration script so the only configuration supplied are the environment variables, which do include OS_REGION_NAME:
OS_PASSWORD
OS_REGION_NAME
OS_AUTH_URL
OS_PROJECT_NAME
OS_USERNAME
OS_USER_DOMAIN_NAME
OS_PROJECT_ID

Tags: heat
Kev (kcd83)
summary: - openstack stack client returns "region_name"
+ openstack heat client returns "region_name" for stack commands
Revision history for this message
Rabi Mishra (rabi) wrote :

It seems to work fine for me with the below versions. I'm not familiar with openstack on alpine and docker-openstackclient.

[stack@f24-devstack ~]$ pip freeze | grep 'openstackclient\|heatclient'
python-heatclient==1.6.1
python-openstackclient==3.4.1

[stack@f24-devstack ~]$ openstack --os-region-name=RegionOne stack list
+--------------------------------------+------------+-----------------+----------------------+--------------+
| ID | Stack Name | Stack Status | Creation Time | Updated Time |
+--------------------------------------+------------+-----------------+----------------------+--------------+
| 400909be-7ede-4f1d-af1a-1906138b6e95 | test_stack | CREATE_COMPLETE | 2016-12-01T12:06:24Z | None |
+--------------------------------------+------------+-----------------+----------------------+--------------+
[stack@f24-devstack ~]$ openstack --os-region-name=RegionRwo stack list
public endpoint for orchestration service in RegionRwo region not found

Changed in python-heatclient:
status: New → Incomplete
Revision history for this message
Magnus Lööf (magnus-loof) wrote :

I have the same problem.

With python-openstackclient==2.6.0 and python-heatclient==1.5.0 everything works fine.

With python-openstackclient==2.6.0 and python-heatclient==1.6.1 and python-heatclient==1.7.0 executing

openstack stack list (or any ohter openstack stack commands) returns "region_name"

[root@operator01 provider]# openstack stack -v create -e templates/env.yaml -t templates/stack.yaml provider
START with options: ['stack', '-v', 'create', '-e', 'templates/env.yaml', '-t', 'templates/stack.yaml', 'provider']
command: stack create -> heatclient.osc.v1.stack.CreateStack
/usr/lib/python2.7/site-packages/openstackclient/api/auth.py:118: DeprecationWarning: Using function/method 'keystoneclient.auth.base.get_plugin_class()' is deprecated in version '2.1.0' and will be removed in version '3.0.0': keystoneclient auth plugins are deprecated. Use keystoneauth.
  auth_plugin_class = base.get_plugin_class(auth_plugin_name)
Using auth plugin: password
/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
  'in future releases.', DeprecationWarning)
region_name
END return value: 1

Revision history for this message
Rabi Mishra (rabi) wrote :

Your python-openstackclient seems quite old. I think there are some breaking changes with python-openstackclient and osc-lib off late. Probably you can try python-openstackclient>=3.3.0 with newer heat versions.

Revision history for this message
Rabi Mishra (rabi) wrote :

I mean newer python-heatclient versions.

Revision history for this message
Magnus Lööf (magnus-loof) wrote :

I believe python-openstackclient==2.6.0 is required for Kolla.

Revision history for this message
Rabi Mishra (rabi) wrote :

I don't see that. It seems to be a test requirement and >=3.3.0[1] on master.

[1] https://github.com/openstack/kolla/blob/master/test-requirements.txt#L23

Revision history for this message
Magnus Lööf (magnus-loof) wrote :

I am running 3.0.2. In the requirement file there it specifies >=2.1

And I remember having trouble with python-openstackclient > 2.6.0 and therefore pinned it to that version. And did not pin python-heatclient :-(

But, I will for sure test updating.

https://github.com/openstack/kolla/blob/3.0.2/test-requirements.txt

Revision history for this message
Magnus Lööf (magnus-loof) wrote :

this issue can be closed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.