Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
BIGTOP-2480: Fix occasional timeout on hadoop-processing Juju bundle #120
Closed
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,31 @@ | ||
| +#!/usr/bin/env python3 | ||
| + | ||
| +# Licensed to the Apache Software Foundation (ASF) under one or more | ||
| +# contributor license agreements. See the NOTICE file distributed with | ||
| +# this work for additional information regarding copyright ownership. | ||
| +# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| +# (the "License"); you may not use this file except in compliance with | ||
| +# the License. You may obtain a copy of the License at | ||
| +# | ||
| +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| +# | ||
| +# Unless required by applicable law or agreed to in writing, software | ||
| +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| +# See the License for the specific language governing permissions and | ||
| +# limitations under the License. | ||
| + | ||
| +import os | ||
| + | ||
| +import yaml | ||
| +import amulet | ||
| + | ||
| + | ||
| +bundle_file = os.path.join(os.path.dirname(__file__), '..', 'bundle.yaml') | ||
| +d = amulet.Deployment(series='trusty') | ||
| +with open(bundle_file) as f: | ||
| + bun = f.read() | ||
| +bundle = yaml.safe_load(bun) | ||
| +d.load(bundle) | ||
| +d.setup(timeout=3600) | ||
| +d.sentry.wait_for_messages({'client': 'Ready'}, timeout=3600) |
| @@ -1,4 +1,6 @@ | ||
| reset: false | ||
| +bundle_deploy: 00-deploy | ||
| +makefile: [] | ||
| packages: | ||
| - amulet | ||
| - python3-yaml |