2025-11-01 03:43:51,186 - INFO - Domain Default found not creating
2025-11-01 03:43:51,314 - INFO - Project ctest-TestBasicPolicy-29647102 not found, creating it
2025-11-01 03:43:51,743 - INFO - Created Project:ctest-TestBasicPolicy-29647102, ID : c7cce031-71db-49bd-a00c-3e40ab1b833c
2025-11-01 03:43:53,072 - INFO - ================================================================================
2025-11-01 03:43:53,072 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 03:43:53,072 - 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-11-01 03:43:53,329 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-11-01 03:43:53,329 - INFO - Initial checks done. Running the testcase now
2025-11-01 03:43:53,329 - INFO -
2025-11-01 03:43:53,849 - DEBUG - Response for create_network : {'network': {'id': 'f45595a9-0d06-45fc-8dc7-251987df97c6', 'name': 'ctest-vn-09331733', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'project_id': 'c7cce03171db49bda00c3e40ab1b833c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-vn-09331733'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 03:43:54,036 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c604877-b0d7-4c71-85fb-754b1d5f863c', 'name': '', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'network_id': 'f45595a9-0d06-45fc-8dc7-251987df97c6', 'ip_version': 4, 'cidr': '9.19.70.192/26', 'allocation_pools': [{'start': '9.19.70.194', 'end': '9.19.70.254'}], 'gateway_ip': '9.19.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.19.70.194', 'tags': [], 'project_id': 'c7cce03171db49bda00c3e40ab1b833c'}}
2025-11-01 03:43:54,051 - INFO - Created VN ctest-vn-09331733
2025-11-01 03:43:54,101 - DEBUG - VN ctest-vn-09331733 UUID is f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:54,392 - DEBUG - Response for create_network : {'network': {'id': 'abdb9829-b8e9-445f-908c-c514e65ffe58', 'name': 'ctest-vn-37178187', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'project_id': 'c7cce03171db49bda00c3e40ab1b833c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-vn-37178187'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 03:43:54,601 - DEBUG - Response for create_subnet : {'subnet': {'id': '19d46cec-24f1-42f9-8458-e22d35446339', 'name': '', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'network_id': 'abdb9829-b8e9-445f-908c-c514e65ffe58', 'ip_version': 4, 'cidr': '159.92.209.64/26', 'allocation_pools': [{'start': '159.92.209.66', 'end': '159.92.209.126'}], 'gateway_ip': '159.92.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.92.209.66', 'tags': [], 'project_id': 'c7cce03171db49bda00c3e40ab1b833c'}}
2025-11-01 03:43:54,616 - INFO - Created VN ctest-vn-37178187
2025-11-01 03:43:54,665 - DEBUG - VN ctest-vn-37178187 UUID is abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:54,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733, 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-29647102:ctest-vn-37178187, 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-11-01 03:43:55,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f45595a9-0d06-45fc-8dc7-251987df97c6', 'name': 'ctest-vn-09331733', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'project_id': 'c7cce03171db49bda00c3e40ab1b833c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c604877-b0d7-4c71-85fb-754b1d5f863c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-vn-09331733'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-policy-allow-all-90615345']], 'subnet_ipam': [{'subnet_cidr': '9.19.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 03:43:55,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abdb9829-b8e9-445f-908c-c514e65ffe58', 'name': 'ctest-vn-37178187', 'tenant_id': 'c7cce03171db49bda00c3e40ab1b833c', 'project_id': 'c7cce03171db49bda00c3e40ab1b833c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19d46cec-24f1-42f9-8458-e22d35446339'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-vn-37178187'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-policy-allow-all-90615345']], 'subnet_ipam': [{'subnet_cidr': '159.92.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 03:43:55,453 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 03:43:55,744 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 03:43:55,768 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e
2025-11-01 03:43:55,778 - DEBUG - Requesting: http://10.0.0.65:8082/project/c7cce031-71db-49bd-a00c-3e40ab1b833c
2025-11-01 03:43:55,847 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:55,856 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:55,863 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b8e0091b-4232-484c-a4c2-cb14ccffb8d6
2025-11-01 03:43:55,869 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b8e0091b-4232-484c-a4c2-cb14ccffb8d6
2025-11-01 03:43:55,873 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/46c16257-5c08-46a7-9df5-19ed034786b2
2025-11-01 03:43:55,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 03:43:55,878 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:55,885 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b8e0091b-4232-484c-a4c2-cb14ccffb8d6
2025-11-01 03:43:55,896 - INFO - Verified VN network id 11 for VN f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:55,896 - INFO - Verifications in API Server for VN ctest-vn-09331733 passed
2025-11-01 03:43:55,896 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:55,903 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b8e0091b-4232-484c-a4c2-cb14ccffb8d6
2025-11-01 03:43:55,908 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b8e0091b-4232-484c-a4c2-cb14ccffb8d6
2025-11-01 03:43:55,913 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/46c16257-5c08-46a7-9df5-19ed034786b2
2025-11-01 03:43:55,921 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29647102', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17606142871575348732', 'uuid-lslong': '10216175071297247174'}, 'enable': 'true', 'created': '2025-11-01T03:43:53', 'last-modified': '2025-11-01T03:43:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.844456'}
2025-11-01 03:43:55,926 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 03:43:55,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09331733 passed
2025-11-01 03:43:55,926 - DEBUG - ====Verifying policy data for ctest-vn-09331733 in API_Server ======
2025-11-01 03:43:55,926 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 03:43:55,930 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e
2025-11-01 03:43:55,939 - DEBUG - Requesting: http://10.0.0.65:8082/project/c7cce031-71db-49bd-a00c-3e40ab1b833c
2025-11-01 03:43:56,005 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f45595a9-0d06-45fc-8dc7-251987df97c6
2025-11-01 03:43:56,013 - DEBUG - ==>Verifying data for policy with id: d1f40326-2818-4f59-956d-540eaf3bfb50, fqn: ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-policy-allow-all-90615345']
2025-11-01 03:43:56,013 - INFO - VN ctest-vn-09331733 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 03:43:56,013 - DEBUG - Verifying the vn in opserver
2025-11-01 03:43:56,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733 virtual network link through opserver 10.0.0.65
2025-11-01 03:43:56,013 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 03:43:56,299 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 03:43:56,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733?flat'}
2025-11-01 03:43:56,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-09331733 is found in opserver
2025-11-01 03:43:56,356 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 03:43:56,360 - DEBUG - VRF ids for VN ctest-vn-09331733: {}
2025-11-01 03:43:56,360 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 03:43:56,364 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e
2025-11-01 03:43:56,373 - DEBUG - Requesting: http://10.0.0.65:8082/project/c7cce031-71db-49bd-a00c-3e40ab1b833c
2025-11-01 03:43:56,447 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,457 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,464 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/767f47d8-754f-4cf5-9235-431f2d717cff
2025-11-01 03:43:56,470 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/767f47d8-754f-4cf5-9235-431f2d717cff
2025-11-01 03:43:56,475 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8f832e28-a55f-4802-8c9b-d5a5111bfe9e
2025-11-01 03:43:56,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 03:43:56,481 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,488 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/767f47d8-754f-4cf5-9235-431f2d717cff
2025-11-01 03:43:56,498 - INFO - Verified VN network id 12 for VN abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,499 - INFO - Verifications in API Server for VN ctest-vn-37178187 passed
2025-11-01 03:43:56,499 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,507 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/767f47d8-754f-4cf5-9235-431f2d717cff
2025-11-01 03:43:56,512 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/767f47d8-754f-4cf5-9235-431f2d717cff
2025-11-01 03:43:56,517 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8f832e28-a55f-4802-8c9b-d5a5111bfe9e
2025-11-01 03:43:56,526 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-37178187', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29647102', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12383658905348686943', 'uuid-lslong': '10415916731756183128'}, 'enable': 'true', 'created': '2025-11-01T03:43:54', 'last-modified': '2025-11-01T03:43:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.245200'}
2025-11-01 03:43:56,530 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 03:43:56,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37178187 passed
2025-11-01 03:43:56,531 - DEBUG - ====Verifying policy data for ctest-vn-37178187 in API_Server ======
2025-11-01 03:43:56,531 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 03:43:56,535 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e
2025-11-01 03:43:56,544 - DEBUG - Requesting: http://10.0.0.65:8082/project/c7cce031-71db-49bd-a00c-3e40ab1b833c
2025-11-01 03:43:56,613 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abdb9829-b8e9-445f-908c-c514e65ffe58
2025-11-01 03:43:56,620 - DEBUG - ==>Verifying data for policy with id: d1f40326-2818-4f59-956d-540eaf3bfb50, fqn: ['default-domain', 'ctest-TestBasicPolicy-29647102', 'ctest-policy-allow-all-90615345']
2025-11-01 03:43:56,621 - INFO - VN ctest-vn-37178187 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 03:43:56,621 - DEBUG - Verifying the vn in opserver
2025-11-01 03:43:56,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-37178187 virtual network link through opserver 10.0.0.65
2025-11-01 03:43:56,621 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 03:43:56,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-37178187', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-37178187?flat'}
2025-11-01 03:43:56,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29647102:ctest-vn-37178187 is found in opserver
2025-11-01 03:43:56,637 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 03:43:56,641 - DEBUG - VRF ids for VN ctest-vn-37178187: {}
2025-11-01 03:43:56,711 - DEBUG - Services list from nova: [