2025-11-13 08:06:17,325 - INFO - Domain Default found not creating
2025-11-13 08:06:17,498 - INFO - Project ctest-TestBasicPolicy-02553551 not found, creating it
2025-11-13 08:06:17,937 - INFO - Created Project:ctest-TestBasicPolicy-02553551, ID : 28706d13-37cd-47af-85af-69f6b931545f
2025-11-13 08:06:19,359 - INFO - ================================================================================
2025-11-13 08:06:19,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 08:06:19,360 - 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-13 08:06:19,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-13 08:06:19,612 - INFO - Initial checks done. Running the testcase now
2025-11-13 08:06:19,612 - INFO -
2025-11-13 08:06:20,150 - DEBUG - Response for create_network : {'network': {'id': '8bf0bca4-8444-4b3f-bb60-8280506dab12', 'name': 'ctest-vn-00980213', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'project_id': '28706d1337cd47af85af69f6b931545f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-vn-00980213'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:06:20,381 - DEBUG - Response for create_subnet : {'subnet': {'id': '31539a9c-ede0-420b-a767-108c418893fc', 'name': '', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'network_id': '8bf0bca4-8444-4b3f-bb60-8280506dab12', 'ip_version': 4, 'cidr': '72.180.211.64/26', 'allocation_pools': [{'start': '72.180.211.66', 'end': '72.180.211.126'}], 'gateway_ip': '72.180.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.180.211.66', 'tags': [], 'project_id': '28706d1337cd47af85af69f6b931545f'}}
2025-11-13 08:06:20,398 - INFO - Created VN ctest-vn-00980213
2025-11-13 08:06:20,447 - DEBUG - VN ctest-vn-00980213 UUID is 8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:20,787 - DEBUG - Response for create_network : {'network': {'id': '8d93f60a-d36d-4ece-9382-3a5de9f134d7', 'name': 'ctest-vn-76770730', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'project_id': '28706d1337cd47af85af69f6b931545f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-vn-76770730'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:06:20,958 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed96ef9f-02b0-4d20-a518-7c179a1ad547', 'name': '', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'network_id': '8d93f60a-d36d-4ece-9382-3a5de9f134d7', 'ip_version': 4, 'cidr': '210.47.113.192/26', 'allocation_pools': [{'start': '210.47.113.194', 'end': '210.47.113.254'}], 'gateway_ip': '210.47.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.47.113.194', 'tags': [], 'project_id': '28706d1337cd47af85af69f6b931545f'}}
2025-11-13 08:06:20,975 - INFO - Created VN ctest-vn-76770730
2025-11-13 08:06:21,027 - DEBUG - VN ctest-vn-76770730 UUID is 8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:21,171 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213, 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-02553551:ctest-vn-76770730, 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-13 08:06:21,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bf0bca4-8444-4b3f-bb60-8280506dab12', 'name': 'ctest-vn-00980213', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'project_id': '28706d1337cd47af85af69f6b931545f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31539a9c-ede0-420b-a767-108c418893fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-vn-00980213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-policy-allow-all-78857219']], 'subnet_ipam': [{'subnet_cidr': '72.180.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:06:21,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d93f60a-d36d-4ece-9382-3a5de9f134d7', 'name': 'ctest-vn-76770730', 'tenant_id': '28706d1337cd47af85af69f6b931545f', 'project_id': '28706d1337cd47af85af69f6b931545f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed96ef9f-02b0-4d20-a518-7c179a1ad547'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-vn-76770730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-policy-allow-all-78857219']], 'subnet_ipam': [{'subnet_cidr': '210.47.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:06:21,847 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 08:06:22,142 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 08:06:22,171 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661
2025-11-13 08:06:22,182 - DEBUG - Requesting: http://10.0.0.22:8082/project/28706d13-37cd-47af-85af-69f6b931545f
2025-11-13 08:06:22,254 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,272 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c77fc782-b66d-4239-a56f-44fff33e5c56
2025-11-13 08:06:22,279 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c77fc782-b66d-4239-a56f-44fff33e5c56
2025-11-13 08:06:22,285 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/de4f733e-c581-4e3d-8926-337cad015da1
2025-11-13 08:06:22,291 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 08:06:22,291 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,299 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c77fc782-b66d-4239-a56f-44fff33e5c56
2025-11-13 08:06:22,313 - INFO - Verified VN network id 11 for VN 8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,313 - INFO - Verifications in API Server for VN ctest-vn-00980213 passed
2025-11-13 08:06:22,313 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,323 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c77fc782-b66d-4239-a56f-44fff33e5c56
2025-11-13 08:06:22,330 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c77fc782-b66d-4239-a56f-44fff33e5c56
2025-11-13 08:06:22,337 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/de4f733e-c581-4e3d-8926-337cad015da1
2025-11-13 08:06:22,348 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02553551', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10083766980462267199', 'uuid-lslong': '13501935170473536274'}, 'enable': 'true', 'created': '2025-11-13T08:06:20', 'last-modified': '2025-11-13T08:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907239'}
2025-11-13 08:06:22,355 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 08:06:22,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00980213 passed
2025-11-13 08:06:22,355 - DEBUG - ====Verifying policy data for ctest-vn-00980213 in API_Server ======
2025-11-13 08:06:22,355 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 08:06:22,361 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661
2025-11-13 08:06:22,373 - DEBUG - Requesting: http://10.0.0.22:8082/project/28706d13-37cd-47af-85af-69f6b931545f
2025-11-13 08:06:22,441 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8bf0bca4-8444-4b3f-bb60-8280506dab12
2025-11-13 08:06:22,450 - DEBUG - ==>Verifying data for policy with id: a92fb1d7-f983-42a4-a236-eaf58190df31, fqn: ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-policy-allow-all-78857219']
2025-11-13 08:06:22,450 - INFO - VN ctest-vn-00980213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 08:06:22,450 - DEBUG - Verifying the vn in opserver
2025-11-13 08:06:22,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213 virtual network link through opserver 10.0.0.22
2025-11-13 08:06:22,451 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 08:06:22,746 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 08:06:22,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213?flat'}
2025-11-13 08:06:22,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-00980213 is found in opserver
2025-11-13 08:06:22,808 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 08:06:22,812 - DEBUG - VRF ids for VN ctest-vn-00980213: {}
2025-11-13 08:06:22,812 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 08:06:22,818 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661
2025-11-13 08:06:22,828 - DEBUG - Requesting: http://10.0.0.22:8082/project/28706d13-37cd-47af-85af-69f6b931545f
2025-11-13 08:06:22,894 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:22,906 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:22,917 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf18061-691c-4094-9db9-5eee27ac0615
2025-11-13 08:06:22,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf18061-691c-4094-9db9-5eee27ac0615
2025-11-13 08:06:22,938 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/98ecc0cb-6d85-4758-b49d-0828ca579488
2025-11-13 08:06:22,945 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 08:06:22,945 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:22,953 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf18061-691c-4094-9db9-5eee27ac0615
2025-11-13 08:06:22,967 - INFO - Verified VN network id 12 for VN 8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:22,967 - INFO - Verifications in API Server for VN ctest-vn-76770730 passed
2025-11-13 08:06:22,967 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:22,975 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf18061-691c-4094-9db9-5eee27ac0615
2025-11-13 08:06:22,981 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf18061-691c-4094-9db9-5eee27ac0615
2025-11-13 08:06:22,988 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/98ecc0cb-6d85-4758-b49d-0828ca579488
2025-11-13 08:06:22,999 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-76770730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02553551', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10201768107281567438', 'uuid-lslong': '10629122245579060439'}, 'enable': 'true', 'created': '2025-11-13T08:06:20', 'last-modified': '2025-11-13T08:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341964'}
2025-11-13 08:06:23,004 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 08:06:23,005 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76770730 passed
2025-11-13 08:06:23,005 - DEBUG - ====Verifying policy data for ctest-vn-76770730 in API_Server ======
2025-11-13 08:06:23,005 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 08:06:23,012 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661
2025-11-13 08:06:23,021 - DEBUG - Requesting: http://10.0.0.22:8082/project/28706d13-37cd-47af-85af-69f6b931545f
2025-11-13 08:06:23,087 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d93f60a-d36d-4ece-9382-3a5de9f134d7
2025-11-13 08:06:23,095 - DEBUG - ==>Verifying data for policy with id: a92fb1d7-f983-42a4-a236-eaf58190df31, fqn: ['default-domain', 'ctest-TestBasicPolicy-02553551', 'ctest-policy-allow-all-78857219']
2025-11-13 08:06:23,095 - INFO - VN ctest-vn-76770730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 08:06:23,095 - DEBUG - Verifying the vn in opserver
2025-11-13 08:06:23,095 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-76770730 virtual network link through opserver 10.0.0.22
2025-11-13 08:06:23,095 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 08:06:23,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-76770730', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-76770730?flat'}
2025-11-13 08:06:23,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02553551:ctest-vn-76770730 is found in opserver
2025-11-13 08:06:23,113 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 08:06:23,118 - DEBUG - VRF ids for VN ctest-vn-76770730: {}
2025-11-13 08:06:23,176 - DEBUG - Services list from nova: [