2025-10-23 21:23:07,730 - INFO - Domain Default found not creating
2025-10-23 21:23:07,898 - INFO - Project ctest-TestBasicPolicy-44436639 not found, creating it
2025-10-23 21:23:08,361 - INFO - Created Project:ctest-TestBasicPolicy-44436639, ID : e24784eb-149b-4332-a856-08e25f8dda9f 
2025-10-23 21:23:09,947 - INFO - ================================================================================
2025-10-23 21:23:09,947 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-23 21:23:09,947 - 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-10-23 21:23:10,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-23 21:23:10,202 - INFO - Initial checks done. Running the testcase now
2025-10-23 21:23:10,202 - INFO - 
2025-10-23 21:23:10,786 - DEBUG - Response for create_network : {'network': {'id': '4add7577-9bcc-4724-a62a-8f7ff69e62ab', 'name': 'ctest-vn-21340086', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'project_id': 'e24784eb149b4332a85608e25f8dda9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-vn-21340086'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:23:10,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '73e6189c-b95e-4900-8626-4acaee1950fd', 'name': '', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'network_id': '4add7577-9bcc-4724-a62a-8f7ff69e62ab', 'ip_version': 4, 'cidr': '22.201.54.128/26', 'allocation_pools': [{'start': '22.201.54.130', 'end': '22.201.54.190'}], 'gateway_ip': '22.201.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.201.54.130', 'tags': [], 'project_id': 'e24784eb149b4332a85608e25f8dda9f'}}
2025-10-23 21:23:10,964 - INFO - Created VN ctest-vn-21340086
2025-10-23 21:23:11,015 - DEBUG - VN ctest-vn-21340086 UUID is 4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:11,304 - DEBUG - Response for create_network : {'network': {'id': 'f13ae3fa-11f7-4657-8809-ad44a2eab44c', 'name': 'ctest-vn-75329146', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'project_id': 'e24784eb149b4332a85608e25f8dda9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-vn-75329146'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:23:11,491 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca4b5388-a43b-4300-b020-7102f1333e84', 'name': '', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'network_id': 'f13ae3fa-11f7-4657-8809-ad44a2eab44c', 'ip_version': 4, 'cidr': '176.202.233.192/26', 'allocation_pools': [{'start': '176.202.233.194', 'end': '176.202.233.254'}], 'gateway_ip': '176.202.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.202.233.194', 'tags': [], 'project_id': 'e24784eb149b4332a85608e25f8dda9f'}}
2025-10-23 21:23:11,511 - INFO - Created VN ctest-vn-75329146
2025-10-23 21:23:11,568 - DEBUG - VN ctest-vn-75329146 UUID is f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:11,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086, 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-44436639:ctest-vn-75329146, 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-10-23 21:23:11,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4add7577-9bcc-4724-a62a-8f7ff69e62ab', 'name': 'ctest-vn-21340086', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'project_id': 'e24784eb149b4332a85608e25f8dda9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73e6189c-b95e-4900-8626-4acaee1950fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-vn-21340086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-policy-allow-all-55185417']], 'subnet_ipam': [{'subnet_cidr': '22.201.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:23:12,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f13ae3fa-11f7-4657-8809-ad44a2eab44c', 'name': 'ctest-vn-75329146', 'tenant_id': 'e24784eb149b4332a85608e25f8dda9f', 'project_id': 'e24784eb149b4332a85608e25f8dda9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca4b5388-a43b-4300-b020-7102f1333e84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-vn-75329146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-policy-allow-all-55185417']], 'subnet_ipam': [{'subnet_cidr': '176.202.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:23:12,400 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 21:23:12,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 21:23:12,782 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2209111-6f48-42a4-aade-8a3132a84b97
2025-10-23 21:23:12,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/e24784eb-149b-4332-a856-08e25f8dda9f
2025-10-23 21:23:12,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:12,881 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:12,891 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71c22b78-70a7-4068-a2e3-b229d3eea43f
2025-10-23 21:23:12,898 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71c22b78-70a7-4068-a2e3-b229d3eea43f
2025-10-23 21:23:12,905 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c47b3eb-1967-4d8b-a6d6-6ecdbf9b4ade
2025-10-23 21:23:12,912 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 21:23:12,912 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:12,920 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71c22b78-70a7-4068-a2e3-b229d3eea43f
2025-10-23 21:23:12,935 - INFO - Verified VN network id 11 for VN 4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:12,935 - INFO - Verifications in API Server for VN ctest-vn-21340086 passed
2025-10-23 21:23:12,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:12,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71c22b78-70a7-4068-a2e3-b229d3eea43f
2025-10-23 21:23:12,950 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/71c22b78-70a7-4068-a2e3-b229d3eea43f
2025-10-23 21:23:12,957 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c47b3eb-1967-4d8b-a6d6-6ecdbf9b4ade
2025-10-23 21:23:12,969 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44436639', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5394597085235136292', 'uuid-lslong': '11973540339079078571'}, 'enable': 'true', 'created': '2025-10-23T21:23:10', 'last-modified': '2025-10-23T21:23:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999863'}
2025-10-23 21:23:12,975 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 21:23:12,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21340086 passed
2025-10-23 21:23:12,975 - DEBUG - ====Verifying policy data for ctest-vn-21340086 in API_Server ======
2025-10-23 21:23:12,975 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 21:23:12,981 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2209111-6f48-42a4-aade-8a3132a84b97
2025-10-23 21:23:12,992 - DEBUG - Requesting: http://10.0.0.254:8082/project/e24784eb-149b-4332-a856-08e25f8dda9f
2025-10-23 21:23:13,062 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4add7577-9bcc-4724-a62a-8f7ff69e62ab
2025-10-23 21:23:13,072 - DEBUG - ==>Verifying data for policy with id: 99222d88-b14f-4df5-bf55-ad4f3d9183b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-policy-allow-all-55185417']
2025-10-23 21:23:13,072 - INFO - VN ctest-vn-21340086 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 21:23:13,072 - DEBUG - Verifying the vn in opserver
2025-10-23 21:23:13,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086 virtual network link  through opserver 10.0.0.254
2025-10-23 21:23:13,072 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 21:23:13,403 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 21:23:13,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086?flat'}
2025-10-23 21:23:13,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-21340086 is found in opserver
2025-10-23 21:23:13,472 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 21:23:13,476 - DEBUG - VRF ids for VN ctest-vn-21340086: {}
2025-10-23 21:23:13,476 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 21:23:13,481 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2209111-6f48-42a4-aade-8a3132a84b97
2025-10-23 21:23:13,492 - DEBUG - Requesting: http://10.0.0.254:8082/project/e24784eb-149b-4332-a856-08e25f8dda9f
2025-10-23 21:23:13,565 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,578 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,588 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cb809a49-6fd4-4659-89f8-da04da797295
2025-10-23 21:23:13,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cb809a49-6fd4-4659-89f8-da04da797295
2025-10-23 21:23:13,601 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49ff8e13-b5b5-489a-9dd9-ef1d56be6e6c
2025-10-23 21:23:13,608 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 21:23:13,608 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,617 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cb809a49-6fd4-4659-89f8-da04da797295
2025-10-23 21:23:13,632 - INFO - Verified VN network id 12 for VN f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,632 - INFO - Verifications in API Server for VN ctest-vn-75329146 passed
2025-10-23 21:23:13,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,641 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cb809a49-6fd4-4659-89f8-da04da797295
2025-10-23 21:23:13,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cb809a49-6fd4-4659-89f8-da04da797295
2025-10-23 21:23:13,654 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49ff8e13-b5b5-489a-9dd9-ef1d56be6e6c
2025-10-23 21:23:13,665 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-75329146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44436639', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17382456374972597847', 'uuid-lslong': '9802556574251267148'}, 'enable': 'true', 'created': '2025-10-23T21:23:11', 'last-modified': '2025-10-23T21:23:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457517'}
2025-10-23 21:23:13,671 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 21:23:13,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75329146 passed
2025-10-23 21:23:13,671 - DEBUG - ====Verifying policy data for ctest-vn-75329146 in API_Server ======
2025-10-23 21:23:13,671 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 21:23:13,677 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2209111-6f48-42a4-aade-8a3132a84b97
2025-10-23 21:23:13,688 - DEBUG - Requesting: http://10.0.0.254:8082/project/e24784eb-149b-4332-a856-08e25f8dda9f
2025-10-23 21:23:13,761 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f13ae3fa-11f7-4657-8809-ad44a2eab44c
2025-10-23 21:23:13,771 - DEBUG - ==>Verifying data for policy with id: 99222d88-b14f-4df5-bf55-ad4f3d9183b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-44436639', 'ctest-policy-allow-all-55185417']
2025-10-23 21:23:13,771 - INFO - VN ctest-vn-75329146 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 21:23:13,771 - DEBUG - Verifying the vn in opserver
2025-10-23 21:23:13,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-75329146 virtual network link  through opserver 10.0.0.254
2025-10-23 21:23:13,771 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 21:23:13,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-75329146', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-75329146?flat'}
2025-10-23 21:23:13,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44436639:ctest-vn-75329146 is found in opserver
2025-10-23 21:23:13,792 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 21:23:13,796 - DEBUG - VRF ids for VN ctest-vn-75329146: {}
2025-10-23 21:23:13,859 - DEBUG - Services list from nova: [