The local.conf and devstack.local.conf configuration files are being merged incorrectly, some values are lost when merging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grenade |
New
|
Undecided
|
Castulo J. Martinez |
Bug Description
When Grenade runs, it uses a function fetch_devstacks to fetch the base and target Devstacks and their configuration files. As part of this process it merges several config files into one final local.conf file to be used for installing Devstack.
When these files are merging some config values are being overwritten/deleted messing up the devstack installation.
As an example, this is how my devstack.local.conf file looks like:
[[local|localrc]]
# Multihost configuration
MULTI_HOST=1
HOST_IP=10.0.1.74
# Replication of gate configuration. Below helps you get to a
# configuration that looks a lot like what we use in the gate
USE_SCREEN=False
# Neutron needs a lot of manual hand holding to get rolling, we
# specify a lot of config in the gate in neutron jobs related to
# networks.
Q_USE_DEBUG_
NETWORK_
FIXED_RANGE=
FLOATING_
PUBLIC_
# Services
# --------
# Pre-requisite
ENABLED_
# Nova
ENABLED_
# Glance
ENABLED_
# Neutron
ENABLED_
# Since Swift is being enabled in the devstack.
disable_service s-proxy s-object s-container s-account
# Tempest
enable_service tempest
And this is how the local.conf file ends up after merging with devstack.
[[local|localrc]]
# localrc for DevStack base installation
# Default to selecting an interface via the default route
unset HOST_IP
DEST=/opt/
DATA_DIR=
SWIFT_DATA_
# Timeouts
ACTIVE_TIMEOUT=120
ASSOCIATE_
BOOT_TIMEOUT=120
SERVICE_TIMEOUT=120
ADMIN_PASSWORD=
API_RATE_
LOGDAYS=1
LOGFILE=
MYSQL_PASSWORD=
RABBIT_
RABBIT_
SCREEN_
SCREEN_
SERVICE_
SERVICE_
STACK_LOG=
VOLUME_
enable_service s-account s-container s-object s-proxy
SWIFT_HASH=
SWIFT_REPLICAS=1
MULTI_HOST=1
HOST_IP=10.0.1.74
USE_SCREEN=False
Q_USE_DEBUG_
NETWORK_
FIXED_RANGE=
FLOATING_
PUBLIC_
ENABLED_
ENABLED_
disable_service s-proxy s-object s-container s-account
enable_service tempest
So these two lines were deleted or overwritten probably during the merge process, and they should not have been:
ENABLED_
ENABLED_
This bug was introduced with this patch:
https:/
Changed in grenade: | |
assignee: | nobody → Castulo J. Martinez (castulo-martinez) |
The problem is not related specifically to Grenade, but to a project Grenade is using: devstack-tools. I've submitted a patch to fix this behavior: https:/ /review. openstack. org/#/c/ 428412/