2025-11-04 18:08:16,678 - INFO - Domain Default found not creating
2025-11-04 18:08:16,814 - INFO - Project ctest-TestBasicPolicy-00172088 not found, creating it
2025-11-04 18:08:17,226 - INFO - Created Project:ctest-TestBasicPolicy-00172088, ID : 1167ca09-122c-4c49-b7cc-1ddaee97969c
2025-11-04 18:08:18,934 - INFO - ================================================================================
2025-11-04 18:08:18,934 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 18:08:18,934 - 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-04 18:08:19,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-11-04 18:08:19,188 - INFO - Initial checks done. Running the testcase now
2025-11-04 18:08:19,188 - INFO -
2025-11-04 18:08:19,719 - DEBUG - Response for create_network : {'network': {'id': '53a42672-5766-49f6-9929-05249b1aa4d5', 'name': 'ctest-vn-85335927', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'project_id': '1167ca09122c4c49b7cc1ddaee97969c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-vn-85335927'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:08:19,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '57f24d63-e81d-4319-a673-0a6f9c32748d', 'name': '', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'network_id': '53a42672-5766-49f6-9929-05249b1aa4d5', 'ip_version': 4, 'cidr': '146.224.236.64/26', 'allocation_pools': [{'start': '146.224.236.66', 'end': '146.224.236.126'}], 'gateway_ip': '146.224.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.224.236.66', 'tags': [], 'project_id': '1167ca09122c4c49b7cc1ddaee97969c'}}
2025-11-04 18:08:19,942 - INFO - Created VN ctest-vn-85335927
2025-11-04 18:08:19,995 - DEBUG - VN ctest-vn-85335927 UUID is 53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:20,321 - DEBUG - Response for create_network : {'network': {'id': '3a00d1dd-de2e-4df5-840d-c2323e8bdf5a', 'name': 'ctest-vn-99145068', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'project_id': '1167ca09122c4c49b7cc1ddaee97969c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-vn-99145068'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:08:20,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '153e0947-4455-46c4-8d52-8b70373c1d61', 'name': '', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'network_id': '3a00d1dd-de2e-4df5-840d-c2323e8bdf5a', 'ip_version': 4, 'cidr': '65.57.125.192/26', 'allocation_pools': [{'start': '65.57.125.194', 'end': '65.57.125.254'}], 'gateway_ip': '65.57.125.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.57.125.194', 'tags': [], 'project_id': '1167ca09122c4c49b7cc1ddaee97969c'}}
2025-11-04 18:08:20,488 - INFO - Created VN ctest-vn-99145068
2025-11-04 18:08:20,539 - DEBUG - VN ctest-vn-99145068 UUID is 3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:20,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927, 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-00172088:ctest-vn-99145068, 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-04 18:08:20,982 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53a42672-5766-49f6-9929-05249b1aa4d5', 'name': 'ctest-vn-85335927', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'project_id': '1167ca09122c4c49b7cc1ddaee97969c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57f24d63-e81d-4319-a673-0a6f9c32748d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-vn-85335927'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-policy-allow-all-35842865']], 'subnet_ipam': [{'subnet_cidr': '146.224.236.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:08:21,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a00d1dd-de2e-4df5-840d-c2323e8bdf5a', 'name': 'ctest-vn-99145068', 'tenant_id': '1167ca09122c4c49b7cc1ddaee97969c', 'project_id': '1167ca09122c4c49b7cc1ddaee97969c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['153e0947-4455-46c4-8d52-8b70373c1d61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-vn-99145068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-policy-allow-all-35842865']], 'subnet_ipam': [{'subnet_cidr': '65.57.125.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:08:21,363 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 18:08:21,652 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 18:08:21,678 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647
2025-11-04 18:08:21,688 - DEBUG - Requesting: http://10.0.0.49:8082/project/1167ca09-122c-4c49-b7cc-1ddaee97969c
2025-11-04 18:08:21,755 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,764 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,772 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7c7d9bd-6a31-4212-9d43-10915f185b9c
2025-11-04 18:08:21,778 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7c7d9bd-6a31-4212-9d43-10915f185b9c
2025-11-04 18:08:21,783 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ef8f283b-6827-43c6-ab8e-70ae5c8d3fa1
2025-11-04 18:08:21,788 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 18:08:21,788 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,795 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7c7d9bd-6a31-4212-9d43-10915f185b9c
2025-11-04 18:08:21,807 - INFO - Verified VN network id 10 for VN 53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,807 - INFO - Verifications in API Server for VN ctest-vn-85335927 passed
2025-11-04 18:08:21,807 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,815 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7c7d9bd-6a31-4212-9d43-10915f185b9c
2025-11-04 18:08:21,821 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7c7d9bd-6a31-4212-9d43-10915f185b9c
2025-11-04 18:08:21,826 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ef8f283b-6827-43c6-ab8e-70ae5c8d3fa1
2025-11-04 18:08:21,837 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00172088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6026984473863014902', 'uuid-lslong': '11036358016627287253'}, 'enable': 'true', 'created': '2025-11-04T18:08:19', 'last-modified': '2025-11-04T18:08:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876362'}
2025-11-04 18:08:21,844 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 18:08:21,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85335927 passed
2025-11-04 18:08:21,844 - DEBUG - ====Verifying policy data for ctest-vn-85335927 in API_Server ======
2025-11-04 18:08:21,845 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 18:08:21,849 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647
2025-11-04 18:08:21,858 - DEBUG - Requesting: http://10.0.0.49:8082/project/1167ca09-122c-4c49-b7cc-1ddaee97969c
2025-11-04 18:08:21,930 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/53a42672-5766-49f6-9929-05249b1aa4d5
2025-11-04 18:08:21,944 - DEBUG - ==>Verifying data for policy with id: 1a809976-a4e9-41c6-9b2c-0061d9904b84, fqn: ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-policy-allow-all-35842865']
2025-11-04 18:08:21,944 - INFO - VN ctest-vn-85335927 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 18:08:21,944 - DEBUG - Verifying the vn in opserver
2025-11-04 18:08:21,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927 virtual network link through opserver 10.0.0.49
2025-11-04 18:08:21,944 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 18:08:22,234 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 18:08:22,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927?flat'}
2025-11-04 18:08:22,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-85335927 is found in opserver
2025-11-04 18:08:22,294 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 18:08:22,298 - DEBUG - VRF ids for VN ctest-vn-85335927: {}
2025-11-04 18:08:22,298 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 18:08:22,303 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647
2025-11-04 18:08:22,312 - DEBUG - Requesting: http://10.0.0.49:8082/project/1167ca09-122c-4c49-b7cc-1ddaee97969c
2025-11-04 18:08:22,379 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,390 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,398 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c1ffaa24-c8a2-424b-a61a-8ba54abd7ccc
2025-11-04 18:08:22,404 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c1ffaa24-c8a2-424b-a61a-8ba54abd7ccc
2025-11-04 18:08:22,410 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/dda2f28b-5d00-4a6f-a027-55888f737cb7
2025-11-04 18:08:22,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 18:08:22,415 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,422 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c1ffaa24-c8a2-424b-a61a-8ba54abd7ccc
2025-11-04 18:08:22,435 - INFO - Verified VN network id 11 for VN 3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,435 - INFO - Verifications in API Server for VN ctest-vn-99145068 passed
2025-11-04 18:08:22,435 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,442 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c1ffaa24-c8a2-424b-a61a-8ba54abd7ccc
2025-11-04 18:08:22,447 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c1ffaa24-c8a2-424b-a61a-8ba54abd7ccc
2025-11-04 18:08:22,453 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/dda2f28b-5d00-4a6f-a027-55888f737cb7
2025-11-04 18:08:22,462 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-99145068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00172088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4179571205045374453', 'uuid-lslong': '9515475108757233498'}, 'enable': 'true', 'created': '2025-11-04T18:08:20', 'last-modified': '2025-11-04T18:08:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.276734'}
2025-11-04 18:08:22,467 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 18:08:22,467 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99145068 passed
2025-11-04 18:08:22,467 - DEBUG - ====Verifying policy data for ctest-vn-99145068 in API_Server ======
2025-11-04 18:08:22,467 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 18:08:22,472 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647
2025-11-04 18:08:22,484 - DEBUG - Requesting: http://10.0.0.49:8082/project/1167ca09-122c-4c49-b7cc-1ddaee97969c
2025-11-04 18:08:22,552 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3a00d1dd-de2e-4df5-840d-c2323e8bdf5a
2025-11-04 18:08:22,560 - DEBUG - ==>Verifying data for policy with id: 1a809976-a4e9-41c6-9b2c-0061d9904b84, fqn: ['default-domain', 'ctest-TestBasicPolicy-00172088', 'ctest-policy-allow-all-35842865']
2025-11-04 18:08:22,560 - INFO - VN ctest-vn-99145068 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 18:08:22,560 - DEBUG - Verifying the vn in opserver
2025-11-04 18:08:22,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-99145068 virtual network link through opserver 10.0.0.49
2025-11-04 18:08:22,560 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 18:08:22,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-99145068', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-99145068?flat'}
2025-11-04 18:08:22,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00172088:ctest-vn-99145068 is found in opserver
2025-11-04 18:08:22,577 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 18:08:22,582 - DEBUG - VRF ids for VN ctest-vn-99145068: {}
2025-11-04 18:08:22,637 - DEBUG - Services list from nova: [