Bug 1319265

Summary: ipv6 ospd-8 deployments fail: ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName
Product: Red Hat OpenStack Reporter: wes hayutin <whayutin>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: dbecker, dsneddon, gfidente, jslagle, mburns, mcornea, morazi, rhel-osp-director-maint, slinaber
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.12-2.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-15 14:31:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1281610    

Description wes hayutin 2016-03-18 16:23:04 UTC
Description of problem:

Found in: poodles/rhos-devel-ci/8.0-director/2016-03-16.4

ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName

{"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName", "traceback": "Traceback (most recent call last):\n\n  File \"/usr/lib/python2.7/site-packages/heat/common/context.py\", line 308, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  File \"/usr/lib/python2.7/site-packages/heat/engine/service.py\", line 726, in create_stack\n    parent_resource_name)\n\n  File \"/usr/lib/python2.7/site-packages/heat/engine/service.py\", line 637, in _parse_template_and_validate_stack\n    stack.validate()\n\n  File \"/usr/lib/python2.7/site-packages/osprofiler/profiler.py\", line 105, in wrapper\n    return f(*args, **kwargs)\n\n  File \"/usr/lib/python2.7/site-packages/heat/engine/stack.py\", line 679, in validate\n    raise ex\n\nStackValidationFailed: Property error: resources.InternalApiVirtualIP.properties: Unknown Property NetworkName\n", "type": "StackValidationFailed"}, "title": "Bad Request"}

2016-03-18 12:08:47.223 2646 ERROR openstack [ admin admin] ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 890, in take_action
    self._deploy_tripleo_heat_templates(stack, parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 352, in _deploy_tripleo_heat_templates
    environments, parsed_args.timeout)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 256, in _heat_deploy
    orchestration_client.stacks.create(**stack_args)
  File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 136, in create
    data=kwargs, headers=headers)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 287, in post
    return self.client_request("POST", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 277, in client_request
    resp, body = self.json_request(method, url, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 266, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 221, in _http_request
    raise exc.from_response(resp)
HTTPBadRequest: ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName
2016-03-18 12:08:47.226 2646 DEBUG openstackclient.shell [ admin admin] clean_up DeployOvercloud: ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName
2016-03-18 12:08:47.227 2646 ERROR openstackclient.shell [ admin admin] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 112, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 890, in take_action
    self._deploy_tripleo_heat_templates(stack, parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 352, in _deploy_tripleo_heat_templates
    environments, parsed_args.timeout)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 256, in _heat_deploy
    orchestration_client.stacks.create(**stack_args)
  File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 136, in create
    data=kwargs, headers=headers)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 287, in post
    return self.client_request("POST", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 277, in client_request
    resp, body = self.json_request(method, url, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 266, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 221, in _http_request
    raise exc.from_response(resp)
HTTPBadRequest: ERROR: Property error: : resources.InternalApiVirtualIP.properties: : Unknown Property NetworkName

2016-03-18 12:08:47.227 2646 INFO openstackclient.shell [ admin admin] END return value: 1
[stack@instack ~]$ 


property found in:

tripleo-heat-templates/overcloud.yaml:1310:  InternalApiVirtualIP:
tripleo-heat-templates/overcloud.yaml:1340:      InternalApiIp: {get_attr: [InternalApiVirtualIP, ip_address]}
tripleo-heat-templates/overcloud.yaml:1341:      InternalApiIpUri: {get_attr: [InternalApiVirtualIP, ip_address_uri]}

Comment 2 Dan Sneddon 2016-03-18 17:22:12 UTC
I'm really confused. Upstream stable/liberty is way out of sync with downstream OSP 8. When is the last time we did a rebase?

In stable/liberty:

$ grep NetworkName * -r
network/ports/vip_v6.yaml:  Creates a port for a VIP on the isolated network NetworkName.
network/ports/vip_v6.yaml:  NetworkName:
network/ports/vip_v6.yaml:      network: {get_param: NetworkName}
network/ports/from_service_v6.yaml:  NetworkName: # Here for compatability with ctlplane_vip.yaml
network/ports/noop.yaml:  NetworkName:
network/ports/ctlplane_vip.yaml:  NetworkName:
network/ports/vip.yaml:  Creates a port for a VIP on the isolated network NetworkName.
network/ports/vip.yaml:  NetworkName:
network/ports/vip.yaml:      network: {get_param: NetworkName}
network/ports/from_service.yaml:  NetworkName: # Here for compatability with ctlplane_vip.yaml
overcloud-without-mergepy.yaml:      NetworkName: {get_param: [ServiceNetMap, RedisNetwork]}
overcloud.yaml:      NetworkName: {get_param: [ServiceNetMap, RedisNetwork]}

In openstack-tripleo-heat-templates/rhos-8.0-patches:

$ grep NetworkName -r
overcloud.yaml:      NetworkName: {get_param: [ServiceNetMap, RedisNetwork]}
overcloud.yaml:      NetworkName: external
overcloud.yaml:      NetworkName: external
overcloud.yaml:      NetworkName: external
overcloud.yaml:      NetworkName: external
network/ports/vip_v6.yaml:  Creates a port for a VIP on the isolated network NetworkName.
network/ports/vip_v6.yaml:  NetworkName:
network/ports/vip_v6.yaml:      network: {get_param: NetworkName}
network/ports/storage_mgmt.yaml:  NetworkName:
network/ports/from_service_v6.yaml:  NetworkName: # Here for compatability with ctlplane_vip.yaml
network/ports/external.yaml:  NetworkName:
network/ports/storage.yaml:  NetworkName:
network/ports/internal_api.yaml:  NetworkName:
network/ports/tenant.yaml:  NetworkName:
network/ports/noop.yaml:  NetworkName:
network/ports/ctlplane_vip.yaml:  NetworkName:
network/ports/vip.yaml:  Creates a port for a VIP on the isolated network NetworkName.
network/ports/vip.yaml:  NetworkName:
network/ports/vip.yaml:      network: {get_param: NetworkName}
network/ports/from_service.yaml:  NetworkName: # Here for compatability with ctlplane_vip.yaml

Comment 9 errata-xmlrpc 2016-04-15 14:31:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0637.html