2025-07-07 23:01:02,013 - INFO - Domain Default found not creating
2025-07-07 23:01:02,151 - INFO - Project ctest-TestBasicPolicy-04640328 not found, creating it
2025-07-07 23:01:02,591 - INFO - Created Project:ctest-TestBasicPolicy-04640328, ID : 7d5880fc-a6b0-477e-a7ab-faabefda22f7
2025-07-07 23:01:04,002 - INFO - ================================================================================
2025-07-07 23:01:04,002 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 23:01:04,002 - 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-07-07 23:01:04,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-07-07 23:01:04,256 - INFO - Initial checks done. Running the testcase now
2025-07-07 23:01:04,256 - INFO -
2025-07-07 23:01:04,785 - DEBUG - Response for create_network : {'network': {'id': '2f823a7b-2ba8-40de-9d41-63d55152b6f2', 'name': 'ctest-vn-21952463', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'project_id': '7d5880fca6b0477ea7abfaabefda22f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-vn-21952463'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 23:01:04,940 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6245b04-e1b8-4efe-8c0a-0eb4f931d19f', 'name': '', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'network_id': '2f823a7b-2ba8-40de-9d41-63d55152b6f2', 'ip_version': 4, 'cidr': '93.38.43.192/26', 'allocation_pools': [{'start': '93.38.43.194', 'end': '93.38.43.254'}], 'gateway_ip': '93.38.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.38.43.194', 'tags': [], 'project_id': '7d5880fca6b0477ea7abfaabefda22f7'}}
2025-07-07 23:01:04,956 - INFO - Created VN ctest-vn-21952463
2025-07-07 23:01:05,006 - DEBUG - VN ctest-vn-21952463 UUID is 2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:05,341 - DEBUG - Response for create_network : {'network': {'id': 'b42de790-97ea-49de-899c-ac7951f5cdc7', 'name': 'ctest-vn-46027452', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'project_id': '7d5880fca6b0477ea7abfaabefda22f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-vn-46027452'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 23:01:05,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf8c041f-7773-4f1f-8874-bfb2cdf854d5', 'name': '', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'network_id': 'b42de790-97ea-49de-899c-ac7951f5cdc7', 'ip_version': 4, 'cidr': '111.241.208.64/26', 'allocation_pools': [{'start': '111.241.208.66', 'end': '111.241.208.126'}], 'gateway_ip': '111.241.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.241.208.66', 'tags': [], 'project_id': '7d5880fca6b0477ea7abfaabefda22f7'}}
2025-07-07 23:01:05,544 - INFO - Created VN ctest-vn-46027452
2025-07-07 23:01:05,594 - DEBUG - VN ctest-vn-46027452 UUID is b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:05,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463, 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-04640328:ctest-vn-46027452, 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-07-07 23:01:05,995 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f823a7b-2ba8-40de-9d41-63d55152b6f2', 'name': 'ctest-vn-21952463', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'project_id': '7d5880fca6b0477ea7abfaabefda22f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6245b04-e1b8-4efe-8c0a-0eb4f931d19f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-vn-21952463'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-policy-allow-all-69341064']], 'subnet_ipam': [{'subnet_cidr': '93.38.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 23:01:06,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b42de790-97ea-49de-899c-ac7951f5cdc7', 'name': 'ctest-vn-46027452', 'tenant_id': '7d5880fca6b0477ea7abfaabefda22f7', 'project_id': '7d5880fca6b0477ea7abfaabefda22f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf8c041f-7773-4f1f-8874-bfb2cdf854d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-vn-46027452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-policy-allow-all-69341064']], 'subnet_ipam': [{'subnet_cidr': '111.241.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 23:01:06,406 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-07 23:01:06,700 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-07 23:01:06,726 - DEBUG - Requesting: http://10.0.0.130:8082/domain/21a61782-8a9c-48eb-86a8-d7d8f42e9cd4
2025-07-07 23:01:06,739 - DEBUG - Requesting: http://10.0.0.130:8082/project/7d5880fc-a6b0-477e-a7ab-faabefda22f7
2025-07-07 23:01:06,816 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:06,828 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:06,839 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c1b96f9-46dc-4286-be88-2f3336cbd7a3
2025-07-07 23:01:06,848 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c1b96f9-46dc-4286-be88-2f3336cbd7a3
2025-07-07 23:01:06,856 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/fb4f2e6d-7a28-48e9-bac4-b87951f044f1
2025-07-07 23:01:06,863 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 23:01:06,863 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:06,872 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c1b96f9-46dc-4286-be88-2f3336cbd7a3
2025-07-07 23:01:06,887 - INFO - Verified VN network id 7 for VN 2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:06,887 - INFO - Verifications in API Server for VN ctest-vn-21952463 passed
2025-07-07 23:01:06,887 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:06,898 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c1b96f9-46dc-4286-be88-2f3336cbd7a3
2025-07-07 23:01:06,904 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c1b96f9-46dc-4286-be88-2f3336cbd7a3
2025-07-07 23:01:06,911 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/fb4f2e6d-7a28-48e9-bac4-b87951f044f1
2025-07-07 23:01:06,922 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04640328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3423362967442833630', 'uuid-lslong': '11331447905284437746'}, 'enable': 'true', 'created': '2025-07-07T23:01:04', 'last-modified': '2025-07-07T23:01:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950038'}
2025-07-07 23:01:06,928 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 23:01:06,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21952463 passed
2025-07-07 23:01:06,928 - DEBUG - ====Verifying policy data for ctest-vn-21952463 in API_Server ======
2025-07-07 23:01:06,928 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-07 23:01:06,934 - DEBUG - Requesting: http://10.0.0.130:8082/domain/21a61782-8a9c-48eb-86a8-d7d8f42e9cd4
2025-07-07 23:01:06,946 - DEBUG - Requesting: http://10.0.0.130:8082/project/7d5880fc-a6b0-477e-a7ab-faabefda22f7
2025-07-07 23:01:07,017 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2f823a7b-2ba8-40de-9d41-63d55152b6f2
2025-07-07 23:01:07,029 - DEBUG - ==>Verifying data for policy with id: 4e524626-1c66-412c-b5cf-6a08fde49721, fqn: ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-policy-allow-all-69341064']
2025-07-07 23:01:07,029 - INFO - VN ctest-vn-21952463 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 23:01:07,029 - DEBUG - Verifying the vn in opserver
2025-07-07 23:01:07,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463 virtual network link through opserver 10.0.0.130
2025-07-07 23:01:07,029 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-07 23:01:07,321 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-07 23:01:07,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463?flat'}
2025-07-07 23:01:07,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-21952463 is found in opserver
2025-07-07 23:01:07,383 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 23:01:07,388 - DEBUG - VRF ids for VN ctest-vn-21952463: {}
2025-07-07 23:01:07,388 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-07 23:01:07,393 - DEBUG - Requesting: http://10.0.0.130:8082/domain/21a61782-8a9c-48eb-86a8-d7d8f42e9cd4
2025-07-07 23:01:07,406 - DEBUG - Requesting: http://10.0.0.130:8082/project/7d5880fc-a6b0-477e-a7ab-faabefda22f7
2025-07-07 23:01:07,478 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,491 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,501 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87832649-6da7-40d0-961a-74801c05b790
2025-07-07 23:01:07,508 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87832649-6da7-40d0-961a-74801c05b790
2025-07-07 23:01:07,514 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2543987a-4670-491c-bd91-2501eb9e79e2
2025-07-07 23:01:07,521 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 23:01:07,521 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,529 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87832649-6da7-40d0-961a-74801c05b790
2025-07-07 23:01:07,541 - INFO - Verified VN network id 8 for VN b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,542 - INFO - Verifications in API Server for VN ctest-vn-46027452 passed
2025-07-07 23:01:07,542 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,551 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87832649-6da7-40d0-961a-74801c05b790
2025-07-07 23:01:07,557 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87832649-6da7-40d0-961a-74801c05b790
2025-07-07 23:01:07,564 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2543987a-4670-491c-bd91-2501eb9e79e2
2025-07-07 23:01:07,576 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-46027452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04640328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12983287908989028830', 'uuid-lslong': '9915990116629073351'}, 'enable': 'true', 'created': '2025-07-07T23:01:05', 'last-modified': '2025-07-07T23:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364894'}
2025-07-07 23:01:07,583 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 23:01:07,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46027452 passed
2025-07-07 23:01:07,583 - DEBUG - ====Verifying policy data for ctest-vn-46027452 in API_Server ======
2025-07-07 23:01:07,583 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-07 23:01:07,589 - DEBUG - Requesting: http://10.0.0.130:8082/domain/21a61782-8a9c-48eb-86a8-d7d8f42e9cd4
2025-07-07 23:01:07,600 - DEBUG - Requesting: http://10.0.0.130:8082/project/7d5880fc-a6b0-477e-a7ab-faabefda22f7
2025-07-07 23:01:07,675 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b42de790-97ea-49de-899c-ac7951f5cdc7
2025-07-07 23:01:07,684 - DEBUG - ==>Verifying data for policy with id: 4e524626-1c66-412c-b5cf-6a08fde49721, fqn: ['default-domain', 'ctest-TestBasicPolicy-04640328', 'ctest-policy-allow-all-69341064']
2025-07-07 23:01:07,685 - INFO - VN ctest-vn-46027452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 23:01:07,685 - DEBUG - Verifying the vn in opserver
2025-07-07 23:01:07,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-46027452 virtual network link through opserver 10.0.0.130
2025-07-07 23:01:07,685 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-07 23:01:07,694 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-46027452', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-46027452?flat'}
2025-07-07 23:01:07,694 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04640328:ctest-vn-46027452 is found in opserver
2025-07-07 23:01:07,704 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 23:01:07,709 - DEBUG - VRF ids for VN ctest-vn-46027452: {}
2025-07-07 23:01:07,761 - DEBUG - Services list from nova: [