Custom ASN for control-node is not being set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Ignatious Johnson Christopher |
Bug Description
2.0 Build 2446 Ubuntu 12.04-3 Single node setup
nodec27 is configured to peer with 10.204.216.253 (MX) with ASN 64510 and RT 10003
But it is seen that in API Server, the ASN for nodec27 is set to value of 64512 and peering with MX is not happening.
global-
Logs will be in http://
The configuration was done with provisioning scripts :
2014-11-09 14:12:28:989867: [root@10.
2014-11-09 14:12:28:990033: [root@10.
2014-11-09 14:12:29:346652: [root@10.
root@nodec27:
% Total % Received % Xferd Average Speed Time Time Time Current
100 1351 100 1351 0 0 244k 0 --:--:-- --:--:-- --:--:-- 263k
{
"global-
"fq_name": [
],
{
],
}
],
"href": "http://
"id_perms": {
},
"uuid": {
}
},
"name": "default-
{
],
}
],
"uuid": "93fd03f3-
{
],
}
]
}
}
root@nodec27:
root@nodec27:
root@nodec27:
{"bgp-routers": [{"href": "http://
root@nodec27:
root@nodec27:
root@nodec27:
% Total % Received % Xferd Average Speed Time Time Time Current
100 1479 100 1479 0 0 541k 0 --:--:-- --:--:-- --:--:-- 722k
{
"bgp-router": {
]
},
"port": 179,
},
{
},
],
}
],
"fq_name": [
"mx1"
],
"href": "http://
"id_perms": {
},
"uuid": {
}
},
"name": "mx1",
"uuid": "d8a462ff-
}
}
root@nodec27:
% Total % Received % Xferd Average Speed Time Time Time Current
100 1501 100 1501 0 0 531k 0 --:--:-- --:--:-- --:--:-- 732k
{
"bgp-router": {
]
},
"port": 179,
},
{
},
],
}
],
"fq_name": [
],
"href": "http://
"id_perms": {
},
"uuid": {
}
},
"name": "nodec27",
"uuid": "c16849ce-
}
}
root@nodec27:
Changed in juniperopenstack: | |
status: | New → Incomplete |
status: | Incomplete → Fix Committed |
milestone: | none → r2.0-fcs |
I think it broke because of the following commit. Ignatious, could you please take care of it?
commit 07fd9a0d5acb6b7 89dc0c24e850168 795beeb409
Author: Ignatious Johnson <email address hidden>
Date: Sun Nov 2 20:34:42 2014 -0800:
In particular, the diff below will cause the global ASN to be not set, which will make schema transformer overwrite the router ASN with the global ASN for control node.
- run("python provision_ control. py --api_server_ip %s --api_server_port 8082 --router_asn %s %s" \ control. py --api_server_ip %s --api_server_port 8082 --host_name %s --host_ip %s --router_asn %s --oper add %s" \ control. py"
- %(cfgm_ip, testbed.router_asn, get_mt_opts()))
- run("python provision_
- %(cfgm_ip, tgt_hostname, tgt_ip, testbed.router_asn, get_mt_opts()))
+ cmd = "python provision_
+ cmd += " --api_server_ip %s" % cfgm_ip
+ cmd += " --api_server_port 8082"
+ cmd += " --router_asn %s" % testbed.router_asn
+ cmd += " --host_name %s" % tgt_hostname
+ cmd += " --host_ip %s" % tgt_ip
+ cmd += " %s" % get_mt_opts()
+ cmd += " --oper add"
+ run(cmd)