2025-08-29 20:34:26,970 - INFO - Domain Default found not creating
2025-08-29 20:34:27,127 - INFO - Project ctest-TestBasicPolicy-57638877 not found, creating it
2025-08-29 20:34:27,580 - INFO - Created Project:ctest-TestBasicPolicy-57638877, ID : 646582f6-ba03-42b1-9230-9b8754707d68
2025-08-29 20:34:29,004 - INFO - ================================================================================
2025-08-29 20:34:29,004 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-29 20:34:29,004 - 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-29 20:34:29,262 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-29 20:34:29,263 - INFO - Initial checks done. Running the testcase now
2025-08-29 20:34:29,263 - INFO -
2025-08-29 20:34:29,791 - DEBUG - Response for create_network : {'network': {'id': '6b7bcc50-1dcd-440c-ba13-4ac3de17caa7', 'name': 'ctest-vn-51272716', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'project_id': '646582f6ba0342b192309b8754707d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-vn-51272716'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 20:34:29,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db24b858-b671-40a5-93c5-ad8272f8f2fa', 'name': '', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'network_id': '6b7bcc50-1dcd-440c-ba13-4ac3de17caa7', 'ip_version': 4, 'cidr': '191.237.57.128/26', 'allocation_pools': [{'start': '191.237.57.130', 'end': '191.237.57.190'}], 'gateway_ip': '191.237.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.237.57.130', 'tags': [], 'project_id': '646582f6ba0342b192309b8754707d68'}}
2025-08-29 20:34:30,005 - INFO - Created VN ctest-vn-51272716
2025-08-29 20:34:30,057 - DEBUG - VN ctest-vn-51272716 UUID is 6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:30,389 - DEBUG - Response for create_network : {'network': {'id': '0d94cd6d-30c8-42d7-a514-8bb59d57fe2a', 'name': 'ctest-vn-81474350', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'project_id': '646582f6ba0342b192309b8754707d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-vn-81474350'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 20:34:30,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '27802ea0-f95d-461a-80f7-1867acf11ff2', 'name': '', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'network_id': '0d94cd6d-30c8-42d7-a514-8bb59d57fe2a', 'ip_version': 4, 'cidr': '155.15.26.64/26', 'allocation_pools': [{'start': '155.15.26.66', 'end': '155.15.26.126'}], 'gateway_ip': '155.15.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.15.26.66', 'tags': [], 'project_id': '646582f6ba0342b192309b8754707d68'}}
2025-08-29 20:34:30,566 - INFO - Created VN ctest-vn-81474350
2025-08-29 20:34:30,617 - DEBUG - VN ctest-vn-81474350 UUID is 0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:30,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716, 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-57638877:ctest-vn-81474350, 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-29 20:34:31,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b7bcc50-1dcd-440c-ba13-4ac3de17caa7', 'name': 'ctest-vn-51272716', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'project_id': '646582f6ba0342b192309b8754707d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db24b858-b671-40a5-93c5-ad8272f8f2fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-vn-51272716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-policy-allow-all-38415738']], 'subnet_ipam': [{'subnet_cidr': '191.237.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 20:34:31,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d94cd6d-30c8-42d7-a514-8bb59d57fe2a', 'name': 'ctest-vn-81474350', 'tenant_id': '646582f6ba0342b192309b8754707d68', 'project_id': '646582f6ba0342b192309b8754707d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27802ea0-f95d-461a-80f7-1867acf11ff2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-vn-81474350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-policy-allow-all-38415738']], 'subnet_ipam': [{'subnet_cidr': '155.15.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 20:34:31,481 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 20:34:31,777 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 20:34:31,805 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b
2025-08-29 20:34:31,817 - DEBUG - Requesting: http://10.0.0.254:8082/project/646582f6-ba03-42b1-9230-9b8754707d68
2025-08-29 20:34:31,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:31,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:31,906 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/de3d1077-1cdc-4b0c-9939-c8084a03e87f
2025-08-29 20:34:31,912 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/de3d1077-1cdc-4b0c-9939-c8084a03e87f
2025-08-29 20:34:31,918 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/66190ce4-9a0c-4be4-b793-dd18f0e48310
2025-08-29 20:34:31,924 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 20:34:31,924 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:31,932 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/de3d1077-1cdc-4b0c-9939-c8084a03e87f
2025-08-29 20:34:31,943 - INFO - Verified VN network id 12 for VN 6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:31,944 - INFO - Verifications in API Server for VN ctest-vn-51272716 passed
2025-08-29 20:34:31,944 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:31,952 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/de3d1077-1cdc-4b0c-9939-c8084a03e87f
2025-08-29 20:34:31,958 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/de3d1077-1cdc-4b0c-9939-c8084a03e87f
2025-08-29 20:34:31,964 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/66190ce4-9a0c-4be4-b793-dd18f0e48310
2025-08-29 20:34:31,974 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57638877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7745008628663141388', 'uuid-lslong': '13408142720717277863'}, 'enable': 'true', 'created': '2025-08-29T20:34:29', 'last-modified': '2025-08-29T20:34:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935213'}
2025-08-29 20:34:31,980 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 20:34:31,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51272716 passed
2025-08-29 20:34:31,980 - DEBUG - ====Verifying policy data for ctest-vn-51272716 in API_Server ======
2025-08-29 20:34:31,980 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 20:34:31,986 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b
2025-08-29 20:34:31,996 - DEBUG - Requesting: http://10.0.0.254:8082/project/646582f6-ba03-42b1-9230-9b8754707d68
2025-08-29 20:34:32,116 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6b7bcc50-1dcd-440c-ba13-4ac3de17caa7
2025-08-29 20:34:32,154 - DEBUG - ==>Verifying data for policy with id: 73a4aa61-7070-44ab-bb70-5d7da07e9c05, fqn: ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-policy-allow-all-38415738']
2025-08-29 20:34:32,154 - INFO - VN ctest-vn-51272716 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 20:34:32,155 - DEBUG - Verifying the vn in opserver
2025-08-29 20:34:32,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716 virtual network link through opserver 10.0.0.254
2025-08-29 20:34:32,155 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 20:34:32,447 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 20:34:32,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716?flat'}
2025-08-29 20:34:32,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-51272716 is found in opserver
2025-08-29 20:34:32,535 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 20:34:32,539 - DEBUG - VRF ids for VN ctest-vn-51272716: {}
2025-08-29 20:34:32,539 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 20:34:32,547 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b
2025-08-29 20:34:32,619 - DEBUG - Requesting: http://10.0.0.254:8082/project/646582f6-ba03-42b1-9230-9b8754707d68
2025-08-29 20:34:32,690 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,708 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da9308-09a4-4f36-9649-9f8c13496556
2025-08-29 20:34:32,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da9308-09a4-4f36-9649-9f8c13496556
2025-08-29 20:34:32,730 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5f3c2b3-992b-4cd6-92a9-7a57bb2291ac
2025-08-29 20:34:32,736 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 20:34:32,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,744 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da9308-09a4-4f36-9649-9f8c13496556
2025-08-29 20:34:32,757 - INFO - Verified VN network id 13 for VN 0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,757 - INFO - Verifications in API Server for VN ctest-vn-81474350 passed
2025-08-29 20:34:32,758 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,766 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da9308-09a4-4f36-9649-9f8c13496556
2025-08-29 20:34:32,773 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da9308-09a4-4f36-9649-9f8c13496556
2025-08-29 20:34:32,782 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5f3c2b3-992b-4cd6-92a9-7a57bb2291ac
2025-08-29 20:34:32,793 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-81474350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57638877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '978632887899800279', 'uuid-lslong': '11895286127937453610'}, 'enable': 'true', 'created': '2025-08-29T20:34:30', 'last-modified': '2025-08-29T20:34:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518225'}
2025-08-29 20:34:32,799 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 20:34:32,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81474350 passed
2025-08-29 20:34:32,800 - DEBUG - ====Verifying policy data for ctest-vn-81474350 in API_Server ======
2025-08-29 20:34:32,800 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 20:34:32,806 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b
2025-08-29 20:34:32,820 - DEBUG - Requesting: http://10.0.0.254:8082/project/646582f6-ba03-42b1-9230-9b8754707d68
2025-08-29 20:34:32,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d94cd6d-30c8-42d7-a514-8bb59d57fe2a
2025-08-29 20:34:32,904 - DEBUG - ==>Verifying data for policy with id: 73a4aa61-7070-44ab-bb70-5d7da07e9c05, fqn: ['default-domain', 'ctest-TestBasicPolicy-57638877', 'ctest-policy-allow-all-38415738']
2025-08-29 20:34:32,904 - INFO - VN ctest-vn-81474350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 20:34:32,904 - DEBUG - Verifying the vn in opserver
2025-08-29 20:34:32,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-81474350 virtual network link through opserver 10.0.0.254
2025-08-29 20:34:32,904 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 20:34:32,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-81474350', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-81474350?flat'}
2025-08-29 20:34:32,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57638877:ctest-vn-81474350 is found in opserver
2025-08-29 20:34:32,924 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 20:34:32,930 - DEBUG - VRF ids for VN ctest-vn-81474350: {}
2025-08-29 20:34:32,993 - DEBUG - Services list from nova: [