2025-08-22 09:33:27,545 - INFO - Domain Default found not creating
2025-08-22 09:33:27,672 - INFO - Project ctest-TestBasicPolicy-15627690 not found, creating it
2025-08-22 09:33:28,114 - INFO - Created Project:ctest-TestBasicPolicy-15627690, ID : dbd2833c-01ff-4d21-a075-2153568fcabe
2025-08-22 09:33:29,561 - INFO - ================================================================================
2025-08-22 09:33:29,561 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 09:33:29,561 - 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-08-22 09:33:29,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-08-22 09:33:29,817 - INFO - Initial checks done. Running the testcase now
2025-08-22 09:33:29,817 - INFO -
2025-08-22 09:33:30,434 - DEBUG - Response for create_network : {'network': {'id': '762841a6-b25b-434a-bdd3-af9c4454811b', 'name': 'ctest-vn-91471578', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'project_id': 'dbd2833c01ff4d21a0752153568fcabe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-vn-91471578'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 09:33:30,655 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fda1213f-a126-4da1-9398-0bf1c08c7c03', 'name': '', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'network_id': '762841a6-b25b-434a-bdd3-af9c4454811b', 'ip_version': 4, 'cidr': '95.254.76.64/26', 'allocation_pools': [{'start': '95.254.76.66', 'end': '95.254.76.126'}], 'gateway_ip': '95.254.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.254.76.66', 'tags': [], 'project_id': 'dbd2833c01ff4d21a0752153568fcabe'}}
2025-08-22 09:33:30,676 - INFO - Created VN ctest-vn-91471578
2025-08-22 09:33:30,732 - DEBUG - VN ctest-vn-91471578 UUID is 762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:31,065 - DEBUG - Response for create_network : {'network': {'id': '1e81f43a-2328-4e3b-b9bf-18115989aa47', 'name': 'ctest-vn-75482194', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'project_id': 'dbd2833c01ff4d21a0752153568fcabe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-vn-75482194'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 09:33:31,284 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecd5299b-f335-4533-bf78-445baa54d7ce', 'name': '', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'network_id': '1e81f43a-2328-4e3b-b9bf-18115989aa47', 'ip_version': 4, 'cidr': '137.223.123.192/26', 'allocation_pools': [{'start': '137.223.123.194', 'end': '137.223.123.254'}], 'gateway_ip': '137.223.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.223.123.194', 'tags': [], 'project_id': 'dbd2833c01ff4d21a0752153568fcabe'}}
2025-08-22 09:33:31,318 - INFO - Created VN ctest-vn-75482194
2025-08-22 09:33:31,372 - DEBUG - VN ctest-vn-75482194 UUID is 1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:31,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578, 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-15627690:ctest-vn-75482194, 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-08-22 09:33:31,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '762841a6-b25b-434a-bdd3-af9c4454811b', 'name': 'ctest-vn-91471578', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'project_id': 'dbd2833c01ff4d21a0752153568fcabe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fda1213f-a126-4da1-9398-0bf1c08c7c03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-vn-91471578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-policy-allow-all-13235357']], 'subnet_ipam': [{'subnet_cidr': '95.254.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 09:33:32,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e81f43a-2328-4e3b-b9bf-18115989aa47', 'name': 'ctest-vn-75482194', 'tenant_id': 'dbd2833c01ff4d21a0752153568fcabe', 'project_id': 'dbd2833c01ff4d21a0752153568fcabe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecd5299b-f335-4533-bf78-445baa54d7ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-vn-75482194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-policy-allow-all-13235357']], 'subnet_ipam': [{'subnet_cidr': '137.223.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 09:33:32,208 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-22 09:33:32,519 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-22 09:33:32,543 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0c3e497b-1878-4bee-9c2e-f7ee6289bb72
2025-08-22 09:33:32,555 - DEBUG - Requesting: http://10.0.0.48:8082/project/dbd2833c-01ff-4d21-a075-2153568fcabe
2025-08-22 09:33:32,630 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,641 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,650 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ca198014-e238-49a0-8802-abefbc261f5f
2025-08-22 09:33:32,657 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ca198014-e238-49a0-8802-abefbc261f5f
2025-08-22 09:33:32,664 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9043a33f-0957-4105-94ea-c6a9520d3329
2025-08-22 09:33:32,670 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 09:33:32,670 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,679 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ca198014-e238-49a0-8802-abefbc261f5f
2025-08-22 09:33:32,692 - INFO - Verified VN network id 11 for VN 762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,693 - INFO - Verifications in API Server for VN ctest-vn-91471578 passed
2025-08-22 09:33:32,693 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,702 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ca198014-e238-49a0-8802-abefbc261f5f
2025-08-22 09:33:32,709 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ca198014-e238-49a0-8802-abefbc261f5f
2025-08-22 09:33:32,716 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9043a33f-0957-4105-94ea-c6a9520d3329
2025-08-22 09:33:32,728 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15627690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8514127279756624714', 'uuid-lslong': '13678469578950476059'}, 'enable': 'true', 'created': '2025-08-22T09:33:30', 'last-modified': '2025-08-22T09:33:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966431'}
2025-08-22 09:33:32,734 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 09:33:32,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91471578 passed
2025-08-22 09:33:32,735 - DEBUG - ====Verifying policy data for ctest-vn-91471578 in API_Server ======
2025-08-22 09:33:32,735 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-22 09:33:32,741 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0c3e497b-1878-4bee-9c2e-f7ee6289bb72
2025-08-22 09:33:32,757 - DEBUG - Requesting: http://10.0.0.48:8082/project/dbd2833c-01ff-4d21-a075-2153568fcabe
2025-08-22 09:33:32,832 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/762841a6-b25b-434a-bdd3-af9c4454811b
2025-08-22 09:33:32,841 - DEBUG - ==>Verifying data for policy with id: e6741900-d641-4553-86fe-3d30a0b46bd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-policy-allow-all-13235357']
2025-08-22 09:33:32,841 - INFO - VN ctest-vn-91471578 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 09:33:32,841 - DEBUG - Verifying the vn in opserver
2025-08-22 09:33:32,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578 virtual network link through opserver 10.0.0.48
2025-08-22 09:33:32,841 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-22 09:33:33,131 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-22 09:33:33,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578?flat'}
2025-08-22 09:33:33,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-91471578 is found in opserver
2025-08-22 09:33:33,191 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 09:33:33,196 - DEBUG - VRF ids for VN ctest-vn-91471578: {}
2025-08-22 09:33:33,196 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-22 09:33:33,202 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0c3e497b-1878-4bee-9c2e-f7ee6289bb72
2025-08-22 09:33:33,212 - DEBUG - Requesting: http://10.0.0.48:8082/project/dbd2833c-01ff-4d21-a075-2153568fcabe
2025-08-22 09:33:33,283 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,295 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,304 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/202d60e6-a2ea-49a5-9d49-0a468a256d22
2025-08-22 09:33:33,310 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/202d60e6-a2ea-49a5-9d49-0a468a256d22
2025-08-22 09:33:33,316 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1375fd51-6dd9-4879-a5f0-6c594372c5e3
2025-08-22 09:33:33,322 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 09:33:33,322 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,330 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/202d60e6-a2ea-49a5-9d49-0a468a256d22
2025-08-22 09:33:33,342 - INFO - Verified VN network id 12 for VN 1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,342 - INFO - Verifications in API Server for VN ctest-vn-75482194 passed
2025-08-22 09:33:33,343 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,351 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/202d60e6-a2ea-49a5-9d49-0a468a256d22
2025-08-22 09:33:33,357 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/202d60e6-a2ea-49a5-9d49-0a468a256d22
2025-08-22 09:33:33,364 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1375fd51-6dd9-4879-a5f0-6c594372c5e3
2025-08-22 09:33:33,374 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-75482194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15627690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2198306623668637243', 'uuid-lslong': '13384443080364108359'}, 'enable': 'true', 'created': '2025-08-22T09:33:31', 'last-modified': '2025-08-22T09:33:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368906'}
2025-08-22 09:33:33,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 09:33:33,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75482194 passed
2025-08-22 09:33:33,383 - DEBUG - ====Verifying policy data for ctest-vn-75482194 in API_Server ======
2025-08-22 09:33:33,383 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-22 09:33:33,388 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0c3e497b-1878-4bee-9c2e-f7ee6289bb72
2025-08-22 09:33:33,398 - DEBUG - Requesting: http://10.0.0.48:8082/project/dbd2833c-01ff-4d21-a075-2153568fcabe
2025-08-22 09:33:33,474 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1e81f43a-2328-4e3b-b9bf-18115989aa47
2025-08-22 09:33:33,484 - DEBUG - ==>Verifying data for policy with id: e6741900-d641-4553-86fe-3d30a0b46bd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-15627690', 'ctest-policy-allow-all-13235357']
2025-08-22 09:33:33,484 - INFO - VN ctest-vn-75482194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 09:33:33,484 - DEBUG - Verifying the vn in opserver
2025-08-22 09:33:33,484 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-75482194 virtual network link through opserver 10.0.0.48
2025-08-22 09:33:33,484 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-22 09:33:33,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-75482194', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-75482194?flat'}
2025-08-22 09:33:33,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15627690:ctest-vn-75482194 is found in opserver
2025-08-22 09:33:33,507 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 09:33:33,512 - DEBUG - VRF ids for VN ctest-vn-75482194: {}
2025-08-22 09:33:33,563 - DEBUG - Services list from nova: [