2025-11-05 16:14:19,758 - INFO - Domain Default found not creating
2025-11-05 16:14:19,888 - INFO - Project ctest-TestBasicPolicy-70010269 not found, creating it
2025-11-05 16:14:20,303 - INFO - Created Project:ctest-TestBasicPolicy-70010269, ID : 9bc252d5-c3f8-42d5-beb6-c451fc92b077
2025-11-05 16:14:21,653 - INFO - ================================================================================
2025-11-05 16:14:21,653 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 16:14:21,653 - 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
2025-11-05 16:14:21,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.192': '0'}} with
2025-11-05 16:14:21,906 - INFO - Initial checks done. Running the testcase now
2025-11-05 16:14:21,906 - INFO -
2025-11-05 16:14:22,434 - DEBUG - Response for create_network : {'network': {'id': '2aba2ec4-2d13-42b7-9000-79612638c3ef', 'name': 'ctest-vn-99457373', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'project_id': '9bc252d5c3f842d5beb6c451fc92b077', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-vn-99457373'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:14:22,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ebabf40-47b5-4c36-94d8-b6443bd4269c', 'name': '', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'network_id': '2aba2ec4-2d13-42b7-9000-79612638c3ef', 'ip_version': 4, 'cidr': '207.72.176.128/26', 'allocation_pools': [{'start': '207.72.176.130', 'end': '207.72.176.190'}], 'gateway_ip': '207.72.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.72.176.130', 'tags': [], 'project_id': '9bc252d5c3f842d5beb6c451fc92b077'}}
2025-11-05 16:14:22,639 - INFO - Created VN ctest-vn-99457373
2025-11-05 16:14:22,689 - DEBUG - VN ctest-vn-99457373 UUID is 2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:22,993 - DEBUG - Response for create_network : {'network': {'id': '5bd0c9a6-1a8e-4878-ac11-57c455a2675f', 'name': 'ctest-vn-63152930', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'project_id': '9bc252d5c3f842d5beb6c451fc92b077', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-vn-63152930'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:14:23,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '169f4ad7-b0e9-452d-98ff-f8daf26a96ce', 'name': '', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'network_id': '5bd0c9a6-1a8e-4878-ac11-57c455a2675f', 'ip_version': 4, 'cidr': '37.120.43.128/26', 'allocation_pools': [{'start': '37.120.43.130', 'end': '37.120.43.190'}], 'gateway_ip': '37.120.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.120.43.130', 'tags': [], 'project_id': '9bc252d5c3f842d5beb6c451fc92b077'}}
2025-11-05 16:14:23,211 - INFO - Created VN ctest-vn-63152930
2025-11-05 16:14:23,262 - DEBUG - VN ctest-vn-63152930 UUID is 5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:23,401 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373, 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-70010269:ctest-vn-63152930, 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]
2025-11-05 16:14:23,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2aba2ec4-2d13-42b7-9000-79612638c3ef', 'name': 'ctest-vn-99457373', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'project_id': '9bc252d5c3f842d5beb6c451fc92b077', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ebabf40-47b5-4c36-94d8-b6443bd4269c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-vn-99457373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-policy-allow-all-92586689']], 'subnet_ipam': [{'subnet_cidr': '207.72.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:14:23,882 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bd0c9a6-1a8e-4878-ac11-57c455a2675f', 'name': 'ctest-vn-63152930', 'tenant_id': '9bc252d5c3f842d5beb6c451fc92b077', 'project_id': '9bc252d5c3f842d5beb6c451fc92b077', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['169f4ad7-b0e9-452d-98ff-f8daf26a96ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-vn-63152930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-policy-allow-all-92586689']], 'subnet_ipam': [{'subnet_cidr': '37.120.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:14:24,046 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 16:14:24,333 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 16:14:24,357 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5427629e-064f-403f-98cd-ffee9138a9ec
2025-11-05 16:14:24,367 - DEBUG - Requesting: http://10.0.0.38:8082/project/9bc252d5-c3f8-42d5-beb6-c451fc92b077
2025-11-05 16:14:24,436 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,446 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,454 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0ffb0fc8-10a4-47b0-a041-b61539dbc0bc
2025-11-05 16:14:24,459 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0ffb0fc8-10a4-47b0-a041-b61539dbc0bc
2025-11-05 16:14:24,465 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c9a0424-62ae-47c0-8b68-b2624b166487
2025-11-05 16:14:24,469 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:14:24,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,477 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0ffb0fc8-10a4-47b0-a041-b61539dbc0bc
2025-11-05 16:14:24,488 - INFO - Verified VN network id 12 for VN 2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,488 - INFO - Verifications in API Server for VN ctest-vn-99457373 passed
2025-11-05 16:14:24,488 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0ffb0fc8-10a4-47b0-a041-b61539dbc0bc
2025-11-05 16:14:24,500 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0ffb0fc8-10a4-47b0-a041-b61539dbc0bc
2025-11-05 16:14:24,505 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c9a0424-62ae-47c0-8b68-b2624b166487
2025-11-05 16:14:24,515 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70010269', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3078824715365860023', 'uuid-lslong': '10376426999621665775'}, 'enable': 'true', 'created': '2025-11-05T16:14:22', 'last-modified': '2025-11-05T16:14:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860196'}
2025-11-05 16:14:24,520 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:14:24,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99457373 passed
2025-11-05 16:14:24,520 - DEBUG - ====Verifying policy data for ctest-vn-99457373 in API_Server ======
2025-11-05 16:14:24,520 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 16:14:24,525 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5427629e-064f-403f-98cd-ffee9138a9ec
2025-11-05 16:14:24,535 - DEBUG - Requesting: http://10.0.0.38:8082/project/9bc252d5-c3f8-42d5-beb6-c451fc92b077
2025-11-05 16:14:24,603 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2aba2ec4-2d13-42b7-9000-79612638c3ef
2025-11-05 16:14:24,612 - DEBUG - ==>Verifying data for policy with id: db5a17e7-b0dd-4228-a090-e23a63cf35cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-policy-allow-all-92586689']
2025-11-05 16:14:24,612 - INFO - VN ctest-vn-99457373 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:14:24,612 - DEBUG - Verifying the vn in opserver
2025-11-05 16:14:24,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373 virtual network link through opserver 10.0.0.38
2025-11-05 16:14:24,612 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 16:14:24,903 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 16:14:24,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373?flat'}
2025-11-05 16:14:24,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-99457373 is found in opserver
2025-11-05 16:14:24,967 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:14:24,971 - DEBUG - VRF ids for VN ctest-vn-99457373: {}
2025-11-05 16:14:24,971 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 16:14:24,976 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5427629e-064f-403f-98cd-ffee9138a9ec
2025-11-05 16:14:24,985 - DEBUG - Requesting: http://10.0.0.38:8082/project/9bc252d5-c3f8-42d5-beb6-c451fc92b077
2025-11-05 16:14:25,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,064 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7045e2-540e-4dd1-a7f7-757db5b6143c
2025-11-05 16:14:25,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7045e2-540e-4dd1-a7f7-757db5b6143c
2025-11-05 16:14:25,085 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e85934f3-4b00-4b34-add7-f2403afaf2ad
2025-11-05 16:14:25,090 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:14:25,090 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,097 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7045e2-540e-4dd1-a7f7-757db5b6143c
2025-11-05 16:14:25,108 - INFO - Verified VN network id 13 for VN 5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,108 - INFO - Verifications in API Server for VN ctest-vn-63152930 passed
2025-11-05 16:14:25,108 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,116 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7045e2-540e-4dd1-a7f7-757db5b6143c
2025-11-05 16:14:25,121 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7045e2-540e-4dd1-a7f7-757db5b6143c
2025-11-05 16:14:25,128 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e85934f3-4b00-4b34-add7-f2403afaf2ad
2025-11-05 16:14:25,138 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-63152930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70010269', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6616009567854545016', 'uuid-lslong': '12398787749889599327'}, 'enable': 'true', 'created': '2025-11-05T16:14:22', 'last-modified': '2025-11-05T16:14:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.272243'}
2025-11-05 16:14:25,142 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:14:25,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63152930 passed
2025-11-05 16:14:25,143 - DEBUG - ====Verifying policy data for ctest-vn-63152930 in API_Server ======
2025-11-05 16:14:25,143 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 16:14:25,147 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5427629e-064f-403f-98cd-ffee9138a9ec
2025-11-05 16:14:25,156 - DEBUG - Requesting: http://10.0.0.38:8082/project/9bc252d5-c3f8-42d5-beb6-c451fc92b077
2025-11-05 16:14:25,222 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5bd0c9a6-1a8e-4878-ac11-57c455a2675f
2025-11-05 16:14:25,230 - DEBUG - ==>Verifying data for policy with id: db5a17e7-b0dd-4228-a090-e23a63cf35cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-70010269', 'ctest-policy-allow-all-92586689']
2025-11-05 16:14:25,230 - INFO - VN ctest-vn-63152930 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:14:25,230 - DEBUG - Verifying the vn in opserver
2025-11-05 16:14:25,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-63152930 virtual network link through opserver 10.0.0.38
2025-11-05 16:14:25,230 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 16:14:25,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-63152930', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-63152930?flat'}
2025-11-05 16:14:25,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70010269:ctest-vn-63152930 is found in opserver
2025-11-05 16:14:25,247 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:14:25,251 - DEBUG - VRF ids for VN ctest-vn-63152930: {}
2025-11-05 16:14:25,302 - DEBUG - Services list from nova: [