2025-08-25 23:35:45,750 - INFO - Domain Default found not creating
2025-08-25 23:35:45,906 - INFO - Project ctest-TestBasicPolicy-06168578 not found, creating it
2025-08-25 23:35:46,406 - INFO - Created Project:ctest-TestBasicPolicy-06168578, ID : 61ba8a9c-5b71-4a4d-89eb-5c846e08a40b
2025-08-25 23:35:47,972 - INFO - ================================================================================
2025-08-25 23:35:47,972 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 23:35:47,972 - 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-25 23:35:48,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-08-25 23:35:48,237 - INFO - Initial checks done. Running the testcase now
2025-08-25 23:35:48,237 - INFO -
2025-08-25 23:35:48,799 - DEBUG - Response for create_network : {'network': {'id': '1aae8c80-3116-4870-a008-a373460d28c8', 'name': 'ctest-vn-77725567', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-vn-77725567'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 23:35:49,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '72259c27-7998-49a5-bfdf-97a0dcf92856', 'name': '', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'network_id': '1aae8c80-3116-4870-a008-a373460d28c8', 'ip_version': 4, 'cidr': '158.154.62.128/26', 'allocation_pools': [{'start': '158.154.62.130', 'end': '158.154.62.190'}], 'gateway_ip': '158.154.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.154.62.130', 'tags': [], 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b'}}
2025-08-25 23:35:49,030 - INFO - Created VN ctest-vn-77725567
2025-08-25 23:35:49,084 - DEBUG - VN ctest-vn-77725567 UUID is 1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:49,403 - DEBUG - Response for create_network : {'network': {'id': 'c38aef22-b392-493f-848d-c37f8847d00a', 'name': 'ctest-vn-86853553', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-vn-86853553'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 23:35:49,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '10f6df78-b38f-4563-841b-f10e97e16a23', 'name': '', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'network_id': 'c38aef22-b392-493f-848d-c37f8847d00a', 'ip_version': 4, 'cidr': '6.1.25.64/26', 'allocation_pools': [{'start': '6.1.25.66', 'end': '6.1.25.126'}], 'gateway_ip': '6.1.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.1.25.66', 'tags': [], 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b'}}
2025-08-25 23:35:49,616 - INFO - Created VN ctest-vn-86853553
2025-08-25 23:35:49,668 - DEBUG - VN ctest-vn-86853553 UUID is c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:49,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567, 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-06168578:ctest-vn-86853553, 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-25 23:35:50,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aae8c80-3116-4870-a008-a373460d28c8', 'name': 'ctest-vn-77725567', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72259c27-7998-49a5-bfdf-97a0dcf92856'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-vn-77725567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-policy-allow-all-63692338']], 'subnet_ipam': [{'subnet_cidr': '158.154.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 23:35:50,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c38aef22-b392-493f-848d-c37f8847d00a', 'name': 'ctest-vn-86853553', 'tenant_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'project_id': '61ba8a9c5b714a4d89eb5c846e08a40b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10f6df78-b38f-4563-841b-f10e97e16a23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-vn-86853553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-policy-allow-all-63692338']], 'subnet_ipam': [{'subnet_cidr': '6.1.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 23:35:50,576 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-25 23:35:50,885 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-25 23:35:51,198 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3
2025-08-25 23:35:51,217 - DEBUG - Requesting: http://10.0.0.130:8082/project/61ba8a9c-5b71-4a4d-89eb-5c846e08a40b
2025-08-25 23:35:51,309 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,321 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,334 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9e88a096-c783-46bb-8da8-09e55f42992e
2025-08-25 23:35:51,343 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9e88a096-c783-46bb-8da8-09e55f42992e
2025-08-25 23:35:51,351 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/387d8979-0669-4e44-8f08-289e21ec51ed
2025-08-25 23:35:51,360 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 23:35:51,360 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,374 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9e88a096-c783-46bb-8da8-09e55f42992e
2025-08-25 23:35:51,392 - INFO - Verified VN network id 9 for VN 1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,392 - INFO - Verifications in API Server for VN ctest-vn-77725567 passed
2025-08-25 23:35:51,392 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,406 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9e88a096-c783-46bb-8da8-09e55f42992e
2025-08-25 23:35:51,415 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9e88a096-c783-46bb-8da8-09e55f42992e
2025-08-25 23:35:51,424 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/387d8979-0669-4e44-8f08-289e21ec51ed
2025-08-25 23:35:51,439 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06168578', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1922628573141026928', 'uuid-lslong': '11531646561373989064'}, 'enable': 'true', 'created': '2025-08-25T23:35:48', 'last-modified': '2025-08-25T23:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364021'}
2025-08-25 23:35:51,446 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 23:35:51,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77725567 passed
2025-08-25 23:35:51,446 - DEBUG - ====Verifying policy data for ctest-vn-77725567 in API_Server ======
2025-08-25 23:35:51,447 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-25 23:35:51,453 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3
2025-08-25 23:35:51,467 - DEBUG - Requesting: http://10.0.0.130:8082/project/61ba8a9c-5b71-4a4d-89eb-5c846e08a40b
2025-08-25 23:35:51,551 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1aae8c80-3116-4870-a008-a373460d28c8
2025-08-25 23:35:51,566 - DEBUG - ==>Verifying data for policy with id: 3b95dcfa-58b4-4d97-abd4-0559d91537ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-policy-allow-all-63692338']
2025-08-25 23:35:51,566 - INFO - VN ctest-vn-77725567 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 23:35:51,566 - DEBUG - Verifying the vn in opserver
2025-08-25 23:35:51,566 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567 virtual network link through opserver 10.0.0.130
2025-08-25 23:35:51,566 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-25 23:35:51,863 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-25 23:35:51,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567?flat'}
2025-08-25 23:35:51,923 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-77725567 is found in opserver
2025-08-25 23:35:51,934 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 23:35:51,940 - DEBUG - VRF ids for VN ctest-vn-77725567: {}
2025-08-25 23:35:51,940 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-25 23:35:51,946 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3
2025-08-25 23:35:51,957 - DEBUG - Requesting: http://10.0.0.130:8082/project/61ba8a9c-5b71-4a4d-89eb-5c846e08a40b
2025-08-25 23:35:52,035 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,051 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,065 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8f5383c-58db-4df7-a818-bc19c47f41fa
2025-08-25 23:35:52,073 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8f5383c-58db-4df7-a818-bc19c47f41fa
2025-08-25 23:35:52,082 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b14eb2ab-66c7-4e9f-88fa-0b12b518697b
2025-08-25 23:35:52,093 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 23:35:52,093 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,107 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8f5383c-58db-4df7-a818-bc19c47f41fa
2025-08-25 23:35:52,123 - INFO - Verified VN network id 10 for VN c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,123 - INFO - Verifications in API Server for VN ctest-vn-86853553 passed
2025-08-25 23:35:52,123 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,135 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8f5383c-58db-4df7-a818-bc19c47f41fa
2025-08-25 23:35:52,142 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8f5383c-58db-4df7-a818-bc19c47f41fa
2025-08-25 23:35:52,150 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b14eb2ab-66c7-4e9f-88fa-0b12b518697b
2025-08-25 23:35:52,164 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-86853553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06168578', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14090337316502653247', 'uuid-lslong': '9551505337237360650'}, 'enable': 'true', 'created': '2025-08-25T23:35:49', 'last-modified': '2025-08-25T23:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.822167'}
2025-08-25 23:35:52,172 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 23:35:52,172 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86853553 passed
2025-08-25 23:35:52,172 - DEBUG - ====Verifying policy data for ctest-vn-86853553 in API_Server ======
2025-08-25 23:35:52,172 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-25 23:35:52,181 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3
2025-08-25 23:35:52,193 - DEBUG - Requesting: http://10.0.0.130:8082/project/61ba8a9c-5b71-4a4d-89eb-5c846e08a40b
2025-08-25 23:35:52,269 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c38aef22-b392-493f-848d-c37f8847d00a
2025-08-25 23:35:52,280 - DEBUG - ==>Verifying data for policy with id: 3b95dcfa-58b4-4d97-abd4-0559d91537ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-06168578', 'ctest-policy-allow-all-63692338']
2025-08-25 23:35:52,281 - INFO - VN ctest-vn-86853553 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 23:35:52,281 - DEBUG - Verifying the vn in opserver
2025-08-25 23:35:52,281 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-86853553 virtual network link through opserver 10.0.0.130
2025-08-25 23:35:52,281 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-25 23:35:52,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-86853553', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-86853553?flat'}
2025-08-25 23:35:52,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06168578:ctest-vn-86853553 is found in opserver
2025-08-25 23:35:52,308 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 23:35:52,315 - DEBUG - VRF ids for VN ctest-vn-86853553: {}
2025-08-25 23:35:52,386 - DEBUG - Services list from nova: [