Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## env_stack.yaml
- Though there's a reference to ~stack/.../node.yaml
- resource_registry:
- OOShift::ContainerPort: file:///tmp/foo-5/sdn_openshift_sdn.yaml
- OOShift::DNSRecord: file:///tmp/foo-5/dns_record.yaml
- OOShift::DockerVolume: file:///tmp/foo-5/volume_docker.yaml
- OOShift::DockerVolumeAttachment: file:///tmp/foo-5/volume_attachment_docker.yaml
- OOShift::IPFailover: file:///tmp/foo-5/ipfailover_keepalived.yaml
- OOShift::LoadBalancer: file:///tmp/foo-5/loadbalancer_lbaasv2.yaml
- OOShift::RegistryVolume: file:///tmp/foo-5/registry_ephemeral.yaml
- bastion.yaml: bastion.yaml
- file:///home/stack/shift/openshift-on-openstack/node.yaml: file:///home/stack/shift/openshift-on-openstack/node.yaml
- file:///tmp/foo-5/bastion.yaml: file:///tmp/foo-5/bastion.yaml
- file:///tmp/foo-5/infra.yaml: file:///tmp/foo-5/infra.yaml
- file:///tmp/foo-5/master.yaml: file:///tmp/foo-5/master.yaml
- infra.yaml: infra.yaml
- master.yaml: master.yaml
- The stack references foo-5/node.yaml
- [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:///
- | file:///tmp/foo-5/bastion.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:03Z | test-5 |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:21Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:19Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
- | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:19Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
- | 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 |
- | file:///tmp/foo-5/node.yaml | UPDATE_COMPLETE | 2017-06-12T14:38:22Z | test-5-openshift_nodes-k3kwibcv6kgy |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T14:36:39Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc
- ## Issue
- When updating a stack, I get
- /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
- /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
- The exception is thrown in
- "/usr/lib/python2.7/site-packages/heat/common/urlfetch.py" 79L, 2941C
- class URLFetchError(exception.Error, IOError):
- pass
- def get(url, allowed_schemes=('http', 'https')):
- """Get the data at the specified URL.
- The URL must use the http: or https: schemes.
- The file: scheme is also supported if you override
- the allowed_schemes argument.
- Raise an IOError if getting the data fails.
- """
- LOG.info(_LI('Fetching data from %s'), url)
- components = urllib.parse.urlparse(url)
- if components.scheme not in allowed_schemes:
- raise URLFetchError(_('Invalid URL scheme %s') % components.scheme)
- if components.scheme == 'file':
- try:
- return urllib.request.urlopen(url).read()
- except urllib.error.URLError as uex:
- raise URLFetchError(_('Failed to retrieve template: %s') % uex)
- All resources have been remapped but node.yaml -_-
- [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:
- | file:///tmp/foo-5/bastion.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:31Z | test-5 |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/master.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:51Z | test-5-openshift_masters-pgiyjdaoyx3a |
- | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:50Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
- | file:///tmp/foo-5/infra.yaml | UPDATE_COMPLETE | 2017-06-12T13:47:50Z | test-5-openshift_infra_nodes-wtjjevxcjh3y |
- | 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 |
- | file:///home/stack/shift/openshift-on-openstack/node.yaml | UPDATE_COMPLETE | 2017-05-25T16:41:37Z | test-5-openshift_nodes-k3kwibcv6kgy |
- | file:///home/stack/shift/openshift-on-openstack/node.yaml | CREATE_COMPLETE | 2017-05-25T16:41:37Z | test-5-openshift_nodes-k3kwibcv6kgy |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc |
- | file:///tmp/foo-5/loadbalancer_lbaasv2_poolmember.yaml | UPDATE_COMPLETE | 2017-06-12T13:48:10Z | test-5-loadbalancer-3hlfptumg4hh-pool_members-rs6eqrj3ujzc
- openstack stack environemnt show test-5
- ...
- resource_registry:
- OOShift::ContainerPort: file:///tmp/foo-5/sdn_openshift_sdn.yaml
- OOShift::DNSRecord: file:///tmp/foo-5/dns_record.yaml
- OOShift::DockerVolume: file:///tmp/foo-5/volume_docker.yaml
- OOShift::DockerVolumeAttachment: file:///tmp/foo-5/volume_attachment_docker.yaml
- OOShift::IPFailover: file:///tmp/foo-5/ipfailover_keepalived.yaml
- OOShift::LoadBalancer: file:///tmp/foo-5/loadbalancer_lbaasv2.yaml
- OOShift::RegistryVolume: file:///tmp/foo-5/registry_ephemeral.yaml
- bastion.yaml: bastion.yaml
- file:///home/stack/shift/openshift-on-openstack/node.yaml: file:///home/stack/shift/openshift-on-openstack/node.yaml
- file:///tmp/foo-5/bastion.yaml: file:///tmp/foo-5/bastion.yaml
- file:///tmp/foo-5/infra.yaml: file:///tmp/foo-5/infra.yaml
- file:///tmp/foo-5/master.yaml: file:///tmp/foo-5/master.yaml
- infra.yaml: infra.yaml
- master.yaml: master.yaml
- resources:
- bastion:
- restricted_actions: replace
- parameter_defaults: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement