'make build LPCONFIG=edge' fails

Bug #483214 reported by Jonathan Lange
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Francis J. Lacoste

Bug Description

$ make build LPCONFIG=edge
utilities/shhh.py make -C sourcecode build PYTHON=python2.4 \
     PYTHON_VERSION=2.4 LPCONFIG=edge
utilities/shhh.py LPCONFIG=edge /home/jml/src/launchpad/devel/bin/py -t buildmailman.py
Traceback (most recent call last):
  File "buildmailman.py", line 224, in ?
    return_code = main()
  File "buildmailman.py", line 219, in main
    return build_mailman()
  File "buildmailman.py", line 26, in build_mailman
    if not config.mailman.build:
  File "/home/jml/src/launchpad/devel/lib/canonical/config/__init__.py", line 231, in __getattr__
    self._getConfig()
  File "/home/jml/src/launchpad/devel/lib/canonical/config/__init__.py", line 177, in _getConfig
    config_dir = self.config_dir
  File "/home/jml/src/launchpad/devel/lib/canonical/config/__init__.py", line 130, in config_dir
    return find_config_dir(self._instance_name)
  File "/home/jml/src/launchpad/devel/lib/canonical/config/__init__.py", line 87, in find_config_dir
    raise ValueError(
ValueError: Can't find edge in /home/jml/src/launchpad/devel/configs, /home/jml/src/launchpad/devel/production-configs
make: *** [compile] Error 1

It looks like the edge/launchpad.conf is legitimately missing from the lp-productions-configs branch. Might have a similar root cause to bug 398035, but I can't tell from the other bug report.

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

The bugs aren't related. Bug 398035 was about a vhost added to the schema, while the production configs didn't include it.

In lp-production-configs, I do see an "edge" config directory with a lauchpad-lazr.conf file. Did you check out lp:~launchpad-pqm/lp-production-configs/trunk under your production-configs directory when testing locally?

Changed in launchpad-foundations:
status: New → Incomplete
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

If you do that, the build still fails because there's no launchpad.conf in the edge directory. I don't know what the minimal launchpad.conf looks like but I guess that's what we want.

Changed in launchpad-foundations:
status: Incomplete → New
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Ideally, canonical.config should proceed in the absence of a ZConfig file. It only gets three variables out of this file which aren't useful when not using an app server.

- devmode
- servers
- threads

Even more ideally, these should come from the lazr.config file and not from the Zope file.

Anyway, I've uploaded a config branch which works-around this by adding the minimal zope file for this to work.

Changed in launchpad-foundations:
assignee: nobody → Francis J. Lacoste (flacoste)
status: New → In Progress
importance: Undecided → High
milestone: none → 3.1.11
Changed in launchpad-foundations:
status: In Progress → Fix Released
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.