Conductor: Heat error 'User name should not be greater than 64 characters'

Bug #1194798 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Stan Lagun

Bug Description

Moved to https://bugs.launchpad.net/murano/+bug/1194798
*Note:* Reproduced only for environments with LoadBalancer.

*Steps To Reproduce:*
1. Log into WebUI and navigate to Project > Environments
2. Create new environment 'test'
3. Navigate to the list of services for environment 'test'
4. Create one AD service and one ASP.NET Farm service
5. Start to deploy this environment

*Observed Result:*
Deploy failed. Heat status error message:
{code}
root@ss1283:~# heat stack-show 7107213b-e978-4af5-9a78-5e3aac08d53f
+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2013-06-20T19:50:57Z |
| description | No description |
| disable_rollback | True |
| id | 7107213b-e978-4af5-9a78-5e3aac08d53f |
| links | http://172.18.124.201:8004/v1/3bdd4ef3aa4446f8804654c0323949b3/stacks/e43dc6ffdb18d4268a993695fcb0be921/7107213b-e978-4af5-9a78-5e3aac08d53f |
| notification_topics | [] |
| parameters | { |
| | "ImageName": "ws-2012-full", |
| | "AWS::StackName": "e43dc6ffdb18d4268a993695fcb0be921", |
| | "AWS::StackId": "arn:openstack:heat::3bdd4ef3aa4446f8804654c0323949b3:stacks/e43dc6ffdb18d4268a993695fcb0be921/7107213b-e978-4af5-9a78-5e3aac08d53f", |
| | "KeyName": "murano-lb-key", |
| | "AWS::Region": "ap-southeast-1", |
| | "InstanceType": "m1.medium" |
| | } |
| stack_name | e43dc6ffdb18d4268a993695fcb0be921 |
| stack_status | CREATE_FAILED |
| stack_status_reason | Resource failed: Error: Resource failed: BadRequest: |
| | User name should not be greater than 64 characters. |
| | (HTTP 400) |
| template_description | No description |
| timeout_mins | 60 |
| updated_time | 2013-06-20T19:51:23Z |
+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
{code}

{code}
root@ss1283:~# heat event-show 7107213b-e978-4af5-9a78-5e3aac08d53f aspfarm 64
+------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| event_time | 2013-06-20T19:51:23Z |
| id | 64 |
| links | http://172.18.124.201:8004/v1/3bdd4ef3aa4446f8804654c0323949b3/stacks/e43dc6ffdb18d4268a993695fcb0be921/7107213b-e978-4af5-9a78-5e3aac08d53f/resources/aspfarm/events/64 |
| | http://172.18.124.201:8004/v1/3bdd4ef3aa4446f8804654c0323949b3/stacks/e43dc6ffdb18d4268a993695fcb0be921/7107213b-e978-4af5-9a78-5e3aac08d53f/resources/aspfarm |
| | http://172.18.124.201:8004/v1/3bdd4ef3aa4446f8804654c0323949b3/stacks/e43dc6ffdb18d4268a993695fcb0be921/7107213b-e978-4af5-9a78-5e3aac08d53f |
| logical_resource_id | aspfarm |
| physical_resource_id | ec319de6-b4ea-43b0-86b1-7b0159bac0fb |
| resource_properties | { |
| | "AppCookieStickinessPolicy": null, |
| | "Subnets": null, |
| | "HealthCheck": null, |
| | "LBCookieStickinessPolicy": null, |
| | "Instances": [ |
| | "97bafa4f-2be2-4d04-8dd1-0a667c6434fc" |
| | ], |
| | "Listeners": [ |
| | { |
| | "InstancePort": "80", |
| | "SSLCertificateId": null, |
| | "LoadBalancerPort": 80, |
| | "Protocol": "HTTP", |
| | "PolicyNames": null |
| | } |
| | ], |
| | "SecurityGroups": null, |
| | "AvailabilityZones": [ |
| | "nova" |
| | ] |
| | } |
| resource_status | CREATE_FAILED |
| resource_status_reason | Error: Resource failed: BadRequest: User name should not be greater than 64 characters. (HTTP 400) |
| resource_type | AWS::ElasticLoadBalancing::LoadBalancer |
+------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
{code}

*Note:*
Murano Conductor generated the correct template file, we can create stack with this template manually.

In Heat logs /opt/stack/log/screen-h-eng.log we can see:
{code}
2013-06-20 13:45:04.969 11283 DEBUG heat.openstack.common.rpc.amqp [-] UNIQUE_ID is a0a6b0fca20d4bba811e1dc16ee5aa45. _add_unique_id /opt/stack/heat/heat/openstack/common/rpc/amqp.py:338
2013-06-20 13:45:05.950 11283 DEBUG heat.engine.scheduler [-] Task create_task from Stack "e32b82837ff484575898c9eb786c57298" running step /opt/stack/heat/heat/engine/scheduler.py:160
2013-06-20 13:45:05.950 11283 DEBUG heat.engine.scheduler [-] Task resource_create running step /opt/stack/heat/heat/engine/scheduler.py:160
2013-06-20 13:45:05.951 11283 ERROR heat.engine.resource [-] CREATE : LoadBalancer "aspfarm"
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource Traceback (most recent call last):
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 341, in _do_action
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource while not check(handle_data):
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/stack_resource.py", line 77, in check_create_complete
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource raise exception.Error(self._nested.state_description)
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource Error: Resource failed: BadRequest: User name should not be greater than 64 characters. (HTTP 400)
2013-06-20 13:45:05.951 11283 TRACE heat.engine.resource
2013-06-20 13:45:06.200 11283 DEBUG heat.engine.scheduler [-] Task resource_create cancelled cancel /opt/stack/heat/heat/engine/scheduler.py:183
2013-06-20 13:45:06.284 11283 DEBUG heat.engine.scheduler [-] Task create_task from Stack "e32b82837ff484575898c9eb786c57298" complete step /opt/stack/heat/heat/engine/scheduler.py:166
2013-06-20 13:45:06.284 11283 WARNING heat.engine.service [-] Stack create failed, state CREATE_FAILED
2013-06-20 13:45:06.285 11283 DEBUG heat.openstack.common.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_msg_id': u'87c1f3ae2cef4677a593aa80ac2bc998', u'_context_password': None, u'_context_auth_url': u'http://172.18.124.201:5000/v2.0', u'_context_aws_auth_uri': None, u'_unique_id': u'8466317e1a324edabee032800d9a76bc', u'_context_tenant': u'admin', u'_context_aws_creds': None, u'args': {u'stack_name': u'e32b82837ff484575898c9eb786c57298'}, u'namespace': None, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True, u'version': u'1.0', u'_context_tenant_id': u'3bdd4ef3aa4446f8804654c0323949b3', u'method': u'identify_stack', u'_context_username': None} _safe_log /opt/stack/heat/heat/openstack/common/rpc/common.py:295

{code}

Tags: conductor
Changed in murano:
importance: Undecided → High
Changed in murano:
milestone: none → 0.2
status: New → Won't Fix
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

need to use admin account to deploy LoadBalancer instance with Heat.

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

The root of this problem in Heat: Heat uses WaitHandle methods for LoadBalancer configuration and only admin user can use this feature. Also, heat creates additional users to deploy LoadBalancer and we should have administrative privilegies to create new user and deploy LoadBalancer.

description: updated
Changed in murano:
importance: High → Medium
status: Won't Fix → Fix Released
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.