| Summary: |
mysql port must be specified in settings.py even though marked as optional |
| Product: |
[Build System, Metadata & Runtime] Toaster
|
Reporter: |
Michael Wood <michael.g.wood> |
| Component: |
toaster | Assignee: |
Elliot Smith <elliot.smith> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
Alexandru Roman <alexandru.costinx.roman> |
| Severity: |
normal
|
|
|
| Priority: |
Low
|
CC: |
belen.barros.pena, bogdanx.a.voiculescu, jessica.zhang, stanciux.mihail
|
| Version: |
2.1 | |
|
| Target Milestone: |
2.1 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
The DATABASE_URL environ variable seems to be set/used by bitbake If you do as advised/supported by django/db backend and leave the port as an empty string then the DATABASE_URL regex match goes wrong and bitbake refuses to start. toastermain/settings.py ... 'HOST': 'localhost', 'PORT': '3306', # Set to empty string for default. } ... elif dburl.startswith('mysql://'): # URL must be in this form: mysql://user:pass@host:port/name result = re.match(r"mysql://([^:]*):([^@]*)@([^:]*):(\d+)/([^/]*)", dburl) if result is None: raise Exception("ERROR: Could not read mysql database url: %s" % dburl)