2025-10-27 11:35:08,137 - INFO - Domain Default found not creating
2025-10-27 11:35:08,321 - INFO - Project ctest-TestBasicPolicy-12209566 not found, creating it
2025-10-27 11:35:08,812 - INFO - Created Project:ctest-TestBasicPolicy-12209566, ID : 8f936421-44de-4638-b3da-986251212c39
2025-10-27 11:35:10,307 - INFO - ================================================================================
2025-10-27 11:35:10,307 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 11:35:10,307 - 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-10-27 11:35:10,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-10-27 11:35:10,568 - INFO - Initial checks done. Running the testcase now
2025-10-27 11:35:10,568 - INFO -
2025-10-27 11:35:11,221 - DEBUG - Response for create_network : {'network': {'id': '0c7d2ccd-3719-493f-bf49-c71debeb833a', 'name': 'ctest-vn-27869862', 'tenant_id': '8f93642144de4638b3da986251212c39', 'project_id': '8f93642144de4638b3da986251212c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-vn-27869862'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:35:11,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '44e34cd3-0ff2-48f6-be2a-ff5d5d463fe6', 'name': '', 'tenant_id': '8f93642144de4638b3da986251212c39', 'network_id': '0c7d2ccd-3719-493f-bf49-c71debeb833a', 'ip_version': 4, 'cidr': '23.130.168.192/26', 'allocation_pools': [{'start': '23.130.168.194', 'end': '23.130.168.254'}], 'gateway_ip': '23.130.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.130.168.194', 'tags': [], 'project_id': '8f93642144de4638b3da986251212c39'}}
2025-10-27 11:35:11,471 - INFO - Created VN ctest-vn-27869862
2025-10-27 11:35:11,525 - DEBUG - VN ctest-vn-27869862 UUID is 0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:11,829 - DEBUG - Response for create_network : {'network': {'id': '0d1bb378-afd0-44d0-817b-fca6b4cac6ea', 'name': 'ctest-vn-37429820', 'tenant_id': '8f93642144de4638b3da986251212c39', 'project_id': '8f93642144de4638b3da986251212c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-vn-37429820'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:35:12,086 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ae8db20-b20d-484b-8ca8-5ddf39ee782f', 'name': '', 'tenant_id': '8f93642144de4638b3da986251212c39', 'network_id': '0d1bb378-afd0-44d0-817b-fca6b4cac6ea', 'ip_version': 4, 'cidr': '88.25.254.0/26', 'allocation_pools': [{'start': '88.25.254.2', 'end': '88.25.254.62'}], 'gateway_ip': '88.25.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.25.254.2', 'tags': [], 'project_id': '8f93642144de4638b3da986251212c39'}}
2025-10-27 11:35:12,106 - INFO - Created VN ctest-vn-37429820
2025-10-27 11:35:12,161 - DEBUG - VN ctest-vn-37429820 UUID is 0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:12,276 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862, 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-12209566:ctest-vn-37429820, 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-10-27 11:35:12,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c7d2ccd-3719-493f-bf49-c71debeb833a', 'name': 'ctest-vn-27869862', 'tenant_id': '8f93642144de4638b3da986251212c39', 'project_id': '8f93642144de4638b3da986251212c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44e34cd3-0ff2-48f6-be2a-ff5d5d463fe6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-vn-27869862'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-policy-allow-all-03320573']], 'subnet_ipam': [{'subnet_cidr': '23.130.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:35:12,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d1bb378-afd0-44d0-817b-fca6b4cac6ea', 'name': 'ctest-vn-37429820', 'tenant_id': '8f93642144de4638b3da986251212c39', 'project_id': '8f93642144de4638b3da986251212c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ae8db20-b20d-484b-8ca8-5ddf39ee782f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-vn-37429820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-policy-allow-all-03320573']], 'subnet_ipam': [{'subnet_cidr': '88.25.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:35:12,957 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-27 11:35:13,252 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-27 11:35:13,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f030b6c-811e-41b4-864a-b4a9469b3bfd
2025-10-27 11:35:13,298 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f936421-44de-4638-b3da-986251212c39
2025-10-27 11:35:13,368 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,386 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/72353b14-878c-493c-a89d-701f97534752
2025-10-27 11:35:13,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/72353b14-878c-493c-a89d-701f97534752
2025-10-27 11:35:13,400 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a910a6a-f445-4551-bd28-aee8624e5a06
2025-10-27 11:35:13,406 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:35:13,406 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/72353b14-878c-493c-a89d-701f97534752
2025-10-27 11:35:13,430 - INFO - Verified VN network id 11 for VN 0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,430 - INFO - Verifications in API Server for VN ctest-vn-27869862 passed
2025-10-27 11:35:13,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,440 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/72353b14-878c-493c-a89d-701f97534752
2025-10-27 11:35:13,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/72353b14-878c-493c-a89d-701f97534752
2025-10-27 11:35:13,461 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a910a6a-f445-4551-bd28-aee8624e5a06
2025-10-27 11:35:13,474 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12209566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '899924760448289087', 'uuid-lslong': '13783767065870172986'}, 'enable': 'true', 'created': '2025-10-27T11:35:11', 'last-modified': '2025-10-27T11:35:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928225'}
2025-10-27 11:35:13,480 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:35:13,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27869862 passed
2025-10-27 11:35:13,480 - DEBUG - ====Verifying policy data for ctest-vn-27869862 in API_Server ======
2025-10-27 11:35:13,480 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-27 11:35:13,486 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f030b6c-811e-41b4-864a-b4a9469b3bfd
2025-10-27 11:35:13,498 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f936421-44de-4638-b3da-986251212c39
2025-10-27 11:35:13,568 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c7d2ccd-3719-493f-bf49-c71debeb833a
2025-10-27 11:35:13,577 - DEBUG - ==>Verifying data for policy with id: 18f18e7d-b8bd-4bcf-8d10-33514c52ad8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-policy-allow-all-03320573']
2025-10-27 11:35:13,577 - INFO - VN ctest-vn-27869862 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:35:13,577 - DEBUG - Verifying the vn in opserver
2025-10-27 11:35:13,577 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862 virtual network link through opserver 10.0.0.50
2025-10-27 11:35:13,577 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-27 11:35:13,871 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-27 11:35:13,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862?flat'}
2025-10-27 11:35:13,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-27869862 is found in opserver
2025-10-27 11:35:13,943 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:35:13,947 - DEBUG - VRF ids for VN ctest-vn-27869862: {}
2025-10-27 11:35:13,948 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-27 11:35:13,953 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f030b6c-811e-41b4-864a-b4a9469b3bfd
2025-10-27 11:35:13,964 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f936421-44de-4638-b3da-986251212c39
2025-10-27 11:35:14,037 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,058 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93ea7a10-44a5-4cfc-a923-e68351b167a2
2025-10-27 11:35:14,067 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93ea7a10-44a5-4cfc-a923-e68351b167a2
2025-10-27 11:35:14,074 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c92655ce-ea76-4836-8a91-4653e472d0a5
2025-10-27 11:35:14,080 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:35:14,080 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,090 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93ea7a10-44a5-4cfc-a923-e68351b167a2
2025-10-27 11:35:14,105 - INFO - Verified VN network id 12 for VN 0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,105 - INFO - Verifications in API Server for VN ctest-vn-37429820 passed
2025-10-27 11:35:14,105 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,115 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93ea7a10-44a5-4cfc-a923-e68351b167a2
2025-10-27 11:35:14,122 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93ea7a10-44a5-4cfc-a923-e68351b167a2
2025-10-27 11:35:14,129 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c92655ce-ea76-4836-8a91-4653e472d0a5
2025-10-27 11:35:14,143 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-37429820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12209566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '944545877791360208', 'uuid-lslong': '9330328845956073194'}, 'enable': 'true', 'created': '2025-10-27T11:35:11', 'last-modified': '2025-10-27T11:35:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372998'}
2025-10-27 11:35:14,150 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:35:14,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37429820 passed
2025-10-27 11:35:14,150 - DEBUG - ====Verifying policy data for ctest-vn-37429820 in API_Server ======
2025-10-27 11:35:14,150 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-27 11:35:14,157 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f030b6c-811e-41b4-864a-b4a9469b3bfd
2025-10-27 11:35:14,169 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f936421-44de-4638-b3da-986251212c39
2025-10-27 11:35:14,238 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d1bb378-afd0-44d0-817b-fca6b4cac6ea
2025-10-27 11:35:14,248 - DEBUG - ==>Verifying data for policy with id: 18f18e7d-b8bd-4bcf-8d10-33514c52ad8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-12209566', 'ctest-policy-allow-all-03320573']
2025-10-27 11:35:14,248 - INFO - VN ctest-vn-37429820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:35:14,248 - DEBUG - Verifying the vn in opserver
2025-10-27 11:35:14,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-37429820 virtual network link through opserver 10.0.0.50
2025-10-27 11:35:14,248 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-27 11:35:14,258 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-37429820', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-37429820?flat'}
2025-10-27 11:35:14,258 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12209566:ctest-vn-37429820 is found in opserver
2025-10-27 11:35:14,268 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:35:14,272 - DEBUG - VRF ids for VN ctest-vn-37429820: {}
2025-10-27 11:35:14,333 - DEBUG - Services list from nova: [