2025-08-07 22:19:08,269 - INFO - Domain Default found not creating
2025-08-07 22:19:08,425 - INFO - Project ctest-TestBasicPolicy-43325186 not found, creating it
2025-08-07 22:19:08,905 - INFO - Created Project:ctest-TestBasicPolicy-43325186, ID : 06f9f42b-f93a-46b5-b9f9-23b26571d836
2025-08-07 22:19:10,374 - INFO - ================================================================================
2025-08-07 22:19:10,374 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 22:19:10,374 - 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-07 22:19:10,637 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-07 22:19:10,637 - INFO - Initial checks done. Running the testcase now
2025-08-07 22:19:10,637 - INFO -
2025-08-07 22:19:11,193 - DEBUG - Response for create_network : {'network': {'id': '860331da-06ea-48bf-9d6f-b0ceb7a0f2bf', 'name': 'ctest-vn-33810642', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'project_id': '06f9f42bf93a46b5b9f923b26571d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-vn-33810642'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 22:19:11,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f373fb8-18d5-416b-a938-a3015450cbd3', 'name': '', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'network_id': '860331da-06ea-48bf-9d6f-b0ceb7a0f2bf', 'ip_version': 4, 'cidr': '104.186.66.192/26', 'allocation_pools': [{'start': '104.186.66.194', 'end': '104.186.66.254'}], 'gateway_ip': '104.186.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.186.66.194', 'tags': [], 'project_id': '06f9f42bf93a46b5b9f923b26571d836'}}
2025-08-07 22:19:11,388 - INFO - Created VN ctest-vn-33810642
2025-08-07 22:19:11,444 - DEBUG - VN ctest-vn-33810642 UUID is 860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:11,742 - DEBUG - Response for create_network : {'network': {'id': 'a095123f-c8e4-42ff-991f-eabf7c275745', 'name': 'ctest-vn-95982850', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'project_id': '06f9f42bf93a46b5b9f923b26571d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-vn-95982850'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 22:19:11,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e5fac7e-ce98-4c69-b671-ba67955f82c1', 'name': '', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'network_id': 'a095123f-c8e4-42ff-991f-eabf7c275745', 'ip_version': 4, 'cidr': '172.135.65.64/26', 'allocation_pools': [{'start': '172.135.65.66', 'end': '172.135.65.126'}], 'gateway_ip': '172.135.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.135.65.66', 'tags': [], 'project_id': '06f9f42bf93a46b5b9f923b26571d836'}}
2025-08-07 22:19:11,941 - INFO - Created VN ctest-vn-95982850
2025-08-07 22:19:11,996 - DEBUG - VN ctest-vn-95982850 UUID is a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:12,135 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642, 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-43325186:ctest-vn-95982850, 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-07 22:19:12,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '860331da-06ea-48bf-9d6f-b0ceb7a0f2bf', 'name': 'ctest-vn-33810642', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'project_id': '06f9f42bf93a46b5b9f923b26571d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f373fb8-18d5-416b-a938-a3015450cbd3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-vn-33810642'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-policy-allow-all-39317158']], 'subnet_ipam': [{'subnet_cidr': '104.186.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 22:19:12,741 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a095123f-c8e4-42ff-991f-eabf7c275745', 'name': 'ctest-vn-95982850', 'tenant_id': '06f9f42bf93a46b5b9f923b26571d836', 'project_id': '06f9f42bf93a46b5b9f923b26571d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e5fac7e-ce98-4c69-b671-ba67955f82c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-vn-95982850'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-policy-allow-all-39317158']], 'subnet_ipam': [{'subnet_cidr': '172.135.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 22:19:12,888 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 22:19:13,184 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 22:19:13,213 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c
2025-08-07 22:19:13,227 - DEBUG - Requesting: http://10.0.0.38:8082/project/06f9f42b-f93a-46b5-b9f9-23b26571d836
2025-08-07 22:19:13,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,324 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2839eeb7-d7a6-493e-b842-2cb162153f91
2025-08-07 22:19:13,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2839eeb7-d7a6-493e-b842-2cb162153f91
2025-08-07 22:19:13,340 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/96e85141-9611-492f-8320-9e2112417d44
2025-08-07 22:19:13,347 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 22:19:13,347 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,356 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2839eeb7-d7a6-493e-b842-2cb162153f91
2025-08-07 22:19:13,371 - INFO - Verified VN network id 11 for VN 860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,371 - INFO - Verifications in API Server for VN ctest-vn-33810642 passed
2025-08-07 22:19:13,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,381 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2839eeb7-d7a6-493e-b842-2cb162153f91
2025-08-07 22:19:13,389 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2839eeb7-d7a6-493e-b842-2cb162153f91
2025-08-07 22:19:13,396 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/96e85141-9611-492f-8320-9e2112417d44
2025-08-07 22:19:13,408 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43325186', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9656616838501124287', 'uuid-lslong': '11344480388260098751'}, 'enable': 'true', 'created': '2025-08-07T22:19:11', 'last-modified': '2025-08-07T22:19:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979496'}
2025-08-07 22:19:13,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 22:19:13,415 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33810642 passed
2025-08-07 22:19:13,415 - DEBUG - ====Verifying policy data for ctest-vn-33810642 in API_Server ======
2025-08-07 22:19:13,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 22:19:13,426 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c
2025-08-07 22:19:13,438 - DEBUG - Requesting: http://10.0.0.38:8082/project/06f9f42b-f93a-46b5-b9f9-23b26571d836
2025-08-07 22:19:13,516 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/860331da-06ea-48bf-9d6f-b0ceb7a0f2bf
2025-08-07 22:19:13,526 - DEBUG - ==>Verifying data for policy with id: e97e7301-33c7-4946-bd82-8aa9695eeba6, fqn: ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-policy-allow-all-39317158']
2025-08-07 22:19:13,526 - INFO - VN ctest-vn-33810642 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 22:19:13,526 - DEBUG - Verifying the vn in opserver
2025-08-07 22:19:13,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642 virtual network link through opserver 10.0.0.38
2025-08-07 22:19:13,526 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 22:19:13,820 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 22:19:13,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642?flat'}
2025-08-07 22:19:13,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-33810642 is found in opserver
2025-08-07 22:19:13,889 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 22:19:13,894 - DEBUG - VRF ids for VN ctest-vn-33810642: {}
2025-08-07 22:19:13,894 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 22:19:13,901 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c
2025-08-07 22:19:13,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/06f9f42b-f93a-46b5-b9f9-23b26571d836
2025-08-07 22:19:13,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:13,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:14,004 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1cd7eebd-ba65-4694-801f-29a657151139
2025-08-07 22:19:14,013 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1cd7eebd-ba65-4694-801f-29a657151139
2025-08-07 22:19:14,020 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/beb602a4-1c69-45f0-b073-296f3fc44e87
2025-08-07 22:19:14,026 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 22:19:14,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:14,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1cd7eebd-ba65-4694-801f-29a657151139
2025-08-07 22:19:14,049 - INFO - Verified VN network id 12 for VN a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:14,049 - INFO - Verifications in API Server for VN ctest-vn-95982850 passed
2025-08-07 22:19:14,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:14,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1cd7eebd-ba65-4694-801f-29a657151139
2025-08-07 22:19:14,064 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1cd7eebd-ba65-4694-801f-29a657151139
2025-08-07 22:19:14,072 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/beb602a4-1c69-45f0-b073-296f3fc44e87
2025-08-07 22:19:14,086 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-95982850', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43325186', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11571174882760999679', 'uuid-lslong': '11033795720223610693'}, 'enable': 'true', 'created': '2025-08-07T22:19:11', 'last-modified': '2025-08-07T22:19:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.422546'}
2025-08-07 22:19:14,093 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 22:19:14,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95982850 passed
2025-08-07 22:19:14,093 - DEBUG - ====Verifying policy data for ctest-vn-95982850 in API_Server ======
2025-08-07 22:19:14,093 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 22:19:14,099 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c
2025-08-07 22:19:14,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/06f9f42b-f93a-46b5-b9f9-23b26571d836
2025-08-07 22:19:14,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a095123f-c8e4-42ff-991f-eabf7c275745
2025-08-07 22:19:14,206 - DEBUG - ==>Verifying data for policy with id: e97e7301-33c7-4946-bd82-8aa9695eeba6, fqn: ['default-domain', 'ctest-TestBasicPolicy-43325186', 'ctest-policy-allow-all-39317158']
2025-08-07 22:19:14,206 - INFO - VN ctest-vn-95982850 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 22:19:14,206 - DEBUG - Verifying the vn in opserver
2025-08-07 22:19:14,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-95982850 virtual network link through opserver 10.0.0.38
2025-08-07 22:19:14,206 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 22:19:14,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-95982850', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-95982850?flat'}
2025-08-07 22:19:14,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43325186:ctest-vn-95982850 is found in opserver
2025-08-07 22:19:14,229 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 22:19:14,234 - DEBUG - VRF ids for VN ctest-vn-95982850: {}
2025-08-07 22:19:14,291 - DEBUG - Services list from nova: [