2026-03-25 16:02:04,639 - INFO - Domain Default found not creating
2026-03-25 16:02:04,962 - INFO - Project ctest-TestBasicPolicy-28605879 not found, creating it
2026-03-25 16:02:05,486 - INFO - Created Project:ctest-TestBasicPolicy-28605879, ID : 0e5e3e42-fbd3-42e6-9340-3a68c1339341
2026-03-25 16:02:07,393 - INFO - ================================================================================
2026-03-25 16:02:07,393 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-25 16:02:07,394 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-03-25 16:02:07,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-03-25 16:02:07,709 - INFO - Initial checks done. Running the testcase now
2026-03-25 16:02:07,709 - INFO -
2026-03-25 16:02:08,389 - DEBUG - Response for create_network : {'network': {'id': 'bc11fb7b-deef-485d-a255-b4cf7cb7228e', 'name': 'ctest-vn-02334686', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'project_id': '0e5e3e42fbd342e693403a68c1339341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-vn-02334686'], 'port_security_enabled': True, 'description': ''}}
2026-03-25 16:02:08,569 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e47c3c72-bad2-41e3-b4ca-a7147c4f95ec', 'name': '', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'network_id': 'bc11fb7b-deef-485d-a255-b4cf7cb7228e', 'ip_version': 4, 'cidr': '30.98.230.64/26', 'allocation_pools': [{'start': '30.98.230.66', 'end': '30.98.230.126'}], 'gateway_ip': '30.98.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.98.230.66', 'tags': [], 'project_id': '0e5e3e42fbd342e693403a68c1339341'}}
2026-03-25 16:02:08,594 - INFO - Created VN ctest-vn-02334686
2026-03-25 16:02:08,649 - DEBUG - VN ctest-vn-02334686 UUID is bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:09,033 - DEBUG - Response for create_network : {'network': {'id': 'cb710cee-c8b9-4f72-8185-5bb5fe2f4271', 'name': 'ctest-vn-32454924', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'project_id': '0e5e3e42fbd342e693403a68c1339341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-vn-32454924'], 'port_security_enabled': True, 'description': ''}}
2026-03-25 16:02:09,259 - DEBUG - Response for create_subnet : {'subnet': {'id': '31b6109a-d63c-44a3-bbb8-88dad85f54cb', 'name': '', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'network_id': 'cb710cee-c8b9-4f72-8185-5bb5fe2f4271', 'ip_version': 4, 'cidr': '118.190.209.192/26', 'allocation_pools': [{'start': '118.190.209.194', 'end': '118.190.209.254'}], 'gateway_ip': '118.190.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.190.209.194', 'tags': [], 'project_id': '0e5e3e42fbd342e693403a68c1339341'}}
2026-03-25 16:02:09,280 - INFO - Created VN ctest-vn-32454924
2026-03-25 16:02:09,337 - DEBUG - VN ctest-vn-32454924 UUID is cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:09,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-03-25 16:02:09,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc11fb7b-deef-485d-a255-b4cf7cb7228e', 'name': 'ctest-vn-02334686', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'project_id': '0e5e3e42fbd342e693403a68c1339341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e47c3c72-bad2-41e3-b4ca-a7147c4f95ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-vn-02334686'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-policy-allow-all-32408902']], 'subnet_ipam': [{'subnet_cidr': '30.98.230.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-25 16:02:10,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb710cee-c8b9-4f72-8185-5bb5fe2f4271', 'name': 'ctest-vn-32454924', 'tenant_id': '0e5e3e42fbd342e693403a68c1339341', 'project_id': '0e5e3e42fbd342e693403a68c1339341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31b6109a-d63c-44a3-bbb8-88dad85f54cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-vn-32454924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-policy-allow-all-32408902']], 'subnet_ipam': [{'subnet_cidr': '118.190.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-25 16:02:10,313 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-25 16:02:10,625 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-25 16:02:10,684 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45
2026-03-25 16:02:10,705 - DEBUG - Requesting: http://10.0.0.242:8082/project/0e5e3e42-fbd3-42e6-9340-3a68c1339341
2026-03-25 16:02:10,794 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:10,808 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:10,821 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/09a1cf46-01e6-4c54-904e-e88755c2c482
2026-03-25 16:02:10,831 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/09a1cf46-01e6-4c54-904e-e88755c2c482
2026-03-25 16:02:10,840 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/acb572f0-a755-4f7b-b4d1-996552875f81
2026-03-25 16:02:10,848 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-25 16:02:10,848 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:10,861 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/09a1cf46-01e6-4c54-904e-e88755c2c482
2026-03-25 16:02:10,883 - INFO - Verified VN network id 11 for VN bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:10,883 - INFO - Verifications in API Server for VN ctest-vn-02334686 passed
2026-03-25 16:02:10,883 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:10,896 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/09a1cf46-01e6-4c54-904e-e88755c2c482
2026-03-25 16:02:10,904 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/09a1cf46-01e6-4c54-904e-e88755c2c482
2026-03-25 16:02:10,912 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/acb572f0-a755-4f7b-b4d1-996552875f81
2026-03-25 16:02:10,927 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28605879', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13551889263174305885', 'uuid-lslong': '11697454410408338062'}, 'enable': 'true', 'created': '2026-03-25T16:02:08', 'last-modified': '2026-03-25T16:02:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.108200'}
2026-03-25 16:02:10,935 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-25 16:02:10,935 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02334686 passed
2026-03-25 16:02:10,936 - DEBUG - ====Verifying policy data for ctest-vn-02334686 in API_Server ======
2026-03-25 16:02:10,936 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-25 16:02:10,942 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45
2026-03-25 16:02:10,956 - DEBUG - Requesting: http://10.0.0.242:8082/project/0e5e3e42-fbd3-42e6-9340-3a68c1339341
2026-03-25 16:02:11,029 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bc11fb7b-deef-485d-a255-b4cf7cb7228e
2026-03-25 16:02:11,040 - DEBUG - ==>Verifying data for policy with id: 475b58a0-8844-43ad-adfd-b4ad0eaaa1d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-policy-allow-all-32408902']
2026-03-25 16:02:11,040 - INFO - VN ctest-vn-02334686 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-25 16:02:11,040 - DEBUG - Verifying the vn in opserver
2026-03-25 16:02:11,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686 virtual network link through opserver 10.0.0.242
2026-03-25 16:02:11,040 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-25 16:02:11,350 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-25 16:02:11,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686?flat'}
2026-03-25 16:02:11,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-02334686 is found in opserver
2026-03-25 16:02:11,496 - DEBUG - Do not have enough data to verify VN in agent
2026-03-25 16:02:11,502 - DEBUG - VRF ids for VN ctest-vn-02334686: {}
2026-03-25 16:02:11,502 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-25 16:02:11,508 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45
2026-03-25 16:02:11,523 - DEBUG - Requesting: http://10.0.0.242:8082/project/0e5e3e42-fbd3-42e6-9340-3a68c1339341
2026-03-25 16:02:11,609 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,625 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,639 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/61ab65b4-eddb-400f-b98e-d2dc3568fbd2
2026-03-25 16:02:11,649 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/61ab65b4-eddb-400f-b98e-d2dc3568fbd2
2026-03-25 16:02:11,661 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/01ca9a01-0496-4a20-b70c-d6b41c72612b
2026-03-25 16:02:11,670 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-25 16:02:11,670 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,682 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/61ab65b4-eddb-400f-b98e-d2dc3568fbd2
2026-03-25 16:02:11,699 - INFO - Verified VN network id 12 for VN cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,701 - INFO - Verifications in API Server for VN ctest-vn-32454924 passed
2026-03-25 16:02:11,701 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,717 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/61ab65b4-eddb-400f-b98e-d2dc3568fbd2
2026-03-25 16:02:11,727 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/61ab65b4-eddb-400f-b98e-d2dc3568fbd2
2026-03-25 16:02:11,736 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/01ca9a01-0496-4a20-b70c-d6b41c72612b
2026-03-25 16:02:11,751 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28605879', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14659512481777012594', 'uuid-lslong': '9332966640006939249'}, 'enable': 'true', 'created': '2026-03-25T16:02:08', 'last-modified': '2026-03-25T16:02:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.666700'}
2026-03-25 16:02:11,759 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-25 16:02:11,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32454924 passed
2026-03-25 16:02:11,759 - DEBUG - ====Verifying policy data for ctest-vn-32454924 in API_Server ======
2026-03-25 16:02:11,759 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-25 16:02:11,769 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45
2026-03-25 16:02:11,786 - DEBUG - Requesting: http://10.0.0.242:8082/project/0e5e3e42-fbd3-42e6-9340-3a68c1339341
2026-03-25 16:02:11,873 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cb710cee-c8b9-4f72-8185-5bb5fe2f4271
2026-03-25 16:02:11,884 - DEBUG - ==>Verifying data for policy with id: 475b58a0-8844-43ad-adfd-b4ad0eaaa1d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-28605879', 'ctest-policy-allow-all-32408902']
2026-03-25 16:02:11,884 - INFO - VN ctest-vn-32454924 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-25 16:02:11,884 - DEBUG - Verifying the vn in opserver
2026-03-25 16:02:11,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924 virtual network link through opserver 10.0.0.242
2026-03-25 16:02:11,884 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-25 16:02:11,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924?flat'}
2026-03-25 16:02:11,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28605879:ctest-vn-32454924 is found in opserver
2026-03-25 16:02:11,915 - DEBUG - Do not have enough data to verify VN in agent
2026-03-25 16:02:11,921 - DEBUG - VRF ids for VN ctest-vn-32454924: {}
2026-03-25 16:02:11,986 - DEBUG - Services list from nova: [