2025-10-22 07:47:01,322 - INFO - Domain Default found not creating
2025-10-22 07:47:01,501 - INFO - Project ctest-TestBasicPolicy-97130820 not found, creating it
2025-10-22 07:47:01,984 - INFO - Created Project:ctest-TestBasicPolicy-97130820, ID : 0d500f6b-ffbc-4600-a59d-1c7379f2fd0d
2025-10-22 07:47:03,467 - INFO - ================================================================================
2025-10-22 07:47:03,467 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 07:47:03,467 - 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-22 07:47:03,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.254': '0'}} with
2025-10-22 07:47:03,726 - INFO - Initial checks done. Running the testcase now
2025-10-22 07:47:03,727 - INFO -
2025-10-22 07:47:04,344 - DEBUG - Response for create_network : {'network': {'id': '26e3155d-4336-4964-907d-398960921e31', 'name': 'ctest-vn-03678495', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-vn-03678495'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 07:47:04,517 - DEBUG - Response for create_subnet : {'subnet': {'id': '429f372d-6351-43ac-9e8a-051ccd8a7e4a', 'name': '', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'network_id': '26e3155d-4336-4964-907d-398960921e31', 'ip_version': 4, 'cidr': '49.132.11.0/26', 'allocation_pools': [{'start': '49.132.11.2', 'end': '49.132.11.62'}], 'gateway_ip': '49.132.11.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.132.11.2', 'tags': [], 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d'}}
2025-10-22 07:47:04,537 - INFO - Created VN ctest-vn-03678495
2025-10-22 07:47:04,589 - DEBUG - VN ctest-vn-03678495 UUID is 26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:04,902 - DEBUG - Response for create_network : {'network': {'id': '07e9eed3-29c0-45b9-8c06-2d963eff0458', 'name': 'ctest-vn-91311060', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-vn-91311060'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 07:47:05,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '71aa36d1-defa-4a89-b939-a989361b3387', 'name': '', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'network_id': '07e9eed3-29c0-45b9-8c06-2d963eff0458', 'ip_version': 4, 'cidr': '156.129.223.64/26', 'allocation_pools': [{'start': '156.129.223.66', 'end': '156.129.223.126'}], 'gateway_ip': '156.129.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.129.223.66', 'tags': [], 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d'}}
2025-10-22 07:47:05,135 - INFO - Created VN ctest-vn-91311060
2025-10-22 07:47:05,193 - DEBUG - VN ctest-vn-91311060 UUID is 07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:05,315 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495, 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-97130820:ctest-vn-91311060, 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-22 07:47:05,623 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26e3155d-4336-4964-907d-398960921e31', 'name': 'ctest-vn-03678495', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['429f372d-6351-43ac-9e8a-051ccd8a7e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-vn-03678495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-policy-allow-all-63139816']], 'subnet_ipam': [{'subnet_cidr': '49.132.11.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 07:47:05,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07e9eed3-29c0-45b9-8c06-2d963eff0458', 'name': 'ctest-vn-91311060', 'tenant_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'project_id': '0d500f6bffbc4600a59d1c7379f2fd0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71aa36d1-defa-4a89-b939-a989361b3387'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-vn-91311060'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-policy-allow-all-63139816']], 'subnet_ipam': [{'subnet_cidr': '156.129.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 07:47:06,049 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-22 07:47:06,349 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-22 07:47:06,387 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea
2025-10-22 07:47:06,400 - DEBUG - Requesting: http://10.0.0.73:8082/project/0d500f6b-ffbc-4600-a59d-1c7379f2fd0d
2025-10-22 07:47:06,475 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,488 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,497 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/b51f6db7-ddc6-4982-993a-b76f17689c64
2025-10-22 07:47:06,505 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/b51f6db7-ddc6-4982-993a-b76f17689c64
2025-10-22 07:47:06,512 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/4c1ac6a8-5d63-48d6-b91a-5dfe4b8f9b10
2025-10-22 07:47:06,519 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 07:47:06,519 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,530 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/b51f6db7-ddc6-4982-993a-b76f17689c64
2025-10-22 07:47:06,546 - INFO - Verified VN network id 11 for VN 26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,546 - INFO - Verifications in API Server for VN ctest-vn-03678495 passed
2025-10-22 07:47:06,547 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,557 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/b51f6db7-ddc6-4982-993a-b76f17689c64
2025-10-22 07:47:06,565 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/b51f6db7-ddc6-4982-993a-b76f17689c64
2025-10-22 07:47:06,574 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/4c1ac6a8-5d63-48d6-b91a-5dfe4b8f9b10
2025-10-22 07:47:06,586 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97130820', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2802106883458353508', 'uuid-lslong': '10411541175743946289'}, 'enable': 'true', 'created': '2025-10-22T07:47:04', 'last-modified': '2025-10-22T07:47:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989189'}
2025-10-22 07:47:06,592 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 07:47:06,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03678495 passed
2025-10-22 07:47:06,592 - DEBUG - ====Verifying policy data for ctest-vn-03678495 in API_Server ======
2025-10-22 07:47:06,592 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-22 07:47:06,598 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea
2025-10-22 07:47:06,611 - DEBUG - Requesting: http://10.0.0.73:8082/project/0d500f6b-ffbc-4600-a59d-1c7379f2fd0d
2025-10-22 07:47:06,688 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/26e3155d-4336-4964-907d-398960921e31
2025-10-22 07:47:06,699 - DEBUG - ==>Verifying data for policy with id: f9602273-1381-41aa-8ed4-e5b40f656442, fqn: ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-policy-allow-all-63139816']
2025-10-22 07:47:06,699 - INFO - VN ctest-vn-03678495 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 07:47:06,699 - DEBUG - Verifying the vn in opserver
2025-10-22 07:47:06,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495 virtual network link through opserver 10.0.0.73
2025-10-22 07:47:06,699 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-22 07:47:06,997 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-22 07:47:07,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495?flat'}
2025-10-22 07:47:07,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-03678495 is found in opserver
2025-10-22 07:47:07,069 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 07:47:07,074 - DEBUG - VRF ids for VN ctest-vn-03678495: {}
2025-10-22 07:47:07,074 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-22 07:47:07,080 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea
2025-10-22 07:47:07,092 - DEBUG - Requesting: http://10.0.0.73:8082/project/0d500f6b-ffbc-4600-a59d-1c7379f2fd0d
2025-10-22 07:47:07,163 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,176 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,186 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/90027946-913c-4698-88a8-6eac79bf2379
2025-10-22 07:47:07,195 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/90027946-913c-4698-88a8-6eac79bf2379
2025-10-22 07:47:07,203 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/93ded131-5389-4b62-b94d-ac95f5524164
2025-10-22 07:47:07,212 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 07:47:07,212 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,224 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/90027946-913c-4698-88a8-6eac79bf2379
2025-10-22 07:47:07,239 - INFO - Verified VN network id 12 for VN 07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,239 - INFO - Verifications in API Server for VN ctest-vn-91311060 passed
2025-10-22 07:47:07,239 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,248 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/90027946-913c-4698-88a8-6eac79bf2379
2025-10-22 07:47:07,255 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/90027946-913c-4698-88a8-6eac79bf2379
2025-10-22 07:47:07,263 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/93ded131-5389-4b62-b94d-ac95f5524164
2025-10-22 07:47:07,275 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-91311060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97130820', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '570249418545055161', 'uuid-lslong': '10089802138495419480'}, 'enable': 'true', 'created': '2025-10-22T07:47:04', 'last-modified': '2025-10-22T07:47:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438052'}
2025-10-22 07:47:07,280 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 07:47:07,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91311060 passed
2025-10-22 07:47:07,280 - DEBUG - ====Verifying policy data for ctest-vn-91311060 in API_Server ======
2025-10-22 07:47:07,280 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-22 07:47:07,286 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea
2025-10-22 07:47:07,297 - DEBUG - Requesting: http://10.0.0.73:8082/project/0d500f6b-ffbc-4600-a59d-1c7379f2fd0d
2025-10-22 07:47:07,371 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/07e9eed3-29c0-45b9-8c06-2d963eff0458
2025-10-22 07:47:07,381 - DEBUG - ==>Verifying data for policy with id: f9602273-1381-41aa-8ed4-e5b40f656442, fqn: ['default-domain', 'ctest-TestBasicPolicy-97130820', 'ctest-policy-allow-all-63139816']
2025-10-22 07:47:07,381 - INFO - VN ctest-vn-91311060 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 07:47:07,381 - DEBUG - Verifying the vn in opserver
2025-10-22 07:47:07,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-91311060 virtual network link through opserver 10.0.0.73
2025-10-22 07:47:07,381 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-22 07:47:07,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-91311060', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-91311060?flat'}
2025-10-22 07:47:07,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97130820:ctest-vn-91311060 is found in opserver
2025-10-22 07:47:07,401 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 07:47:07,405 - DEBUG - VRF ids for VN ctest-vn-91311060: {}
2025-10-22 07:47:07,466 - DEBUG - Services list from nova: [