2025-08-08 09:54:09,323 - INFO - Domain Default found not creating
2025-08-08 09:54:09,503 - INFO - Project ctest-TestBasicPolicy-68139207 not found, creating it
2025-08-08 09:54:09,998 - INFO - Created Project:ctest-TestBasicPolicy-68139207, ID : 18221294-5b5d-4cc2-b01f-24ab39bb7954
2025-08-08 09:54:11,469 - INFO - ================================================================================
2025-08-08 09:54:11,469 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-08 09:54:11,469 - 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-08 09:54:11,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.252': '0'}} with
2025-08-08 09:54:11,731 - INFO - Initial checks done. Running the testcase now
2025-08-08 09:54:11,731 - INFO -
2025-08-08 09:54:12,305 - DEBUG - Response for create_network : {'network': {'id': '774e6483-3517-4eb0-b892-682918e42195', 'name': 'ctest-vn-28697643', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-28697643'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 09:54:12,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '975be821-c181-4ae6-b054-998215a92c01', 'name': '', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'network_id': '774e6483-3517-4eb0-b892-682918e42195', 'ip_version': 4, 'cidr': '208.176.225.192/26', 'allocation_pools': [{'start': '208.176.225.194', 'end': '208.176.225.254'}], 'gateway_ip': '208.176.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.176.225.194', 'tags': [], 'project_id': '182212945b5d4cc2b01f24ab39bb7954'}}
2025-08-08 09:54:12,526 - INFO - Created VN ctest-vn-28697643
2025-08-08 09:54:12,580 - DEBUG - VN ctest-vn-28697643 UUID is 774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:12,875 - DEBUG - Response for create_network : {'network': {'id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'name': 'ctest-vn-68479316', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-68479316'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 09:54:13,082 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c13c0f82-733d-4c6a-b476-7a6a222480be', 'name': '', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'network_id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'ip_version': 4, 'cidr': '75.74.17.128/26', 'allocation_pools': [{'start': '75.74.17.130', 'end': '75.74.17.190'}], 'gateway_ip': '75.74.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.74.17.130', 'tags': [], 'project_id': '182212945b5d4cc2b01f24ab39bb7954'}}
2025-08-08 09:54:13,102 - INFO - Created VN ctest-vn-68479316
2025-08-08 09:54:13,156 - DEBUG - VN ctest-vn-68479316 UUID is c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:13,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643, 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-68139207:ctest-vn-68479316, 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-08 09:54:13,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '774e6483-3517-4eb0-b892-682918e42195', 'name': 'ctest-vn-28697643', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['975be821-c181-4ae6-b054-998215a92c01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-28697643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']], 'subnet_ipam': [{'subnet_cidr': '208.176.225.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 09:54:13,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'name': 'ctest-vn-68479316', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c13c0f82-733d-4c6a-b476-7a6a222480be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-68479316'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']], 'subnet_ipam': [{'subnet_cidr': '75.74.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 09:54:14,032 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-08 09:54:14,343 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-08 09:54:14,378 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2
2025-08-08 09:54:14,394 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954
2025-08-08 09:54:14,472 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,484 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,495 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0
2025-08-08 09:54:14,503 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0
2025-08-08 09:54:14,510 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e0c5d1dd-393e-412b-bd97-1d8b4dab168e
2025-08-08 09:54:14,518 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 09:54:14,518 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,528 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0
2025-08-08 09:54:14,545 - INFO - Verified VN network id 10 for VN 774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,545 - INFO - Verifications in API Server for VN ctest-vn-28697643 passed
2025-08-08 09:54:14,545 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,560 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0
2025-08-08 09:54:14,571 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0
2025-08-08 09:54:14,580 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e0c5d1dd-393e-412b-bd97-1d8b4dab168e
2025-08-08 09:54:14,597 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68139207', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8596919253391068848', 'uuid-lslong': '13299807175299047829'}, 'enable': 'true', 'created': '2025-08-08T09:54:12', 'last-modified': '2025-08-08T09:54:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023813'}
2025-08-08 09:54:14,606 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 09:54:14,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28697643 passed
2025-08-08 09:54:14,607 - DEBUG - ====Verifying policy data for ctest-vn-28697643 in API_Server ======
2025-08-08 09:54:14,607 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-08 09:54:14,614 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2
2025-08-08 09:54:14,627 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954
2025-08-08 09:54:14,701 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195
2025-08-08 09:54:14,712 - DEBUG - ==>Verifying data for policy with id: 22ab6988-18f2-4d8f-ade2-d727739f3fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']
2025-08-08 09:54:14,712 - INFO - VN ctest-vn-28697643 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 09:54:14,712 - DEBUG - Verifying the vn in opserver
2025-08-08 09:54:14,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643 virtual network link through opserver 10.0.0.19
2025-08-08 09:54:14,712 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-08 09:54:15,007 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-08 09:54:15,068 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643?flat'}
2025-08-08 09:54:15,068 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643 is found in opserver
2025-08-08 09:54:15,080 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 09:54:15,086 - DEBUG - VRF ids for VN ctest-vn-28697643: {}
2025-08-08 09:54:15,086 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-08 09:54:15,093 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2
2025-08-08 09:54:15,106 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954
2025-08-08 09:54:15,186 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,202 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,215 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f
2025-08-08 09:54:15,224 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f
2025-08-08 09:54:15,232 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5851049b-5eed-4316-b829-b6a5e9078662
2025-08-08 09:54:15,239 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 09:54:15,239 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,251 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f
2025-08-08 09:54:15,267 - INFO - Verified VN network id 11 for VN c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,268 - INFO - Verifications in API Server for VN ctest-vn-68479316 passed
2025-08-08 09:54:15,268 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,279 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f
2025-08-08 09:54:15,287 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f
2025-08-08 09:54:15,295 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5851049b-5eed-4316-b829-b6a5e9078662
2025-08-08 09:54:15,311 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68139207', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14495598297350687397', 'uuid-lslong': '10232279820421743086'}, 'enable': 'true', 'created': '2025-08-08T09:54:12', 'last-modified': '2025-08-08T09:54:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499047'}
2025-08-08 09:54:15,318 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 09:54:15,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68479316 passed
2025-08-08 09:54:15,319 - DEBUG - ====Verifying policy data for ctest-vn-68479316 in API_Server ======
2025-08-08 09:54:15,319 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-08 09:54:15,325 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2
2025-08-08 09:54:15,338 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954
2025-08-08 09:54:15,414 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee
2025-08-08 09:54:15,425 - DEBUG - ==>Verifying data for policy with id: 22ab6988-18f2-4d8f-ade2-d727739f3fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']
2025-08-08 09:54:15,425 - INFO - VN ctest-vn-68479316 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 09:54:15,425 - DEBUG - Verifying the vn in opserver
2025-08-08 09:54:15,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316 virtual network link through opserver 10.0.0.19
2025-08-08 09:54:15,425 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-08 09:54:15,437 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316?flat'}
2025-08-08 09:54:15,437 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316 is found in opserver
2025-08-08 09:54:15,450 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 09:54:15,455 - DEBUG - VRF ids for VN ctest-vn-68479316: {}
2025-08-08 09:54:15,524 - DEBUG - Services list from nova: [