View Issue Details

IDProjectCategoryView StatusLast Update
114WADFCorepublic11 Nov 2019 20:37
Reportermrosenquist Assigned Totimj  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version0.9.3 
Summary114: "wadf-deploy -d instance=foo-bar demo-baz" tries to use db_user as demo_baz
Description"wadf-deploy -d install=foo-bar demo-baz", tries to use db_user as demo-baz

Not an issue with the config,
TagsNo tags attached.

Activities

timj

27 Nov 2008 22:25

manager   ~135

If the command you pasted is exactly what you used, then the problem is because you did "-d install=..." rather than "-d instance=..."

timj

6 Dec 2008 15:27

manager   ~141

I have seen this and it does not seem to be a configuration error

timj

9 Dec 2008 23:12

manager   ~147

This is a major bug in WADF's macro resolving.
It happens if you have something like this:

instance = demo-baz
db_user = @underscore:instance@

...
db1_deploy_user = @db1_user@
instance = foo-bar

db1_deploy_user will be demo_baz not foo_bar.

WADF needs to reconcile and reconstruct a fresh macro stack based on the original expanded, ordered one (_macro_defs) in the correct order BEFORE resolveAllMacros()

A temporary workaround is just to redefine the "end" macro explicitly. Another way is to avoid redefining specific database details where not necessary i.e.

instance = demo-baz
db_user = @underscore:instance@

...
db_deploy_user = @db_user@
instance = foo-bar

the above stops WADF resolving db1_user too early.

Issue History

Date Modified Username Field Change
25 Nov 2008 16:59 mrosenquist New Issue
27 Nov 2008 22:25 timj Note Added: 135
27 Nov 2008 22:25 timj Status new => feedback
29 Nov 2008 17:14 timj Summary "wadf-deploy -d install=ifp-csearch demo-csearch", trys to use db_user as demo-csearch => "wadf-deploy -d install=foo-bar demo-baz" tries to use db_user as demo-baz
29 Nov 2008 17:14 timj Description Updated
4 Dec 2008 13:58 timj Assigned To => timj
4 Dec 2008 13:58 timj Status feedback => assigned
6 Dec 2008 15:27 timj Note Added: 141
6 Dec 2008 15:27 timj Target Version => 0.10.1
9 Dec 2008 22:25 timj Summary "wadf-deploy -d install=foo-bar demo-baz" tries to use db_user as demo-baz => "wadf-deploy -d instance=foo-bar demo-baz" tries to use db_user as demo_baz
9 Dec 2008 23:12 timj Note Added: 147
11 Dec 2008 21:19 timj Target Version 0.10.1 => 0.11.1
8 Jan 2009 13:30 timj Target Version 0.11.1 => 0.12.1
31 May 2009 00:36 timj Target Version 0.12.0 => 0.13.0
11 Nov 2019 20:37 timj Target Version 0.13.7 =>