2025-06-27 13:59:41,963 - INFO - Domain Default found not creating
2025-06-27 13:59:42,115 - INFO - Project ctest-TestBasicPolicy-19273258 not found, creating it
2025-06-27 13:59:42,618 - INFO - Created Project:ctest-TestBasicPolicy-19273258, ID : bcbade58-a2ac-490f-a68c-4f28ae087d92
2025-06-27 13:59:44,088 - INFO - ================================================================================
2025-06-27 13:59:44,088 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-27 13:59:44,088 - 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-06-27 13:59:44,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-27 13:59:44,348 - INFO - Initial checks done. Running the testcase now
2025-06-27 13:59:44,348 - INFO -
2025-06-27 13:59:44,920 - DEBUG - Response for create_network : {'network': {'id': '63eae632-db3b-4a69-b974-70e42d9d65e8', 'name': 'ctest-vn-78403352', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-vn-78403352'], 'port_security_enabled': True, 'description': ''}}
2025-06-27 13:59:45,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '2196431a-b359-49ad-980f-a36d1a0dff6c', 'name': '', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'network_id': '63eae632-db3b-4a69-b974-70e42d9d65e8', 'ip_version': 4, 'cidr': '132.185.54.128/26', 'allocation_pools': [{'start': '132.185.54.130', 'end': '132.185.54.190'}], 'gateway_ip': '132.185.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.185.54.130', 'tags': [], 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92'}}
2025-06-27 13:59:45,111 - INFO - Created VN ctest-vn-78403352
2025-06-27 13:59:45,164 - DEBUG - VN ctest-vn-78403352 UUID is 63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:45,499 - DEBUG - Response for create_network : {'network': {'id': '3563e644-d856-4768-8706-a438d91e83f6', 'name': 'ctest-vn-81102272', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-vn-81102272'], 'port_security_enabled': True, 'description': ''}}
2025-06-27 13:59:45,698 - DEBUG - Response for create_subnet : {'subnet': {'id': '431666a9-09c9-4bf4-b4aa-87c1dde405b9', 'name': '', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'network_id': '3563e644-d856-4768-8706-a438d91e83f6', 'ip_version': 4, 'cidr': '52.36.193.192/26', 'allocation_pools': [{'start': '52.36.193.194', 'end': '52.36.193.254'}], 'gateway_ip': '52.36.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.36.193.194', 'tags': [], 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92'}}
2025-06-27 13:59:45,720 - INFO - Created VN ctest-vn-81102272
2025-06-27 13:59:45,780 - DEBUG - VN ctest-vn-81102272 UUID is 3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:45,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352, 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-19273258:ctest-vn-81102272, 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-06-27 13:59:46,260 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63eae632-db3b-4a69-b974-70e42d9d65e8', 'name': 'ctest-vn-78403352', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2196431a-b359-49ad-980f-a36d1a0dff6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-vn-78403352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-policy-allow-all-36161880']], 'subnet_ipam': [{'subnet_cidr': '132.185.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-27 13:59:46,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3563e644-d856-4768-8706-a438d91e83f6', 'name': 'ctest-vn-81102272', 'tenant_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'project_id': 'bcbade58a2ac490fa68c4f28ae087d92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['431666a9-09c9-4bf4-b4aa-87c1dde405b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-vn-81102272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-policy-allow-all-36161880']], 'subnet_ipam': [{'subnet_cidr': '52.36.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-27 13:59:46,688 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-27 13:59:46,983 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-27 13:59:47,013 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75395d29-f442-4d86-b4e1-f66d1ec091c2
2025-06-27 13:59:47,029 - DEBUG - Requesting: http://10.0.0.254:8082/project/bcbade58-a2ac-490f-a68c-4f28ae087d92
2025-06-27 13:59:47,182 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,195 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1ee57dc-6ae7-425e-9cd2-f6499442396d
2025-06-27 13:59:47,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1ee57dc-6ae7-425e-9cd2-f6499442396d
2025-06-27 13:59:47,222 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b16ce4fd-9363-46c8-af8b-47269f055759
2025-06-27 13:59:47,231 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-27 13:59:47,231 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,244 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1ee57dc-6ae7-425e-9cd2-f6499442396d
2025-06-27 13:59:47,261 - INFO - Verified VN network id 9 for VN 63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,261 - INFO - Verifications in API Server for VN ctest-vn-78403352 passed
2025-06-27 13:59:47,261 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,274 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1ee57dc-6ae7-425e-9cd2-f6499442396d
2025-06-27 13:59:47,282 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1ee57dc-6ae7-425e-9cd2-f6499442396d
2025-06-27 13:59:47,290 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b16ce4fd-9363-46c8-af8b-47269f055759
2025-06-27 13:59:47,311 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19273258', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7199820060406008425', 'uuid-lslong': '13363430119635248616'}, 'enable': 'true', 'created': '2025-06-27T13:59:44', 'last-modified': '2025-06-27T13:59:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087928'}
2025-06-27 13:59:47,319 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-27 13:59:47,319 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78403352 passed
2025-06-27 13:59:47,319 - DEBUG - ====Verifying policy data for ctest-vn-78403352 in API_Server ======
2025-06-27 13:59:47,319 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-27 13:59:47,326 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75395d29-f442-4d86-b4e1-f66d1ec091c2
2025-06-27 13:59:47,339 - DEBUG - Requesting: http://10.0.0.254:8082/project/bcbade58-a2ac-490f-a68c-4f28ae087d92
2025-06-27 13:59:47,426 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/63eae632-db3b-4a69-b974-70e42d9d65e8
2025-06-27 13:59:47,438 - DEBUG - ==>Verifying data for policy with id: 4b4f3b5a-fb81-4279-bbfb-634f42640a42, fqn: ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-policy-allow-all-36161880']
2025-06-27 13:59:47,438 - INFO - VN ctest-vn-78403352 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-27 13:59:47,438 - DEBUG - Verifying the vn in opserver
2025-06-27 13:59:47,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352 virtual network link through opserver 10.0.0.254
2025-06-27 13:59:47,438 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-27 13:59:47,737 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-27 13:59:47,796 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352?flat'}
2025-06-27 13:59:47,796 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-78403352 is found in opserver
2025-06-27 13:59:47,808 - DEBUG - Do not have enough data to verify VN in agent
2025-06-27 13:59:47,813 - DEBUG - VRF ids for VN ctest-vn-78403352: {}
2025-06-27 13:59:47,814 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-27 13:59:47,820 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75395d29-f442-4d86-b4e1-f66d1ec091c2
2025-06-27 13:59:47,833 - DEBUG - Requesting: http://10.0.0.254:8082/project/bcbade58-a2ac-490f-a68c-4f28ae087d92
2025-06-27 13:59:47,911 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:47,925 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:47,937 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f483b3bf-89f9-4fc4-a874-dd7e286f1d53
2025-06-27 13:59:47,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f483b3bf-89f9-4fc4-a874-dd7e286f1d53
2025-06-27 13:59:47,954 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674e01ea-8d68-4c91-806e-544624995326
2025-06-27 13:59:47,963 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-27 13:59:47,963 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:47,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f483b3bf-89f9-4fc4-a874-dd7e286f1d53
2025-06-27 13:59:47,991 - INFO - Verified VN network id 10 for VN 3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:47,991 - INFO - Verifications in API Server for VN ctest-vn-81102272 passed
2025-06-27 13:59:47,991 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:48,002 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f483b3bf-89f9-4fc4-a874-dd7e286f1d53
2025-06-27 13:59:48,009 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f483b3bf-89f9-4fc4-a874-dd7e286f1d53
2025-06-27 13:59:48,017 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674e01ea-8d68-4c91-806e-544624995326
2025-06-27 13:59:48,031 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-81102272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19273258', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3847171690066233192', 'uuid-lslong': '9729644609048314870'}, 'enable': 'true', 'created': '2025-06-27T13:59:45', 'last-modified': '2025-06-27T13:59:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536057'}
2025-06-27 13:59:48,039 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-27 13:59:48,039 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81102272 passed
2025-06-27 13:59:48,039 - DEBUG - ====Verifying policy data for ctest-vn-81102272 in API_Server ======
2025-06-27 13:59:48,039 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-27 13:59:48,046 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75395d29-f442-4d86-b4e1-f66d1ec091c2
2025-06-27 13:59:48,059 - DEBUG - Requesting: http://10.0.0.254:8082/project/bcbade58-a2ac-490f-a68c-4f28ae087d92
2025-06-27 13:59:48,134 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3563e644-d856-4768-8706-a438d91e83f6
2025-06-27 13:59:48,145 - DEBUG - ==>Verifying data for policy with id: 4b4f3b5a-fb81-4279-bbfb-634f42640a42, fqn: ['default-domain', 'ctest-TestBasicPolicy-19273258', 'ctest-policy-allow-all-36161880']
2025-06-27 13:59:48,145 - INFO - VN ctest-vn-81102272 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-27 13:59:48,145 - DEBUG - Verifying the vn in opserver
2025-06-27 13:59:48,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-81102272 virtual network link through opserver 10.0.0.254
2025-06-27 13:59:48,145 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-27 13:59:48,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-81102272', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-81102272?flat'}
2025-06-27 13:59:48,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19273258:ctest-vn-81102272 is found in opserver
2025-06-27 13:59:48,168 - DEBUG - Do not have enough data to verify VN in agent
2025-06-27 13:59:48,174 - DEBUG - VRF ids for VN ctest-vn-81102272: {}
2025-06-27 13:59:48,234 - DEBUG - Services list from nova: [