2025-11-07 13:30:50,205 - INFO - Domain Default found not creating
2025-11-07 13:30:50,381 - INFO - Project ctest-TestBasicPolicy-26837676 not found, creating it
2025-11-07 13:30:50,876 - INFO - Created Project:ctest-TestBasicPolicy-26837676, ID : 68334f3a-c4a2-4f46-a823-bccd78590fdc
2025-11-07 13:30:52,384 - INFO - ================================================================================
2025-11-07 13:30:52,384 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 13:30:52,384 - 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-07 13:30:52,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-07 13:30:52,646 - INFO - Initial checks done. Running the testcase now
2025-11-07 13:30:52,646 - INFO -
2025-11-07 13:30:53,300 - DEBUG - Response for create_network : {'network': {'id': '52da8be2-070e-43a3-8244-9e7bda41ebbc', 'name': 'ctest-vn-26333123', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'project_id': '68334f3ac4a24f46a823bccd78590fdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-vn-26333123'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:30:53,492 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cceafbf3-05ca-447c-bb7b-031e01f6d9ca', 'name': '', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'network_id': '52da8be2-070e-43a3-8244-9e7bda41ebbc', 'ip_version': 4, 'cidr': '175.157.5.64/26', 'allocation_pools': [{'start': '175.157.5.66', 'end': '175.157.5.126'}], 'gateway_ip': '175.157.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.157.5.66', 'tags': [], 'project_id': '68334f3ac4a24f46a823bccd78590fdc'}}
2025-11-07 13:30:53,512 - INFO - Created VN ctest-vn-26333123
2025-11-07 13:30:53,566 - DEBUG - VN ctest-vn-26333123 UUID is 52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:53,879 - DEBUG - Response for create_network : {'network': {'id': 'cf466925-780a-4b30-839f-b7be4e5ac4ec', 'name': 'ctest-vn-56702110', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'project_id': '68334f3ac4a24f46a823bccd78590fdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-vn-56702110'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:30:54,073 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a828673d-aa31-4f65-a8ce-b87057490781', 'name': '', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'network_id': 'cf466925-780a-4b30-839f-b7be4e5ac4ec', 'ip_version': 4, 'cidr': '18.170.65.128/26', 'allocation_pools': [{'start': '18.170.65.130', 'end': '18.170.65.190'}], 'gateway_ip': '18.170.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.170.65.130', 'tags': [], 'project_id': '68334f3ac4a24f46a823bccd78590fdc'}}
2025-11-07 13:30:54,093 - INFO - Created VN ctest-vn-56702110
2025-11-07 13:30:54,146 - DEBUG - VN ctest-vn-56702110 UUID is cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:54,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123, 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-26837676:ctest-vn-56702110, 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-07 13:30:54,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52da8be2-070e-43a3-8244-9e7bda41ebbc', 'name': 'ctest-vn-26333123', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'project_id': '68334f3ac4a24f46a823bccd78590fdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cceafbf3-05ca-447c-bb7b-031e01f6d9ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-vn-26333123'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-policy-allow-all-21039043']], 'subnet_ipam': [{'subnet_cidr': '175.157.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:30:54,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf466925-780a-4b30-839f-b7be4e5ac4ec', 'name': 'ctest-vn-56702110', 'tenant_id': '68334f3ac4a24f46a823bccd78590fdc', 'project_id': '68334f3ac4a24f46a823bccd78590fdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a828673d-aa31-4f65-a8ce-b87057490781'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-vn-56702110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-policy-allow-all-21039043']], 'subnet_ipam': [{'subnet_cidr': '18.170.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:30:54,974 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 13:30:55,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 13:30:55,304 - DEBUG - Requesting: http://10.0.0.38:8082/domain/056d5a6e-916c-4124-858a-8b323dc4a83d
2025-11-07 13:30:55,318 - DEBUG - Requesting: http://10.0.0.38:8082/project/68334f3a-c4a2-4f46-a823-bccd78590fdc
2025-11-07 13:30:55,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,406 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2523bccb-1240-4489-a488-f8c269029f43
2025-11-07 13:30:55,426 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2523bccb-1240-4489-a488-f8c269029f43
2025-11-07 13:30:55,434 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1e3f7ef-3af9-4f20-9629-0d637284f8c2
2025-11-07 13:30:55,441 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 13:30:55,442 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2523bccb-1240-4489-a488-f8c269029f43
2025-11-07 13:30:55,470 - INFO - Verified VN network id 11 for VN 52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,471 - INFO - Verifications in API Server for VN ctest-vn-26333123 passed
2025-11-07 13:30:55,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2523bccb-1240-4489-a488-f8c269029f43
2025-11-07 13:30:55,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2523bccb-1240-4489-a488-f8c269029f43
2025-11-07 13:30:55,501 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1e3f7ef-3af9-4f20-9629-0d637284f8c2
2025-11-07 13:30:55,514 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26837676', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5970238058930258851', 'uuid-lslong': '9386801778126875580'}, 'enable': 'true', 'created': '2025-11-07T13:30:53', 'last-modified': '2025-11-07T13:30:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964165'}
2025-11-07 13:30:55,521 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 13:30:55,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26333123 passed
2025-11-07 13:30:55,521 - DEBUG - ====Verifying policy data for ctest-vn-26333123 in API_Server ======
2025-11-07 13:30:55,521 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 13:30:55,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/056d5a6e-916c-4124-858a-8b323dc4a83d
2025-11-07 13:30:55,539 - DEBUG - Requesting: http://10.0.0.38:8082/project/68334f3a-c4a2-4f46-a823-bccd78590fdc
2025-11-07 13:30:55,612 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/52da8be2-070e-43a3-8244-9e7bda41ebbc
2025-11-07 13:30:55,622 - DEBUG - ==>Verifying data for policy with id: 032030ee-b2e0-45bd-b6a4-fb506c4b98ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-policy-allow-all-21039043']
2025-11-07 13:30:55,622 - INFO - VN ctest-vn-26333123 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 13:30:55,622 - DEBUG - Verifying the vn in opserver
2025-11-07 13:30:55,622 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123 virtual network link through opserver 10.0.0.38
2025-11-07 13:30:55,622 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 13:30:55,919 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 13:30:55,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123?flat'}
2025-11-07 13:30:55,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-26333123 is found in opserver
2025-11-07 13:30:55,999 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 13:30:56,004 - DEBUG - VRF ids for VN ctest-vn-26333123: {}
2025-11-07 13:30:56,004 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 13:30:56,011 - DEBUG - Requesting: http://10.0.0.38:8082/domain/056d5a6e-916c-4124-858a-8b323dc4a83d
2025-11-07 13:30:56,022 - DEBUG - Requesting: http://10.0.0.38:8082/project/68334f3a-c4a2-4f46-a823-bccd78590fdc
2025-11-07 13:30:56,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,111 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee43ff82-dba7-444e-8cdb-7ba166f15f79
2025-11-07 13:30:56,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee43ff82-dba7-444e-8cdb-7ba166f15f79
2025-11-07 13:30:56,138 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c97e8afd-b896-489b-97ef-be24e947e8b1
2025-11-07 13:30:56,145 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 13:30:56,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee43ff82-dba7-444e-8cdb-7ba166f15f79
2025-11-07 13:30:56,171 - INFO - Verified VN network id 12 for VN cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,171 - INFO - Verifications in API Server for VN ctest-vn-56702110 passed
2025-11-07 13:30:56,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,182 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee43ff82-dba7-444e-8cdb-7ba166f15f79
2025-11-07 13:30:56,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee43ff82-dba7-444e-8cdb-7ba166f15f79
2025-11-07 13:30:56,198 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c97e8afd-b896-489b-97ef-be24e947e8b1
2025-11-07 13:30:56,213 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-56702110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26837676', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14935740823869475632', 'uuid-lslong': '9484501368251794668'}, 'enable': 'true', 'created': '2025-11-07T13:30:53', 'last-modified': '2025-11-07T13:30:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.428893'}
2025-11-07 13:30:56,219 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 13:30:56,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56702110 passed
2025-11-07 13:30:56,219 - DEBUG - ====Verifying policy data for ctest-vn-56702110 in API_Server ======
2025-11-07 13:30:56,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-07 13:30:56,226 - DEBUG - Requesting: http://10.0.0.38:8082/domain/056d5a6e-916c-4124-858a-8b323dc4a83d
2025-11-07 13:30:56,240 - DEBUG - Requesting: http://10.0.0.38:8082/project/68334f3a-c4a2-4f46-a823-bccd78590fdc
2025-11-07 13:30:56,312 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf466925-780a-4b30-839f-b7be4e5ac4ec
2025-11-07 13:30:56,320 - DEBUG - ==>Verifying data for policy with id: 032030ee-b2e0-45bd-b6a4-fb506c4b98ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-26837676', 'ctest-policy-allow-all-21039043']
2025-11-07 13:30:56,320 - INFO - VN ctest-vn-56702110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 13:30:56,320 - DEBUG - Verifying the vn in opserver
2025-11-07 13:30:56,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-56702110 virtual network link through opserver 10.0.0.38
2025-11-07 13:30:56,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-07 13:30:56,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-56702110', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-56702110?flat'}
2025-11-07 13:30:56,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26837676:ctest-vn-56702110 is found in opserver
2025-11-07 13:30:56,340 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 13:30:56,345 - DEBUG - VRF ids for VN ctest-vn-56702110: {}
2025-11-07 13:30:56,407 - DEBUG - Services list from nova: [