Advertisement
ioggstream

heat_update_stack_issue

Jun 12th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.83 KB | None | 0 0
  1. ## env_stack.yaml
  2. Though there's a reference to ~stack/.../node.yaml
  3.  
  4. resource_registry:
  5. OOShift::ContainerPort: file:///tmp/foo-5/sdn_openshift_sdn.yaml
  6. OOShift::DNSRecord: file:///tmp/foo-5/dns_record.yaml
  7. OOShift::DockerVolume: file:///tmp/foo-5/volume_docker.yaml
  8. OOShift::DockerVolumeAttachment: file:///tmp/foo-5/volume_attachment_docker.yaml
  9. OOShift::IPFailover: file:///tmp/foo-5/ipfailover_keepalived.yaml
  10. OOShift::LoadBalancer: file:///tmp/foo-5/loadbalancer_lbaasv2.yaml
  11. OOShift::RegistryVolume: file:///tmp/foo-5/registry_ephemeral.yaml
  12. bastion.yaml: bastion.yaml
  13. file:///home/stack/shift/openshift-on-openstack/node.yaml: file:///home/stack/shift/openshift-on-openstack/node.yaml
  14. file:///tmp/foo-5/bastion.yaml: file:///tmp/foo-5/bastion.yaml
  15. file:///tmp/foo-5/infra.yaml: file:///tmp/foo-5/infra.yaml
  16. file:///tmp/foo-5/master.yaml: file:///tmp/foo-5/master.yaml
  17. infra.yaml: infra.yaml
  18. master.yaml: master.yaml
  19.  
  20. The stack references foo-5/node.yaml
  21.  
  22. [stack@c1f-ops-dirp00 foo-5]$ o stack resource list test-5 -c resource_type -c stack_name -c resource_status -c updated_time -n10 |grep file:///
  23. | file:///tmp/foo-5/bastion.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:03Z | test-5 |
  24. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
  25. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
  26. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
  27. | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:19Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
  28. | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:19Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
  29. | file:///tmp/foo-5/collect-config-setup/install_config_agent_centos_yum.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:09Z | test-5-bastion_host-nanz35wcxa3v |
  30. | file:///tmp/foo-5/node.yaml | UPDATE_COMPLETE | 2017-06-12T14:38:22Z | test-5-openshift_nodes-k3kwibcv6kgy |
  31. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
  32. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
  33. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc
  34.  
  35.  
  36. ## Issue
  37.  
  38. When updating a stack, I get
  39.  
  40. /var/log/heat/heat-engine.log:2017-06-12 15:21:51.562 731594 INFO heat.engine.stack [req-551f08cd-bfc8-4917-bbda-406557ebf920 - - - - -] Stack UPDATE FAILED (test-5): Resource UPDATE failed: resources.openshift_nodes: Could not fetch remote template "file:///home/stack/shift/openshift-on-openstack/node.yaml": Invalid URL scheme file
  41. /var/log/heat/heat-engine.log:2017-06-12 15:33:52.761 731531 INFO heat.common.urlfetch [req-1866ae79-1399-49ed-a9db-1969b61ab1a8 - - - - -] Fetching data from file:///home/stack/shift/openshift-on-openstack/node.yaml
  42.  
  43. The exception is thrown in
  44. "/usr/lib/python2.7/site-packages/heat/common/urlfetch.py" 79L, 2941C
  45.  
  46. class URLFetchError(exception.Error, IOError):
  47. pass
  48.  
  49.  
  50. def get(url, allowed_schemes=('http', 'https')):
  51. """Get the data at the specified URL.
  52.  
  53. The URL must use the http: or https: schemes.
  54. The file: scheme is also supported if you override
  55. the allowed_schemes argument.
  56. Raise an IOError if getting the data fails.
  57. """
  58. LOG.info(_LI('Fetching data from %s'), url)
  59.  
  60. components = urllib.parse.urlparse(url)
  61.  
  62. if components.scheme not in allowed_schemes:
  63. raise URLFetchError(_('Invalid URL scheme %s') % components.scheme)
  64.  
  65. if components.scheme == 'file':
  66. try:
  67. return urllib.request.urlopen(url).read()
  68. except urllib.error.URLError as uex:
  69. raise URLFetchError(_('Failed to retrieve template: %s') % uex)
  70.  
  71.  
  72.  
  73. All resources have been remapped but node.yaml -_-
  74.  
  75. [stack@c1f-ops-dirp00 foo-5]$ o stack resource list test-5 -c resource_type -c stack_name -c resource_status -c updated_time -n10 |grep file:
  76. | file:///tmp/foo-5/bastion.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:31Z | test-5 |
  77. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
  78. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
  79. | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
  80. | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:50Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
  81. | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:50Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
  82. | file:///tmp/foo-5/collect-config-setup/install_config_agent_centos_yum.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:38Z | test-5-bastion_host-nanz35wcxa3v |
  83. | file:///home/stack/shift/openshift-on-openstack/node.yaml | UPDATE_COMPLETE | 2017-05-25T16:41:37Z | test-5-openshift_nodes-k3kwibcv6kgy |
  84. | file:///home/stack/shift/openshift-on-openstack/node.yaml | CREATE_COMPLETE | 2017-05-25T16:41:37Z | test-5-openshift_nodes-k3kwibcv6kgy |
  85. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
  86. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
  87. | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc
  88.  
  89.  
  90.  
  91. openstack stack environemnt show test-5
  92.  
  93. ...
  94. resource_registry:
  95. OOShift::ContainerPort: file:///tmp/foo-5/sdn_openshift_sdn.yaml
  96. OOShift::DNSRecord: file:///tmp/foo-5/dns_record.yaml
  97. OOShift::DockerVolume: file:///tmp/foo-5/volume_docker.yaml
  98. OOShift::DockerVolumeAttachment: file:///tmp/foo-5/volume_attachment_docker.yaml
  99. OOShift::IPFailover: file:///tmp/foo-5/ipfailover_keepalived.yaml
  100. OOShift::LoadBalancer: file:///tmp/foo-5/loadbalancer_lbaasv2.yaml
  101. OOShift::RegistryVolume: file:///tmp/foo-5/registry_ephemeral.yaml
  102. bastion.yaml: bastion.yaml
  103. file:///home/stack/shift/openshift-on-openstack/node.yaml: file:///home/stack/shift/openshift-on-openstack/node.yaml
  104. file:///tmp/foo-5/bastion.yaml: file:///tmp/foo-5/bastion.yaml
  105. file:///tmp/foo-5/infra.yaml: file:///tmp/foo-5/infra.yaml
  106. file:///tmp/foo-5/master.yaml: file:///tmp/foo-5/master.yaml
  107. infra.yaml: infra.yaml
  108. master.yaml: master.yaml
  109. resources:
  110. bastion:
  111. restricted_actions: replace
  112. parameter_defaults: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement