Giter VIP home page Giter VIP logo

alaska-kayobe-config's People

Contributors

ajaeger avatar brtknr avatar dougszumski avatar johngarbutt avatar jovial avatar markgoddard avatar oneswig avatar openstackadmin avatar priteau avatar superpeng000 avatar wasaac avatar yankcrime avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alaska-kayobe-config's Issues

Renaming image build config type option causes unrelated failure

After fixing the kolla built type config option (stackhpc/kayobe#178 naming in kolla-build.conf (stackhpc/kayobe#178) the following error occurs during image build via Kayobe:

kayobe overcloud container image build monasca -e kolla_install_type=source --push
<snip>
TASK [Ensure Kolla container images are built] ***********************************************************************************************************************************************************************************************
failed: [alaska-seed] (item={u'regexes': u'monasca'}) => {"changed": true, "cmd": "set -o pipefail && source /opt/kayobe/venvs/kolla/bin/activate && kolla-build --config-dir /opt/kayobe/etc/kolla   --push monasca 2>&1 | tee --append /var/log/kolla-build.log", "delta": "0:00:09.796546", "end": "2018-09-28 15:27:20.025520", "failed": true, "item": {"regexes": "monasca"}, "rc": 1, "start": "2018-09-28 15:27:10.228974", "stderr": "", "stderr_lines": [], "stdout": "INFO:kolla.common.utils:Image squash is disabled\nINFO:kolla.common.utils:Found the docker image folder at /opt/kayobe/venvs/kolla/share/kolla/docker\nTraceback (most recent call last):\n  File \"/opt/kayobe/venvs/kolla/bin/kolla-build\", line 10, in <module>\n    sys.exit(main())\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/cmd/build.py\", line 30, in main\n    statuses = build.run_build()\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/image/build.py\", line 1262, in run_build\n    kolla.create_dockerfiles()\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/image/build.py\", line 901, in create_dockerfiles\n    content = template.render(values, env=os.environ)\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/jinja2/environment.py\", line 1008, in render\n    return self.environment.handle_exception(exc_info, True)\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/jinja2/environment.py\", line 780, in handle_exception\n    reraise(exc_type, exc_value, tb)\n  File \"<template>\", line 82, in top-level template code\n  File \"/tmp/kolla-2018-09-28_15-27-10_GXJ4It/docker/ironic-inspector/Dockerfile.j2\", line 27, in top-level template code\n    {{ macros.install_packages(ironic_inspector_packages | customizable(\"packages\")) }}\n  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/template/filters.py\", line 24, in customizable\n    val_list.extend(context[name + \"append\"])\njinja2.exceptions.UndefinedError: 'ironic_inspector_packages' is undefined", "stdout_lines": ["INFO:kolla.common.utils:Image squash is disabled", "INFO:kolla.common.utils:Found the docker image folder at /opt/kayobe/venvs/kolla/share/kolla/docker", "Traceback (most recent call last):", "  File \"/opt/kayobe/venvs/kolla/bin/kolla-build\", line 10, in <module>", "    sys.exit(main())", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/cmd/build.py\", line 30, in main", "    statuses = build.run_build()", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/image/build.py\", line 1262, in run_build", "    kolla.create_dockerfiles()", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/image/build.py\", line 901, in create_dockerfiles", "    content = template.render(values, env=os.environ)", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/jinja2/environment.py\", line 1008, in render", "    return self.environment.handle_exception(exc_info, True)", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/jinja2/environment.py\", line 780, in handle_exception", "    reraise(exc_type, exc_value, tb)", "  File \"<template>\", line 82, in top-level template code", "  File \"/tmp/kolla-2018-09-28_15-27-10_GXJ4It/docker/ironic-inspector/Dockerfile.j2\", line 27, in top-level template code", "    {{ macros.install_packages(ironic_inspector_packages | customizable(\"packages\")) }}", "  File \"/opt/kayobe/venvs/kolla/lib/python2.7/site-packages/kolla/template/filters.py\", line 24, in customizable", "    val_list.extend(context[name + \"append\"])", "jinja2.exceptions.UndefinedError: 'ironic_inspector_packages' is undefined"]}

If you comment out the related var in in etc/kayobe/kolla.yml the image build proceeds as normal:

# Each variable takes the form:
# <image name>_<customization>_<operation>
# Hyphens in the image name are replaced with underscores. The customization is
# most commonly packages. The operation should be one of override, append or
# remove. The value should be a list.
#kolla_build_customizations:
kolla_build_customizations:
  # Use our own repo server to install the monasca-grafana fork
  base_yum_repo_files_remove:
    - 'grafana.repo'
  influxdb_packages_override:
    - 'influxdb-1.3.3'
#  ironic_inspector_packages_append:
#    # Allow custom packages to be installed via pip.
#    - 'python-pip'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.