Skip to content

Commit fd3e99c

Browse files
committed
fix: fix metadata http/403 error
Signed-off-by: Paul Kroeher <paul.kroeher@cyberus-technology.de> On-behalf-of: SAP paul.kroeher@sap.com
1 parent 0f9d5c2 commit fd3e99c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/controller/neutron.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ let
2222
"update_port:binding:profile": "@"
2323
'';
2424

25+
# neutron.conf is used as configuration file for neutron-metadata-agent as well
2526
neutronConf = pkgs.writeText "neutron.conf" ''
2627
[database]
2728
connection = mysql+pymysql://neutron:neutron@controller/neutron
@@ -35,6 +36,8 @@ let
3536
notify_nova_on_port_status_changes = true
3637
notify_nova_on_port_data_changes = true
3738
log_dir = /var/log/neutron
39+
nova_metadata_host = controller
40+
metadata_proxy_shared_secret = neutron_metadata_secret
3841
3942
[keystone_authtoken]
4043
www_authenticate_uri = http://controller:5000
@@ -107,6 +110,7 @@ let
107110
ovsdb_debug = true
108111
'';
109112

113+
# currently not used
110114
metadataAgentConf = pkgs.writeText "metadata_agent.ini" ''
111115
[DEFAULT]
112116
nova_metadata_host = controller
@@ -264,7 +268,7 @@ in
264268
wantedBy = [ "multi-user.target" ];
265269
path = [ neutron ];
266270
serviceConfig = {
267-
ExecStart = ''${neutron}/bin/neutron-metadata-agent --config-file=${cfg.config} --config-file=${cfg.ml2Config}'';
271+
ExecStart = ''${neutron}/bin/neutron-metadata-agent --config-file=${cfg.config}'';
268272
};
269273
};
270274

0 commit comments

Comments
 (0)