2025-09-25 22:21:59,979 - INFO - Domain Default found not creating
2025-09-25 22:22:00,098 - INFO - Project ctest-TestBasicPolicy-41248109 not found, creating it
2025-09-25 22:22:00,511 - INFO - Created Project:ctest-TestBasicPolicy-41248109, ID : e8022c92-d5b9-4766-8d62-f5c7244d4425
2025-09-25 22:22:01,824 - INFO - ================================================================================
2025-09-25 22:22:01,824 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 22:22:01,824 - 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-09-25 22:22:02,072 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-25 22:22:02,072 - INFO - Initial checks done. Running the testcase now
2025-09-25 22:22:02,072 - INFO -
2025-09-25 22:22:02,577 - DEBUG - Response for create_network : {'network': {'id': 'af5429a2-5bc9-44c0-8f92-43af1940a516', 'name': 'ctest-vn-22600444', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'project_id': 'e8022c92d5b947668d62f5c7244d4425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-vn-22600444'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 22:22:02,726 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e72c57b-17fa-44fe-b7da-ca25b05c1cf4', 'name': '', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'network_id': 'af5429a2-5bc9-44c0-8f92-43af1940a516', 'ip_version': 4, 'cidr': '99.167.185.192/26', 'allocation_pools': [{'start': '99.167.185.194', 'end': '99.167.185.254'}], 'gateway_ip': '99.167.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.167.185.194', 'tags': [], 'project_id': 'e8022c92d5b947668d62f5c7244d4425'}}
2025-09-25 22:22:02,740 - INFO - Created VN ctest-vn-22600444
2025-09-25 22:22:02,791 - DEBUG - VN ctest-vn-22600444 UUID is af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:03,094 - DEBUG - Response for create_network : {'network': {'id': '193c9467-c120-4d70-97ce-8ee7446a63a1', 'name': 'ctest-vn-55037628', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'project_id': 'e8022c92d5b947668d62f5c7244d4425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-vn-55037628'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 22:22:03,246 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf688e69-32fc-479f-b33f-7b749be5dea4', 'name': '', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'network_id': '193c9467-c120-4d70-97ce-8ee7446a63a1', 'ip_version': 4, 'cidr': '126.77.136.0/26', 'allocation_pools': [{'start': '126.77.136.2', 'end': '126.77.136.62'}], 'gateway_ip': '126.77.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.77.136.2', 'tags': [], 'project_id': 'e8022c92d5b947668d62f5c7244d4425'}}
2025-09-25 22:22:03,261 - INFO - Created VN ctest-vn-55037628
2025-09-25 22:22:03,311 - DEBUG - VN ctest-vn-55037628 UUID is 193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:03,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444, 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-41248109:ctest-vn-55037628, 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-09-25 22:22:03,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af5429a2-5bc9-44c0-8f92-43af1940a516', 'name': 'ctest-vn-22600444', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'project_id': 'e8022c92d5b947668d62f5c7244d4425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e72c57b-17fa-44fe-b7da-ca25b05c1cf4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-vn-22600444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-policy-allow-all-98956810']], 'subnet_ipam': [{'subnet_cidr': '99.167.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 22:22:03,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '193c9467-c120-4d70-97ce-8ee7446a63a1', 'name': 'ctest-vn-55037628', 'tenant_id': 'e8022c92d5b947668d62f5c7244d4425', 'project_id': 'e8022c92d5b947668d62f5c7244d4425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf688e69-32fc-479f-b33f-7b749be5dea4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-vn-55037628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-policy-allow-all-98956810']], 'subnet_ipam': [{'subnet_cidr': '126.77.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 22:22:04,139 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-25 22:22:04,432 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-25 22:22:04,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b
2025-09-25 22:22:04,465 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8022c92-d5b9-4766-8d62-f5c7244d4425
2025-09-25 22:22:04,531 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,547 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f512522b-43c7-4f51-8cef-776b0812b8ff
2025-09-25 22:22:04,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f512522b-43c7-4f51-8cef-776b0812b8ff
2025-09-25 22:22:04,557 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67a70ac0-d90f-4ddd-aa04-10fd5c0cf067
2025-09-25 22:22:04,562 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 22:22:04,562 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,568 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f512522b-43c7-4f51-8cef-776b0812b8ff
2025-09-25 22:22:04,579 - INFO - Verified VN network id 12 for VN af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,579 - INFO - Verifications in API Server for VN ctest-vn-22600444 passed
2025-09-25 22:22:04,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,586 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f512522b-43c7-4f51-8cef-776b0812b8ff
2025-09-25 22:22:04,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f512522b-43c7-4f51-8cef-776b0812b8ff
2025-09-25 22:22:04,595 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67a70ac0-d90f-4ddd-aa04-10fd5c0cf067
2025-09-25 22:22:04,604 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41248109', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12633768631982441664', 'uuid-lslong': '10345405713345455382'}, 'enable': 'true', 'created': '2025-09-25T22:22:02', 'last-modified': '2025-09-25T22:22:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893340'}
2025-09-25 22:22:04,609 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 22:22:04,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22600444 passed
2025-09-25 22:22:04,609 - DEBUG - ====Verifying policy data for ctest-vn-22600444 in API_Server ======
2025-09-25 22:22:04,609 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-25 22:22:04,613 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b
2025-09-25 22:22:04,621 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8022c92-d5b9-4766-8d62-f5c7244d4425
2025-09-25 22:22:04,686 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af5429a2-5bc9-44c0-8f92-43af1940a516
2025-09-25 22:22:04,694 - DEBUG - ==>Verifying data for policy with id: 4db58ff9-973e-4de1-a96e-f024a975e4cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-policy-allow-all-98956810']
2025-09-25 22:22:04,694 - INFO - VN ctest-vn-22600444 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 22:22:04,694 - DEBUG - Verifying the vn in opserver
2025-09-25 22:22:04,694 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444 virtual network link through opserver 10.0.0.38
2025-09-25 22:22:04,694 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-25 22:22:04,981 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-25 22:22:05,025 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444?flat'}
2025-09-25 22:22:05,025 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-22600444 is found in opserver
2025-09-25 22:22:05,034 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 22:22:05,037 - DEBUG - VRF ids for VN ctest-vn-22600444: {}
2025-09-25 22:22:05,038 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-25 22:22:05,042 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b
2025-09-25 22:22:05,051 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8022c92-d5b9-4766-8d62-f5c7244d4425
2025-09-25 22:22:05,113 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab5600ef-c25a-463b-bb4e-15ec1047c09b
2025-09-25 22:22:05,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab5600ef-c25a-463b-bb4e-15ec1047c09b
2025-09-25 22:22:05,140 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f189f115-2f58-44e1-89e3-da32202f8f3e
2025-09-25 22:22:05,146 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 22:22:05,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab5600ef-c25a-463b-bb4e-15ec1047c09b
2025-09-25 22:22:05,163 - INFO - Verified VN network id 13 for VN 193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,163 - INFO - Verifications in API Server for VN ctest-vn-55037628 passed
2025-09-25 22:22:05,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab5600ef-c25a-463b-bb4e-15ec1047c09b
2025-09-25 22:22:05,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ab5600ef-c25a-463b-bb4e-15ec1047c09b
2025-09-25 22:22:05,179 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f189f115-2f58-44e1-89e3-da32202f8f3e
2025-09-25 22:22:05,188 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-55037628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41248109', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1818491522893499760', 'uuid-lslong': '10938837668865926049'}, 'enable': 'true', 'created': '2025-09-25T22:22:03', 'last-modified': '2025-09-25T22:22:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.256957'}
2025-09-25 22:22:05,193 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 22:22:05,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55037628 passed
2025-09-25 22:22:05,193 - DEBUG - ====Verifying policy data for ctest-vn-55037628 in API_Server ======
2025-09-25 22:22:05,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-25 22:22:05,197 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b
2025-09-25 22:22:05,206 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8022c92-d5b9-4766-8d62-f5c7244d4425
2025-09-25 22:22:05,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/193c9467-c120-4d70-97ce-8ee7446a63a1
2025-09-25 22:22:05,281 - DEBUG - ==>Verifying data for policy with id: 4db58ff9-973e-4de1-a96e-f024a975e4cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-41248109', 'ctest-policy-allow-all-98956810']
2025-09-25 22:22:05,281 - INFO - VN ctest-vn-55037628 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 22:22:05,281 - DEBUG - Verifying the vn in opserver
2025-09-25 22:22:05,281 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-55037628 virtual network link through opserver 10.0.0.38
2025-09-25 22:22:05,281 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-25 22:22:05,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-55037628', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-55037628?flat'}
2025-09-25 22:22:05,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41248109:ctest-vn-55037628 is found in opserver
2025-09-25 22:22:05,296 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 22:22:05,300 - DEBUG - VRF ids for VN ctest-vn-55037628: {}
2025-09-25 22:22:05,346 - DEBUG - Services list from nova: [