2025-12-11 02:12:56,256 - INFO - Domain Default found not creating
2025-12-11 02:12:56,438 - INFO - Project ctest-TestBasicPolicy-24511804 not found, creating it
2025-12-11 02:12:56,897 - INFO - Created Project:ctest-TestBasicPolicy-24511804, ID : 77242eb8-f847-477f-83f6-c52e4baa32f4
2025-12-11 02:12:58,434 - INFO - ================================================================================
2025-12-11 02:12:58,434 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-11 02:12:58,435 - 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-12-11 02:12:58,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.129': '0'}} with
2025-12-11 02:12:58,687 - INFO - Initial checks done. Running the testcase now
2025-12-11 02:12:58,687 - INFO -
2025-12-11 02:12:59,269 - DEBUG - Response for create_network : {'network': {'id': '0ccf81f0-61a0-4a09-8adc-8e7d40cb999a', 'name': 'ctest-vn-53108675', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'project_id': '77242eb8f847477f83f6c52e4baa32f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-vn-53108675'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 02:12:59,487 - DEBUG - Response for create_subnet : {'subnet': {'id': '24e78615-fb9b-4288-9221-5fcf79cadc95', 'name': '', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'network_id': '0ccf81f0-61a0-4a09-8adc-8e7d40cb999a', 'ip_version': 4, 'cidr': '133.39.123.0/26', 'allocation_pools': [{'start': '133.39.123.2', 'end': '133.39.123.62'}], 'gateway_ip': '133.39.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.39.123.2', 'tags': [], 'project_id': '77242eb8f847477f83f6c52e4baa32f4'}}
2025-12-11 02:12:59,504 - INFO - Created VN ctest-vn-53108675
2025-12-11 02:12:59,554 - DEBUG - VN ctest-vn-53108675 UUID is 0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:12:59,847 - DEBUG - Response for create_network : {'network': {'id': '089a1379-db83-46e3-92ac-5aa1ae9f123b', 'name': 'ctest-vn-67320008', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'project_id': '77242eb8f847477f83f6c52e4baa32f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-vn-67320008'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 02:13:00,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b49c71ed-79b8-41d2-ac8e-c0c058380d79', 'name': '', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'network_id': '089a1379-db83-46e3-92ac-5aa1ae9f123b', 'ip_version': 4, 'cidr': '163.210.169.128/26', 'allocation_pools': [{'start': '163.210.169.130', 'end': '163.210.169.190'}], 'gateway_ip': '163.210.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.210.169.130', 'tags': [], 'project_id': '77242eb8f847477f83f6c52e4baa32f4'}}
2025-12-11 02:13:00,063 - INFO - Created VN ctest-vn-67320008
2025-12-11 02:13:00,114 - DEBUG - VN ctest-vn-67320008 UUID is 089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:00,227 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675, 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-24511804:ctest-vn-67320008, 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-12-11 02:13:00,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ccf81f0-61a0-4a09-8adc-8e7d40cb999a', 'name': 'ctest-vn-53108675', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'project_id': '77242eb8f847477f83f6c52e4baa32f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24e78615-fb9b-4288-9221-5fcf79cadc95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-vn-53108675'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-policy-allow-all-71207748']], 'subnet_ipam': [{'subnet_cidr': '133.39.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 02:13:00,777 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '089a1379-db83-46e3-92ac-5aa1ae9f123b', 'name': 'ctest-vn-67320008', 'tenant_id': '77242eb8f847477f83f6c52e4baa32f4', 'project_id': '77242eb8f847477f83f6c52e4baa32f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b49c71ed-79b8-41d2-ac8e-c0c058380d79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-vn-67320008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-policy-allow-all-71207748']], 'subnet_ipam': [{'subnet_cidr': '163.210.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 02:13:00,938 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-12-11 02:13:01,245 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-12-11 02:13:01,279 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d
2025-12-11 02:13:01,290 - DEBUG - Requesting: http://10.0.0.56:8082/project/77242eb8-f847-477f-83f6-c52e4baa32f4
2025-12-11 02:13:01,364 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,375 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,383 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/0502a77b-417c-4e04-8f94-122f78edfc93
2025-12-11 02:13:01,390 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/0502a77b-417c-4e04-8f94-122f78edfc93
2025-12-11 02:13:01,396 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/c067076b-fa9b-4a37-b415-c47c58a034f9
2025-12-11 02:13:01,401 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 02:13:01,401 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,409 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/0502a77b-417c-4e04-8f94-122f78edfc93
2025-12-11 02:13:01,424 - INFO - Verified VN network id 10 for VN 0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,424 - INFO - Verifications in API Server for VN ctest-vn-53108675 passed
2025-12-11 02:13:01,424 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,433 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/0502a77b-417c-4e04-8f94-122f78edfc93
2025-12-11 02:13:01,441 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/0502a77b-417c-4e04-8f94-122f78edfc93
2025-12-11 02:13:01,449 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/c067076b-fa9b-4a37-b415-c47c58a034f9
2025-12-11 02:13:01,462 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24511804', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '923099318064269833', 'uuid-lslong': '10006029140719540634'}, 'enable': 'true', 'created': '2025-12-11T02:12:59', 'last-modified': '2025-12-11T02:13:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949846'}
2025-12-11 02:13:01,470 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 02:13:01,470 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53108675 passed
2025-12-11 02:13:01,470 - DEBUG - ====Verifying policy data for ctest-vn-53108675 in API_Server ======
2025-12-11 02:13:01,470 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-12-11 02:13:01,477 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d
2025-12-11 02:13:01,489 - DEBUG - Requesting: http://10.0.0.56:8082/project/77242eb8-f847-477f-83f6-c52e4baa32f4
2025-12-11 02:13:01,562 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/0ccf81f0-61a0-4a09-8adc-8e7d40cb999a
2025-12-11 02:13:01,571 - DEBUG - ==>Verifying data for policy with id: 1b44ad3a-58be-4fd1-9215-df14c7c07215, fqn: ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-policy-allow-all-71207748']
2025-12-11 02:13:01,571 - INFO - VN ctest-vn-53108675 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 02:13:01,571 - DEBUG - Verifying the vn in opserver
2025-12-11 02:13:01,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675 virtual network link through opserver 10.0.0.56
2025-12-11 02:13:01,571 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-12-11 02:13:01,880 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-12-11 02:13:01,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675?flat'}
2025-12-11 02:13:01,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-53108675 is found in opserver
2025-12-11 02:13:01,957 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 02:13:01,961 - DEBUG - VRF ids for VN ctest-vn-53108675: {}
2025-12-11 02:13:01,961 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-12-11 02:13:01,968 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d
2025-12-11 02:13:01,979 - DEBUG - Requesting: http://10.0.0.56:8082/project/77242eb8-f847-477f-83f6-c52e4baa32f4
2025-12-11 02:13:02,055 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,070 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,081 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2dffb8c0-3b8d-4f48-bc12-42d695210f5d
2025-12-11 02:13:02,089 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2dffb8c0-3b8d-4f48-bc12-42d695210f5d
2025-12-11 02:13:02,097 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/432bf863-e4e7-4b57-940c-6dd83d612ee6
2025-12-11 02:13:02,107 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 02:13:02,107 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,118 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2dffb8c0-3b8d-4f48-bc12-42d695210f5d
2025-12-11 02:13:02,137 - INFO - Verified VN network id 11 for VN 089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,138 - INFO - Verifications in API Server for VN ctest-vn-67320008 passed
2025-12-11 02:13:02,138 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,147 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2dffb8c0-3b8d-4f48-bc12-42d695210f5d
2025-12-11 02:13:02,154 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2dffb8c0-3b8d-4f48-bc12-42d695210f5d
2025-12-11 02:13:02,161 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/432bf863-e4e7-4b57-940c-6dd83d612ee6
2025-12-11 02:13:02,174 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-67320008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24511804', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '619829312811648739', 'uuid-lslong': '10568922075997606459'}, 'enable': 'true', 'created': '2025-12-11T02:12:59', 'last-modified': '2025-12-11T02:13:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.429087'}
2025-12-11 02:13:02,181 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 02:13:02,181 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67320008 passed
2025-12-11 02:13:02,181 - DEBUG - ====Verifying policy data for ctest-vn-67320008 in API_Server ======
2025-12-11 02:13:02,181 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-12-11 02:13:02,187 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d
2025-12-11 02:13:02,198 - DEBUG - Requesting: http://10.0.0.56:8082/project/77242eb8-f847-477f-83f6-c52e4baa32f4
2025-12-11 02:13:02,273 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/089a1379-db83-46e3-92ac-5aa1ae9f123b
2025-12-11 02:13:02,282 - DEBUG - ==>Verifying data for policy with id: 1b44ad3a-58be-4fd1-9215-df14c7c07215, fqn: ['default-domain', 'ctest-TestBasicPolicy-24511804', 'ctest-policy-allow-all-71207748']
2025-12-11 02:13:02,282 - INFO - VN ctest-vn-67320008 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 02:13:02,282 - DEBUG - Verifying the vn in opserver
2025-12-11 02:13:02,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-67320008 virtual network link through opserver 10.0.0.56
2025-12-11 02:13:02,282 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-12-11 02:13:02,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-67320008', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-67320008?flat'}
2025-12-11 02:13:02,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24511804:ctest-vn-67320008 is found in opserver
2025-12-11 02:13:02,304 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 02:13:02,309 - DEBUG - VRF ids for VN ctest-vn-67320008: {}
2025-12-11 02:13:02,373 - DEBUG - Services list from nova: [