2025-08-20 18:18:35,882 - INFO - Domain Default found not creating
2025-08-20 18:18:36,025 - INFO - Project ctest-TestBasicPolicy-64813187 not found, creating it
2025-08-20 18:18:36,500 - INFO - Created Project:ctest-TestBasicPolicy-64813187, ID : 8096d50f-8eb3-4fb6-bfcb-df87a16245c7
2025-08-20 18:18:38,124 - INFO - ================================================================================
2025-08-20 18:18:38,124 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 18:18:38,124 - 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-20 18:18:38,381 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-08-20 18:18:38,381 - INFO - Initial checks done. Running the testcase now
2025-08-20 18:18:38,381 - INFO -
2025-08-20 18:18:38,998 - DEBUG - Response for create_network : {'network': {'id': 'db4591ff-4c40-45de-aa72-c3ee7339770c', 'name': 'ctest-vn-24652660', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-vn-24652660'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:18:39,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c1a5c25-27ec-44d4-89d8-0490d6c8a876', 'name': '', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'network_id': 'db4591ff-4c40-45de-aa72-c3ee7339770c', 'ip_version': 4, 'cidr': '156.141.223.64/26', 'allocation_pools': [{'start': '156.141.223.66', 'end': '156.141.223.126'}], 'gateway_ip': '156.141.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.141.223.66', 'tags': [], 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7'}}
2025-08-20 18:18:39,228 - INFO - Created VN ctest-vn-24652660
2025-08-20 18:18:39,280 - DEBUG - VN ctest-vn-24652660 UUID is db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:39,579 - DEBUG - Response for create_network : {'network': {'id': 'd9a0bf82-9b1a-4a08-8779-dce14d7a5750', 'name': 'ctest-vn-47813452', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-vn-47813452'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:18:39,790 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ff04b01-21ff-4f81-8a1f-77f105ddf6ce', 'name': '', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'network_id': 'd9a0bf82-9b1a-4a08-8779-dce14d7a5750', 'ip_version': 4, 'cidr': '110.107.74.64/26', 'allocation_pools': [{'start': '110.107.74.66', 'end': '110.107.74.126'}], 'gateway_ip': '110.107.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.107.74.66', 'tags': [], 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7'}}
2025-08-20 18:18:39,809 - INFO - Created VN ctest-vn-47813452
2025-08-20 18:18:39,864 - DEBUG - VN ctest-vn-47813452 UUID is d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:39,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660, 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-64813187:ctest-vn-47813452, 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-20 18:18:40,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db4591ff-4c40-45de-aa72-c3ee7339770c', 'name': 'ctest-vn-24652660', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c1a5c25-27ec-44d4-89d8-0490d6c8a876'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-vn-24652660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-policy-allow-all-85348108']], 'subnet_ipam': [{'subnet_cidr': '156.141.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:18:40,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9a0bf82-9b1a-4a08-8779-dce14d7a5750', 'name': 'ctest-vn-47813452', 'tenant_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'project_id': '8096d50f8eb34fb6bfcbdf87a16245c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ff04b01-21ff-4f81-8a1f-77f105ddf6ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-vn-47813452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-policy-allow-all-85348108']], 'subnet_ipam': [{'subnet_cidr': '110.107.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 18:18:40,728 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 18:18:41,065 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 18:18:41,095 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a
2025-08-20 18:18:41,109 - DEBUG - Requesting: http://10.0.0.65:8082/project/8096d50f-8eb3-4fb6-bfcb-df87a16245c7
2025-08-20 18:18:41,189 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,201 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,211 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/802e27af-d788-49cb-a0ad-201d2ffeb897
2025-08-20 18:18:41,219 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/802e27af-d788-49cb-a0ad-201d2ffeb897
2025-08-20 18:18:41,235 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/da5279f7-7ead-444e-acf6-b51e9bb1588f
2025-08-20 18:18:41,243 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 18:18:41,243 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,253 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/802e27af-d788-49cb-a0ad-201d2ffeb897
2025-08-20 18:18:41,268 - INFO - Verified VN network id 11 for VN db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,268 - INFO - Verifications in API Server for VN ctest-vn-24652660 passed
2025-08-20 18:18:41,268 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,278 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/802e27af-d788-49cb-a0ad-201d2ffeb897
2025-08-20 18:18:41,287 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/802e27af-d788-49cb-a0ad-201d2ffeb897
2025-08-20 18:18:41,295 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/da5279f7-7ead-444e-acf6-b51e9bb1588f
2025-08-20 18:18:41,309 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64813187', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15800195393381221854', 'uuid-lslong': '12282094562695542540'}, 'enable': 'true', 'created': '2025-08-20T18:18:38', 'last-modified': '2025-08-20T18:18:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038307'}
2025-08-20 18:18:41,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 18:18:41,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24652660 passed
2025-08-20 18:18:41,317 - DEBUG - ====Verifying policy data for ctest-vn-24652660 in API_Server ======
2025-08-20 18:18:41,317 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 18:18:41,323 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a
2025-08-20 18:18:41,336 - DEBUG - Requesting: http://10.0.0.65:8082/project/8096d50f-8eb3-4fb6-bfcb-df87a16245c7
2025-08-20 18:18:41,411 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/db4591ff-4c40-45de-aa72-c3ee7339770c
2025-08-20 18:18:41,423 - DEBUG - ==>Verifying data for policy with id: d8f41047-c66e-4f7e-bcef-345739ce46ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-policy-allow-all-85348108']
2025-08-20 18:18:41,423 - INFO - VN ctest-vn-24652660 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 18:18:41,424 - DEBUG - Verifying the vn in opserver
2025-08-20 18:18:41,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660 virtual network link through opserver 10.0.0.65
2025-08-20 18:18:41,424 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 18:18:41,757 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 18:18:41,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660?flat'}
2025-08-20 18:18:41,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-24652660 is found in opserver
2025-08-20 18:18:41,827 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 18:18:41,832 - DEBUG - VRF ids for VN ctest-vn-24652660: {}
2025-08-20 18:18:41,833 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 18:18:41,839 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a
2025-08-20 18:18:41,851 - DEBUG - Requesting: http://10.0.0.65:8082/project/8096d50f-8eb3-4fb6-bfcb-df87a16245c7
2025-08-20 18:18:41,925 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:41,938 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:41,949 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3533d465-3900-41df-bbc1-4b32a919092b
2025-08-20 18:18:41,958 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3533d465-3900-41df-bbc1-4b32a919092b
2025-08-20 18:18:41,968 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d761ae5c-09ab-48da-bc01-07b343b5a514
2025-08-20 18:18:41,975 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 18:18:41,975 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:41,987 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3533d465-3900-41df-bbc1-4b32a919092b
2025-08-20 18:18:42,002 - INFO - Verified VN network id 12 for VN d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:42,002 - INFO - Verifications in API Server for VN ctest-vn-47813452 passed
2025-08-20 18:18:42,002 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:42,013 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3533d465-3900-41df-bbc1-4b32a919092b
2025-08-20 18:18:42,023 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3533d465-3900-41df-bbc1-4b32a919092b
2025-08-20 18:18:42,031 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d761ae5c-09ab-48da-bc01-07b343b5a514
2025-08-20 18:18:42,046 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-47813452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64813187', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15681744470172912136', 'uuid-lslong': '9762076527527876432'}, 'enable': 'true', 'created': '2025-08-20T18:18:39', 'last-modified': '2025-08-20T18:18:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521403'}
2025-08-20 18:18:42,057 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 18:18:42,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47813452 passed
2025-08-20 18:18:42,058 - DEBUG - ====Verifying policy data for ctest-vn-47813452 in API_Server ======
2025-08-20 18:18:42,058 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 18:18:42,066 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a
2025-08-20 18:18:42,080 - DEBUG - Requesting: http://10.0.0.65:8082/project/8096d50f-8eb3-4fb6-bfcb-df87a16245c7
2025-08-20 18:18:42,151 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d9a0bf82-9b1a-4a08-8779-dce14d7a5750
2025-08-20 18:18:42,162 - DEBUG - ==>Verifying data for policy with id: d8f41047-c66e-4f7e-bcef-345739ce46ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-64813187', 'ctest-policy-allow-all-85348108']
2025-08-20 18:18:42,162 - INFO - VN ctest-vn-47813452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 18:18:42,162 - DEBUG - Verifying the vn in opserver
2025-08-20 18:18:42,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-47813452 virtual network link through opserver 10.0.0.65
2025-08-20 18:18:42,162 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 18:18:42,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-47813452', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-47813452?flat'}
2025-08-20 18:18:42,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64813187:ctest-vn-47813452 is found in opserver
2025-08-20 18:18:42,184 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 18:18:42,190 - DEBUG - VRF ids for VN ctest-vn-47813452: {}
2025-08-20 18:18:42,245 - DEBUG - Services list from nova: [