2025-09-15 11:26:59,314 - INFO - Domain Default found not creating
2025-09-15 11:27:00,120 - INFO - Project ctest-TestBasicPolicy-08284430 not found, creating it
2025-09-15 11:27:00,603 - INFO - Created Project:ctest-TestBasicPolicy-08284430, ID : d78106f7-2a3b-47ec-9aeb-ff2119409327
2025-09-15 11:27:02,066 - INFO - ================================================================================
2025-09-15 11:27:02,066 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 11:27:02,067 - 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-15 11:27:02,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-09-15 11:27:02,333 - INFO - Initial checks done. Running the testcase now
2025-09-15 11:27:02,333 - INFO -
2025-09-15 11:27:02,908 - DEBUG - Response for create_network : {'network': {'id': '5a0b9292-93f2-4f20-920c-72c7132f07b2', 'name': 'ctest-vn-19518438', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'project_id': 'd78106f72a3b47ec9aebff2119409327', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-vn-19518438'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:27:03,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '498df5aa-31f4-404e-9c71-fcc7ee843934', 'name': '', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'network_id': '5a0b9292-93f2-4f20-920c-72c7132f07b2', 'ip_version': 4, 'cidr': '45.14.222.0/26', 'allocation_pools': [{'start': '45.14.222.2', 'end': '45.14.222.62'}], 'gateway_ip': '45.14.222.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.14.222.2', 'tags': [], 'project_id': 'd78106f72a3b47ec9aebff2119409327'}}
2025-09-15 11:27:03,149 - INFO - Created VN ctest-vn-19518438
2025-09-15 11:27:03,201 - DEBUG - VN ctest-vn-19518438 UUID is 5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:03,493 - DEBUG - Response for create_network : {'network': {'id': 'a868480f-f34b-40fb-a735-909c6c3dfc2b', 'name': 'ctest-vn-13047191', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'project_id': 'd78106f72a3b47ec9aebff2119409327', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-vn-13047191'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:27:03,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d553626-844d-4c5d-b753-39597043853e', 'name': '', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'network_id': 'a868480f-f34b-40fb-a735-909c6c3dfc2b', 'ip_version': 4, 'cidr': '213.189.159.0/26', 'allocation_pools': [{'start': '213.189.159.2', 'end': '213.189.159.62'}], 'gateway_ip': '213.189.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.189.159.2', 'tags': [], 'project_id': 'd78106f72a3b47ec9aebff2119409327'}}
2025-09-15 11:27:03,679 - INFO - Created VN ctest-vn-13047191
2025-09-15 11:27:03,732 - DEBUG - VN ctest-vn-13047191 UUID is a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:03,888 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438, 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-08284430:ctest-vn-13047191, 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-15 11:27:04,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a0b9292-93f2-4f20-920c-72c7132f07b2', 'name': 'ctest-vn-19518438', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'project_id': 'd78106f72a3b47ec9aebff2119409327', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['498df5aa-31f4-404e-9c71-fcc7ee843934'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-vn-19518438'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-policy-allow-all-94115817']], 'subnet_ipam': [{'subnet_cidr': '45.14.222.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:27:04,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a868480f-f34b-40fb-a735-909c6c3dfc2b', 'name': 'ctest-vn-13047191', 'tenant_id': 'd78106f72a3b47ec9aebff2119409327', 'project_id': 'd78106f72a3b47ec9aebff2119409327', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d553626-844d-4c5d-b753-39597043853e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-vn-13047191'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-policy-allow-all-94115817']], 'subnet_ipam': [{'subnet_cidr': '213.189.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:27:04,617 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-09-15 11:27:04,937 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-09-15 11:27:04,972 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9
2025-09-15 11:27:04,986 - DEBUG - Requesting: http://10.0.0.242:8082/project/d78106f7-2a3b-47ec-9aeb-ff2119409327
2025-09-15 11:27:05,074 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,088 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,100 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/eed87032-9eeb-4490-9e45-ba44cccdb2fe
2025-09-15 11:27:05,110 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/eed87032-9eeb-4490-9e45-ba44cccdb2fe
2025-09-15 11:27:05,119 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/627b595b-2008-464e-90fb-0b5b300aa6ba
2025-09-15 11:27:05,130 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:27:05,130 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,143 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/eed87032-9eeb-4490-9e45-ba44cccdb2fe
2025-09-15 11:27:05,165 - INFO - Verified VN network id 11 for VN 5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,165 - INFO - Verifications in API Server for VN ctest-vn-19518438 passed
2025-09-15 11:27:05,165 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,177 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/eed87032-9eeb-4490-9e45-ba44cccdb2fe
2025-09-15 11:27:05,187 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/eed87032-9eeb-4490-9e45-ba44cccdb2fe
2025-09-15 11:27:05,196 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/627b595b-2008-464e-90fb-0b5b300aa6ba
2025-09-15 11:27:05,214 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08284430', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6488440846402342688', 'uuid-lslong': '10523912628603914162'}, 'enable': 'true', 'created': '2025-09-15T11:27:02', 'last-modified': '2025-09-15T11:27:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039200'}
2025-09-15 11:27:05,221 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:27:05,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19518438 passed
2025-09-15 11:27:05,221 - DEBUG - ====Verifying policy data for ctest-vn-19518438 in API_Server ======
2025-09-15 11:27:05,222 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-09-15 11:27:05,228 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9
2025-09-15 11:27:05,245 - DEBUG - Requesting: http://10.0.0.242:8082/project/d78106f7-2a3b-47ec-9aeb-ff2119409327
2025-09-15 11:27:05,334 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5a0b9292-93f2-4f20-920c-72c7132f07b2
2025-09-15 11:27:05,348 - DEBUG - ==>Verifying data for policy with id: 2553ec1a-c938-48e4-8f26-749bf9170d8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-policy-allow-all-94115817']
2025-09-15 11:27:05,348 - INFO - VN ctest-vn-19518438 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:27:05,348 - DEBUG - Verifying the vn in opserver
2025-09-15 11:27:05,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438 virtual network link through opserver 10.0.0.242
2025-09-15 11:27:05,348 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-09-15 11:27:05,684 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-09-15 11:27:05,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438?flat'}
2025-09-15 11:27:05,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-19518438 is found in opserver
2025-09-15 11:27:05,774 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:27:05,781 - DEBUG - VRF ids for VN ctest-vn-19518438: {}
2025-09-15 11:27:05,781 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-09-15 11:27:05,788 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9
2025-09-15 11:27:05,803 - DEBUG - Requesting: http://10.0.0.242:8082/project/d78106f7-2a3b-47ec-9aeb-ff2119409327
2025-09-15 11:27:05,881 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:05,896 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:05,907 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/30cc379a-a598-4b74-91cf-1993bfc81c90
2025-09-15 11:27:05,916 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/30cc379a-a598-4b74-91cf-1993bfc81c90
2025-09-15 11:27:05,925 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2a39b7d6-389a-419c-98b6-dcd5e8a54292
2025-09-15 11:27:05,935 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:27:05,935 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:05,949 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/30cc379a-a598-4b74-91cf-1993bfc81c90
2025-09-15 11:27:05,970 - INFO - Verified VN network id 12 for VN a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:05,971 - INFO - Verifications in API Server for VN ctest-vn-13047191 passed
2025-09-15 11:27:05,971 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:05,984 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/30cc379a-a598-4b74-91cf-1993bfc81c90
2025-09-15 11:27:05,995 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/30cc379a-a598-4b74-91cf-1993bfc81c90
2025-09-15 11:27:06,005 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2a39b7d6-389a-419c-98b6-dcd5e8a54292
2025-09-15 11:27:06,022 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-13047191', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08284430', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12135028429293306107', 'uuid-lslong': '12048695379604929579'}, 'enable': 'true', 'created': '2025-09-15T11:27:03', 'last-modified': '2025-09-15T11:27:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597834'}
2025-09-15 11:27:06,030 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:27:06,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13047191 passed
2025-09-15 11:27:06,030 - DEBUG - ====Verifying policy data for ctest-vn-13047191 in API_Server ======
2025-09-15 11:27:06,030 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-09-15 11:27:06,039 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9
2025-09-15 11:27:06,055 - DEBUG - Requesting: http://10.0.0.242:8082/project/d78106f7-2a3b-47ec-9aeb-ff2119409327
2025-09-15 11:27:06,143 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a868480f-f34b-40fb-a735-909c6c3dfc2b
2025-09-15 11:27:06,155 - DEBUG - ==>Verifying data for policy with id: 2553ec1a-c938-48e4-8f26-749bf9170d8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08284430', 'ctest-policy-allow-all-94115817']
2025-09-15 11:27:06,155 - INFO - VN ctest-vn-13047191 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:27:06,155 - DEBUG - Verifying the vn in opserver
2025-09-15 11:27:06,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-13047191 virtual network link through opserver 10.0.0.242
2025-09-15 11:27:06,155 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-09-15 11:27:06,169 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-13047191', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-13047191?flat'}
2025-09-15 11:27:06,169 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08284430:ctest-vn-13047191 is found in opserver
2025-09-15 11:27:06,181 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:27:06,188 - DEBUG - VRF ids for VN ctest-vn-13047191: {}
2025-09-15 11:27:06,281 - DEBUG - Services list from nova: [