2025-08-18 09:46:18,782 - INFO - Domain Default found not creating
2025-08-18 09:46:18,897 - INFO - Project ctest-TestBasicPolicy-66668911 not found, creating it
2025-08-18 09:46:19,358 - INFO - Created Project:ctest-TestBasicPolicy-66668911, ID : d5b9225f-d7ea-45c5-9c20-0e22528678f9
2025-08-18 09:46:20,625 - INFO - ================================================================================
2025-08-18 09:46:20,625 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 09:46:20,625 - 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-08-18 09:46:20,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-18 09:46:20,887 - INFO - Initial checks done. Running the testcase now
2025-08-18 09:46:20,887 - INFO -
2025-08-18 09:46:21,384 - DEBUG - Response for create_network : {'network': {'id': '180cb105-7311-48ac-a513-ee0ce20f7d3e', 'name': 'ctest-vn-26503963', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'project_id': 'd5b9225fd7ea45c59c200e22528678f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-vn-26503963'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:46:21,526 - DEBUG - Response for create_subnet : {'subnet': {'id': '10ce6096-751f-4d5d-983f-c592c6004719', 'name': '', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'network_id': '180cb105-7311-48ac-a513-ee0ce20f7d3e', 'ip_version': 4, 'cidr': '162.176.233.192/26', 'allocation_pools': [{'start': '162.176.233.194', 'end': '162.176.233.254'}], 'gateway_ip': '162.176.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.176.233.194', 'tags': [], 'project_id': 'd5b9225fd7ea45c59c200e22528678f9'}}
2025-08-18 09:46:21,541 - INFO - Created VN ctest-vn-26503963
2025-08-18 09:46:21,590 - DEBUG - VN ctest-vn-26503963 UUID is 180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:21,876 - DEBUG - Response for create_network : {'network': {'id': '5da0e474-d9e2-4dd9-90df-af6740ce7e32', 'name': 'ctest-vn-49242350', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'project_id': 'd5b9225fd7ea45c59c200e22528678f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-vn-49242350'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:46:22,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '321bde48-9cbe-4cd9-83a9-6f20aeb9ec9c', 'name': '', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'network_id': '5da0e474-d9e2-4dd9-90df-af6740ce7e32', 'ip_version': 4, 'cidr': '120.71.50.192/26', 'allocation_pools': [{'start': '120.71.50.194', 'end': '120.71.50.254'}], 'gateway_ip': '120.71.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.71.50.194', 'tags': [], 'project_id': 'd5b9225fd7ea45c59c200e22528678f9'}}
2025-08-18 09:46:22,053 - INFO - Created VN ctest-vn-49242350
2025-08-18 09:46:22,102 - DEBUG - VN ctest-vn-49242350 UUID is 5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:22,234 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963, 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-66668911:ctest-vn-49242350, 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-08-18 09:46:22,503 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '180cb105-7311-48ac-a513-ee0ce20f7d3e', 'name': 'ctest-vn-26503963', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'project_id': 'd5b9225fd7ea45c59c200e22528678f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10ce6096-751f-4d5d-983f-c592c6004719'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-vn-26503963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-policy-allow-all-32631084']], 'subnet_ipam': [{'subnet_cidr': '162.176.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:46:22,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5da0e474-d9e2-4dd9-90df-af6740ce7e32', 'name': 'ctest-vn-49242350', 'tenant_id': 'd5b9225fd7ea45c59c200e22528678f9', 'project_id': 'd5b9225fd7ea45c59c200e22528678f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['321bde48-9cbe-4cd9-83a9-6f20aeb9ec9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-vn-49242350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-policy-allow-all-32631084']], 'subnet_ipam': [{'subnet_cidr': '120.71.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:46:22,906 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 09:46:23,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 09:46:23,225 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c411f047-41a6-4ee8-9b3f-c0155f1d56a0
2025-08-18 09:46:23,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5b9225f-d7ea-45c5-9c20-0e22528678f9
2025-08-18 09:46:23,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,318 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13ad22a8-a687-46b7-a15d-ebb041dc0b9b
2025-08-18 09:46:23,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13ad22a8-a687-46b7-a15d-ebb041dc0b9b
2025-08-18 09:46:23,328 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/754c87f6-b8ec-4925-bb21-be3ad19b40c6
2025-08-18 09:46:23,332 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 09:46:23,332 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,339 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13ad22a8-a687-46b7-a15d-ebb041dc0b9b
2025-08-18 09:46:23,349 - INFO - Verified VN network id 12 for VN 180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,349 - INFO - Verifications in API Server for VN ctest-vn-26503963 passed
2025-08-18 09:46:23,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13ad22a8-a687-46b7-a15d-ebb041dc0b9b
2025-08-18 09:46:23,362 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13ad22a8-a687-46b7-a15d-ebb041dc0b9b
2025-08-18 09:46:23,366 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/754c87f6-b8ec-4925-bb21-be3ad19b40c6
2025-08-18 09:46:23,375 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66668911', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1732954593594263724', 'uuid-lslong': '11895112779915296062'}, 'enable': 'true', 'created': '2025-08-18T09:46:21', 'last-modified': '2025-08-18T09:46:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893298'}
2025-08-18 09:46:23,380 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 09:46:23,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26503963 passed
2025-08-18 09:46:23,381 - DEBUG - ====Verifying policy data for ctest-vn-26503963 in API_Server ======
2025-08-18 09:46:23,381 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 09:46:23,385 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c411f047-41a6-4ee8-9b3f-c0155f1d56a0
2025-08-18 09:46:23,393 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5b9225f-d7ea-45c5-9c20-0e22528678f9
2025-08-18 09:46:23,463 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/180cb105-7311-48ac-a513-ee0ce20f7d3e
2025-08-18 09:46:23,470 - DEBUG - ==>Verifying data for policy with id: 64c20bc3-8f4b-4408-b16e-cd6b8fc7ab51, fqn: ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-policy-allow-all-32631084']
2025-08-18 09:46:23,470 - INFO - VN ctest-vn-26503963 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 09:46:23,470 - DEBUG - Verifying the vn in opserver
2025-08-18 09:46:23,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963 virtual network link through opserver 10.0.0.38
2025-08-18 09:46:23,471 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 09:46:23,755 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 09:46:23,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963?flat'}
2025-08-18 09:46:23,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-26503963 is found in opserver
2025-08-18 09:46:23,811 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 09:46:23,814 - DEBUG - VRF ids for VN ctest-vn-26503963: {}
2025-08-18 09:46:23,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 09:46:23,819 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c411f047-41a6-4ee8-9b3f-c0155f1d56a0
2025-08-18 09:46:23,827 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5b9225f-d7ea-45c5-9c20-0e22528678f9
2025-08-18 09:46:23,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:23,904 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:23,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4d962e3-9f90-4c2a-9739-e56c6a459094
2025-08-18 09:46:23,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4d962e3-9f90-4c2a-9739-e56c6a459094
2025-08-18 09:46:23,920 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4a467b0-a70a-46a5-9e56-945c6fd26195
2025-08-18 09:46:23,925 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 09:46:23,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:23,932 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4d962e3-9f90-4c2a-9739-e56c6a459094
2025-08-18 09:46:23,942 - INFO - Verified VN network id 13 for VN 5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:23,942 - INFO - Verifications in API Server for VN ctest-vn-49242350 passed
2025-08-18 09:46:23,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:23,949 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4d962e3-9f90-4c2a-9739-e56c6a459094
2025-08-18 09:46:23,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4d962e3-9f90-4c2a-9739-e56c6a459094
2025-08-18 09:46:23,960 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4a467b0-a70a-46a5-9e56-945c6fd26195
2025-08-18 09:46:23,969 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-49242350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66668911', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6746643432323829209', 'uuid-lslong': '10439255319271865906'}, 'enable': 'true', 'created': '2025-08-18T09:46:21', 'last-modified': '2025-08-18T09:46:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.271056'}
2025-08-18 09:46:23,974 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 09:46:23,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49242350 passed
2025-08-18 09:46:23,974 - DEBUG - ====Verifying policy data for ctest-vn-49242350 in API_Server ======
2025-08-18 09:46:23,974 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 09:46:23,978 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c411f047-41a6-4ee8-9b3f-c0155f1d56a0
2025-08-18 09:46:23,987 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5b9225f-d7ea-45c5-9c20-0e22528678f9
2025-08-18 09:46:24,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da0e474-d9e2-4dd9-90df-af6740ce7e32
2025-08-18 09:46:24,061 - DEBUG - ==>Verifying data for policy with id: 64c20bc3-8f4b-4408-b16e-cd6b8fc7ab51, fqn: ['default-domain', 'ctest-TestBasicPolicy-66668911', 'ctest-policy-allow-all-32631084']
2025-08-18 09:46:24,061 - INFO - VN ctest-vn-49242350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 09:46:24,061 - DEBUG - Verifying the vn in opserver
2025-08-18 09:46:24,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-49242350 virtual network link through opserver 10.0.0.38
2025-08-18 09:46:24,061 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 09:46:24,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-49242350', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-49242350?flat'}
2025-08-18 09:46:24,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66668911:ctest-vn-49242350 is found in opserver
2025-08-18 09:46:24,077 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 09:46:24,081 - DEBUG - VRF ids for VN ctest-vn-49242350: {}
2025-08-18 09:46:24,126 - DEBUG - Services list from nova: [