Ask Your Question
0

Need help building my kolla images...tox -e genconfig error

asked 2017-10-11 11:12:58 -0500

jcorkey gravatar image

I am following this guide to build images with kolla https://docs.openstack.org/kolla/late...

The tox -e genconfig generates a kolla-build.conf file but on my machine I DO NOT have internet access so the tox -e genconfig command is getting held up since it needs internet.

How can I get around this? Can I not use the tox -e genconfig command since I don't have internet access? Do I absolutely need to use tox -e genconfig before building images and do I absolutely need to have kolla-build.conf file that it generates?

Help me understand what my options are.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-12 03:34:23 -0500

updated 2017-10-12 03:35:33 -0500

Hi,

kolla-build.conf is not really needed, you can use all the options in kolla-build command to set parameters

usage: kolla-build [-h] [--base BASE] [--base-arch BASE_ARCH]
                   [--base-image BASE_IMAGE] [--base-tag BASE_TAG]
                   [--build-args BUILD_ARGS] [--cache] [--config-dir DIR]
                   [--config-file PATH] [--debug] [--docker-dir DOCKER_DIR]
                   [--format FORMAT] [--keep] [--list-dependencies]
                   [--list-images] [--logs-dir LOGS_DIR]
                   [--namespace NAMESPACE] [--nocache] [--nodebug] [--nokeep]
                   [--nolist-dependencies] [--nolist-images] [--nopull]
                   [--nopush] [--noskip-existing] [--noskip-parents]
                   [--notemplate-only] [--profile PROFILE] [--pull] [--push]
                   [--push-threads PUSH_THREADS] [--registry REGISTRY]
                   [--retries RETRIES] [--save-dependency SAVE_DEPENDENCY]
                   [--skip-existing] [--skip-parents] [--tag TAG]
                   [--tarballs-base TARBALLS_BASE] [--template-only]
                   [--template-override TEMPLATE_OVERRIDE] [--threads THREADS]
                   [--timeout TIMEOUT] [--type INSTALL_TYPE] [--version]
                   [--work-dir WORK_DIR]
                   [regex [regex ...]]

positional arguments:
  regex                 Build only images matching regex and its dependencies

optional arguments:
  -h, --help            show this help message and exit
  --base BASE, -b BASE  The distro type of the base image. Allowed values are
                        centos, rhel, ubuntu, oraclelinux, debian
  --base-arch BASE_ARCH
                        The base architecture. Default is same as host
  --base-image BASE_IMAGE
                        The base image name. Default is the same with base.
  --base-tag BASE_TAG   The base distro image tag
  --build-args BUILD_ARGS
                        Set docker build time variables
  --cache               Use the Docker cache when building
  --config-dir DIR      Path to a config directory to pull `*.conf` files
                        from. This file set is sorted, so as to provide a
                        predictable parse order if individual options are
                        over-ridden. The set is parsed after the file(s)
                        specified via previous --config-file, arguments hence
                        over-ridden options in the directory take precedence.
  --config-file PATH    Path to a config file to use. Multiple config files
                        can be specified, with values in later files taking
                        precedence. Defaults to None.
  --debug, -d           Turn on debugging log level
  --docker-dir DOCKER_DIR, -D DOCKER_DIR
                        Path to additional docker file template directory
  --format FORMAT, -f FORMAT
                        Format to write the final results in
  --keep                Keep failed intermediate containers
  --list-dependencies, -l
                        Show image dependencies (filtering supported)
  --list-images         Show all available images (filtering supported)
  --logs-dir LOGS_DIR   Path to logs directory
  --namespace NAMESPACE, -n NAMESPACE
                        The Docker namespace name
  --nocache             The inverse of --cache
  --nodebug             The inverse of --debug
  --nokeep              The inverse of --keep
  --nolist-dependencies
                        The inverse of --list-dependencies
  --nolist-images       The inverse of --list-images
  --nopull              The inverse of --pull
  --nopush              The inverse of --push
  --noskip-existing     The inverse of --skip-existing
  --noskip-parents      The inverse of --skip-parents
  --notemplate-only     The inverse of --template-only
  --profile PROFILE, -p PROFILE
                        Build a pre-defined set of images, see [profiles]
                        section in config. The default profiles are: infra,
                        main, aux, default, gate
  --pull                Attempt to pull a newer version of the base image
  --push                Push images after building
  --push-threads PUSH_THREADS
                        The number of threads to user while pushing Images.
                        Note: Docker can not handle threading push properly
  --registry REGISTRY   The docker registry host. The default registry host is
                        Docker Hub
  --retries RETRIES, -r RETRIES
                        The number of times to retry while building
  --save-dependency SAVE_DEPENDENCY
                        Path to the file to store the docker image dependency
                        in Graphviz dot format
  --skip-existing       Do not rebuild images present in the docker cache
  --skip-parents        Do not rebuild parents of matched images
  --tag TAG             The Docker tag
  --tarballs-base TARBALLS_BASE
                        Base url to OpenStack tarballs
  --template-only       Don't build images. Generate Dockerfile only ...
(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-11 11:12:58 -0500

Seen: 22 times

Last updated: Oct 12