2025-12-18 23:54:51,794 - INFO - Domain Default found not creating
2025-12-18 23:54:51,964 - INFO - Project ctest-TestBasicPolicy-21162724 not found, creating it
2025-12-18 23:54:52,419 - INFO - Created Project:ctest-TestBasicPolicy-21162724, ID : 1b623a1f-9765-43ed-9d6b-330323ab78fc
2025-12-18 23:54:53,921 - INFO - ================================================================================
2025-12-18 23:54:53,922 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-18 23:54:53,922 - 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-18 23:54:54,178 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-12-18 23:54:54,178 - INFO - Initial checks done. Running the testcase now
2025-12-18 23:54:54,178 - INFO -
2025-12-18 23:54:54,730 - DEBUG - Response for create_network : {'network': {'id': '7e2d5b46-c23b-4c74-997e-7f7e796eacea', 'name': 'ctest-vn-99555636', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'project_id': '1b623a1f976543ed9d6b330323ab78fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-vn-99555636'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 23:54:54,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '473b02ab-ea60-44f7-af4a-37f1078c6edf', 'name': '', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'network_id': '7e2d5b46-c23b-4c74-997e-7f7e796eacea', 'ip_version': 4, 'cidr': '108.4.10.192/26', 'allocation_pools': [{'start': '108.4.10.194', 'end': '108.4.10.254'}], 'gateway_ip': '108.4.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.4.10.194', 'tags': [], 'project_id': '1b623a1f976543ed9d6b330323ab78fc'}}
2025-12-18 23:54:54,970 - INFO - Created VN ctest-vn-99555636
2025-12-18 23:54:55,020 - DEBUG - VN ctest-vn-99555636 UUID is 7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:55,337 - DEBUG - Response for create_network : {'network': {'id': '71ebe570-e716-495f-a736-900a464928bb', 'name': 'ctest-vn-75676486', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'project_id': '1b623a1f976543ed9d6b330323ab78fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-vn-75676486'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 23:54:55,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6aa1dec-3f2e-4972-9c67-132413c14631', 'name': '', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'network_id': '71ebe570-e716-495f-a736-900a464928bb', 'ip_version': 4, 'cidr': '56.141.158.128/26', 'allocation_pools': [{'start': '56.141.158.130', 'end': '56.141.158.190'}], 'gateway_ip': '56.141.158.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.141.158.130', 'tags': [], 'project_id': '1b623a1f976543ed9d6b330323ab78fc'}}
2025-12-18 23:54:55,587 - INFO - Created VN ctest-vn-75676486
2025-12-18 23:54:55,636 - DEBUG - VN ctest-vn-75676486 UUID is 71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:55,757 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636, 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-21162724:ctest-vn-75676486, 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-18 23:54:56,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e2d5b46-c23b-4c74-997e-7f7e796eacea', 'name': 'ctest-vn-99555636', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'project_id': '1b623a1f976543ed9d6b330323ab78fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['473b02ab-ea60-44f7-af4a-37f1078c6edf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-vn-99555636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-policy-allow-all-18546852']], 'subnet_ipam': [{'subnet_cidr': '108.4.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 23:54:56,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71ebe570-e716-495f-a736-900a464928bb', 'name': 'ctest-vn-75676486', 'tenant_id': '1b623a1f976543ed9d6b330323ab78fc', 'project_id': '1b623a1f976543ed9d6b330323ab78fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6aa1dec-3f2e-4972-9c67-132413c14631'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-vn-75676486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-policy-allow-all-18546852']], 'subnet_ipam': [{'subnet_cidr': '56.141.158.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 23:54:56,436 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 23:54:56,737 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 23:54:56,765 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd
2025-12-18 23:54:56,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/1b623a1f-9765-43ed-9d6b-330323ab78fc
2025-12-18 23:54:56,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:56,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:56,865 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f3133e6-1dc7-407b-8987-e0b108d20ce2
2025-12-18 23:54:56,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f3133e6-1dc7-407b-8987-e0b108d20ce2
2025-12-18 23:54:56,879 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ffcf3f43-aa20-4738-ac12-ddd4a196deb3
2025-12-18 23:54:56,885 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 23:54:56,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:56,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f3133e6-1dc7-407b-8987-e0b108d20ce2
2025-12-18 23:54:56,909 - INFO - Verified VN network id 11 for VN 7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:56,909 - INFO - Verifications in API Server for VN ctest-vn-99555636 passed
2025-12-18 23:54:56,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:56,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f3133e6-1dc7-407b-8987-e0b108d20ce2
2025-12-18 23:54:56,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f3133e6-1dc7-407b-8987-e0b108d20ce2
2025-12-18 23:54:56,931 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ffcf3f43-aa20-4738-ac12-ddd4a196deb3
2025-12-18 23:54:56,942 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21162724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9092023582195403892', 'uuid-lslong': '11060417916048420074'}, 'enable': 'true', 'created': '2025-12-18T23:54:54', 'last-modified': '2025-12-18T23:54:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906702'}
2025-12-18 23:54:56,948 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 23:54:56,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99555636 passed
2025-12-18 23:54:56,949 - DEBUG - ====Verifying policy data for ctest-vn-99555636 in API_Server ======
2025-12-18 23:54:56,949 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 23:54:56,953 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd
2025-12-18 23:54:56,963 - DEBUG - Requesting: http://10.0.0.38:8082/project/1b623a1f-9765-43ed-9d6b-330323ab78fc
2025-12-18 23:54:57,032 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e2d5b46-c23b-4c74-997e-7f7e796eacea
2025-12-18 23:54:57,043 - DEBUG - ==>Verifying data for policy with id: f4607e1e-8c28-48e9-b8d3-e1fa3a1575cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-policy-allow-all-18546852']
2025-12-18 23:54:57,043 - INFO - VN ctest-vn-99555636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 23:54:57,043 - DEBUG - Verifying the vn in opserver
2025-12-18 23:54:57,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636 virtual network link through opserver 10.0.0.38
2025-12-18 23:54:57,043 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 23:54:57,339 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 23:54:57,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636?flat'}
2025-12-18 23:54:57,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-99555636 is found in opserver
2025-12-18 23:54:57,428 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 23:54:57,433 - DEBUG - VRF ids for VN ctest-vn-99555636: {}
2025-12-18 23:54:57,434 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 23:54:57,440 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd
2025-12-18 23:54:57,453 - DEBUG - Requesting: http://10.0.0.38:8082/project/1b623a1f-9765-43ed-9d6b-330323ab78fc
2025-12-18 23:54:57,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,557 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,570 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe33e20e-8d6a-4696-9fbd-54648ca3f4c0
2025-12-18 23:54:57,579 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe33e20e-8d6a-4696-9fbd-54648ca3f4c0
2025-12-18 23:54:57,586 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5d80b6af-b323-49bc-aa0d-4ced8eaad9bc
2025-12-18 23:54:57,595 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 23:54:57,595 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,607 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe33e20e-8d6a-4696-9fbd-54648ca3f4c0
2025-12-18 23:54:57,625 - INFO - Verified VN network id 12 for VN 71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,626 - INFO - Verifications in API Server for VN ctest-vn-75676486 passed
2025-12-18 23:54:57,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,636 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe33e20e-8d6a-4696-9fbd-54648ca3f4c0
2025-12-18 23:54:57,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe33e20e-8d6a-4696-9fbd-54648ca3f4c0
2025-12-18 23:54:57,654 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5d80b6af-b323-49bc-aa0d-4ced8eaad9bc
2025-12-18 23:54:57,666 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-75676486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21162724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8208907018888956255', 'uuid-lslong': '12048976226879613115'}, 'enable': 'true', 'created': '2025-12-18T23:54:55', 'last-modified': '2025-12-18T23:54:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400275'}
2025-12-18 23:54:57,673 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 23:54:57,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75676486 passed
2025-12-18 23:54:57,674 - DEBUG - ====Verifying policy data for ctest-vn-75676486 in API_Server ======
2025-12-18 23:54:57,674 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 23:54:57,683 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd
2025-12-18 23:54:57,701 - DEBUG - Requesting: http://10.0.0.38:8082/project/1b623a1f-9765-43ed-9d6b-330323ab78fc
2025-12-18 23:54:57,787 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71ebe570-e716-495f-a736-900a464928bb
2025-12-18 23:54:57,798 - DEBUG - ==>Verifying data for policy with id: f4607e1e-8c28-48e9-b8d3-e1fa3a1575cd, fqn: ['default-domain', 'ctest-TestBasicPolicy-21162724', 'ctest-policy-allow-all-18546852']
2025-12-18 23:54:57,798 - INFO - VN ctest-vn-75676486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 23:54:57,799 - DEBUG - Verifying the vn in opserver
2025-12-18 23:54:57,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-75676486 virtual network link through opserver 10.0.0.38
2025-12-18 23:54:57,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 23:54:57,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-75676486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-75676486?flat'}
2025-12-18 23:54:57,809 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21162724:ctest-vn-75676486 is found in opserver
2025-12-18 23:54:57,820 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 23:54:57,825 - DEBUG - VRF ids for VN ctest-vn-75676486: {}
2025-12-18 23:54:57,882 - DEBUG - Services list from nova: [