guest_config points to wrong file

Bug #1265184 reported by Sushil Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Confirmed
Low
Unassigned

Bug Description

guest_config in trove.common.cfg points to wrong file.

correct file is
$pybasedir/../etc/trove/trove-guestagent.conf.sample

whereas cfg points it to at https://github.com/openstack/trove/blob/master/trove/common/cfg.py#L228
$pybasedir/etc/trove/trove-guestagent.conf.sample

It needs a correction.

Changed in trove:
assignee: nobody → Sushil Kumar (sushil-kumar2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/64539

Changed in trove:
status: New → In Progress
Revision history for this message
Sushil Kumar (sushil-kumar2) wrote :

As per Bug: https://bugs.launchpad.net/trove-integration/+bug/1176102 trove-guestagent uses trove-guestagent.conf.sample directly placed inside the rsync'd trove code from host.

This piece of code comes from the "trove-guest" service start-up file inside trove-integration, where the configuration file is mapped to sample file.

Now while doing a research found that code is already available in _create_server in trove.taskmanager.models, which is used to create an instance in our case, to create the file "/etc/trove-guestagent.conf" but this method was not able to work because of a false evaluating condition "if os.path.isfile(CONF.get('guest_config')):".

Problem was because guest_config was derived from "pybasedir" as '$pybasedir/etc/trove/trove-guestagent.conf.sample' in trove.common.cfg, however the correct location for the etc was the parent of pybasedir.

So to resolve the bug,

1. We need to first correct the guest_config default location which would help taskmanager to read the conf file and send the contents to nova for guest-instantiation. (https://review.openstack.org/64539)

2. Correct the service start-up file in trove-integration to point to the built-up conf file in /etc. (https://review.openstack.org/64543)

Changed in trove:
importance: Undecided → Medium
Revision history for this message
Amrith Kumar (amrith) wrote :

Updating importance to "Low" (bugscrub, 2014-10-23)

Changed in trove:
importance: Medium → Low
Amrith Kumar (amrith)
Changed in trove:
assignee: Sushil Kumar (sushil-kumar2) → nobody
status: In Progress → Confirmed
milestone: none → ongoing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.