2025-09-04 17:15:39,765 - INFO - Domain Default found not creating
2025-09-04 17:15:39,912 - INFO - Project ctest-TestBasicPolicy-55030584 not found, creating it
2025-09-04 17:15:40,342 - INFO - Created Project:ctest-TestBasicPolicy-55030584, ID : 83332cae-7c48-4948-950a-f7c0c3df4c76
2025-09-04 17:15:41,731 - INFO - ================================================================================
2025-09-04 17:15:41,731 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 17:15:41,731 - 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-09-04 17:15:41,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-04 17:15:41,983 - INFO - Initial checks done. Running the testcase now
2025-09-04 17:15:41,983 - INFO -
2025-09-04 17:15:42,534 - DEBUG - Response for create_network : {'network': {'id': '9bc17ded-2c5b-4f29-8997-0e2b70d70528', 'name': 'ctest-vn-84854028', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'project_id': '83332cae7c484948950af7c0c3df4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-vn-84854028'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 17:15:42,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '35e51b4a-9757-4627-a041-33cbf7abddfe', 'name': '', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'network_id': '9bc17ded-2c5b-4f29-8997-0e2b70d70528', 'ip_version': 4, 'cidr': '214.232.80.0/26', 'allocation_pools': [{'start': '214.232.80.2', 'end': '214.232.80.62'}], 'gateway_ip': '214.232.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.232.80.2', 'tags': [], 'project_id': '83332cae7c484948950af7c0c3df4c76'}}
2025-09-04 17:15:42,751 - INFO - Created VN ctest-vn-84854028
2025-09-04 17:15:42,806 - DEBUG - VN ctest-vn-84854028 UUID is 9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:43,124 - DEBUG - Response for create_network : {'network': {'id': '32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2', 'name': 'ctest-vn-66144365', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'project_id': '83332cae7c484948950af7c0c3df4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-vn-66144365'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 17:15:43,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bed721c-1bde-4ddd-a8f2-347f035049c6', 'name': '', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'network_id': '32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2', 'ip_version': 4, 'cidr': '167.60.243.64/26', 'allocation_pools': [{'start': '167.60.243.66', 'end': '167.60.243.126'}], 'gateway_ip': '167.60.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.60.243.66', 'tags': [], 'project_id': '83332cae7c484948950af7c0c3df4c76'}}
2025-09-04 17:15:43,333 - INFO - Created VN ctest-vn-66144365
2025-09-04 17:15:43,385 - DEBUG - VN ctest-vn-66144365 UUID is 32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:43,534 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028, 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-55030584:ctest-vn-66144365, 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-09-04 17:15:43,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bc17ded-2c5b-4f29-8997-0e2b70d70528', 'name': 'ctest-vn-84854028', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'project_id': '83332cae7c484948950af7c0c3df4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35e51b4a-9757-4627-a041-33cbf7abddfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-vn-84854028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-policy-allow-all-76516562']], 'subnet_ipam': [{'subnet_cidr': '214.232.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 17:15:44,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2', 'name': 'ctest-vn-66144365', 'tenant_id': '83332cae7c484948950af7c0c3df4c76', 'project_id': '83332cae7c484948950af7c0c3df4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bed721c-1bde-4ddd-a8f2-347f035049c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-vn-66144365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-policy-allow-all-76516562']], 'subnet_ipam': [{'subnet_cidr': '167.60.243.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 17:15:44,202 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-04 17:15:44,491 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-04 17:15:44,519 - DEBUG - Requesting: http://10.0.0.50:8082/domain/66e2182a-a588-4e48-a025-e2b3f2a69d82
2025-09-04 17:15:44,530 - DEBUG - Requesting: http://10.0.0.50:8082/project/83332cae-7c48-4948-950a-f7c0c3df4c76
2025-09-04 17:15:44,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,611 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,619 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3c4e11bc-4986-4a77-842e-c4465cf88a33
2025-09-04 17:15:44,626 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3c4e11bc-4986-4a77-842e-c4465cf88a33
2025-09-04 17:15:44,633 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/423c3c18-9f7f-4ba5-8c37-8050c96c4769
2025-09-04 17:15:44,639 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 17:15:44,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3c4e11bc-4986-4a77-842e-c4465cf88a33
2025-09-04 17:15:44,660 - INFO - Verified VN network id 11 for VN 9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,660 - INFO - Verifications in API Server for VN ctest-vn-84854028 passed
2025-09-04 17:15:44,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3c4e11bc-4986-4a77-842e-c4465cf88a33
2025-09-04 17:15:44,672 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3c4e11bc-4986-4a77-842e-c4465cf88a33
2025-09-04 17:15:44,677 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/423c3c18-9f7f-4ba5-8c37-8050c96c4769
2025-09-04 17:15:44,686 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55030584', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11223390203988889385', 'uuid-lslong': '9914408684418958632'}, 'enable': 'true', 'created': '2025-09-04T17:15:42', 'last-modified': '2025-09-04T17:15:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888779'}
2025-09-04 17:15:44,691 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 17:15:44,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84854028 passed
2025-09-04 17:15:44,691 - DEBUG - ====Verifying policy data for ctest-vn-84854028 in API_Server ======
2025-09-04 17:15:44,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-04 17:15:44,696 - DEBUG - Requesting: http://10.0.0.50:8082/domain/66e2182a-a588-4e48-a025-e2b3f2a69d82
2025-09-04 17:15:44,706 - DEBUG - Requesting: http://10.0.0.50:8082/project/83332cae-7c48-4948-950a-f7c0c3df4c76
2025-09-04 17:15:44,778 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bc17ded-2c5b-4f29-8997-0e2b70d70528
2025-09-04 17:15:44,787 - DEBUG - ==>Verifying data for policy with id: e0df6c1a-43be-45e4-b1e2-b329fc832f04, fqn: ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-policy-allow-all-76516562']
2025-09-04 17:15:44,787 - INFO - VN ctest-vn-84854028 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 17:15:44,787 - DEBUG - Verifying the vn in opserver
2025-09-04 17:15:44,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028 virtual network link through opserver 10.0.0.50
2025-09-04 17:15:44,788 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-04 17:15:45,093 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-04 17:15:45,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028?flat'}
2025-09-04 17:15:45,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-84854028 is found in opserver
2025-09-04 17:15:45,157 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 17:15:45,162 - DEBUG - VRF ids for VN ctest-vn-84854028: {}
2025-09-04 17:15:45,162 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-04 17:15:45,167 - DEBUG - Requesting: http://10.0.0.50:8082/domain/66e2182a-a588-4e48-a025-e2b3f2a69d82
2025-09-04 17:15:45,177 - DEBUG - Requesting: http://10.0.0.50:8082/project/83332cae-7c48-4948-950a-f7c0c3df4c76
2025-09-04 17:15:45,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,253 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,261 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fe2347b-4db0-4490-b3e5-85919e238b57
2025-09-04 17:15:45,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fe2347b-4db0-4490-b3e5-85919e238b57
2025-09-04 17:15:45,274 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/35c9452f-5575-4c3f-8da2-8bfb9dc3f647
2025-09-04 17:15:45,280 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 17:15:45,280 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fe2347b-4db0-4490-b3e5-85919e238b57
2025-09-04 17:15:45,300 - INFO - Verified VN network id 12 for VN 32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,300 - INFO - Verifications in API Server for VN ctest-vn-66144365 passed
2025-09-04 17:15:45,300 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fe2347b-4db0-4490-b3e5-85919e238b57
2025-09-04 17:15:45,315 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fe2347b-4db0-4490-b3e5-85919e238b57
2025-09-04 17:15:45,321 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/35c9452f-5575-4c3f-8da2-8bfb9dc3f647
2025-09-04 17:15:45,332 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-66144365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55030584', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3657495653584359098', 'uuid-lslong': '10088359064299856114'}, 'enable': 'true', 'created': '2025-09-04T17:15:43', 'last-modified': '2025-09-04T17:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318315'}
2025-09-04 17:15:45,337 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 17:15:45,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66144365 passed
2025-09-04 17:15:45,338 - DEBUG - ====Verifying policy data for ctest-vn-66144365 in API_Server ======
2025-09-04 17:15:45,338 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-04 17:15:45,343 - DEBUG - Requesting: http://10.0.0.50:8082/domain/66e2182a-a588-4e48-a025-e2b3f2a69d82
2025-09-04 17:15:45,353 - DEBUG - Requesting: http://10.0.0.50:8082/project/83332cae-7c48-4948-950a-f7c0c3df4c76
2025-09-04 17:15:45,426 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c208eb-2f6e-4eba-8c01-0d1e5a2f60f2
2025-09-04 17:15:45,433 - DEBUG - ==>Verifying data for policy with id: e0df6c1a-43be-45e4-b1e2-b329fc832f04, fqn: ['default-domain', 'ctest-TestBasicPolicy-55030584', 'ctest-policy-allow-all-76516562']
2025-09-04 17:15:45,434 - INFO - VN ctest-vn-66144365 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 17:15:45,434 - DEBUG - Verifying the vn in opserver
2025-09-04 17:15:45,434 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-66144365 virtual network link through opserver 10.0.0.50
2025-09-04 17:15:45,434 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-04 17:15:45,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-66144365', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-66144365?flat'}
2025-09-04 17:15:45,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55030584:ctest-vn-66144365 is found in opserver
2025-09-04 17:15:45,454 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 17:15:45,459 - DEBUG - VRF ids for VN ctest-vn-66144365: {}
2025-09-04 17:15:45,510 - DEBUG - Services list from nova: [